missing dependency for libsnmp-perl

Bug #12628 reported by Michael P. Soulier
4
Affects Status Importance Assigned to Milestone
net-snmp (Ubuntu)
Invalid
Critical
Unassigned

Bug Description

I installed libsnmp-perl, and apparently there's something missing from it, or a
missing dependency from that package.

[msoulier@latte msoulier]$ perl -d ./traphandler.pl

Loading DB routines from perl5db.pl version 1.25
Editor support available.

Enter h or `h h' for help, or `man perldebug' for more help.

main::(./traphandler.pl:6): SNMP::initMib();
  DB<1> n
main::(./traphandler.pl:8): my $trap_session = SNMP::Session(
main::(./traphandler.pl:9): DestHost => 'vmware-msoulier.nssg.mitel.com',
main::(./traphandler.pl:10): Community => 'public',
main::(./traphandler.pl:11): Version => '2c');
  DB<1>
Can't locate auto/SNMP/Session.al in @INC (@INC contains: /etc/perl
/usr/local/lib/perl/5.8.4 /usr/local/share/perl/5.8.4 /usr/lib/perl5
/usr/share/perl5 /usr/lib/perl/5.8 /usr/share/perl/5.8 /usr/local/lib/site_perl
.) at ./traphandler.pl line 8
        AutoLoader::AUTOLOAD('DestHost', 'vmware-msoulier.nssg.mitel.com',
'Community', 'public', 'Version', '2c') called at ./traphandler.pl line 8
Debugged program terminated. Use q to quit or R to restart,

Looks like Session.al is missing.

Revision history for this message
Matt Zimmerman (mdz) wrote :

Wrong package, you want libsnmp-session-perl

Revision history for this message
Michael P. Soulier (msoulier) wrote :

(In reply to comment #1)
> Wrong package, you want libsnmp-session-perl

If that were true, should it not have said that there is no SNMP::Session,
instead of
failing to load a compiled library? Is this package not then broken?

Revision history for this message
Matt Zimmerman (mdz) wrote :

(In reply to comment #2)
> If that were true, should it not have said that there is no SNMP::Session,
> instead of
> failing to load a compiled library? Is this package not then broken?

The examples in the package work fine, so I would say that it is not broken.
Most likely either the program you are using is buggy, or it was written for a
(different version of the?) Perl module.

Revision history for this message
Michael P. Soulier (msoulier) wrote :

(In reply to comment #3)
>
> The examples in the package work fine, so I would say that it is not broken.
> Most likely either the program you are using is buggy, or it was written for a
> (different version of the?) Perl module.

No, if you'll notice, I was just running simple code in the debugger. Trying to
make an instance of SNMP::Session failed. The class does exist, and my argument
were not even checked because it failed to load the library. I'd say something
else is amiss here. Perhaps this is simply deprecated, and no longer maintained
by the author, in favour of libsnmp-session-perl.

Anyway, thanks.

Revision history for this message
Matt Zimmerman (mdz) wrote :

Does /usr/share/doc/libsnmp-perl/examples/mibwalk.pl not work for you?

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.