Re: NetSNMP 5.3.1 Perl Module Problem

wanderchiou <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
Hello, 
 
 Thank you for your support!
 After I add the following lines into /etc/ld.so.config,
 /lib
 /usr/lib
 /usr/local/lib

 The test no. 34 become pass.
 
 I think the installation of NetSNMP and its Perl module is Okay. Thank you again.
 
 The Perl Module "make test" has some errors.
 The error message is as follows:
 
 [root@ss net-snmp-5.3.1]# cd perl
 [root@ss perl]# make test
 make[1]: Entering directory `/root/net-snmp-5.3.1/perl/default_store'
 make[1]: Leaving directory `/root/net-snmp-5.3.1/perl/default_store'
 make[1]: Entering directory `/root/net-snmp-5.3.1/perl/ASN'
 make[1]: Leaving directory `/root/net-snmp-5.3.1/perl/ASN'
 make[1]: Entering directory `/root/net-snmp-5.3.1/perl/OID'
 make[1]: Leaving directory `/root/net-snmp-5.3.1/perl/OID'
 make[1]: Entering directory `/root/net-snmp-5.3.1/perl/agent'
 make[2]: Entering directory `/root/net-snmp-5.3.1/perl/agent/default_store'
 make[2]: Leaving directory `/root/net-snmp-5.3.1/perl/agent/default_store'
 make[1]: Leaving directory `/root/net-snmp-5.3.1/perl/agent'
 make[1]: Entering directory `/root/net-snmp-5.3.1/perl/SNMP'
 make[1]: Leaving directory `/root/net-snmp-5.3.1/perl/SNMP'
 make[1]: Entering directory `/root/net-snmp-5.3.1/perl/TrapReceiver'
 make[1]: Leaving directory `/root/net-snmp-5.3.1/perl/TrapReceiver'
 make[1]: Entering directory `/root/net-snmp-5.3.1/perl/default_store'
 PERL_DL_NONLAZY=1 /usr/bin/perl "-I../blib/lib" "-I../blib/arch" test.pl
 1..64
 ok 1
 ok 2
 ok 3
 ok 4
 ok 5
 ok 6
 ok 7
 ok 8
 ok 9
 ok 10
 ok 11
 ok 12
 ok 13
 ok 14
 ok 15
 ok 16
 ok 17
 ok 18
 ok 19
 ok 20
 ok 21
 ok 22
 ok 23
 ok 24
 ok 25
 ok 26
 ok 27
 ok 28
 ok 29
 ok 30
 ok 31
 ok 32
 ok 33
 ok 34
 ok 35
 ok 36
 ok 37
 ok 38
 ok 39
 ok 40
 ok 41
 ok 42
 ok 43
 ok 44
 ok 45
 ok 46
 ok 47
 ok 48
 ok 49
 ok 50
 ok 51
 ok 52
 ok 53
 ok 54
 ok 55
 ok 56
 ok 57
 ok 58
 ok 59
 ok 60
 ok 61
 ok 62
 ok 63
 ok 64
 make[1]: Leaving directory `/root/net-snmp-5.3.1/perl/default_store'
 make[1]: Entering directory `/root/net-snmp-5.3.1/perl/ASN'
 PERL_DL_NONLAZY=1 /usr/bin/perl "-I../blib/lib" "-I../blib/arch" test.pl
 1..9
 ok 1
 ok 2
 ok 3
 ok 4
 ok 5
 ok 6
 ok 7
 ok 8
 ok 9
 make[1]: Leaving directory `/root/net-snmp-5.3.1/perl/ASN'
 make[1]: Entering directory `/root/net-snmp-5.3.1/perl/OID'
 PERL_DL_NONLAZY=1 /usr/bin/perl "-I../blib/lib" "-I../blib/arch" test.pl
 1..38
 # Running under perl version 5.008006 for linux
 # Current time local: Fri Aug 18 23:53:10 2006
 # Current time GMT:   Fri Aug 18 15:53:10 2006
 # Using Test.pm version 1.25
 ok 1
 ok 2
 ok 3
 ok 4
 ok 5
 ok 6
 ok 7
 ok 8
 ok 9
 ok 10
 ok 11
 ok 12
 ok 13
 ok 14
 ok 15
 ok 16
 ok 17
 ok 18
 ok 19
 ok 20
 ok 21
 ok 22
 ok 23
 ok 24
 ok 25
 ok 26
 ok 27
 ok 28
 ok 29
 ok 30
 ok 31
 ok 32
 ok 33
 ok 34
 Can't parse: nosuchoidexists
 ok 35
 ok 36
 ok 37
 ok 38
 make[1]: Leaving directory `/root/net-snmp-5.3.1/perl/OID'
 make[1]: Entering directory `/root/net-snmp-5.3.1/perl/agent'
 make[2]: Entering directory `/root/net-snmp-5.3.1/perl/agent/default_store'
 make[2]: Leaving directory `/root/net-snmp-5.3.1/perl/agent/default_store'
 PERL_DL_NONLAZY=1 /usr/bin/perl "-I../blib/lib" "-I../blib/arch" test.pl
 1..5
 ok 1
 ok 2
 ok 3
 ok 4
 ok 5
 make[2]: Entering directory `/root/net-snmp-5.3.1/perl/agent/default_store'
 PERL_DL_NONLAZY=1 /usr/bin/perl "-I../../blib/lib" "-I../../blib/arch" test.pl
 1..17
 ok 1
 ok 3
 ok 4
 ok 5
 ok 6
 ok 7
 ok 8
 ok 9
 ok 10
 ok 11
 ok 12
 ok 13
 ok 14
 ok 15
 ok 16
 ok 17
 make[2]: Leaving directory `/root/net-snmp-5.3.1/perl/agent/default_store'
 make[1]: Leaving directory `/root/net-snmp-5.3.1/perl/agent'
 make[1]: Entering directory `/root/net-snmp-5.3.1/perl/SNMP'
 PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, '../blib/lib', '../blib/arch')" t/*.t
 t/async.......ok
 t/bulkwalk....Not an ARRAY reference at t/bulkwalk.t line 57.
 t/bulkwalk....dubious
         Test returned status 255 (wstat 65280, 0xff00)
 DIED. FAILED tests 4-62
         Failed 59/62 tests, 4.84% okay
 t/conf........ok
 t/get.........ok
 t/getnext.....ok
 t/mib.........ok
 t/mibload.....ok
 t/notify......ok
 t/session.....ok
 t/set.........ok 5/7netsnmp_assert pss->s_snmp_errno != (-11) failed snmp_api.c:3124 snmp_build()
 t/set.........ok
 Failed Test  Stat Wstat Total Fail  Failed  List of Failed
 -------------------------------------------------------------------------------
 t/bulkwalk.t  255 65280    62  118 190.32%  4-62
 Failed 1/10 test scripts, 90.00% okay. 59/175 subtests failed, 66.29% okay.
 make[1]: *** [test_dynamic] Error 255
 make[1]: Leaving directory `/root/net-snmp-5.3.1/perl/SNMP'
 make: *** [test] Error 2
 [root@ss perl]#
 
 Best Regards,
 
 Wan-Der Chiou
 
