Subject: Re: LD_LIBRARY and p5-XML-LibXML problems on Solaris 9
To: None <tech-pkg@NetBSD.org>
From: Klaus Heinz <heinz@NetBSD.org>
List: tech-pkg
Date: 12/01/2007 02:42:04
Ulrich Habel wrote:

> Can't load
> '/usr/pkg/lib/perl5/vendor_perl/5.8.0/sparc-solaris-thread-multi/auto/XML/LibXML/LibXML.so'

What does elfdump say about the RPATH of LibXML.so?

On NetBSD I see
  $ objdump -x /usr/pkg/lib/perl5/vendor_perl/5.8.0/i386-netbsd-thread-multi/auto/XML/LibXML/LibXML.so
  Dynamic Section:
  NEEDED     libxml2.so.2
  NEEDED     libz.so.0
  NEEDED     libm.so.0
  NEEDED     libperl.so
  RPATH      /usr/pkg/lib:/usr/pkg/lib/perl5/5.8.0/i386-netbsd-thread-multi/CORE
  ...
 
I suppose for some reason /usr/pkg/lib is missing in your shared object.

> chance to fix that? A solution might be to set /usr/pkg/lib with crle
> before the other search paths. However, I don't like the solution.

Using crle/ldconfig/LD_LIBRARY_PATH makes matters worse IMO.

ciao
     Klaus