egcs-1.1.2 build problems

Martin Costabel costabel at
Fri Mar 19 17:54:45 EST 1999

Patrik Jonsson wrote:
> Hi all,
> I'm trying to build the latest egcs, but it fails with the following
> error:
> In file included from ../../../egcs-1.1.2/libio/iolibio.h:1,
>                  from ../../../egcs-1.1.2/libio/libioP.h:40,
>                  from ../../../egcs-1.1.2/libio/iogetline.c:26:
> ../../../egcs-1.1.2/libio/libio.h:168: stdio-lock.h: No such file or
> directory
> Where is the stdio-lock.h file supposed to come from?

It is supposed to be in /usr/include, but it is not there, because
glibc-1.99 is not quite glibc-2. If you have libg++-devel installed,
there is one in /usr/include/g++ which you could copy to /usr/include.

Or you could change the definition of __GLIBC__ from 2 to 1 in
/usr/include/features.h. This takes care of many of these "lying
glibc-961212" problems and introduces some others.

Or you could hack libio/libio.h to not include stdio-lock.h any more.

Or you could install pre-R5. This is what I have.

I don't know what those who compiled egcs-1.1.2 sucessfully under R4
were doing. I suppose Gary Thomas has a solution?


[[ This message was sent via the linuxppc-dev mailing list.  Replies are ]]
[[ not  forced  back  to the list, so be sure to Cc linuxppc-dev if your ]]
[[ reply is of general interest. Please check ]]
[[ and for useful information before posting.   ]]

More information about the Linuxppc-dev mailing list