hi,
i think i've discovered that the Perl module bundled with NET-SNMP searches its compile directory for 'default_store.so', rather than @INC:
i use an NFS server to host where i store src files ... i untar things like net-snmp-5.1.1.tar.gz there and compile them. and i use automounting to present this directory tree throughout my flock of Linux boxes.
this NFS server went down recently ... and i discovered that all the code i write which employs the Perl module bundled with Net-SNMP quit working ... an odd dependency, since i install Perl locally on all these boxes (i.e. i don't rely on an NFS mount to get to Perl).
here is output from an strace (taken once the NFS server returned to life):
guru% grep src inv-image-output
inv-image-output:open("/opt/vdops/src/suse-8.2/net-snmp-5.1.2.pre1/perl/default_store/../.
./snmplib/.libs/mmx/libnetsnmp.so.5", O_RDONLY) = -1 ENOENT (No such file or directory)
inv-image-output:stat64("/opt/vdops/src/suse-8.2/net-snmp-5.1.2.pre1/perl/default_store/..
/../snmplib/.libs/mmx", 0xbfffcf00) = -1 ENOENT (No such file or directory)
inv-image-output:open("/opt/vdops/src/suse-8.2/net-snmp-5.1.2.pre1/perl/default_store/../.
./snmplib/.libs/libnetsnmp.so.5", O_RDONLY) = 6
i believe that the Perl module is searching /opt/vdops/src/suse-8.2/net-snmp-5.1.2.pre1/whatever for "default_store.so"
and eventually it finds it. when it does, my Perl scripts work ... when it doesn't ... they complain about not being able to find 'default_store.so'
but ... i would really prefer that it search @INC ... in my case ... /opt/vdops/lib/perl5/site_perl/5.8.3/i686-linux-thread-multi/auto/NetSNMP/default_store
where it will find a perfectly functional copy of default_store.so
any ideas what is going on? is this a bug, or something i introduced myself, when i compiled?
fyi -- here is my "./configure" line:
./configure --prefix=/opt/vdops --with-mibdirs="/opt/vdops/share/snmp/mibs" --with-persistent-directory="/opt/vdops/etc/snmp" --with-sys-contact=root --with-logfile="/opt/vdops/var/log/net-snmp" --with-default-snmp-version="2" --with-perl-modules
--sk
stuart kendrick fhcrc seattle, wa
------------------------------------------------------- This SF.Net email is sponsored by The 2004 JavaOne(SM) Conference Learn from the experts at JavaOne(SM), Sun's Worldwide Java Developer Conference, June 28 - July 1 at the Moscone Center in San Francisco, CA REGISTER AND SAVE! http://java.sun.com/javaone/sf Priority Code NWMGYKND _______________________________________________ Net-snmp-users mailing list [EMAIL PROTECTED] Please see the following page to unsubscribe or change other options: https://lists.sourceforge.net/lists/listinfo/net-snmp-users