Subject: Re: "Shared object "libX11.so.6" not found" with MesaDemo
To: None <netbsd-help@NetBSD.org>
From: James K. Lowden <jklowden@schemamania.org>
List: netbsd-help
Date: 06/10/2005 00:07:46
Tom Nakamura wrote:
> I'm trying to run the demos in MesaDemo, but am getting "Shared object
> "libX11.so.6" not found". I know libX11.so.6 is in /usr/X11R6/lib but
> setting LD_LIBRARY_PATH according does not help. I'm using a current
> pkgsrc on i386. Funny thing is I think it worked fine with 2005Q1 (or
> earlier, not sure). Any ideas?

Does yours look like this:

$ file /usr/X11R6/lib/libX11.*
/usr/X11R6/lib/libX11.a:      current ar archive
/usr/X11R6/lib/libX11.so:     symbolic link to `libX11.so.6.2'
/usr/X11R6/lib/libX11.so.6:   symbolic link to `libX11.so.6.2'
/usr/X11R6/lib/libX11.so.6.2: ELF 32-bit LSB shared object, Intel 80386,
version 1 (SYSV), not stripped

If so, what do:

	$ ldd $(command -v MesaDemo)
	$ readelf -d $(command -v MesaDemo) |grep rpath

show?  (I'm assuming 'MesaDemo' is the binary in question.)  readelf
should show an RPATH to /usr/pkg/lib if the executable was built in
pkgsrc.  

--jkl