Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 63793

Summary: glibc 2.3.4.20040808/nptl lacks #ifdef in stdio-lock.h
Product: Gentoo Linux Reporter: Canal Vorfeed <canalvorfeed>
Component: [OLD] Core systemAssignee: Gentoo Toolchain Maintainers <toolchain>
Status: RESOLVED UPSTREAM    
Severity: normal    
Priority: High    
Version: 2004.2   
Hardware: All   
OS: All   
Whiteboard:
Package list:
Runtime testing required: ---

Description Canal Vorfeed 2004-09-12 10:15:58 UTC
lowlevellock.h is included unconditionally even if on production system it's absent

Needs wrapping like libc-lock.h

--- stdio-lock.h        2004-09-12 08:42:20.000000000 +0000
+++ stdio-lock.h        2004-09-13 01:10:19.275829960 +0000
@@ -21,8 +21,9 @@
 #define _BITS_STDIO_LOCK_H 1

 #include <bits/libc-lock.h>
+#ifdef _LIBC
 #include <lowlevellock.h>
-
+#endif

 /* The locking here is very inexpensive, even for inlining.  */
 #define _IO_lock_inexpensive   1
Comment 1 Canal Vorfeed 2004-09-12 11:39:28 UTC
There are some macroses who actually use LLL_LOCK_INITIALIZER defined in lowlevellock.h ...

File lowlevellock.h is different for different supported platforms but actual definition of LLL_LOCK_INITIALIZER is the same:

/* Initializer for compatibility lock.  */
#define LLL_MUTEX_LOCK_INITIALIZER              (0)
#define LLL_MUTEX_LOCK_INITIALIZER_LOCKED       (1)


Needs further investigation. I was able to add -DLLL_MUTEX_LOCK_INITIALIZER=0 in command line but it does not look like a good long-term solution, ne?
Comment 2 Travis Tilley (RETIRED) gentoo-dev 2004-09-18 21:26:31 UTC
would you mind filing this bug upstream with redhat?

http://sources.redhat.com/bugzilla/