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]

Glibc 2.5 fails to build on i786 under x86_64 [patch included]


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;


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