[prev in list] [next in list] [prev in thread] [next in thread] 

List:       net-snmp-bugs
Subject:    [ net-snmp-Bugs-1673010 ] ld.so.1: perl: fatal: relocation error:
From:       "SourceForge.net" <noreply () sourceforge ! net>
Date:       2007-05-29 11:55:33
Message-ID: E1Ht0IX-0004j2-JV () sc8-sf-web21 ! sourceforge ! net
[Download RAW message or body]

Bugs item #1673010, was opened at 2007-03-03 15:17
Message generated for change (Comment added) made by tanders
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=112694&aid=1673010&group_id=12694

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: perl
Group: solaris
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Alex Peeters (zxr750)
Assigned to: Nobody/Anonymous (nobody)
Summary: ld.so.1: perl: fatal: relocation error: file SNMP.so symbol 

Initial Comment:
ld.so.1: perl: fatal: relocation error: file SNMP.so symbol netsnmp_init_mib: \
referenced symbol not found



I did download the cvs from today like you asked.

I'am testing it, but I have already a few new bugs ?

I'm a user that differe on 2 points from default:
- 1) I'am using --with-perl-modules=INSTALL_BASE=/opt/supervision/cpan-shared
- 2) my libs are reloacated

export CFLAGS="- R/opt/supervision/lib:/opt/supervision/ssl/lib:/usr/local/lib:/usr/lib"
 export CPPFLAGS="- R/opt/supervision/lib:/opt/supervision/ssl/lib:/usr/local/lib:/usr/lib"
 export LDFLAGS="- L/opt/supervision/lib:/opt/supervision/ssl/lib:/usr/local/lib:/usr/lib"
                
./configure --prefix=/opt/supervision 
  --with-perl-modules=INSTALL_BASE=/opt/supervision/cpan-shared
  --with-mibdirs=/opt/supervision/share/snmp/mibs/
  --with-default-snmp-version=2
  --with-logfile=/opt/supervision/var/log/snmpd.log
  --with-persistent-directory=/opt/supervision/var/net-snmp
  --with-sys-location=HomeSweetHome 
  --enable-as-needed
make

Binary files 5.4/cpan-shared/lib/perl5/sun4-solaris/auto/SNMP/SNMP.so and \
5.4.x/cpan-shared/lib/perl5/sun4-solaris/auto/SNMP/SNMP.so differ


cvs from today: 

-----------------------------
- 5.4.x SNMP.so don't works -
-----------------------------

./snmptt-net-snmp-test

SNMPTT Net-SNMP Test v1.0
(c) 2003 Alex Burger
http://snmptt.sourceforge.net

MIBS:RFC1213-MIB
best_guess: 1


Testing translateObj
********************

Testing: .1.3.6.1.2.1.1.1, long_names=disabled, 
include_module=disabled
Test passed.  Result: sysDescr


----------------------
- 5.4: SNMP.so works -
----------------------

./snmptt-net-snmp-test

SNMPTT Net-SNMP Test v1.0
(c) 2003 Alex Burger
http://snmptt.sourceforge.net

MIBS:RFC1213-MIB
best_guess: 1


Testing translateObj
********************

Testing: .1.3.6.1.2.1.1.1, long_names=disabled, 
include_module=disabled
ld.so.1: perl: fatal: relocation error: file
/opt/supervision/cpan-
shared/lib/perl5/sun4-solaris/auto/SNMP/SNMP.so:
symbol 
netsnmp_init_mib: referenced symbol not found
Killed



bash-3.1$ more diff-5.4-5.4.x.txt
Binary files 5.4/cpan-shared/lib/perl5/sun4- solaris/auto/NetSNMP/agent/agent.so and
5.4.x/cpan- shared/lib/perl5/sun4-solaris/auto/NetSNMP/agent/agent.so
diffe
r
Binary files 5.4/cpan-shared/lib/perl5/sun4-solaris/auto/SNMP/SNMP.so

and
5.4.x/cpan-shared/lib/perl5/sun4-solaris/auto/SNMP/SNMP.so
differ
diff -r
5.4/cpan-shared/lib/perl5/sun4-solaris/perllocal.pod

5.4.x/cpan-shared/lib/perl5/sun4-solaris/perllocal.pod
4642a4643,4664
> =head2 Sat Mar  3 14:41:53 2007: C<Module>
L<Bundle::NetSNMP|Bundle::NetSNMP>
> 
> =over 4
> 
> =item *
> 
> C<installed into:
/opt/supervision/cpan-shared/lib/perl5>
> 
> =item *
> 
> C<LINKTYPE: dynamic>
> 
> =item *
> 
> C<VERSION: >
> 
> =item *
> 
> C<EXE_FILES: >
> 
> =back
> 
diff -r
5.4/cpan-shared/lib/perl5/sun4-solaris/SNMP.pm
5.4.x/cpan-
shared/lib/perl5/sun4-solaris/SNMP.pm
1550c1550
< =item authMasterKey
---
> =item AuthMasterKey
1552c1552
< =item privMasterKey
---
> =item PrivMasterKey
1554c1554
< =item authLocalizedKey
---
> =item AuthLocalizedKey
1556c1556
< =item privLocalizedKey
---
> =item PrivLocalizedKey
diff -r 5.4/cpan-shared/man/man3/SNMP.3
5.4.x/cpan-
shared/man/man3/SNMP.3
132c132
< .TH SNMP 3 "2006-08-15" "perl v5.8.7" "User
Contributed Perl 
Documentation"
---
> .TH SNMP 3 "2006-12-07" "perl v5.8.7" "User
Contributed Perl 
Documentation"
239,240c239,240
< .IP "authMasterKey" 4
< .IX Item "authMasterKey"
---
> .IP "AuthMasterKey" 4
> .IX Item "AuthMasterKey"
242,247c242,247
< .IP "privMasterKey" 4
< .IX Item "privMasterKey"
< .IP "authLocalizedKey" 4
< .IX Item "authLocalizedKey"
< .IP "privLocalizedKey" 4
< .IX Item "privLocalizedKey"
---
> .IP "PrivMasterKey" 4
> .IX Item "PrivMasterKey"
> .IP "AuthLocalizedKey" 4
> .IX Item "AuthLocalizedKey"
> .IP "PrivLocalizedKey" 4
> .IX Item "PrivLocalizedKey"



export CFLAGS="- R/opt/supervision/lib:/opt/supervision/ssl/lib:/usr/local/lib:/usr/lib"
 export CPPFLAGS="- R/opt/supervision/lib:/opt/supervision/ssl/lib:/usr/local/lib:/usr/lib"
 export LDFLAGS="- L/opt/supervision/lib:/opt/supervision/ssl/lib:/usr/local/lib:/usr/lib"
                
./configure --prefix=/opt/supervision --with-perl- \
                modules=INSTALL_BASE=/opt/supervision/cpan-shared
--with-mibdirs=/opt/supervision/share/snmp/mibs/
--with-default-snmp-version=2
--with-logfile=/opt/supervision/var/log/snmpd.log
--with-persistent-directory=/opt/supervision/var/net-snmp
--with-sys-location=HomeSweetHome 
--enable-as-needed
make

Pick an appropriate name for a tarfile eg.
net-snmp-5.4.custom-
SunOS_5.9_sun4u.tgz

Create an empty directory such as
/export/home/nagios/dist, then do 
the following
from the source directory (using the example
above):

# 5.4
rm -rf /export/home/nagios/dist/opt/supervision
mkdir -p /export/home/nagios/dist/opt/supervision
make install
prefix=/export/home/nagios/dist/opt/supervision 
exec_prefix=/export/home/nagios/dist/opt/supervision

cd /export/home/nagios/dist/opt/supervision
tar -cvzf
/export/home/nagios/dist/net-snmp-5.4.custom-
SunOS_5.9_sun4u.tgz *

cd /opt/supervision
tar -cvzf
/export/home/nagios/dist/cpan-modules.custom-
SunOS_5.9_sun4u.tgz cpan-shared


# 5.4.x
rm -rf /export/home/nagios/dist/opt/supervision
mkdir -p /export/home/nagios/dist/opt/supervision
make install
prefix=/export/home/nagios/dist/opt/supervision 
exec_prefix=/export/home/nagios/dist/opt/supervision

cd /export/home/nagios/dist/opt/supervision
tar -cvzf
/export/home/nagios/dist/net-snmp-5.4-patched.custom-
SunOS_5.9_sun4u.tgz *

cd /opt/supervision
tar -cvzf
/export/home/nagios/dist/cpan-modules-patched.custom-
SunOS_5.9_sun4u.tgz cpan-shared

Transfer this file to the machine where you want
to install from 
binary.
Place it in a distribution directory eg. /export/home/nagios/dist Type the following \
(using the example above):


