[csw-maintainers] rpath nigthmare
Carsten Grzemba
grzemba at contac-dt.de
Thu Apr 26 10:54:28 CEST 2012
Hi,
if I build netsnmp I have trouble to get useful search paths for so objects in the libs.
If I leave the '-L/opt/csw/lib -R/opt/csw/lib/$ISALIST -R/opt/csw/lib' in LDFLAGS of mgar modenv, then it builds all.
But in build python module I get the damaged search path /opt/csw/SALIST and the wrong/old libs...so.15 from /opt/csw/lib is used.
find object=libnetsnmp.so.15; required by build/lib.solaris-2.10-i86pc-2.6/netsnmp/client_intf.so
search
path=/opt/csw/lib/SALIST:/opt/csw/lib:/opt/csw/lib/$ISALIST:/opt/csw/lib
(RPATH from file
build/lib.solaris-2.10-i86pc-2.6/netsnmp/client_intf.so)
trying path=/opt/csw/lib/SALIST/libnetsnmp.so.15
trying path=/opt/csw/lib/libnetsnmp.so.15
If I remove the -L and -R from LDFLAGS from mgar modenv all builds well except for one perlmodule perl/agent/default_store. There I get the strange search path
find object=libnetsnmp.so.25; required by blib/arch/auto/NetSNMP/agent/default_store/default_store.so
search path=/home/cgrzemba/opencsw/netsnmp/trunk/work/build-isa-pentium_pro/net-snmp-5.6.1.1/perl/agent/default_store/../../../snmplib/.libs:/usr/lib
(RPATH from file blib/arch/auto/NetSNMP/agent/default_store/default_store.so)
trying path=/home/cgrzemba/opencsw/netsnmp/trunk/work/build-isa-pentium_pro/net-snmp-5.6.1.1/perl/agent/default_store/../../../snmplib/.libs/libnetsnmp.so.25
libnetsnmp.so.25 => /home/cgrzemba/opencsw/netsnmp/trunk/work/build-isa-pentium_pro/net-snmp-5.6.1.1/perl/agent/default_store/../../../snmplib/.libs/libnetsnmp.so.25
Any hints?
--
Carsten Grzemba
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opencsw.org/pipermail/maintainers/attachments/20120426/890b727f/attachment.html>
More information about the maintainers
mailing list