Hi,
1) I get the usual message when running mib2c:
ERROR: You don't have the SNMP perl module installed. Please obtain
this by getting the latest source release of the net-snmp toolkit from
http://www.net-snmp.org/download/ . Once you download the source and
unpack it, the perl module is contained in the perl/SNMP directory.
See the README file there for instructions.
this by getting the latest source release of the net-snmp toolkit from
http://www.net-snmp.org/download/ . Once you download the source and
unpack it, the perl module is contained in the perl/SNMP directory.
See the README file there for instructions.
2) I wrote a "very-small" perl script to pin-point the problem, which includes only a 'require' for the SNMP module:
#!/bin/perl
require SNMP;
I get this error message:
Can't load '/usr/lib/perl5/site_perl/5.8.5/i386-linux-thread-multi/auto/SNMP/SNMP.so' for module SNMP:
/usr/lib/perl5/site_perl/5.8.5/i386-linux-thread-multi/auto/SNMP/SNMP.so: undefined symbol: usmHMACSHA1AuthProtocol at /usr/lib/perl5/5.8.5/i386-linux-thread-multi/DynaLoader.pm line 230.
at testperl line 3
Compilation failed in require at testperl line 3.
at testperl line 3
Compilation failed in require at testperl line 3.
3) I see that the undefined symbol is defined in libnetsnmpmibs.so and in libnetsnmp.so.
4) the strange thing is that when I run
'ldd SNMP.so' i get only this:
libc.so.6 => /lib/tls/libc.so.6 (0x00658000)
/lib/ld-linux.so.2 (0x00ae2000)
/lib/ld-linux.so.2 (0x00ae2000)
seems like when the SNMP.so was created the usmHMACSHA1AuthProtocol symbol was resolved some how, but the the so did not get the dependency on the netsnmp libs.
Any
ideas, how to solve this?
Thanks,
Erez.