# 5.4
cd /opt/supervision
tar -xvzf
/export/home/nagios/dist/net-snmp-5.4.custom-
SunOS_5.9_sun4u.tgz
tar -xvzf
/export/home/nagios/dist/cpan-modules.custom-
SunOS_5.9_sun4u.tgz

# 5.4.x
cd /opt/supervision
tar -xvzf
/export/home/nagios/dist/net-snmp-5.4-patched.custom-
SunOS_5.9_sun4u.tgz
tar -xvzf
/export/home/nagios/dist/cpan-modules-patched.custom-
SunOS_5.9_sun4u.tgz

Vriendelijke Groeten

-- Alex Peeters



----------------------------------------------------------------------

> Comment By: Thomas Anders (tanders)
Date: 2007-05-29 13:55

Message:
Logged In: YES 
user_id=848638
Originator: NO

Please retry with 5.4.1.pre2 when it becomes available (around Jun 1) and
report back. Linking has been changed significantly.

----------------------------------------------------------------------

Comment By: Alex Peeters (zxr750)
Date: 2007-03-10 14:19

Message:
Logged In: YES 
user_id=590764
Originator: YES

Any anwser PLEASE

-- Alex 

----------------------------------------------------------------------

Comment By: Alex Peeters (zxr750)
Date: 2007-03-06 07:58

Message:
Logged In: YES 
user_id=590764
Originator: YES

compile servers:
----------------

export
CFLAGS="-R/opt/supervision/lib:/opt/supervision/ssl/lib:/usr/local/lib:/usr/lib"
export
CPPFLAGS="-R/opt/supervision/lib:/opt/supervision/ssl/lib:/usr/local/lib:/usr/lib"
export
LDFLAGS="-L/opt/supervision/lib:/opt/supervision/ssl/lib:/usr/local/lib:/usr/lib"
./configure --prefix=/opt/supervision
--with-perl-modules=INSTALL_BASE=/opt/supervision/cpan-shared
--with-mibdirs=/opt/supervision/share/snmp/mibs/
--with-default-snmp-version=2
--with-logfile=/opt/supervision/var/log/snmpd.log
--with-persistent-directory=/opt/supervision/var/net-snmp
--with-sys-location=HomeSweetHome
make

rm -rf /export/home/nagios/dist/opt/supervision
mkdir -p /export/home/nagios/dist/opt/supervision
make install prefix=/export/home/nagios/dist/opt/supervision
exec_prefix=/export/home/nagios/dist/opt/supervision

cd /export/home/nagios/dist/opt/supervision
tar -cvzf
/export/home/nagios/dist/net-snmp-5.4-patched.custom-SunOS_5.9_sun4u.tgz *

cd /opt/supervision
tar -cvzf
/export/home/nagios/dist/cpan-modules-patched.custom-SunOS_5.9_sun4u.tgz
cpan-shared

other server:
-------------
cd /opt/supervision
tar -xvzf
/export/home/nagios/dist/net-snmp-5.4-patched.custom-SunOS_5.9_sun4u.tgz
tar -xvzf
/export/home/nagios/dist/cpan-modules-patched.custom-SunOS_5.9_sun4u.tgz

works:
ls -latr net-snmp-5.4/perl/blib/arch/auto/SNMP/SNMP.so
-rwxr-xr-x    1 nagios   nagios    1342824 Mar  5 20:27
net-snmp-5.4/perl/blib/arch/auto/SNMP/SNMP.so

don't work:
ls -latr net-snmp-5.4.x/perl/blib/arch/auto/SNMP/SNMP.so
-rwxr-xr-x    1 nagios   nagios    1341760 Mar  3 14:25
net-snmp-5.4.x/perl/blib/arch/auto/SNMP/SNMP.so

Makes no difference.


----------------------------------------------------------------------

Comment By: Nobody/Anonymous (nobody)
Date: 2007-03-05 19:22

Message:
Logged In: NO 

I have installed it on 2 servers.

All have the same problem.

But when i confifure, make, make test and make install version 5.4.x
and then use the SNMP.so file from version 5.4 everything works.

Don't ask me why.

-- Alex


----------------------------------------------------------------------

Comment By: Nobody/Anonymous (nobody)
Date: 2007-03-05 19:20

Message:
Logged In: NO 


re 1) there should be a dependency to libnetsnmp.so.15. I'm quite

surprised 5.4 works without it.

Yep

re 3) Is this nm output for 5.4 or 5.4.x? Please post both!

nm ~/installed-packages/net-snmp-5.4/snmplib/.libs/libnetsnmp.so | grep
netsnmp_init_mib
[2685]  |    132516|    3900|FUNC |GLOB |0    |11     |netsnmp_init_mib
[3332]  |    188692|     600|FUNC |GLOB |0    |11    
> netsnmp_init_mib_internals

nm ~/installed-packages/net-snmp-5.4.x/snmplib/.libs/libnetsnmp.so | grep
netsnmp_init_mib
[2794]  |    132824|    3900|FUNC |GLOB |0    |11     |netsnmp_init_mib
[2923]  |    189164|     600|FUNC |GLOB |0    |11    
> netsnmp_init_mib_internals


It works with both set of librarys, but regarding perl i need into bothe
version SNMP.so from 5.4

> Please try to *omit* --enable-as-needed and see if it makes any
difference.
Without have both versions 5.4 and 5.4.x snmptrapd and snmptrap problems
finding libnetsnmp.so.15
Buth i will try it again.

-- Alex


----------------------------------------------------------------------

Comment By: Thomas Anders (tanders)
Date: 2007-03-05 18:55

Message:
Logged In: YES 
user_id=848638
Originator: NO

re 1) there should be a dependency to libnetsnmp.so.15. I'm quite
surprised 5.4 works without it.
re 3) Is this nm output for 5.4 or 5.4.x? Please post both!

Please try to *omit* --enable-as-needed and see if it makes any
difference.

----------------------------------------------------------------------

Comment By: Alex Peeters (zxr750)
Date: 2007-03-05 18:44

Message:
Logged In: YES 
user_id=590764
Originator: YES

A couple of things to check for *each* of your installations (5.4 vs.
5.4.x):

1) ldd /path/to/SNMP.so

/export/home/nagios/installed-packages/net-snmp-5.4

ldd ./perl/blib/arch/auto/SNMP/SNMP.so
        libgen.so.1 =>   /usr/lib/libgen.so.1
        libcrypto.so.0.9.8 =>   
/opt/supervision/ssl/lib/libcrypto.so.0.9.8
        libkstat.so.1 =>         /usr/lib/libkstat.so.1
        libelf.so.1 =>   /usr/lib/libelf.so.1
        libm.so.1 =>     /usr/lib/libm.so.1
        libnsl.so.1 =>   /usr/lib/libnsl.so.1
        libsocket.so.1 =>        /usr/lib/libsocket.so.1
        libadm.so.1 =>   /usr/lib/libadm.so.1
        libc.so.1 =>     /usr/lib/libc.so.1
        libdl.so.1 =>    /usr/lib/libdl.so.1
        libgcc_s.so.1 =>         /usr/local/lib/libgcc_s.so.1
        libmp.so.2 =>    /usr/lib/libmp.so.2
        /usr/platform/SUNW,Sun-Fire-V210/lib/libc_psr.so.1

ls -latr ./perl/blib/arch/auto/SNMP/SNMP.so
-rwxr-xr-x    1 nagios   nagios    1342824 Mar  3 14:29
./perl/blib/arch/auto/SNMP/SNMP.so


/export/home/nagios/installed-packages/net-snmp-5.4.x

ldd ./perl/blib/arch/auto/SNMP/SNMP.so
        libgen.so.1 =>   /usr/lib/libgen.so.1
        libcrypto.so.0.9.8 =>   
/opt/supervision/ssl/lib/libcrypto.so.0.9.8
        libkstat.so.1 =>         /usr/lib/libkstat.so.1
        libelf.so.1 =>   /usr/lib/libelf.so.1
        libm.so.1 =>     /usr/lib/libm.so.1
        libnsl.so.1 =>   /usr/lib/libnsl.so.1
        libsocket.so.1 =>        /usr/lib/libsocket.so.1
        libadm.so.1 =>   /usr/lib/libadm.so.1
        libc.so.1 =>     /usr/lib/libc.so.1
        libdl.so.1 =>    /usr/lib/libdl.so.1
        libgcc_s.so.1 =>         /usr/local/lib/libgcc_s.so.1
        libmp.so.2 =>    /usr/lib/libmp.so.2
        /usr/platform/SUNW,Sun-Fire-V210/lib/libc_psr.so.1

ls -latr ./perl/blib/arch/auto/SNMP/SNMP.so
-rwxr-xr-x    1 nagios   nagios    1341760 Mar  3 14:25
./perl/blib/arch/auto/SNMP/SNMP.so


2) /usr/ccs/bin/dump -Lv ./perl/blib/arch/auto/SNMP/SNMP.so | grep RPATH

