Article View: gnu.gcc.help
Article #42378Re: lib.so problems
From: William S. Gribble
Date: Sat, 16 Dec 1995 00:00
Date: Sat, 16 Dec 1995 00:00
22 lines
1499 bytes
1499 bytes
wware@world.std.com (Will Ware) writes: > Andrew W. Sudbury (andrew@hell.cafeliberty.com) wrote: > : gcc -I/usr/include/tcl/ -L/usr/X11/lib/ -L/lib/ Foolink.c Fwm_Init.o > : -lX11 -ltcl -ltk > : the comiler (well ld) then chokes with: > : ld: Output file requires shared library `libX11.so.6' > : gcc: Internal compiler error: program ld got fatal signal 6 > > I'm getting the same thing (except with libc.so.4). This is a bogus error, caused (I think) by a bug somewhere in the linux-libc-ld.so-binutils interaction. In any event, you don't get it with ELF gcc and binutils. There's a simple fix that doesn't involve moving to ELF -- though it doesn't look like it applies to the case above, the symptom is so similar that I'll assume the gcc command line above is not exactly what was run. Edit your Makefiles and remove the -g from the final link. gcc is supposed to ignore it anyway (see binutils docs). This has fixed the problem every time it came up for me. Bill Gribble
Technical Details
Message-ID:
<GRIB.95Dec16143216@cascade.cs.utexas.edu>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<199512151353.IAA01309@hell.cafeliberty.com> <DJorCw.CpM@world.std.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 11318c,f6324a040313e823 X-Google-Attributes: gid11318c,public From: grib@cs.utexas.edu (William S. Gribble) Subject: Re: lib.so problems Date: 1995/12/16 Message-ID: <GRIB.95Dec16143216@cascade.cs.utexas.edu> X-Deja-AN: 122048550 distribution: gnu references: <199512151353.IAA01309@hell.cafeliberty.com> <DJorCw.CpM@world.std.com> organization: Univ. of Texas at Austin, CS Dept. newsgroups: gnu.gcc.help