Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 63793 - glibc 2.3.4.20040808/nptl lacks #ifdef in stdio-lock.h
Summary: glibc 2.3.4.20040808/nptl lacks #ifdef in stdio-lock.h
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All All
: High normal (vote)
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-09-12 10:15 UTC by Canal Vorfeed
Modified: 2004-09-18 21:26 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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/