/export/home/nagios/installed-packages/net-snmp-5.4

 /usr/ccs/bin/dump -Lv ./perl/blib/arch/auto/SNMP/SNMP.so | grep RPATH
[13]    RPATH          
/opt/supervision/lib:/usr/local/lib/perl5/5.8.7/sun4-solaris/CORE


/export/home/nagios/installed-packages/net-snmp-5.4.x

 /usr/ccs/bin/dump -Lv ./perl/blib/arch/auto/SNMP/SNMP.so | grep RPATH
[13]    RPATH          
/opt/supervision/lib:/usr/local/lib/perl5/5.8.7/sun4-solaris/CORE


3) nm /opt/supervision/lib/libnetsnmp.so | grep netsnmp_init_mib

 /usr/ccs/bin/dump -Lv ./perl/blib/arch/auto/SNMP/SNMP.so | grep RPATH
[13]    RPATH          
/opt/supervision/lib:/usr/local/lib/perl5/5.8.7/sun4-solaris/CORE
bash-3.1$ nm /opt/supervision/lib/libnetsnmp.so | grep netsnmp_init_mib
[2794]  |    132824|    3900|FUNC |GLOB |0    |11     |netsnmp_init_mib
[2923]  |    189164|     600|FUNC |GLOB |0    |11    
> netsnmp_init_mib_internals


4) "make test" (at build time)

/export/home/nagios/installed-packages/net-snmp-5.4

1: testing SNMPv1 support... ....ok
2: testing SNMPv2c get of system.sysUpTime.0... ok
3: testing SNMPv2c getnext of system.sysUpTime... ok
4: testing SNMPv2c bulkget of system components... ...ok
5: testing for failure of SNMPv2c get with wrong community... ok
6: testing for failure of SNMPv2c get against SNMPv1 agent... ok
7: testing for failure of SNMPv1 get against SNMPv2c agent... ok
8: testing SNMPv2c get of system.sysUpTime.1... ok
9: testing SNMPv3 get using noAuthNoPriv of .1.3.6.1.2.1.1.3.0... ok
10: testing SNMPv3 getnext using initial of .1.3.6.1.2.1.1.3.0... ok
11: testing SNMPv3 bulkget of system... ...ok
12: testing SNMPv3 get using MD5/noPriv of .1.3.6.1.2.1.1.3.0... ok
13: testing SNMPv3 get using MD5/AES of .1.3.6.1.2.1.1.3.0... ok
14: testing SNMPv3 get using MD5/DES of .1.3.6.1.2.1.1.3.0... ok
15: testing SNMPv3 get using SHA/noPriv of .1.3.6.1.2.1.1.3.0... ok
16: testing SNMPv3 get using SHA/DES of .1.3.6.1.2.1.1.3.0... ok
17: testing SNMPv3 get using SHA/AES of .1.3.6.1.2.1.1.3.0... ok
18: testing for failure of SNMPv3 get using unknown user.... ok
19: testing SNMPv3 agent USM user management with snmpusm...
..............ok
20: testing SNMPv3 snmptrapd USM user management with snmpusm...
...........ok
21: testing SNMPv3 informs (noAuthNoPriv) received and sent by tools...
FAIL
22: testing SNMPv3 informs (authNoPriv) received and sent by tools...
FAIL
23: testing SNMPv3 informs (authPriv) received and sent by tools... FAIL
24: testing SNMPv3 traps received and sent by tools... ok
25: testing SNMPv2c traps received and sent by tools... ok
26: testing SNMPv2c informs received and sent by tools... ok
27: testing snmpv1 traps are sent by snmpd API... SKIPPED
28: testing snmpv2c traps are sent by snmpd API... SKIPPED
29: testing snmpv1 traps are sent by snmpd without notification mib
support... SKIPPED
30: testing snmpv2c traps are sent by snmpd without notification mib
support... SKIPPED
31: testing snmptrapd authorization failure of non authorized users... ok
32: testing snmptrapd discards of unauthorized notification types... ok
33: testing snmptrapd discards of incorrect view types... ok
34: testing authentication failure traps are sent by snmpd... ok
35: testing snmptrapd traphandle: launching external shell script... ..ok
36: testing snmptrapd embedded perl support (NetSNMP::TrapReceiver)...
SKIPPED
37: testing snmpd embedded perl support (using NetSNMP::agent)... SKIPPED
38: testing extending agent functionality with extend... .....ok
39: testing that the agent responds properly to a kill -HUP... ok
40: testing AgentX GET support... ok
41: testing AgentX SET support... ok
42: testing AgentX illegal SET handling support... ok
43: testing AgentX trap sending support... SKIPPED
44: testing AgentX subagent in Perl (using NetSNMP::agent)... FAIL
45: testing Proxy GET support... ok
46: testing Proxy SET support... ok
47: testing Proxy illegal SET handling support... ok
48: testing SNMPv1 vacm acceptance support... .ok
49: testing SNMPv2 vacm acceptance support... .ok
50: testing SNMPv3 vacm acceptance support... .ok
51: testing SNMPv1 vacm denial support... ..ok
52: testing SNMPv2 vacm denial support... ......ok
53: testing SNMPv3 vacm denial support... ..ok
54: testing 1st CPU on Solaris using HOST-RESOURCES... .ok
55: testing initial load device on Solaris using HOST-RESOURCES... .ok
56: testing uptime using HOST-RESOURCES... .ok
57: testing swap on Solaris using HOST-RESOURCES... .ok
58: testing if snmpnetstat finds the running agent in udpTable... .ok
59: testing full snmpwalk (SNMPv2c) against agent (may take time)... ..ok
Summary: 55 / 59 succeeded.
make[1]: *** [test] Error 4
make[1]: Leaving directory
`/export/home/nagios/installed-packages/net-snmp-5.4/testing'
make: *** [test] Error 2

/export/home/nagios/installed-packages/net-snmp-5.4.x

1: testing SNMPv1 support... ....ok
2: testing SNMPv2c get of system.sysUpTime.0... ok
3: testing SNMPv2c getnext of system.sysUpTime... ok
4: testing SNMPv2c bulkget of system components... ...ok
5: testing for failure of SNMPv2c get with wrong community... ok
6: testing for failure of SNMPv2c get against SNMPv1 agent... ok
7: testing for failure of SNMPv1 get against SNMPv2c agent... ok
8: testing SNMPv2c get of system.sysUpTime.1... ok
9: testing SNMPv3 get using noAuthNoPriv of .1.3.6.1.2.1.1.3.0... ok
10: testing SNMPv3 getnext using initial of .1.3.6.1.2.1.1.3.0... ok
11: testing SNMPv3 bulkget of system... ...ok
12: testing SNMPv3 get using MD5/noPriv of .1.3.6.1.2.1.1.3.0... ok
13: testing SNMPv3 get using MD5/AES of .1.3.6.1.2.1.1.3.0... ok
14: testing SNMPv3 get using MD5/DES of .1.3.6.1.2.1.1.3.0... ok
15: testing SNMPv3 get using SHA/noPriv of .1.3.6.1.2.1.1.3.0... ok
16: testing SNMPv3 get using SHA/DES of .1.3.6.1.2.1.1.3.0... ok
17: testing SNMPv3 get using SHA/AES of .1.3.6.1.2.1.1.3.0... ok
18: testing for failure of SNMPv3 get using unknown user.... ok
19: testing SNMPv3 agent USM user management with snmpusm...
..............ok
20: testing SNMPv3 snmptrapd USM user management with snmpusm...
...........ok
21: testing SNMPv3 informs (noAuthNoPriv) received and sent by tools...
ok
22: testing SNMPv3 informs (authNoPriv) received and sent by tools... ok
23: testing SNMPv3 informs (authPriv) received and sent by tools... ok
24: testing SNMPv3 traps received and sent by tools... ok
25: testing SNMPv2c traps received and sent by tools... ok
26: testing SNMPv2c informs received and sent by tools... ok
27: testing snmpv1 traps are sent by snmpd API... SKIPPED
28: testing snmpv2c traps are sent by snmpd API... SKIPPED
29: testing snmpv1 traps are sent by snmpd without notification mib
support... SKIPPED
30: testing snmpv2c traps are sent by snmpd without notification mib
support... SKIPPED
31: testing snmptrapd authorization failure of non authorized users... ok
32: testing snmptrapd discards of unauthorized notification types... ok
33: testing snmptrapd discards of incorrect view types... ok
34: testing authentication failure traps are sent by snmpd... ok
35: testing snmptrapd traphandle: launching external shell script... ..ok
36: testing snmptrapd embedded perl support (NetSNMP::TrapReceiver)...
SKIPPED
37: testing snmpd embedded perl support (using NetSNMP::agent)... SKIPPED
38: testing extending agent functionality with extend... .....ok
39: testing that the agent responds properly to a kill -HUP... ok
40: testing AgentX GET support... ok
41: testing AgentX SET support... ok
42: testing AgentX illegal SET handling support... ok
43: testing AgentX trap sending support... SKIPPED
44: testing AgentX subagent in Perl (using NetSNMP::agent)... FAIL
45: testing Proxy GET support... ok
46: testing Proxy SET support... ok
47: testing Proxy illegal SET handling support... ok
48: testing SNMPv1 vacm acceptance support... .ok
49: testing SNMPv2 vacm acceptance support... .ok
50: testing SNMPv3 vacm acceptance support... .ok
51: testing SNMPv1 vacm denial support... ..ok
52: testing SNMPv2 vacm denial support... ......ok
53: testing SNMPv3 vacm denial support... ..ok
54: testing 1st CPU on Solaris using HOST-RESOURCES... .ok
55: testing initial load device on Solaris using HOST-RESOURCES... .ok
56: testing uptime using HOST-RESOURCES... .ok
57: testing swap on Solaris using HOST-RESOURCES... .ok
58: testing if snmpnetstat finds the running agent in udpTable... .ok
59: testing full snmpwalk (SNMPv2c) against agent (may take time)... ..ok
Summary: 58 / 59 succeeded.
make[1]: *** [test] Error 1
make[1]: Leaving directory
`/export/home/nagios/installed-packages/net-snmp-5.4.x/testing'
make: *** [test] Error 2


