narasimp has asked for the wisdom of the Perl Monks concerning the following question:

Hi,
I have compiled SNMP perl module but when i try to use it using --> perl -e "use SNMP", it is failing saying:

Can't load '<perl_dir>/lib/5.16.0/i686-linux-thread-multi/auto/SNMP/SN +MP.so' for module SNMP: <perl_dir>/lib/5.16.0/i686-linux-thread-multi +/auto/SNMP/SNMP.so: undefined symbol: usmHMACSHA1AuthProtocol

As per below link, we need to link with net-snmp 5.3, but I am already linking this SNMP module with netsnmp 5.4

https://www.novell.com/support/kb/doc.php?id=3334205

Still i am seeing this issue with "SNMP" module. Strangely Net::SNMP works fine. Please let me know how to resolve this.

To compile SNMP module i am using the following:

../../perl -I../../lib Makefile.PL INC=-I"<net-snmp_path>/include" LIB +S="-L<net-snmp_path>/lib" -NET-SNMP-CONFIG="sh net_snmp_Path/bin/net- +snmp-config" -NET-SNMP-IN-SOURCE=true

Regards,
Prashanth

Replies are listed 'Best First'.
Re: SNMP module is not loading
by syphilis (Archbishop) on Feb 22, 2016 at 12:16 UTC
    Googling for "usmHMACSHA1AuthProtocol" led to the suggestion that the symbol is supposed to be defined in one of the net-snmp header files.
    Not so, for you, apparently.

    The fact is that the symbol is to be found in SNMP.xs, so it needs to be resolved somehow (or replaced in SNMP.xs with an appropriate value).

    (Sorry - I've no experience with this module.)

    Cheers,
    Rob
Re: SNMP module is not loading
by marto (Cardinal) on Feb 22, 2016 at 10:52 UTC

    "To compile SNMP module i am using the following:"

    ../../perl -I../../lib Makefile.PL INC=-I"<net-snmp_path>/include" LIB +S="-L<net-snmp_path>/lib" -NET-SNMP-CONFIG="sh net_snmp_Path/bin/net- +snmp-config" -NET-SNMP-IN-SOURCE=true

    Did you follow this up with a make; make test; make install, as per the documentation?

      Hi, YES, i have followed the same.