compile problem with ld and libXt.so.3

compile problem with ld and libXt.so.3

Post by hson » Tue, 12 Sep 1995 04:00:00



Hello,

I just installed Slackware 2.3, and everything seems fine except this
compiling problem.

$ gcc motif_program.c -lXm -lXt -lX11 -L/usr/X11/lib
ld: Output file requires shared library `libXt.so.3'
cc: Internal compiler error: program ld got fatal signal 6

$ _

I am probably wrong, but it seems to me that ld can't find libXt.so.3.
However libXt.so.3 resides in /usr/X11R6/lib as other libraries as follows.

$ ls -l /usr/X11R6/lib
total 7299
lrwxrwxrwx   1 root     root           14 Sep 10 13:28 X11 ->
/var/X11R6/lib
drwxr-xr-x   8 root     root         1024 Sep 10 13:45 fonts
-rw-r--r--   1 root     root        43378 Jan 28  1995 libFS.a
-rw-r--r--   1 root     root        85334 Jan 28  1995 libICE.a
-rw-r--r--   1 root     root        93292 Jan 28  1995 libICE.sa
-rw-r--r--   1 root     root       130200 Jul 25  1994 libMrm.a
-rw-r--r--   1 root     root        48626 Jul 27  1994 libMrm.sa
-rw-r--r--   1 root     root       264040 Jan 28  1995 libPEX5.a
-rw-r--r--   1 root     root        61994 Jan 28  1995 libPEX5.sa
lrwxrwxrwx   1 root     root           14 Sep 10 13:45 libPEX5.so.6 ->
libPEX5.so.6.0
-r-xr-xr-x   1 root     root       234500 Sep 10 13:45 libPEX5.so.6.0
-rw-r--r--   1 root     root        32178 Jan 28  1995 libSM.a
-rw-r--r--   1 root     root        86144 Jan 28  1995 libSM.sa
-rw-r--r--   1 root     root       344744 Jul 28  1994 libUil.a
-rw-r--r--   1 root     root       646236 Jan 28  1995 libX11.a
-rw-r--r--   1 root     root       201654 Jan 28  1995 libX11.sa
lrwxrwxrwx   1 root     root           15 Sep 10 13:05 libX11.so.3 ->
libX11.so.3.1.0
-r-xr-xr-x   1 root     root       320516 Sep 10 13:05 libX11.so.3.1.0
lrwxrwxrwx   1 root     root           13 Sep 10 13:09 libX11.so.6 ->
libX11.so.6.0
-r-xr-xr-x   1 root     root       529412 Sep 10 13:09 libX11.so.6.0
-rw-r--r--   1 root     root         4474 Jan 28  1995 libXExExt.a
-rw-r--r--   1 root     root        48166 Jan 28  1995 libXIE.a
-rw-r--r--   1 root     root        31978 Jan 28  1995 libXIE.sa
lrwxrwxrwx   1 root     root           13 Sep 10 13:09 libXIE.so.6 ->
libXIE.so.6.0
-r-xr-xr-x   1 root     root        58372 Sep 10 13:09 libXIE.so.6.0
-rw-r--r--   1 root     root         5922 Jan 28  1995 libXau.a
-rw-r--r--   1 root     root       266806 Jan 28  1995 libXaw.a
-rw-r--r--   1 root     root        34266 Jan 28  1995 libXaw.sa
lrwxrwxrwx   1 root     root           15 Sep 10 13:05 libXaw.so.3 ->
libXaw.so.3.1.0
-r-xr-xr-x   1 root     root       189444 Sep 10 13:05 libXaw.so.3.1.0
lrwxrwxrwx   1 root     root           13 Sep 10 13:09 libXaw.so.6 ->
libXaw.so.6.0
-r-xr-xr-x   1 root     root       209924 Sep 10 13:09 libXaw.so.6.0
-rw-r--r--   1 root     root        13296 Jan 28  1995 libXdmcp.a
-rw-r--r--   1 root     root        33382 Jan 28  1995 libXext.a
-rw-r--r--   1 root     root        59602 Jan 28  1995 libXext.sa
-rw-r--r--   1 root     root        34420 Jan 28  1995 libXi.a
-rw-r--r--   1 root     root        62892 Jan 28  1995 libXi.sa
-rw-r--r--   1 root     root      1510712 Jul 25  1994 libXm.a
-rw-r--r--   1 root     root       329814 Jul 27  1994 libXm.sa
-rw-r--r--   1 root     root        78738 Jan 28  1995 libXmu.a
-rw-r--r--   1 root     root        68104 Jan 28  1995 libXmu.sa
-rw-r--r--   1 root     root        55138 Oct  6  1994 libXpm.a
-rw-r--r--   1 root     root        12644 Oct  6  1994 libXpm.sa
lrwxrwxrwx   1 root     root           13 Sep 10 13:04 libXpm.so.4 ->
libXpm.so.4.3
-rwxr-xr-x   1 root     root        62468 Sep 10 13:04 libXpm.so.4.3
-rw-r--r--   1 root     root       317296 Jan 28  1995 libXt.a
-rw-r--r--   1 root     root        90664 Jan 28  1995 libXt.sa
lrwxrwxrwx   1 root     root           14 Sep 10 13:05 libXt.so.3 ->
libXt.so.3.1.0
-r-xr-xr-x   1 root     root       291844 Sep 10 13:05 libXt.so.3.1.0
lrwxrwxrwx   1 root     root           12 Sep 10 13:09 libXt.so.6 ->
libXt.so.6.0
-r-xr-xr-x   1 root     root       320516 Sep 10 13:09 libXt.so.6.0
-rw-r--r--   1 root     root         5264 Jan 28  1995 libXtst.a
-rw-r--r--   1 root     root        54170 Jan 28  1995 libXtst.sa
-rw-r--r--   1 root     root         2242 Jan 28  1995 liblbxXext.a
-rw-r--r--   1 root     root         5414 Jan 28  1995 liboldX.a
drwxr-xr-x   2 root     root         1024 Dec 13  1993 xmahjongg
$ _

I have gcc (2.6.3) and I don't know what information to give other than
that.  I am asking for help on the net since I don't have a slightest idea
what to do while I have lots of things to compile.  BTW, I used
to have Slackware 2.0 before SW 2.3, and I didn't have such a problem.
Can anyone help me?  Pointers to any relevant documents (e.g. FAQ) would
be also greatly appreciated.  Thanks.

Helen

 
 
 

compile problem with ld and libXt.so.3

Post by Mitch DSou » Wed, 13 Sep 1995 04:00:00


: Hello,

: I just installed Slackware 2.3, and everything seems fine except this
: compiling problem.

: $ gcc motif_program.c -lXm -lXt -lX11 -L/usr/X11/lib
: ld: Output file requires shared library `libXt.so.3'
: cc: Internal compiler error: program ld got fatal signal 6