Please report the results you see.

Also, are you sure you've only installed *either* 5.4 *or* 5.4.x CVS on
your system at any given time?
> Mixing and matching them wouldn't be a good idea.
I now.

I did test it on a other servers, where it is now the only version, with
the same error.



----------------------------------------------------------------------

Comment By: Alex Peeters (zxr750)
Date: 2007-03-05 18:44

Message:
Logged In: YES 
user_id=590764
Originator: YES

A couple of things to check for *each* of your installations (5.4 vs.
5.4.x):

1) ldd /path/to/SNMP.so

/export/home/nagios/installed-packages/net-snmp-5.4

ldd ./perl/blib/arch/auto/SNMP/SNMP.so
        libgen.so.1 =>   /usr/lib/libgen.so.1
        libcrypto.so.0.9.8 =>   
/opt/supervision/ssl/lib/libcrypto.so.0.9.8
        libkstat.so.1 =>         /usr/lib/libkstat.so.1
        libelf.so.1 =>   /usr/lib/libelf.so.1
        libm.so.1 =>     /usr/lib/libm.so.1
        libnsl.so.1 =>   /usr/lib/libnsl.so.1
        libsocket.so.1 =>        /usr/lib/libsocket.so.1
        libadm.so.1 =>   /usr/lib/libadm.so.1
        libc.so.1 =>     /usr/lib/libc.so.1
        libdl.so.1 =>    /usr/lib/libdl.so.1
        libgcc_s.so.1 =>         /usr/local/lib/libgcc_s.so.1
        libmp.so.2 =>    /usr/lib/libmp.so.2
        /usr/platform/SUNW,Sun-Fire-V210/lib/libc_psr.so.1

ls -latr ./perl/blib/arch/auto/SNMP/SNMP.so
-rwxr-xr-x    1 nagios   nagios    1342824 Mar  3 14:29
./perl/blib/arch/auto/SNMP/SNMP.so


/export/home/nagios/installed-packages/net-snmp-5.4.x

ldd ./perl/blib/arch/auto/SNMP/SNMP.so
        libgen.so.1 =>   /usr/lib/libgen.so.1
        libcrypto.so.0.9.8 =>   
/opt/supervision/ssl/lib/libcrypto.so.0.9.8
        libkstat.so.1 =>         /usr/lib/libkstat.so.1
        libelf.so.1 =>   /usr/lib/libelf.so.1
        libm.so.1 =>     /usr/lib/libm.so.1
        libnsl.so.1 =>   /usr/lib/libnsl.so.1
        libsocket.so.1 =>        /usr/lib/libsocket.so.1
        libadm.so.1 =>   /usr/lib/libadm.so.1
        libc.so.1 =>     /usr/lib/libc.so.1
        libdl.so.1 =>    /usr/lib/libdl.so.1
        libgcc_s.so.1 =>         /usr/local/lib/libgcc_s.so.1
        libmp.so.2 =>    /usr/lib/libmp.so.2
        /usr/platform/SUNW,Sun-Fire-V210/lib/libc_psr.so.1

ls -latr ./perl/blib/arch/auto/SNMP/SNMP.so
-rwxr-xr-x    1 nagios   nagios    1341760 Mar  3 14:25
./perl/blib/arch/auto/SNMP/SNMP.so


2) /usr/ccs/bin/dump -Lv ./perl/blib/arch/auto/SNMP/SNMP.so | grep RPATH

/export/home/nagios/installed-packages/net-snmp-5.4

 /usr/ccs/bin/dump -Lv ./perl/blib/arch/auto/SNMP/SNMP.so | grep RPATH
[13]    RPATH          
/opt/supervision/lib:/usr/local/lib/perl5/5.8.7/sun4-solaris/CORE


/export/home/nagios/installed-packages/net-snmp-5.4.x

 /usr/ccs/bin/dump -Lv ./perl/blib/arch/auto/SNMP/SNMP.so | grep RPATH
[13]    RPATH          
/opt/supervision/lib:/usr/local/lib/perl5/5.8.7/sun4-solaris/CORE


3) nm /opt/supervision/lib/libnetsnmp.so | grep netsnmp_init_mib

 /usr/ccs/bin/dump -Lv ./perl/blib/arch/auto/SNMP/SNMP.so | grep RPATH
[13]    RPATH          
/opt/supervision/lib:/usr/local/lib/perl5/5.8.7/sun4-solaris/CORE
bash-3.1$ nm /opt/supervision/lib/libnetsnmp.so | grep netsnmp_init_mib
[2794]  |    132824|    3900|FUNC |GLOB |0    |11     |netsnmp_init_mib
[2923]  |    189164|     600|FUNC |GLOB |0    |11    
> netsnmp_init_mib_internals


4) "make test" (at build time)

/export/home/nagios/installed-packages/net-snmp-5.4

