Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 30439

Summary: net-snmp, tkmib, dev-perl/Tk and (finally) Net-SNMP
Product: Gentoo Linux Reporter: Marc 'huz' REYNES <marc.reynes>
Component: Current packagesAssignee: Max Kalika (RETIRED) <max>
Status: RESOLVED TEST-REQUEST    
Severity: normal CC: perl
Priority: High    
Version: 1.4   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Marc 'huz' REYNES 2003-10-05 15:43:47 UTC
Hi,

1) net-snmp comes with tkmib which need perl-tk and a Net-SNMP module. perl-tk and Net-SNMP aren't emerged though .. maybe it would be a good idea to add 2 IUSE "tcltk" and "perl" for this point
2) I emerged perl-tk without any problem an tkmib handles it well. The problem arrives with Net-SNMP. It is emerged without any problem, _but_ tkmib doesn't manage to load it.
I hacked /usr/bin/tkmib (sorry it isn't a true patch)
line 9:
- my $havesnmp = eval {require SNMP;};
+ my $havesnmp = eval {require Net::SNMP;};

but it isn't apparently sufficient as we get some errors when we launch tkmib.
I am not a perl hacker thus I can help.

Hope we'll have a working net-snmp package in the future ..
Comment 1 Max Kalika (RETIRED) gentoo-dev 2003-10-20 00:01:54 UTC
Please give net-snmp-5.0.9-r2 a spin.  Make sure you have USE=perl enabled.
 BTW, Net-SNMP is a seperate perl module.  net-snmp comes with the NetSNMP
perl module needed for mib2c and tkmib.  All of this is now enabled if you
put 'perl' in your USE=flags.