Description of problem: From package glibc-headers.i386.2.3.5-10, /usr/include/bits/stdio-lock.h This file includes "lowlevellock.h" which is not present anywhere. I'm having trouble compiling sources require stdio-lock.h Version-Release number of selected component (if applicable): FC4 glibc-headers.i386.2.3.5-10 kernel-smp.i686.2.6.12-1.1387_FC4 How reproducible: Steps to Reproduce: 1. 2. 3. Actual results: Expected results: Additional info: It is obvious this file is missing.
Can you explain what do you need bits/stdio-lock.h for?
I'm compiling GCC-2.95.3 using GCC-4.0.0. /prj/src/gcc/gcc-2.95.3/gcc/xgcc -B/prj/src/gcc/gcc-2.95.3/gcc/ - B/usr/local/i686-pc-linux-gnu/bin/ -c -g -O2 -fvtable-thunks -D_GNU_SOURCE - fno-implicit-templates -I. -I. -nostdinc++ -D_IO_MTSAFE_IO stdstrbufs.cc In file included from libio.h:167, from iolibio.h:1, from libioP.h:47, from stdstrbufs.cc:32: /usr/include/bits/stdio-lock.h:24: lowlevellock.h: No such file or directory make[1]: *** [stdstrbufs.o] Error 1 make[1]: Leaving directory `/prj/src/gcc/gcc-2.95.3/i686-pc-linux-gnu/libio' make: *** [all-target-libio] Error 2
The file is definitely never going to be distributed. It is not part of the API. Remove the _IO_MTSAFE_IO definition from the command line and do whatever else is necessary to make this compile without using stdio-lock.h. This is just a symptom of using completely obsolete code.
I have changed glibc.spec, so that it installs sysdeps/generic/bits/stdio-lock.h over the NPTL specific header. The generic <bits/stdio-lock.h> is what linuxthreads was using and should work just fine with NPTL as well.
*** Bug 163131 has been marked as a duplicate of this bug. ***
(In reply to comment #4) > I have changed glibc.spec, so that it installs sysdeps/generic/bits/stdio-lock.h > over the NPTL specific header. The generic <bits/stdio-lock.h> is what > linuxthreads was using and should work just fine with NPTL as well. Hi. So, how can I solve this error? I need gcc-2.95.3 to install some application which needs it and I don't understand what should I do to be successful in instalation of gcc-2.95.3. Any help is appreciated. Thanks a lot in advance. My error: In file included from ../../../zdroj_gcc/libio/libio.h:167, from ../../../zdroj_gcc/libio/iolibio.h:1, from ../../../zdroj_gcc/libio/libioP.h:47, from ../../../zdroj_gcc/libio/iogetline.c:26: /usr/include/bits/stdio-lock.h:24: lowlevellock.h: nenà souborem ani adresáÅem make[2]: *** [iogetline.o] Error 1 make[2]: Leaving directory `/opt/gcc-2.95.3/i686-pc-linux-gnu/libio' make[1]: *** [all-target-libio] Error 2 make[1]: Leaving directory `/opt/gcc-2.95.3' make: *** [bootstrap] Error 2 [root@localhost gcc-2.95.3]#