1: testing SNMPv1 support... ....ok
2: testing SNMPv2c get of system.sysUpTime.0... ok
3: testing SNMPv2c getnext of system.sysUpTime... ok
4: testing SNMPv2c bulkget of system components... ...ok
5: testing for failure of SNMPv2c get with wrong community... ok
6: testing for failure of SNMPv2c get against SNMPv1 agent... ok
7: testing for failure of SNMPv1 get against SNMPv2c agent... ok
8: testing SNMPv2c get of system.sysUpTime.1... ok
9: testing SNMPv3 get using noAuthNoPriv of .1.3.6.1.2.1.1.3.0... ok
10: testing SNMPv3 getnext using initial of .1.3.6.1.2.1.1.3.0... ok
11: testing SNMPv3 bulkget of system... ...ok
12: testing SNMPv3 get using MD5/noPriv of .1.3.6.1.2.1.1.3.0... ok
13: testing SNMPv3 get using MD5/AES of .1.3.6.1.2.1.1.3.0... ok
14: testing SNMPv3 get using MD5/DES of .1.3.6.1.2.1.1.3.0... ok
15: testing SNMPv3 get using SHA/noPriv of .1.3.6.1.2.1.1.3.0... ok
16: testing SNMPv3 get using SHA/DES of .1.3.6.1.2.1.1.3.0... ok
17: testing SNMPv3 get using SHA/AES of .1.3.6.1.2.1.1.3.0... ok
18: testing for failure of SNMPv3 get using unknown user.... ok
19: testing SNMPv3 agent USM user management with snmpusm...
..............ok
20: testing SNMPv3 snmptrapd USM user management with snmpusm...
...........ok
21: testing SNMPv3 informs (noAuthNoPriv) received and sent by tools...
FAIL
22: testing SNMPv3 informs (authNoPriv) received and sent by tools...
FAIL
23: testing SNMPv3 informs (authPriv) received and sent by tools... FAIL
24: testing SNMPv3 traps received and sent by tools... ok
25: testing SNMPv2c traps received and sent by tools... ok
26: testing SNMPv2c informs received and sent by tools... ok
27: testing snmpv1 traps are sent by snmpd API... SKIPPED
28: testing snmpv2c traps are sent by snmpd API... SKIPPED
29: testing snmpv1 traps are sent by snmpd without notification mib
support... SKIPPED
30: testing snmpv2c traps are sent by snmpd without notification mib
support... SKIPPED
31: testing snmptrapd authorization failure of non authorized users... ok
32: testing snmptrapd discards of unauthorized notification types... ok
33: testing snmptrapd discards of incorrect view types... ok
34: testing authentication failure traps are sent by snmpd... ok
35: testing snmptrapd traphandle: launching external shell script... ..ok
36: testing snmptrapd embedded perl support (NetSNMP::TrapReceiver)...
SKIPPED
37: testing snmpd embedded perl support (using NetSNMP::agent)... SKIPPED
38: testing extending agent functionality with extend... .....ok
39: testing that the agent responds properly to a kill -HUP... ok
40: testing AgentX GET support... ok
41: testing AgentX SET support... ok
42: testing AgentX illegal SET handling support... ok
43: testing AgentX trap sending support... SKIPPED
44: testing AgentX subagent in Perl (using NetSNMP::agent)... FAIL
45: testing Proxy GET support... ok
46: testing Proxy SET support... ok
47: testing Proxy illegal SET handling support... ok
48: testing SNMPv1 vacm acceptance support... .ok
49: testing SNMPv2 vacm acceptance support... .ok
50: testing SNMPv3 vacm acceptance support... .ok
51: testing SNMPv1 vacm denial support... ..ok
52: testing SNMPv2 vacm denial support... ......ok
53: testing SNMPv3 vacm denial support... ..ok
54: testing 1st CPU on Solaris using HOST-RESOURCES... .ok
55: testing initial load device on Solaris using HOST-RESOURCES... .ok
56: testing uptime using HOST-RESOURCES... .ok
57: testing swap on Solaris using HOST-RESOURCES... .ok
58: testing if snmpnetstat finds the running agent in udpTable... .ok
59: testing full snmpwalk (SNMPv2c) against agent (may take time)... ..ok
Summary: 55 / 59 succeeded.
make[1]: *** [test] Error 4
make[1]: Leaving directory
`/export/home/nagios/installed-packages/net-snmp-5.4/testing'
make: *** [test] Error 2

/export/home/nagios/installed-packages/net-snmp-5.4.x

1: testing SNMPv1 support... ....ok
2: testing SNMPv2c get of system.sysUpTime.0... ok
3: testing SNMPv2c getnext of system.sysUpTime... ok
4: testing SNMPv2c bulkget of system components... ...ok
5: testing for failure of SNMPv2c get with wrong community... ok
6: testing for failure of SNMPv2c get against SNMPv1 agent... ok
7: testing for failure of SNMPv1 get against SNMPv2c agent... ok
8: testing SNMPv2c get of system.sysUpTime.1... ok
9: testing SNMPv3 get using noAuthNoPriv of .1.3.6.1.2.1.1.3.0... ok
10: testing SNMPv3 getnext using initial of .1.3.6.1.2.1.1.3.0... ok
11: testing SNMPv3 bulkget of system... ...ok
12: testing SNMPv3 get using MD5/noPriv of .1.3.6.1.2.1.1.3.0... ok
13: testing SNMPv3 get using MD5/AES of .1.3.6.1.2.1.1.3.0... ok
14: testing SNMPv3 get using MD5/DES of .1.3.6.1.2.1.1.3.0... ok
15: testing SNMPv3 get using SHA/noPriv of .1.3.6.1.2.1.1.3.0... ok
16: testing SNMPv3 get using SHA/DES of .1.3.6.1.2.1.1.3.0... ok
17: testing SNMPv3 get using SHA/AES of .1.3.6.1.2.1.1.3.0... ok
18: testing for failure of SNMPv3 get using unknown user.... ok
19: testing SNMPv3 agent USM user management with snmpusm...
..............ok
20: testing SNMPv3 snmptrapd USM user management with snmpusm...
...........ok
21: testing SNMPv3 informs (noAuthNoPriv) received and sent by tools...
ok
22: testing SNMPv3 informs (authNoPriv) received and sent by tools... ok
23: testing SNMPv3 informs (authPriv) received and sent by tools... ok
24: testing SNMPv3 traps received and sent by tools... ok
25: testing SNMPv2c traps received and sent by tools... ok
26: testing SNMPv2c informs received and sent by tools... ok
27: testing snmpv1 traps are sent by snmpd API... SKIPPED
28: testing snmpv2c traps are sent by snmpd API... SKIPPED
29: testing snmpv1 traps are sent by snmpd without notification mib
support... SKIPPED
30: testing snmpv2c traps are sent by snmpd without notification mib
support... SKIPPED
31: testing snmptrapd authorization failure of non authorized users... ok
32: testing snmptrapd discards of unauthorized notification types... ok
33: testing snmptrapd discards of incorrect view types... ok
34: testing authentication failure traps are sent by snmpd... ok
35: testing snmptrapd traphandle: launching external shell script... ..ok
36: testing snmptrapd embedded perl support (NetSNMP::TrapReceiver)...
SKIPPED
37: testing snmpd embedded perl support (using NetSNMP::agent)... SKIPPED
38: testing extending agent functionality with extend... .....ok
39: testing that the agent responds properly to a kill -HUP... ok
40: testing AgentX GET support... ok
41: testing AgentX SET support... ok
42: testing AgentX illegal SET handling support... ok
43: testing AgentX trap sending support... SKIPPED
44: testing AgentX subagent in Perl (using NetSNMP::agent)... FAIL
45: testing Proxy GET support... ok
46: testing Proxy SET support... ok
47: testing Proxy illegal SET handling support... ok
48: testing SNMPv1 vacm acceptance support... .ok
49: testing SNMPv2 vacm acceptance support... .ok
50: testing SNMPv3 vacm acceptance support... .ok
51: testing SNMPv1 vacm denial support... ..ok
52: testing SNMPv2 vacm denial support... ......ok
53: testing SNMPv3 vacm denial support... ..ok
54: testing 1st CPU on Solaris using HOST-RESOURCES... .ok
55: testing initial load device on Solaris using HOST-RESOURCES... .ok
56: testing uptime using HOST-RESOURCES... .ok
57: testing swap on Solaris using HOST-RESOURCES... .ok
58: testing if snmpnetstat finds the running agent in udpTable... .ok
59: testing full snmpwalk (SNMPv2c) against agent (may take time)... ..ok
Summary: 58 / 59 succeeded.
make[1]: *** [test] Error 1
make[1]: Leaving directory
`/export/home/nagios/installed-packages/net-snmp-5.4.x/testing'
make: *** [test] Error 2


Please report the results you see.

Also, are you sure you've only installed *either* 5.4 *or* 5.4.x CVS on
your system at any given time?
> Mixing and matching them wouldn't be a good idea.
I now.

I did test it on a other servers, where it is now the only version, with
the same error.



----------------------------------------------------------------------

Comment By: Alex Peeters (zxr750)
Date: 2007-03-05 18:44

Message:
Logged In: YES 
user_id=590764
Originator: YES

A couple of things to check for *each* of your installations (5.4 vs.
5.4.x):

1) ldd /path/to/SNMP.so

/export/home/nagios/installed-packages/net-snmp-5.4

ldd ./perl/blib/arch/auto/SNMP/SNMP.so
        libgen.so.1 =>   /usr/lib/libgen.so.1
        libcrypto.so.0.9.8 =>   
/opt/supervision/ssl/lib/libcrypto.so.0.9.8
        libkstat.so.1 =>         /usr/lib/libkstat.so.1
        libelf.so.1 =>   /usr/lib/libelf.so.1
        libm.so.1 =>     /usr/lib/libm.so.1
        libnsl.so.1 =>   /usr/lib/libnsl.so.1
        libsocket.so.1 =>        /usr/lib/libsocket.so.1
        libadm.so.1 =>   /usr/lib/libadm.so.1
        libc.so.1 =>     /usr/lib/libc.so.1
        libdl.so.1 =>    /usr/lib/libdl.so.1
        libgcc_s.so.1 =>         /usr/local/lib/libgcc_s.so.1
        libmp.so.2 =>    /usr/lib/libmp.so.2
        /usr/platform/SUNW,Sun-Fire-V210/lib/libc_psr.so.1

ls -latr ./perl/blib/arch/auto/SNMP/SNMP.so
-rwxr-xr-x    1 nagios   nagios    1342824 Mar  3 14:29
./perl/blib/arch/auto/SNMP/SNMP.so


/export/home/nagios/installed-packages/net-snmp-5.4.x

ldd ./perl/blib/arch/auto/SNMP/SNMP.so
        libgen.so.1 =>   /usr/lib/libgen.so.1
        libcrypto.so.0.9.8 =>   
/opt/supervision/ssl/lib/libcrypto.so.0.9.8
        libkstat.so.1 =>         /usr/lib/libkstat.so.1
        libelf.so.1 =>   /usr/lib/libelf.so.1
        libm.so.1 =>     /usr/lib/libm.so.1
        libnsl.so.1 =>   /usr/lib/libnsl.so.1
        libsocket.so.1 =>        /usr/lib/libsocket.so.1
        libadm.so.1 =>   /usr/lib/libadm.so.1
        libc.so.1 =>     /usr/lib/libc.so.1
        libdl.so.1 =>    /usr/lib/libdl.so.1
        libgcc_s.so.1 =>         /usr/local/lib/libgcc_s.so.1
        libmp.so.2 =>    /usr/lib/libmp.so.2
        /usr/platform/SUNW,Sun-Fire-V210/lib/libc_psr.so.1

