Subject: Re: Dynamic Libraries Problem?
To: Toru Nishimura <nisimura@is.aist-nara.ac.jp>
From: Gregory McGarry <g.mcgarry@qut.edu.au>
List: port-pmax
Date: 10/09/1997 19:24:05
Toru Nishimura wrote:
 
> It's a bug of ldd persistent long time.  ktrace(1) reveals it does
> search in /usr/lib and /usr/local/lib in this order, but doesn't in
> /usr/X11R6.3/lib even if /etc/ld.so.conf contains it.

Yes.  That is what I think.  ldconfig and ldd have trouble deciding on
the ld.so.cache format.  ld.so will read ldconfig okay though.

> Greg, does your /etc/ld.so.cache contain /usr/local/lib/libXm.so upon
> runtime error?  If not, ldconfig failed to create valid ld.so.cache.
> If it does, ld.so itself might be broken.  More guess, anyone?

I cannot find libXm.so in ld.so.cache.  I suspect ldconfig is broken,
since both ld.so and ldd work if you use the variable LD_LIBRARY_PATH
to list the paths.

Either way, all three tend to operate slightly differently.

Regards,
Greg