This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Glibc 2.5 fails to build on i786 under x86_64 [patch included]
- From: Jacob Bachmeyer <jcb62281 at gmail dot com>
- To: libc-alpha at sourceware dot org
- Date: Sun, 29 Oct 2006 12:02:06 -0600
- Subject: Glibc 2.5 fails to build on i786 under x86_64 [patch included]
- Reply-to: jcb62281 at gmail dot com
It seems that somehow the definition of __lll_lock_wait in
nptl/sysdeps/unix/sysv/linux/i386 got out of date.
It is declared in lowlevellock.h as extern int __lll_lock_wait (int val,
int *__futex) but defined as void __lll_lock_wait (int *futex) in
lowlevellock.c.
Other headers agree with the latter definition.
The patch:
--- nptl/sysdeps/unix/sysv/linux/i386/lowlevellock.h.original
2006-09-05 09:44:25.000000000 -0500
+++ nptl/sysdeps/unix/sysv/linux/i386/lowlevellock.h 2006-10-29
11:59:29.000000000 -0600
@@ -444,8 +444,8 @@
#define LLL_LOCK_INITIALIZER_LOCKED (1)
-extern int __lll_lock_wait (int val, int *__futex)
- __attribute ((regparm (2))) attribute_hidden;
+extern void __lll_lock_wait (int *__futex)
+ __attribute ((regparm (1))) attribute_hidden;
extern int __lll_unlock_wake (int *__futex)
__attribute ((regparm (1))) attribute_hidden;
extern int lll_unlock_wake_cb (int *__futex) attribute_hidden;