: $ _

: I am probably wrong, but it seems to me that ld can't find libXt.so.3.

You are wrong.

: However libXt.so.3 resides in /usr/X11R6/lib as other libraries as follows.

: $ ls -l /usr/X11R6/lib
: total 7299
: lrwxrwxrwx   1 root     root           14 Sep 10 13:28 X11 ->
: /var/X11R6/lib
: drwxr-xr-x   8 root     root         1024 Sep 10 13:45 fonts
: -rw-r--r--   1 root     root        43378 Jan 28  1995 libFS.a
: -rw-r--r--   1 root     root        85334 Jan 28  1995 libICE.a
: -rw-r--r--   1 root     root        93292 Jan 28  1995 libICE.sa
: -rw-r--r--   1 root     root       130200 Jul 25  1994 libMrm.a
: -rw-r--r--   1 root     root        48626 Jul 27  1994 libMrm.sa
: -rw-r--r--   1 root     root       264040 Jan 28  1995 libPEX5.a
: -rw-r--r--   1 root     root        61994 Jan 28  1995 libPEX5.sa
: lrwxrwxrwx   1 root     root           14 Sep 10 13:45 libPEX5.so.6 ->
: libPEX5.so.6.0
: -r-xr-xr-x   1 root     root       234500 Sep 10 13:45 libPEX5.so.6.0
: -rw-r--r--   1 root     root        32178 Jan 28  1995 libSM.a
: -rw-r--r--   1 root     root        86144 Jan 28  1995 libSM.sa
: -rw-r--r--   1 root     root       344744 Jul 28  1994 libUil.a
: -rw-r--r--   1 root     root       646236 Jan 28  1995 libX11.a
: -rw-r--r--   1 root     root       201654 Jan 28  1995 libX11.sa
: lrwxrwxrwx   1 root     root           15 Sep 10 13:05 libX11.so.3 ->
: libX11.so.3.1.0
: -r-xr-xr-x   1 root     root       320516 Sep 10 13:05 libX11.so.3.1.0
: lrwxrwxrwx   1 root     root           13 Sep 10 13:09 libX11.so.6 ->
: libX11.so.6.0
: -r-xr-xr-x   1 root     root       529412 Sep 10 13:09 libX11.so.6.0
: -rw-r--r--   1 root     root         4474 Jan 28  1995 libXExExt.a
: -rw-r--r--   1 root     root        48166 Jan 28  1995 libXIE.a
: -rw-r--r--   1 root     root        31978 Jan 28  1995 libXIE.sa
: lrwxrwxrwx   1 root     root           13 Sep 10 13:09 libXIE.so.6 ->
: libXIE.so.6.0
: -r-xr-xr-x   1 root     root        58372 Sep 10 13:09 libXIE.so.6.0
: -rw-r--r--   1 root     root         5922 Jan 28  1995 libXau.a
: -rw-r--r--   1 root     root       266806 Jan 28  1995 libXaw.a
: -rw-r--r--   1 root     root        34266 Jan 28  1995 libXaw.sa
: lrwxrwxrwx   1 root     root           15 Sep 10 13:05 libXaw.so.3 ->
: libXaw.so.3.1.0
: -r-xr-xr-x   1 root     root       189444 Sep 10 13:05 libXaw.so.3.1.0
: lrwxrwxrwx   1 root     root           13 Sep 10 13:09 libXaw.so.6 ->
: libXaw.so.6.0
: -r-xr-xr-x   1 root     root       209924 Sep 10 13:09 libXaw.so.6.0
: -rw-r--r--   1 root     root        13296 Jan 28  1995 libXdmcp.a
: -rw-r--r--   1 root     root        33382 Jan 28  1995 libXext.a
: -rw-r--r--   1 root     root        59602 Jan 28  1995 libXext.sa
: -rw-r--r--   1 root     root        34420 Jan 28  1995 libXi.a
: -rw-r--r--   1 root     root        62892 Jan 28  1995 libXi.sa
: -rw-r--r--   1 root     root      1510712 Jul 25  1994 libXm.a
: -rw-r--r--   1 root     root       329814 Jul 27  1994 libXm.sa
: -rw-r--r--   1 root     root        78738 Jan 28  1995 libXmu.a
: -rw-r--r--   1 root     root        68104 Jan 28  1995 libXmu.sa
: -rw-r--r--   1 root     root        55138 Oct  6  1994 libXpm.a
: -rw-r--r--   1 root     root        12644 Oct  6  1994 libXpm.sa
: lrwxrwxrwx   1 root     root           13 Sep 10 13:04 libXpm.so.4 ->
: libXpm.so.4.3
: -rwxr-xr-x   1 root     root        62468 Sep 10 13:04 libXpm.so.4.3
: -rw-r--r--   1 root     root       317296 Jan 28  1995 libXt.a
: -rw-r--r--   1 root     root        90664 Jan 28  1995 libXt.sa
: lrwxrwxrwx   1 root     root           14 Sep 10 13:05 libXt.so.3 ->
: libXt.so.3.1.0
: -r-xr-xr-x   1 root     root       291844 Sep 10 13:05 libXt.so.3.1.0
: lrwxrwxrwx   1 root     root           12 Sep 10 13:09 libXt.so.6 ->
: libXt.so.6.0
: -r-xr-xr-x   1 root     root       320516 Sep 10 13:09 libXt.so.6.0
: -rw-r--r--   1 root     root         5264 Jan 28  1995 libXtst.a
: -rw-r--r--   1 root     root        54170 Jan 28  1995 libXtst.sa
: -rw-r--r--   1 root     root         2242 Jan 28  1995 liblbxXext.a
: -rw-r--r--   1 root     root         5414 Jan 28  1995 liboldX.a
: drwxr-xr-x   2 root     root         1024 Dec 13  1993 xmahjongg
: $ _