ls -latr ./perl/blib/arch/auto/SNMP/SNMP.so
-rwxr-xr-x    1 nagios   nagios    1341760 Mar  3 14:25
./perl/blib/arch/auto/SNMP/SNMP.so


2) /usr/ccs/bin/dump -Lv ./perl/blib/arch/auto/SNMP/SNMP.so | grep RPATH

/export/home/nagios/installed-packages/net-snmp-5.4

 /usr/ccs/bin/dump -Lv ./perl/blib/arch/auto/SNMP/SNMP.so | grep RPATH
[13]    RPATH          
/opt/supervision/lib:/usr/local/lib/perl5/5.8.7/sun4-solaris/CORE


/export/home/nagios/installed-packages/net-snmp-5.4.x

 /usr/ccs/bin/dump -Lv ./perl/blib/arch/auto/SNMP/SNMP.so | grep RPATH
[13]    RPATH          
/opt/supervision/lib:/usr/local/lib/perl5/5.8.7/sun4-solaris/CORE


3) nm /opt/supervision/lib/libnetsnmp.so | grep netsnmp_init_mib

 /usr/ccs/bin/dump -Lv ./perl/blib/arch/auto/SNMP/SNMP.so | grep RPATH
[13]    RPATH          
/opt/supervision/lib:/usr/local/lib/perl5/5.8.7/sun4-solaris/CORE
bash-3.1$ nm /opt/supervision/lib/libnetsnmp.so | grep netsnmp_init_mib
[2794]  |    132824|    3900|FUNC |GLOB |0    |11     |netsnmp_init_mib
[2923]  |    189164|     600|FUNC |GLOB |0    |11    
> netsnmp_init_mib_internals


4) "make test" (at build time)

/export/home/nagios/installed-packages/net-snmp-5.4

1: testing SNMPv1 support... ....ok
2: testing SNMPv2c get of system.sysUpTime.0... ok
3: testing SNMPv2c getnext of system.sysUpTime... ok
4: testing SNMPv2c bulkget of system components... ...ok
5: testing for failure of SNMPv2c get with wrong community... ok
6: testing for failure of SNMPv2c get against SNMPv1 agent... ok
7: testing for failure of SNMPv1 get against SNMPv2c agent... ok
8: testing SNMPv2c get of system.sysUpTime.1... ok
9: testing SNMPv3 get using noAuthNoPriv of .1.3.6.1.2.1.1.3.0... ok
10: testing SNMPv3 getnext using initial of .1.3.6.1.2.1.1.3.0... ok
11: testing SNMPv3 bulkget of system... ...ok
12: testing SNMPv3 get using MD5/noPriv of .1.3.6.1.2.1.1.3.0... ok
13: testing SNMPv3 get using MD5/AES of .1.3.6.1.2.1.1.3.0... ok
14: testing SNMPv3 get using MD5/DES of .1.3.6.1.2.1.1.3.0... ok
15: testing SNMPv3 get using SHA/noPriv of .1.3.6.1.2.1.1.3.0... ok
16: testing SNMPv3 get using SHA/DES of .1.3.6.1.2.1.1.3.0... ok
17: testing SNMPv3 get using SHA/AES of .1.3.6.1.2.1.1.3.0... ok
18: testing for failure of SNMPv3 get using unknown user.... ok
19: testing SNMPv3 agent USM user management with snmpusm...
..............ok
20: testing SNMPv3 snmptrapd USM user management with snmpusm...
...........ok
21: testing SNMPv3 informs (noAuthNoPriv) received and sent by tools...
FAIL
22: testing SNMPv3 informs (authNoPriv) received and sent by tools...
FAIL
23: testing SNMPv3 informs (authPriv) received and sent by tools... FAIL
24: testing SNMPv3 traps received and sent by tools... ok
25: testing SNMPv2c traps received and sent by tools... ok
26: testing SNMPv2c informs received and sent by tools... ok
27: testing snmpv1 traps are sent by snmpd API... SKIPPED
28: testing snmpv2c traps are sent by snmpd API... SKIPPED
29: testing snmpv1 traps are sent by snmpd without notification mib
support... SKIPPED
30: testing snmpv2c traps are sent by snmpd without notification mib
support... SKIPPED
31: testing snmptrapd authorization failure of non authorized users... ok
32: testing snmptrapd discards of unauthorized notification types... ok
33: testing snmptrapd discards of incorrect view types... ok
34: testing authentication failure traps are sent by snmpd... ok
35: testing snmptrapd traphandle: launching external shell script... ..ok
36: testing snmptrapd embedded perl support (NetSNMP::TrapReceiver)...
SKIPPED
37: testing snmpd embedded perl support (using NetSNMP::agent)... SKIPPED
38: testing extending agent functionality with extend... .....ok
39: testing that the agent responds properly to a kill -HUP... ok
40: testing AgentX GET support... ok
41: testing AgentX SET support... ok
42: testing AgentX illegal SET handling support... ok
43: testing AgentX trap sending support... SKIPPED
44: testing AgentX subagent in Perl (using NetSNMP::agent)... FAIL
45: testing Proxy GET support... ok
46: testing Proxy SET support... ok
47: testing Proxy illegal SET handling support... ok
48: testing SNMPv1 vacm acceptance support... .ok
49: testing SNMPv2 vacm acceptance support... .ok
50: testing SNMPv3 vacm acceptance support... .ok
51: testing SNMPv1 vacm denial support... ..ok
52: testing SNMPv2 vacm denial support... ......ok
53: testing SNMPv3 vacm denial support... ..ok
54: testing 1st CPU on Solaris using HOST-RESOURCES... .ok
55: testing initial load device on Solaris using HOST-RESOURCES... .ok
56: testing uptime using HOST-RESOURCES... .ok
57: testing swap on Solaris using HOST-RESOURCES... .ok
58: testing if snmpnetstat finds the running agent in udpTable... .ok
59: testing full snmpwalk (SNMPv2c) against agent (may take time)... ..ok
Summary: 55 / 59 succeeded.
make[1]: *** [test] Error 4
make[1]: Leaving directory
`/export/home/nagios/installed-packages/net-snmp-5.4/testing'
make: *** [test] Error 2

/export/home/nagios/installed-packages/net-snmp-5.4.x

1: testing SNMPv1 support... ....ok
2: testing SNMPv2c get of system.sysUpTime.0... ok
3: testing SNMPv2c getnext of system.sysUpTime... ok
4: testing SNMPv2c bulkget of system components... ...ok
5: testing for failure of SNMPv2c get with wrong community... ok
6: testing for failure of SNMPv2c get against SNMPv1 agent... ok
7: testing for failure of SNMPv1 get against SNMPv2c agent... ok
8: testing SNMPv2c get of system.sysUpTime.1... ok
9: testing SNMPv3 get using noAuthNoPriv of .1.3.6.1.2.1.1.3.0... ok
10: testing SNMPv3 getnext using initial of .1.3.6.1.2.1.1.3.0... ok
11: testing SNMPv3 bulkget of system... ...ok
12: testing SNMPv3 get using MD5/noPriv of .1.3.6.1.2.1.1.3.0... ok
13: testing SNMPv3 get using MD5/AES of .1.3.6.1.2.1.1.3.0... ok
14: testing SNMPv3 get using MD5/DES of .1.3.6.1.2.1.1.3.0... ok
15: testing SNMPv3 get using SHA/noPriv of .1.3.6.1.2.1.1.3.0... ok
16: testing SNMPv3 get using SHA/DES of .1.3.6.1.2.1.1.3.0... ok
17: testing SNMPv3 get using SHA/AES of .1.3.6.1.2.1.1.3.0... ok
18: testing for failure of SNMPv3 get using unknown user.... ok
19: testing SNMPv3 agent USM user management with snmpusm...
..............ok
20: testing SNMPv3 snmptrapd USM user management with snmpusm...
...........ok
21: testing SNMPv3 informs (noAuthNoPriv) received and sent by tools...
ok
22: testing SNMPv3 informs (authNoPriv) received and sent by tools... ok
23: testing SNMPv3 informs (authPriv) received and sent by tools... ok
24: testing SNMPv3 traps received and sent by tools... ok
25: testing SNMPv2c traps received and sent by tools... ok
26: testing SNMPv2c informs received and sent by tools... ok
27: testing snmpv1 traps are sent by snmpd API... SKIPPED
28: testing snmpv2c traps are sent by snmpd API... SKIPPED
29: testing snmpv1 traps are sent by snmpd without notification mib
support... SKIPPED
30: testing snmpv2c traps are sent by snmpd without notification mib
support... SKIPPED
31: testing snmptrapd authorization failure of non authorized users... ok
32: testing snmptrapd discards of unauthorized notification types... ok
33: testing snmptrapd discards of incorrect view types... ok
34: testing authentication failure traps are sent by snmpd... ok
35: testing snmptrapd traphandle: launching external shell script... ..ok
36: testing snmptrapd embedded perl support (NetSNMP::TrapReceiver)...
SKIPPED
37: testing snmpd embedded perl support (using NetSNMP::agent)... SKIPPED
38: testing extending agent functionality with extend... .....ok
39: testing that the agent responds properly to a kill -HUP... ok
40: testing AgentX GET support... ok
41: testing AgentX SET support... ok
42: testing AgentX illegal SET handling support... ok
43: testing AgentX trap sending support... SKIPPED
44: testing AgentX subagent in Perl (using NetSNMP::agent)... FAIL
45: testing Proxy GET support... ok
46: testing Proxy SET support... ok
47: testing Proxy illegal SET handling support... ok
48: testing SNMPv1 vacm acceptance support... .ok
49: testing SNMPv2 vacm acceptance support... .ok
50: testing SNMPv3 vacm acceptance support... .ok
51: testing SNMPv1 vacm denial support... ..ok
52: testing SNMPv2 vacm denial support... ......ok
53: testing SNMPv3 vacm denial support... ..ok
54: testing 1st CPU on Solaris using HOST-RESOURCES... .ok
55: testing initial load device on Solaris using HOST-RESOURCES... .ok
56: testing uptime using HOST-RESOURCES... .ok
57: testing swap on Solaris using HOST-RESOURCES... .ok
58: testing if snmpnetstat finds the running agent in udpTable... .ok
59: testing full snmpwalk (SNMPv2c) against agent (may take time)... ..ok
Summary: 58 / 59 succeeded.
make[1]: *** [test] Error 1
make[1]: Leaving directory
`/export/home/nagios/installed-packages/net-snmp-5.4.x/testing'
make: *** [test] Error 2


