Glibc 2.5 fails to build on i786 under x86_64 [patch included]
Jacob Bachmeyer
jcb62281@gmail.com
Sun Oct 29 21:44:00 GMT 2006
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;
More information about the Libc-alpha
mailing list