Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 495144 - net-analyzer/net-snmp-5.7.2-r1 - /usr/bin/tkmib: Can't load '/usr/lib64/perl5/vendor_perl/5.16.3/x86_64-linux-thread-multi/auto/SNMP/SNMP.so'
Summary: net-analyzer/net-snmp-5.7.2-r1 - /usr/bin/tkmib: Can't load '/usr/lib64/perl5...
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo Netmon project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-12-23 18:42 UTC by Fabio Rossi
Modified: 2014-05-01 11:25 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Fabio Rossi 2013-12-23 18:42:29 UTC
After installing net-analyzer/net-snmp with 

[ebuild   R    ] net-analyzer/net-snmp-5.7.2-r1  USE="X bzip2 ipv6 lm_sensors mysql perl python ssl tcpd zlib -doc -elf -mfd-rewrites -minimal -netlink -pci -rpm (-selinux) -ucd-compat" PYTHON_SINGLE_TARGET="python2_7 -python2_6" PYTHON_TARGETS="python2_7 -python2_6" 0 kB

I have tried to execute tkmib which fails with the following error:

$ tkmib 

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/ .  The perl module is contained in
the perl/SNMP directory.  See the INSTALL file there for
instructions.

The problem has been solved installing dev-perl/Net-SNMP and recompiling net-analyzer/net-snmp, the last step is needed otherwise you get the following error:

$ perl -e 'require SNMP;'
Can't load '/usr/lib64/perl5/vendor_perl/5.16.3/x86_64-linux-thread-multi/auto/SNMP/SNMP.so' for module SNMP: /usr/lib64/perl5/vendor_perl/5.16.3/x86_64-linux-thread-multi/auto/SNMP/SNMP.so: undefined symbol: usmAESPrivProtocol at /usr/lib64/perl5/5.16.3/x86_64-linux-thread-multi/DynaLoader.pm line 190.
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2014-04-30 23:23:30 UTC
dev-perl/Net-SNMP installs a Perl module called Net::SNMP.

net-analyzer/net-snmp installs a Perl module called SNMP.
tkmib should work fine since it is installed with SNMP.pm, until you upgrade dev-lang/perl and your interpreter starts looking outside the directory that SNMP.pm was installed to.

Which version of dev-lang/perl is installed, and did you run perl-cleaner after you upgraded that?
Comment 2 Fabio Rossi 2014-05-01 10:13:15 UTC
(In reply to Jeroen Roovers from comment #1)
> dev-perl/Net-SNMP installs a Perl module called Net::SNMP.
> 
> net-analyzer/net-snmp installs a Perl module called SNMP.
> tkmib should work fine since it is installed with SNMP.pm, until you upgrade
> dev-lang/perl and your interpreter starts looking outside the directory that
> SNMP.pm was installed to.
> 
> Which version of dev-lang/perl is installed, and did you run perl-cleaner
> after you upgraded that?

I have installed perl 5.16.3 and perl-cleaner says

 * No package needs to be reinstalled.

I guess I run perl-cleaner in December when I have installed that version of perl.

Now I have just tried removing dev-perl/Net-SNMP and recompiling net-analyzer/net-snmp... I can't reproduce anymore the error reported in the past so I close as WORKSFORME