This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH][BZ 6740] Correct build failiure on PowerPC when using--enable-kernel=2.6.22 or higher


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]