Please report the results you see.

Also, are you sure you've only installed *either* 5.4 *or* 5.4.x CVS on
your system at any given time?
> Mixing and matching them wouldn't be a good idea.
I now.

I did test it on a other servers, where it is now the only version, with
the same error.



----------------------------------------------------------------------

Comment By: Alex Peeters (zxr750)
Date: 2007-03-05 18:43

Message:
Logged In: YES 
user_id=590764
Originator: YES

A couple of things to check for *each* of your installations (5.4 vs.
5.4.x):

1) ldd /path/to/SNMP.so

/export/home/nagios/installed-packages/net-snmp-5.4

ldd ./perl/blib/arch/auto/SNMP/SNMP.so
        libgen.so.1 =>   /usr/lib/libgen.so.1
        libcrypto.so.0.9.8 =>   
/opt/supervision/ssl/lib/libcrypto.so.0.9.8
        libkstat.so.1 =>         /usr/lib/libkstat.so.1
        libelf.so.1 =>   /usr/lib/libelf.so.1
        libm.so.1 =>     /usr/lib/libm.so.1
        libnsl.so.1 =>   /usr/lib/libnsl.so.1
        libsocket.so.1 =>        /usr/lib/libsocket.so.1
        libadm.so.1 =>   /usr/lib/libadm.so.1
        libc.so.1 =>     /usr/lib/libc.so.1
        libdl.so.1 =>    /usr/lib/libdl.so.1
        libgcc_s.so.1 =>         /usr/local/lib/libgcc_s.so.1
        libmp.so.2 =>    /usr/lib/libmp.so.2
        /usr/platform/SUNW,Sun-Fire-V210/lib/libc_psr.so.1

ls -latr ./perl/blib/arch/auto/SNMP/SNMP.so
-rwxr-xr-x    1 nagios   nagios    1342824 Mar  3 14:29
./perl/blib/arch/auto/SNMP/SNMP.so


/export/home/nagios/installed-packages/net-snmp-5.4.x

ldd ./perl/blib/arch/auto/SNMP/SNMP.so
        libgen.so.1 =>   /usr/lib/libgen.so.1
        libcrypto.so.0.9.8 =>   
/opt/supervision/ssl/lib/libcrypto.so.0.9.8
        libkstat.so.1 =>         /usr/lib/libkstat.so.1
        libelf.so.1 =>   /usr/lib/libelf.so.1
        libm.so.1 =>     /usr/lib/libm.so.1
        libnsl.so.1 =>   /usr/lib/libnsl.so.1
        libsocket.so.1 =>        /usr/lib/libsocket.so.1
        libadm.so.1 =>   /usr/lib/libadm.so.1
        libc.so.1 =>     /usr/lib/libc.so.1
        libdl.so.1 =>    /usr/lib/libdl.so.1
        libgcc_s.so.1 =>         /usr/local/lib/libgcc_s.so.1
        libmp.so.2 =>    /usr/lib/libmp.so.2
        /usr/platform/SUNW,Sun-Fire-V210/lib/libc_psr.so.1

ls -latr ./perl/blib/arch/auto/SNMP/SNMP.so
-rwxr-xr-x    1 nagios   nagios    1341760 Mar  3 14:25
./perl/blib/arch/auto/SNMP/SNMP.so


2) /usr/ccs/bin/dump -Lv ./perl/blib/arch/auto/SNMP/SNMP.so | grep RPATH

/export/home/nagios/installed-packages/net-snmp-5.4

 /usr/ccs/bin/dump -Lv ./perl/blib/arch/auto/SNMP/SNMP.so | grep RPATH
[13]    RPATH          
/opt/supervision/lib:/usr/local/lib/perl5/5.8.7/sun4-solaris/CORE


/export/home/nagios/installed-packages/net-snmp-5.4.x

 /usr/ccs/bin/dump -Lv ./perl/blib/arch/auto/SNMP/SNMP.so | grep RPATH
[13]    RPATH          
/opt/supervision/lib:/usr/local/lib/perl5/5.8.7/sun4-solaris/CORE


3) nm /opt/supervision/lib/libnetsnmp.so | grep netsnmp_init_mib

 /usr/ccs/bin/dump -Lv ./perl/blib/arch/auto/SNMP/SNMP.so | grep RPATH
[13]    RPATH          
/opt/supervision/lib:/usr/local/lib/perl5/5.8.7/sun4-solaris/CORE
bash-3.1$ nm /opt/supervision/lib/libnetsnmp.so | grep netsnmp_init_mib
[2794]  |    132824|    3900|FUNC |GLOB |0    |11     |netsnmp_init_mib
[2923]  |    189164|     600|FUNC |GLOB |0    |11    
> netsnmp_init_mib_internals


4) "make test" (at build time)

/export/home/nagios/installed-packages/net-snmp-5.4

