gcc can't find libc.so.4

gcc can't find libc.so.4

Post by Guangliang » Sat, 23 Sep 1995 04:00:00

I was trying to make the package `msqltcl-1.50' on my linux (Slackware 2.3).
But the gcc (2.6.3) seems to have trouble to locate libc.so.4. The command
and the error messages are:

gcc -g -o msqlwish tkXAppInit.o msqltcl.o -L/usr/local/Minerva/lib \
-lmsql -L/lib -L/usr/lib -ltkx -ltclx -L/usr/X11R6/lib -L/lib -ltk \
-ltcl -lX11 -lm

ld: Output file requires shared library `libc.so.4'
gcc: Internal compiler error: program ld got fatal signal 6

I checked /lib. libc.so.4 was there, which was a symbolic link to libc.4.6.27.

Can anyone help me?


Guangliang He


gcc can't find libc.so.4

Post by Uli Upho » Wed, 27 Sep 1995 04:00:00

> gcc -g -o msqlwish tkXAppInit.o msqltcl.o -L/usr/local/Minerva/lib \
> -lmsql -L/lib -L/usr/lib -ltkx -ltclx -L/usr/X11R6/lib -L/lib -ltk \
> -ltcl -lX11 -lm

I think you simply have to add -lc to the above command line.

That worked for me when I tried to compile and link a program with the -g option.



Uli Uphoff                          Tel.: +49 203 379 3029
Universitaet Duisburg               Fax : +49 202 379 3087
Verbrennung & Gasdynamik

47057 Duisburg 1                        
Germany                             http://fire1.vug.uni-duisburg.de/~hj000up



1. Can't find library 'libc.so.4' ???

What kind of error is this???

It seems all the commands need to reference this library file.  But I
don't know why this would happen all-of-a-sudden.

I was only updating some files in /usr/bin, /usr/sbin /usr/local/bin
and none in /usr/lib....

Erik Lindquist
Systems Administrator
Atomic Energy of Canada Ltd.
Whiteshell  Laboritories
Pinawa, Manitoba

2. Duplicate Addresses??

3. Compiler Error -- doesn't find shred library 'libc.so.4'

4. PGP + Alpha

5. init: can't find library 'libc.so.4'

6. HELP! I can't boot Linux anymore!

7. Slackware 2.1.0: init: can't find library 'libc.so.4' - Help

8. ISC BIND 4.9.6 and Solaris 2.6/gcc howto ?

9. dip: can't find library 'libc.so.4'

10. "Can't find shared library 'libc.so.3.0'"

11. libc.so.4 not found with gcc -g

12. "Can't find libc.so.4" FIXED (here's how...)

13. GCC 2.6.3 not finding libc.so.4?