Thomas Anders <[email protected]> 說: wanderchiou wrote:
>  [root@ss ]#make test
>  34:testing authentication failure traps are sent by snmpd...FAIL
>  Summary: 58 / 59 succeeded.

Is this reproducible? If so, please file a bug on http://www.net-snmp.org/bugs
and attach the /tmp/snmp-test-34-* directory as a (gzipped) tarball.

>  [root@ss perl]# ldconfig -X -N        (Excuse me! Is it right?)
[...]
> Can't load '../blib/arch/auto/NetSNMP/default_store/default_store.so' for module NetSNMP::default_store: libnetsnmp.so.10: cannot open shared object file: No such file or directory at /usr/lib/perl5/5.8.6/i386-linux-thread-multi/DynaLoader.pm line 230.
>   at test.pl line 71

What's the output of "ldconfig -p | grep libnetsnmp"? If empty, please read the
ldconfig manual page on how to add /usr/local/lib (or wherever your net-snmp
libraries have been installed to) to your loader search path (hint:
/etc/ld.so.conf).


+Thomas

-- 
Thomas Anders (thomas.anders at blue-cable.de)


 ___________________________________________________ 
 最新版 Yahoo!奇摩即時通訊 7.0,免費網路電話任你打! 
 http://messenger.yahoo.com.tw/

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642

_______________________________________________
Net-snmp-users mailing list
[email protected]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.