1: testing SNMPv1 support... ....ok
2: testing SNMPv2c get of system.sysUpTime.0... ok
3: testing SNMPv2c getnext of system.sysUpTime... ok
4: testing SNMPv2c bulkget of system components... ...ok
5: testing for failure of SNMPv2c get with wrong community... ok
6: testing for failure of SNMPv2c get against SNMPv1 agent... ok
7: testing for failure of SNMPv1 get against SNMPv2c agent... ok
8: testing SNMPv2c get of system.sysUpTime.1... ok
9: testing SNMPv3 get using noAuthNoPriv of .1.3.6.1.2.1.1.3.0... ok
10: testing SNMPv3 getnext using initial of .1.3.6.1.2.1.1.3.0... ok
11: testing SNMPv3 bulkget of system... ...ok
12: testing SNMPv3 get using MD5/noPriv of .1.3.6.1.2.1.1.3.0... ok
13: testing SNMPv3 get using MD5/AES of .1.3.6.1.2.1.1.3.0... ok
14: testing SNMPv3 get using MD5/DES of .1.3.6.1.2.1.1.3.0... ok
15: testing SNMPv3 get using SHA/noPriv of .1.3.6.1.2.1.1.3.0... ok
16: testing SNMPv3 get using SHA/DES of .1.3.6.1.2.1.1.3.0... ok
17: testing SNMPv3 get using SHA/AES of .1.3.6.1.2.1.1.3.0... ok
18: testing for failure of SNMPv3 get using unknown user.... ok
19: testing SNMPv3 agent USM user management with snmpusm...
..............ok
20: testing SNMPv3 snmptrapd USM user management with snmpusm...
...........ok
21: testing SNMPv3 informs (noAuthNoPriv) received and sent by tools...
FAIL
22: testing SNMPv3 informs (authNoPriv) received and sent by tools...
FAIL
23: testing SNMPv3 informs (authPriv) received and sent by tools... FAIL
24: testing SNMPv3 traps received and sent by tools... ok
25: testing SNMPv2c traps received and sent by tools... ok
26: testing SNMPv2c informs received and sent by tools... ok
27: testing snmpv1 traps are sent by snmpd API... SKIPPED
28: testing snmpv2c traps are sent by snmpd API... SKIPPED
29: testing snmpv1 traps are sent by snmpd without notification mib
support... SKIPPED
30: testing snmpv2c traps are sent by snmpd without notification mib
support... SKIPPED
31: testing snmptrapd authorization failure of non authorized users... ok
32: testing snmptrapd discards of unauthorized notification types... ok
33: testing snmptrapd discards of incorrect view types... ok
34: testing authentication failure traps are sent by snmpd... ok
35: testing snmptrapd traphandle: launching external shell script... ..ok
36: testing snmptrapd embedded perl support (NetSNMP::TrapReceiver)...
SKIPPED
37: testing snmpd embedded perl support (using NetSNMP::agent)... SKIPPED
38: testing extending agent functionality with extend... .....ok
39: testing that the agent responds properly to a kill -HUP... ok
40: testing AgentX GET support... ok
41: testing AgentX SET support... ok
42: testing AgentX illegal SET handling support... ok
43: testing AgentX trap sending support... SKIPPED
44: testing AgentX subagent in Perl (using NetSNMP::agent)... FAIL
45: testing Proxy GET support... ok
46: testing Proxy SET support... ok
47: testing Proxy illegal SET handling support... ok
48: testing SNMPv1 vacm acceptance support... .ok
49: testing SNMPv2 vacm acceptance support... .ok
50: testing SNMPv3 vacm acceptance support... .ok
51: testing SNMPv1 vacm denial support... ..ok
52: testing SNMPv2 vacm denial support... ......ok
53: testing SNMPv3 vacm denial support... ..ok
54: testing 1st CPU on Solaris using HOST-RESOURCES... .ok
55: testing initial load device on Solaris using HOST-RESOURCES... .ok
56: testing uptime using HOST-RESOURCES... .ok
57: testing swap on Solaris using HOST-RESOURCES... .ok
58: testing if snmpnetstat finds the running agent in udpTable... .ok
59: testing full snmpwalk (SNMPv2c) against agent (may take time)... ..ok
Summary: 55 / 59 succeeded.
make[1]: *** [test] Error 4
make[1]: Leaving directory
`/export/home/nagios/installed-packages/net-snmp-5.4/testing'
make: *** [test] Error 2

/export/home/nagios/installed-packages/net-snmp-5.4.x

1: testing SNMPv1 support... ....ok
2: testing SNMPv2c get of system.sysUpTime.0... ok
3: testing SNMPv2c getnext of system.sysUpTime... ok
4: testing SNMPv2c bulkget of system components... ...ok
5: testing for failure of SNMPv2c get with wrong community... ok
6: testing for failure of SNMPv2c get against SNMPv1 agent... ok
7: testing for failure of SNMPv1 get against SNMPv2c agent... ok
8: testing SNMPv2c get of system.sysUpTime.1... ok
9: testing SNMPv3 get using noAuthNoPriv of .1.3.6.1.2.1.1.3.0... ok
10: testing SNMPv3 getnext using initial of .1.3.6.1.2.1.1.3.0... ok
11: testing SNMPv3 bulkget of system... ...ok
12: testing SNMPv3 get using MD5/noPriv of .1.3.6.1.2.1.1.3.0... ok
13: testing SNMPv3 get using MD5/AES of .1.3.6.1.2.1.1.3.0... ok
14: testing SNMPv3 get using MD5/DES of .1.3.6.1.2.1.1.3.0... ok
15: testing SNMPv3 get using SHA/noPriv of .1.3.6.1.2.1.1.3.0... ok
16: testing SNMPv3 get using SHA/DES of .1.3.6.1.2.1.1.3.0... ok
17: testing SNMPv3 get using SHA/AES of .1.3.6.1.2.1.1.3.0... ok
18: testing for failure of SNMPv3 get using unknown user.... ok
19: testing SNMPv3 agent USM user management with snmpusm...
..............ok
20: testing SNMPv3 snmptrapd USM user management with snmpusm...
...........ok
21: testing SNMPv3 informs (noAuthNoPriv) received and sent by tools...
ok
22: testing SNMPv3 informs (authNoPriv) received and sent by tools... ok
23: testing SNMPv3 informs (authPriv) received and sent by tools... ok
24: testing SNMPv3 traps received and sent by tools... ok
25: testing SNMPv2c traps received and sent by tools... ok
26: testing SNMPv2c informs received and sent by tools... ok
27: testing snmpv1 traps are sent by snmpd API... SKIPPED
28: testing snmpv2c traps are sent by snmpd API... SKIPPED
29: testing snmpv1 traps are sent by snmpd without notification mib
support... SKIPPED
30: testing snmpv2c traps are sent by snmpd without notification mib
support... SKIPPED
31: testing snmptrapd authorization failure of non authorized users... ok
32: testing snmptrapd discards of unauthorized notification types... ok
33: testing snmptrapd discards of incorrect view types... ok
34: testing authentication failure traps are sent by snmpd... ok
35: testing snmptrapd traphandle: launching external shell script... ..ok
36: testing snmptrapd embedded perl support (NetSNMP::TrapReceiver)...
SKIPPED
37: testing snmpd embedded perl support (using NetSNMP::agent)... SKIPPED
38: testing extending agent functionality with extend... .....ok
39: testing that the agent responds properly to a kill -HUP... ok
40: testing AgentX GET support... ok
41: testing AgentX SET support... ok
42: testing AgentX illegal SET handling support... ok
43: testing AgentX trap sending support... SKIPPED
44: testing AgentX subagent in Perl (using NetSNMP::agent)... FAIL
45: testing Proxy GET support... ok
46: testing Proxy SET support... ok
47: testing Proxy illegal SET handling support... ok
48: testing SNMPv1 vacm acceptance support... .ok
49: testing SNMPv2 vacm acceptance support... .ok
50: testing SNMPv3 vacm acceptance support... .ok
51: testing SNMPv1 vacm denial support... ..ok
52: testing SNMPv2 vacm denial support... ......ok
53: testing SNMPv3 vacm denial support... ..ok
54: testing 1st CPU on Solaris using HOST-RESOURCES... .ok
55: testing initial load device on Solaris using HOST-RESOURCES... .ok
56: testing uptime using HOST-RESOURCES... .ok
57: testing swap on Solaris using HOST-RESOURCES... .ok
58: testing if snmpnetstat finds the running agent in udpTable... .ok
59: testing full snmpwalk (SNMPv2c) against agent (may take time)... ..ok
Summary: 58 / 59 succeeded.
make[1]: *** [test] Error 1
make[1]: Leaving directory
`/export/home/nagios/installed-packages/net-snmp-5.4.x/testing'
make: *** [test] Error 2


Please report the results you see.

Also, are you sure you've only installed *either* 5.4 *or* 5.4.x CVS on
your system at any given time?
> Mixing and matching them wouldn't be a good idea.
I now.

I did test it on a other servers, where it is now the only version, with
the same error.



----------------------------------------------------------------------

Comment By: Thomas Anders (tanders)
Date: 2007-03-05 16:15

Message:
Logged In: YES 
user_id=848638
Originator: NO

A couple of things to check for *each* of your installations (5.4 vs.
5.4.x):

1) ldd /path/to/SNMP.so
2) /usr/ccs/bin/dump -Lv /path/to/SNMP.so | grep RPATH
3) nm /path/to/libnetsnmp.so | grep netsnmp_init_mib
4) "make test" (at build time)

Please report the results you see.

Also, are you sure you've only installed *either* 5.4 *or* 5.4.x CVS on
your system at any given time?
Mixing and matching them wouldn't be a good idea.

----------------------------------------------------------------------

Comment By: Alex Peeters (zxr750)
Date: 2007-03-05 13:23

Message:
Logged In: YES 
user_id=590764
Originator: YES

Solaris 9

./configure '--with-default-snmp-version=2'
'--with-sys-location=HomeSweetHome' '--enable-as-needed'
'CFLAGS=-R/usr/local/lib:/usr/lib' 'CPPFLAGS=-R/usr/local/lib:/usr/lib'
'LDFLAGS=-L/usr/local/lib:/usr/lib' $ac_configure_extra_args --no-create
--no-recursion

Starting snmptt: Config file /etc/snmp/snmptt.ini loaded
ld.so.1: /usr/local/bin/perl: fatal: relocation error: file
/usr/local/lib/perl5/site_perl/5.8.5/sun4-solaris/auto/SNMP/SNMP.so: symbol
netsnmp_init_mib: referenced symbol not found
/etc/init.d/snmptt: line 11: 25327 Killed                 
/usr/sbin/snmptt $OPTIONS


----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=112694&aid=1673010&group_id=12694

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Net-snmp-bugs mailing list
Net-snmp-bugs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-bugs


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic