Discussion:
Perl module Installation problem on Linux 2.6.9-1.667
sasson, shuki
2005-01-12 14:25:25 UTC
Permalink
Hi all sorry for applying the question the second time but I thought that
more information and focus is required. I am trying to use mib2c. According
to tutorial I can build it using configure and the flags:
--enable-embedded-perl
I have tried this approach still when activating mib2c I get an error that
the SNMP perl module is not installed.

I have tried installing the perl SNMP module manually as follows:
perl Makefile.PL -NET-SNMP-CONFIG="sh ../../net-snmp-config"
-NET-SNMP-IN-SOURCE=true
then running
make
and finally
make test

I am getting the following error message:
make[1]: Leaving directory `/home/nasadmin/net-snmp-5.2/perl/ASN'
make[1]: Entering directory `/home/nasadmin/net-snmp-5.2/perl/OID'
PERL_DL_NONLAZY=1 /usr/bin/perl "-I../blib/lib" "-I../blib/arch" test.pl
1..38
# Running under perl version 5.008005 for linux
# Current time local: Wed Jan 12 11:39:02 2005
# Current time GMT: Wed Jan 12 16:39:02 2005
# Using Test.pm version 1.25
Can't load '../blib/arch/auto/SNMP/SNMP.so' for module SNMP:
../blib/arch/auto/SNMP/SNMP.so: undefined symbol: usmAESPrivProtocol at
/usr/lib/perl5/5.8.5/i386-linux-thread-multi/DynaLoader.pm line 230.
at ../blib/lib/NetSNMP/OID.pm line 19
Compilation failed in require at ../blib/lib/NetSNMP/OID.pm line 19.
BEGIN failed--compilation aborted at ../blib/lib/NetSNMP/OID.pm line 19.
Compilation failed in require at test.pl line 10.
BEGIN failed--compilation aborted at test.pl line 10.
make[1]: *** [test_dynamic] Error 255
make[1]: Leaving directory `/home/nasadmin/net-snmp-5.2/perl/OID'
make: *** [test] Error 2

Thanks for the help.
Shuki Sasson
Principal Engineer, Network Storage Group
EMC²
where information lives
Fax: 508 305 9026
Phone: 508 305 8515
Cell: 617 834 4258
Pager: 877 919 0794
Email: ***@emc.com
Wes Hardaker
2005-01-25 03:40:01 UTC
Permalink
shuki> make test
...
shuki> Can't load '../blib/arch/auto/SNMP/SNMP.so' for module SNMP:
shuki> ../blib/arch/auto/SNMP/SNMP.so: undefined symbol: usmAESPrivProtocol at
shuki> /usr/lib/perl5/5.8.5/i386-linux-thread-multi/DynaLoader.pm line 230.
shuki> at ../blib/lib/NetSNMP/OID.pm line 19

Well, I'm not sure why the linker didn't get the openssl library
attached to the shared object. It should work. You might try a make
install and see if it works after that. It's also possible you have
multiple copies of net-snmp libraries installed (some linked against
openssl and others not), in which case you need to remove the older ones.
--
Wes Hardaker
Sparta
sasson, shuki
2005-01-25 22:17:02 UTC
Permalink
Hi Wes, thanks for returning back. The problem was indeed related to
multiple net-snmp libraries. I removed the old net-snmp and install the rpm
for the Net-Snmp from the sourceforge (with --force option). This solved the
problem.

The problem is with mismatched version on net-snmp. If you come across this
problem you need to download the rpm from net-snmp download site.

Then remove the old module net-snmp:

rpm -e net-snmp-utils-5.1.2-11.i386

rpm -e net-snmp-devel-5.1.2-11.i386



Install the 5.2 rpm.

rpm -i net-snmp-5.2-1.fc2.i686.rpm --force -nodeps



mib2c started working after that.




Thanks,
Shuki

-----Original Message-----
From: Wes Hardaker [mailto:***@users.sourceforge.net]
Sent: Tuesday, January 25, 2005 12:39 AM
To: sasson, shuki
Cc: net-snmp-***@lists.sourceforge.net
Subject: Re: Perl module Installation problem on Linux 2.6.9-1.667
On Wed, 12 Jan 2005 10:38:33 -0500, "sasson, shuki"
<***@emc.com> said:

shuki> make test
...
shuki> Can't load '../blib/arch/auto/SNMP/SNMP.so' for module SNMP:
shuki> ../blib/arch/auto/SNMP/SNMP.so: undefined symbol: usmAESPrivProtocol
at
shuki> /usr/lib/perl5/5.8.5/i386-linux-thread-multi/DynaLoader.pm line 230.
shuki> at ../blib/lib/NetSNMP/OID.pm line 19

Well, I'm not sure why the linker didn't get the openssl library
attached to the shared object. It should work. You might try a make
install and see if it works after that. It's also possible you have
multiple copies of net-snmp libraries installed (some linked against
openssl and others not), in which case you need to remove the older ones.
--
Wes Hardaker
Sparta
Continue reading on narkive:
Loading...