: I have gcc (2.6.3) and I don't know what information to give other than
: that.  I am asking for help on the net since I don't have a slightest idea
: what to do while I have lots of things to compile.  BTW, I used
: to have Slackware 2.0 before SW 2.3, and I didn't have such a problem.
: Can anyone help me?  Pointers to any relevant documents (e.g. FAQ) would
: be also greatly appreciated.  Thanks.

Question #72 of the GCC-FAQ on ftp.mrc-apu.cam.ac.uk in /pub/linux
or the URL ftp://ftp.mrc-apu.cam.ac.uk/pub/linux/GCC-FAQ.html

Mitch

 
 
 

1. ld problem : Shared library required libXt.so.3

Are you by any chance using the new binutils (2.6.0.7)?  If so, does the
following (from H.J.'s release notes) speak to your problem?

: The linker no longer checks /etc/ld.so.cache for shared libraries
: included by DT_NEEDED. Please use -Wl,-rpath-link for any directories
: other than /lib, /usr/lib and /usr/local/lib where a shared library
: may be found. XFree86 needs to be fixed for it.

Just a thought.

Cheers,
Russell Johnston

2. Scripts for tape backups?

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

4. Who makes more $$ - Windows vs. Unix programmers?

5. gcc ld `libXt.so.3'

6. Apache - MkLinux

7. libXt.so.3.1.0 and libXt.so.6.0, can coexist?

8. Red Hat 8.0 Installer Hangs

9. libXt.so error when compiling

10. Help - Compiling with libXt.so.6.0

11. running X problem cant open library 'libXt.so.6'

12. XFree86 3.1.2E: libXt.so.6 problem?

13. libXt.so.6 Problems!?!?!