Message ID | 1398783297-18648-2-git-send-email-dan.moulding@rackwareinc.com |
---|---|
State | Accepted |
Headers | show |
On Tue, Apr 29, 2014 at 08:54:57AM -0600, Dan Moulding wrote: > When compiling against the 2.6.18 kernel headers, during linking of > the NPTL library it runs into a "undefined reference to PRIVATE_FUTEX" > error in pthread_cond_timedwait.S. This resolves the problem by > ensuring that the definition for PRIVATE_FUTEX is made available to > pthread_cond_timedwait.S. Applied, thanks!
diff --git a/libpthread/nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S b/libpthread/nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S index 80174f9..fd388f9 100644 --- a/libpthread/nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S +++ b/libpthread/nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S @@ -22,6 +22,7 @@ #include <pthread-errnos.h> #include <pthread-pi-defines.h> #include <bits/kernel-features.h> +#include <tcb-offsets.h> .text
When compiling against the 2.6.18 kernel headers, during linking of the NPTL library it runs into a "undefined reference to PRIVATE_FUTEX" error in pthread_cond_timedwait.S. This resolves the problem by ensuring that the definition for PRIVATE_FUTEX is made available to pthread_cond_timedwait.S. Signed-off-by: Dan Moulding <dan.moulding@rackwareinc.com> --- .../nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S | 1 + 1 file changed, 1 insertion(+)