Sources Bugzilla – Bug 5531
__vdso_clock_gettime and static linking of libpthread
Last modified: 2008-01-02 20:51:20 UTC
The GLIBC version is 2.7. I am using a current Debian testing installation. When linking with "-pthread -static" the following error occurs: /usr/lib/gcc/x86_64-linux-gnu/4.1.3/../../../../lib/libpthread.a(pthread_cond_timedwait.o): In function `pthread_cond_timedwait': (.text+0xa7): undefined reference to `__vdso_clock_gettime'
Don't report problems in vendor versions here. The cvs glibc has no such problem.
Just for the record: this bug has been fixed in CVS just 3 weeks ago by... you. http://sources.redhat.com/cgi-bin/cvsweb.cgi/libc/nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S.diff?r1=1.29&r2=1.30&cvsroot=glibc