🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gcc.help
Article #42793

GCC/ld error linking shared X libs

#42793
From: Jesse W. Bennett
Date: Tue, 24 Oct 1995 00:00
32 lines
1754 bytes
I am having problems compiling programs which use shared X libs, e.g.

  lenny:~$ gcc -o memo memo.c -lX11 -lXt
  ld: Output file requires shared library `libX11.so.6'
  gcc: Internal compiler error: program ld got fatal signal 6
  lenny:~$ gcc -v
  Reading specs from /usr/lib/gcc-lib/i486-linux/2.6.3/specs
  gcc version 2.6.3

I am reasonably certain this is some type of configuration problem
because I have sucessfully compiled this code on a Linux/Slackware 2.3
system.  My understanding is that the location of the "trusted" shared
libs is specified in /etc/ld.so.conf, contents of which are:

  /usr/local/lib
  /usr/X11/lib
  /usr/openwin/lib
  /lib/elf

In /usr/X11/lib ld.so.6 is a link to ld.so.6.0.  Why is the linker
complaining about this file?  This problem showed up when I installed
Slackware 2.2 on a new system (updated kernel to 1.2.13).  Is there
any substantial difference between 2.2 and 2.3 in the area of GCC?

BTW, I did have to define the env variable LIBRARY_PATH in order for
gcc to find the X11 and Xt libs -- I do not recall having to do this
previously.  I also tried setting LD_LIBRARY_PATH but this did not
help.

TIA,

Jesse  jess@dlep1.itg.ti.com
Technical Details
Message-ID: <46jaq9$3r2@mksrv1.dseg.ti.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 11318c,e9c12a6450db2ddc,start
X-Google-Attributes: gid11318c,public
X-Google-Thread: f4bda,e9c12a6450db2ddc,start
X-Google-Attributes: gidf4bda,public
From: jess@dlep1.itg.ti.com (Jesse W. Bennett)
Subject: GCC/ld error linking shared X libs
Date: 1995/10/24
Message-ID: <46jaq9$3r2@mksrv1.dseg.ti.com>
X-Deja-AN: 118037600
sender: jesse@lenny.dseg.ti.com (Jesse W. Bennett)
reply-to: jess@dlep1.itg.ti.com (Jesse W. Bennett)
newsgroups: gnu.gcc.help,comp.os.linux.x