``Output file requires shared library `libc.so.4' ''

``Output file requires shared library `libc.so.4' ''

Post by Mark-Jason Domin » Tue, 30 Jan 1996 04:00:00



I'm trying to build `spellcast, which is a game that uses the X
libraries.  The link phase is failing, and I don't understand why.

Here's the output of `make':

cc -g -v -o spellcast engine.o espells.o execute.o execute2.o emonster.o etran.o main.o xtext.o xquery.o xloop.o xgest.o xbutton.o xtalk.o -L/usr/X11R6/lib -L/usr/local/lib -lX11
Reading specs from /usr/lib/gcc-lib/i486-linux/2.6.3/specs
gcc version 2.6.3
 ld -dll-verbose -m486 -o spellcast /usr/lib/crt0.o -L/usr/X11R6/lib -L/usr/local/lib -L/usr/lib/gcc-lib/i486-linux/2.6.3 engine.o espells.o execute.o execute2.o emonster.o etran.o main.o xtext.o xquery.o xloop.o xgest.o xbutton.o xtalk.o -lX11 -lgcc -lg -lgcc
ld: Output file requires shared library `libc.so.4'
ld version 2.5.2.6 (with BFD 2.5)
cc: Internal compiler error: program ld got fatal signal 6
make: *** [spellcast] Error 1

The error message seems to be ``ld: Output file requires shared
library `libc.so.4' ''.  libc.so.4 is in /lib:

lrwxrwxrwx   1 root     root           14 Aug  5 14:08 /lib/libc.so.4 -> libc.so.4.6.27
-rwxr-xr-x   1 root     root       634880 Aug  5 14:08 /lib/libc.so.4.6.27

I'm using the slackware distribution of Linux 1.2.8.

I don't know how to proceed on this, or even where the error is.  
I know that ld is looking in /usr/X11R6/lib/libX11.sa, and that this
file is full of __NEEDS_SHRLIB_libc_4, but I don't understand why the
libc 4 that I have is insufficient, or how to correct the problem.

--


 
 
 

1. what does 'ld: Output file requires shared library `libc.so.4'' mean?

I upgraded (downgraded?) to Slackware 1.2.2 and got the gcc 2.6.3 package
installed. However I'm having a problem linking with the debug option '-g'

when I do...

gcc -g -o t t.c -lm   (where t.c is some cheesy program)

I get...

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

Anybody know what file/link I am missing and how do I go about fixing this?

thanks,

- Jeff Wiegley

2. rrn anomalies with 3003

3. ld: Output file requires shared library 'libc.so.4' : error

4. Using loadlin.exe/loadlinx.exe with MSDOS 7/Win95 not working. Please help

5. ld: Output file requires shared library 'libc.so.4'

6. New Article in the Intrusion Detection Focus Area: Analyzing IDS Data

7. Slackware 2.2: "ld: Output file requires shared library `libc.so.4'

8. SUMMARY: csh: too many values in environment

9. ld: Output file requires shared library `libc.so.4'...

10. ld: Output file requires shared library `libc.so.4'

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

12. ld: Output file requires shared library `libX11.so.3' after slack upgrade

13. ld: Output file requires shared library `libXt.so.3'