Created attachment 116498 [details] code and error related to fedora core 4 glibc static initalization of mutexes
They are correct, some extra warnings just warn even about correct code. Anyway, http://sources.redhat.com/ml/libc-hacker/2005-07/msg00006.html should shut these warnings up.
Should be fixed in glibc-2.3.90-3.
When will glibc-2.3.90-3 come out? The latest, 2.3.5-10.3 as of 24/8/05, exhibits the same problem.
glibc-2.3.90-3 came out more than a month ago, but glibc-2.3.90-* is a rawhide version (i.e. FC5 development ATM; that's why it has been closed with RAWHIDE). But glibc-2.3.5-10.3 also includes that fix and certainly doesn't exhibit the problem for me. When I fix the testcase a little (s/fprint(/fprintf (stderr, /, plus add return 0; at the end of main), I get: rpm -qf /usr/include/pthread.h; gcc -W -Wall -O2 fc4-gcc4-mutex.c x86_64/glibc-headers-2.3.5-10.3.x86_64.rpm fc4-gcc4-mutex.c: In function 'main': fc4-gcc4-mutex.c:8: warning: unused parameter 'argc' fc4-gcc4-mutex.c:8: warning: unused parameter 'argv' fc4-gcc4-mutex.c: At top level: fc4-gcc4-mutex.c:4: warning: 'some_static_mutex' defined but not used fc4-gcc4-mutex.c:6: warning: 'some_static_condition' defined but not used