From mboxrd@z Thu Jan 1 00:00:00 1970 From: hjl@lucon.org (H.J. Lu) To: npsimons@nmt.edu Cc: egcs@cygnus.com Subject: Re: Successful egcs-1.0.2 compile! Date: Fri, 27 Mar 1998 15:18:00 -0000 Message-id: References: X-SW-Source: 1998-03/msg00962.html > I thought I would try compiling and installing egcs because a friend of > mine said it works better with glibc and it might fix this little problem: > > Mysteria:~/Projects/class_check$ gcc lud2.c -o lud2 > /tmp/cca056251.o: In function `main': > /tmp/cca056251.o(.text+0x75): undefined reference to `stat' > /tmp/cca056251.o(.text+0x1bb): undefined reference to `stat' > > It's installed, but I guess I need to recompile glibc with egcs so that it will > fix that problem. BTW, I first ran into this problem with gcc 2.8.1 and glibc You screwed up your /usr/lib/libc.so, which, BTW, is not a symlink for glibc 2. It should be a text file for the linker as linker script. H.J.