help: error gcc -lX11 -> libX11.a not found

help: error gcc -lX11 -> libX11.a not found

Post by Clark Session » Thu, 06 Nov 1997 04:00:00



I am trying to compile ssh (secure sh)  on a Linux 2.0.0 system.  It has
some X tunneling capbilities and needs some X libraries.

The makefile has a compile statement that has a "gcc ... -lX11 ...".  I
looked on the system with find and was unable to locate a libX11.a
anywhere.  I looked at some of the unreferenced function (i.e. XFree )
errors that were generated during by ld when I removed this statement (
-lX11 ) and then looked with the "nm" command for some of the symbols in
/usr/X11R6/lib/*.a for references to them.  Some were found, but not all
of them that the code was referencing.

Any ideas?  It is trying to link into the X11 for processing X pipes
over the ecrypted connections that ssh maintains, so that is why this
tool is looking for the X11 stuff.

Thanks.

Please post reply or mail me at my correct address:

clark at garlic dot com.

Thanks,

Clark Sessions

 
 
 

help: error gcc -lX11 -> libX11.a not found

Post by Peeter Joo » Mon, 10 Nov 1997 04:00:00



> The makefile has a compile statement that has a "gcc ... -lX11 ...".  I
> looked on the system with find and was unable to locate a libX11.a
> anywhere.

/usr/X11R6/lib/ should have libX11.so.XX.YY where XX and YY are version
numbers.  The .so library is a shared library that can be used for both
linking against and at run time.

Peeter

 
 
 

help: error gcc -lX11 -> libX11.a not found

Post by Vasco Alexandre Da Silva Cos » Wed, 12 Nov 1997 04:00:00


: I am trying to compile ssh (secure sh)  on a Linux 2.0.0 system.  It has
: some X tunneling capbilities and needs some X libraries.

: The makefile has a compile statement that has a "gcc ... -lX11 ...".  I
: looked on the system with find and was unable to locate a libX11.a
: anywhere.  I looked at some of the unreferenced function (i.e. XFree )
: errors that were generated during by ld when I removed this statement (
: -lX11 ) and then looked with the "nm" command for some of the symbols in
: /usr/X11R6/lib/*.a for references to them.  Some were found, but not all
: of them that the code was referencing.

: Any ideas?  It is trying to link into the X11 for processing X pipes
: over the ecrypted connections that ssh maintains, so that is why this
: tool is looking for the X11 stuff.

Did that compile statement have "-L/usr/X11R6/lib" somewhere?
Maybe gcc just can't find the library path.
Also try "-I/usr/include" for the includes (you never know)


Technical University of Lisbon - Software & Computer Engineering

 
 
 

1. Help! GCC could not find libXt and libX11!

Hello, folks!

I have some problems with gcc (or more precisely ld.so). I used to program
under linux 1.0.9 and I use gcc -lXm -lXt -lX11 and followed by my source
code, it was fine under the old linux. But I met difficulty when I use
the same method to compile and link the program. On the linking stage,
the compiler can't find Xt and X11 (surprisingly it still recognize Xm).
I look at the ld.so.conf, it reads as follow:

/usr/local/lib
/usr/X11R6/lib
/usr/i486-linuxaout/lib
/usr/openwin/lib
/lib/elf

Certainly, I have those libraries, both libXt.so.3.1.1 and libXt.so.6
in /usr/X11R6/lib and /lib (by symbolic link); same as for libX11.
Why it can't recognize those libraries?

Thanks!

2. CC-Mail Remote ?

3. HElp! GCC could not find libXt and libX11

4. Backups and Mirrors on Linux...

5. Makefiles GCC calls not finding libX11.a

6. 3c509 setup utility

7. libX11.so.3 => libX11.so.6 (help)

8. Problems with Linux installation

9. Help...-lX11 not found during compiles

10. help with gcc/ld error re: libX11.so.6

11. KDEstudio -> checking for Qt... configure: error: Qt (>= 19991109) (libraries) not found.

12. gcc-2.5.8 -> gcc-2.6.3 Help I get an error

13. Where can I find libX11.sa for libX11.so.6.0??