why is -lXaw3d not found by ldd?

David Tilbrook dt-hKuJ9UrQZDM at public.gmane.org
Sat Jan 24 23:28:33 UTC 2004


When linking xfig with the following arguments:

	-L/usr/X11R6/lib -ljpeg -lpng -lz \
	-lXi -lXaw -lXmu -lXt -lSM -lICE -lXpm \
	-lXext -lXaw3d \
	-lX11 -lm

and then running ldd on the resulting binary I get (in part):

	...
	libXext.so.6 => /usr/X11R6/lib/libXext.so.6 (0x4016b000)
	libXaw3d.so.7 => not found
	...

yet /usr/X11R6/lib contains libXaw3d.so.7 with the same modes
and ownership as libXext.so.6:

	-rw-r--r-- root root libXaw3d.a
	lrwxrwxrwx root root libXaw3d.so -> libXaw3d.so.7.0
	lrwxrwxrwx root root libXaw3d.so.7 -> libXaw3d.so.7.0
	-rwxr-xr-x root root libXaw3d.so.7.0
	-rw-r--r-- root root libXext.a
	lrwxrwxrwx root root libXext.so -> libXext.so.6.4
	lrwxrwxrwx root root libXext.so.6 -> libXext.so.6.4
	-rwxr-xr-x root root libXext.so.6.4

file libXext.so.6.4 libXaw3d.so.7.0 yields the same description,
yet for some reason -lXaw3d does not resolve properly whereas
-lXext does resolve.

Hence I think that it's not a matter of other required flags or 
environment variables.

Any ideas as to what may be wrong?

-- dt

P.S.:	Using the static version of -lXaw3d works fine.
--
The Toronto Linux Users Group.      Meetings: http://tlug.ss.org
TLUG requests: Linux topics, No HTML, wrap text below 80 columns
How to UNSUBSCRIBE: http://tlug.ss.org/subscribe.shtml





More information about the Legacy mailing list