Subject: Re: "Shared object "libX11.so.6" not found" with MesaDemo
To: None <netbsd-help@NetBSD.org>
From: Tom Nakamura <imifumei@imap.cc>
List: netbsd-help
Date: 06/10/2005 22:50:53
weird! everything seems to be as it should (file /usr/X11R6/lib/libX11
is okay, readelf is showing /usr/pkg/lib only), but ldd is showing 
         -lX11.6 => /usr/X11R6/lib/libX11.so.6
         -lXext.6 => /usr/X11R6/lib/libXext.so.6
         -lX11.6 => not found
         -lXext.6 => not found
... could this possibly be right? but setting LD_LIBRARY_PATH to
/usr/X11R6/lib solves the problem...
tom nakamura


On Fri, 10 Jun 2005 00:07:46 -0400, "James K. Lowden"
<jklowden@schemamania.org> said:
> 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