Operating System - HP-UX
1825782 Members
2150 Online
109687 Solutions
New Discussion

Re: Can't find library: X11

 
Joe Haines
Occasional Contributor

Can't find library: X11

I am trying to compile rdesktop on HPUX 11.00. Executing "make" causes the following error..

/usr/ccs/bin/ld: Can't find library: "X11"

The makefile includes the -lX11 option.

Where do I go from here?

Thanks,
Joe
5 REPLIES 5
Mark Greene_1
Honored Contributor

Re: Can't find library: X11

Running

whereis X11

should return this on 11.0:

X11: /usr/bin/X11 /usr/contrib/bin/X11 /usr/contrib/lib/X11

if nothing is returned, you may not have X11 installed on your system. It should be on the OS CDs.

mark
the future will be a lot like now, only later
Joe Haines
Occasional Contributor

Re: Can't find library: X11

whereis shows

/usr/bin/X11 /usr/local/bin/X11 /usr/contrib/bin/X11 /usr/contrib/lib/X11

I have added all of these paths to the LD_LIBRARY_PATH and SHLIB_PATH

I still get the same message. If I remove the -lX11 from the Makefile, the results of make is many unsatisfied symbols. Some examples...

XInternAtom, XMatchVisualInfo, XFillRectangle, XSetFillStyle...

Thank you,

Joe
Mark Greene_1
Honored Contributor

Re: Can't find library: X11

Does the first part of the /usr/lib directory listing look something like this:

dr-xr-xr-x 2 bin bin 96 Sep 27 1999 Motif1.1
dr-xr-xr-x 2 bin bin 96 Nov 28 2001 Motif1.2
dr-xr-xr-x 2 bin bin 96 Dec 21 01:16 Motif1.2_R6
dr-xr-xr-x 3 bin bin 96 Nov 28 2001 Motif2.1
dr-xr-xr-x 11 bin bin 1024 Nov 28 2001 X11
dr-xr-xr-x 2 bin bin 1024 Sep 27 1999 X11R4
dr-xr-xr-x 2 bin bin 1024 Dec 21 01:16 X11R5
dr-xr-xr-x 3 bin bin 1024 Dec 21 01:16 X11R6


and does /etc/X11 contain something like these:

drwxr-xr-x 3 bin bin 96 Sep 27 1999 C
drwxr-xr-x 2 root sys 96 Sep 27 1999 C.iso88591
-r--r--r-- 1 bin bin 3072 Sep 19 2002 SecurityPolicy
-r--r--r-- 1 root sys 7777 Sep 23 1999 X0devices
-r--r--r-- 1 root sys 12359 Sep 23 1999 X0pointerkeys
-r--r--r-- 1 root sys 19572 Sep 23 1999 X0screens
-r--r--r-- 1 bin bin 10026 Jun 12 2002 XF86Config
-r--r--r-- 1 bin bin 393552 Sep 19 2002 XHPKeymaps
drwxr-xr-x 2 root sys 96 Jul 20 2003 fs
drwxr-xr-x 2 root sys 96 Nov 28 2001 lbxproxy
drwxr-xr-x 2 root sys 96 Nov 28 2001 proxymngr
-rw-r--r-- 1 root sys 4096 Sep 23 1999 rgb.dir
-rw-r--r-- 1 root sys 29696 Nov 16 01:40 rgb.pag
-r--r--r-- 1 root sys 21578 Sep 23 1999 rgb.txt
the future will be a lot like now, only later
Joe Haines
Occasional Contributor

Re: Can't find library: X11

My directories contain the same files/folders but dates are mostly Jan 2003.
Kenneth Platz
Esteemed Contributor

Re: Can't find library: X11

Joe,

Do you have the C/ANSI C Development Bundle installed? If you don't, you won't have the correct development libraries (ie, the .sl links).

Also, does the link line have the proper -L directives? I believe you'll need "-L/usr/lib/X11R6" on there.
I think, therefore I am... I think!