This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
[PATCH][BZ 6740] Correct build failiure on PowerPC when using--enable-kernel=2.6.22 or higher
- From: "Ryan S. Arnold" <rsa at us dot ibm dot com>
- To: libc-alpha at sourceware dot org, Ulrich Drepper <drepper at redhat dot com>
- Date: Fri, 11 Jul 2008 16:48:23 -0500
- Subject: [PATCH][BZ 6740] Correct build failiure on PowerPC when using--enable-kernel=2.6.22 or higher
- Reply-to: rsa at us dot ibm dot com
Per bugzilla http://sourceware.org/bugzilla/show_bug.cgi?id=6740 a build
failure has been identified on PowerPC using --enable-kernel=2.6.22
Hiroki Kaminaga submitted a patch to libc-help which prevents the
definition of PRIVATE_FUTEX_OFFSET when the kernel supports private
futexes.
We've vetted the patch and extracted the necessary portion and
successfully run it through build tests.
Regards,
Ryan S. Arnold
IBM Linux Technology Center
Linux Toolchain Development
2008-04-28 Hiroki Kaminaga <kaminaga@sm.sony.co.jp>
[BZ 6740]
nptl/sysdeps/powerpc/tcb-offsets.sym (PRIVATE_FUTEX_OFFSET):
Guard sym definition with #ifndef __ASSUME_PRIVATE_FUTEX.
--- a/nptl/sysdeps/powerpc/tcb-offsets.sym
+++ b/nptl/sysdeps/powerpc/tcb-offsets.sym
@@ -15,4 +15,6 @@ MULTIPLE_THREADS_OFFSET thread_offsetof
PID thread_offsetof (pid)
TID thread_offsetof (tid)
POINTER_GUARD (offsetof (tcbhead_t, pointer_guard) -
TLS_TCB_OFFSET - sizeof (tcbhead_t))
+#ifndef __ASSUME_PRIVATE_FUTEX
PRIVATE_FUTEX_OFFSET thread_offsetof (header.private_futex)
+#endif