RE: Problems with SNMP::Util

"Tay, Chee Yong" <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <207A8FA83882D643BDA4398E6365CDDB0E9F8C@W3HKEXCHVS1.asianetcom.com>
Hi Dave,

Thanks for responding to my queries, and pardon me if i had been too naggy. I don't mean to be.

I have 2 servers installed with the same version of net-snmp and SNMP-Util. I will named the working server as "GoodServerA", and the problematic server as "BadServerB".

Please my replies inline.

Thanks.
Cheeyong (CY)


-----Original Message-----
From: [email protected] on behalf of Dave Shield
Sent: Mon 7/31/2006 5:11 PM
To: Tay, Chee Yong
Cc: [email protected]
Subject: Re: Problems with SNMP::Util
 
On 28/07/06, Tay, Chee Yong <[email protected]> wrote:
> I have installed net-snmp 5.0.3.1 and has perl 5.8.0 on my system.

How did you install 5.0.3.1?  From source or a binary distribution?
If from source, how did you run configure, and how *exactly* did you
install the software?
In particular, how did you install the perl module?

CY> I compiled 5.0.3.1 right from the source. Below is what i have done:

wget net-snmp tarball
tar zxvf tarball
cd source directory
./configure --with-perl-modules
make
make install

As for the SNMP-Util, i downloaded the source from CPAN, and i followed the instructions from the README file:

- perl Makefile.PL
- make
- make test (had some problems, see below)

# make test
PERL_DL_NONLAZY=1 /usr/local/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
t/libtest....Can't load '/usr/local/lib/perl5/site_perl/5.8.0/sun4-solaris/auto/SNMP/SNMP.so' for module SNMP: ld.so.1: /usr/local/bin/perl: fatal: relocation error: file /usr/local/lib/perl5/site_perl/5.8.0/sun4-solaris/auto/SNMP/SNMP.so: symbol usmAESPrivProtocol: referenced symbol not found at /usr/local/lib/perl5/5.8.0/sun4-solaris/DynaLoader.pm line 229.
 at /usr/local/src/SNMP-Util-1.8/blib/lib/SNMP/Util.pm line 15
Compilation failed in require at /usr/local/src/SNMP-Util-1.8/blib/lib/SNMP/Util.pm line 15.
BEGIN failed--compilation aborted at /usr/local/src/SNMP-Util-1.8/blib/lib/SNMP/Util.pm line 15.
Compilation failed in require at t/libtest.t line 4.
BEGIN failed--compilation aborted at t/libtest.t line 4.
t/libtest....dubious                                                         
        Test returned status 255 (wstat 65280, 0xff00)
FAILED--1 test script could be run, alas--no output ever seen
make: *** [test_dynamic] Error 2

- make install


> # perl Makefile.PL
> Checking for SNMP, V1.8
> You don't have installed the SNMP module, version 1.8 or later.

Is this correct?
Can you locate the file 'SNMP.pm'?  Where is it? What is the version
number? (listed at the top of the file)


CY> There seems to be many SNMP.pm on the BadServer, how can i rectify the problem of having different SNMP version. I tried to rename some of the SNMP.pm, but doesn't seems to help.

# find / -name SNMP.pm
/usr/local/lib/perl5/5.8.0/sun4-solaris/SNMP.pm
/usr/local/lib/perl5/5.8.0/SNMP.pm
/usr/local/lib/perl5/site_perl/5.8.0/sun4-solaris/SNMP.pm
/usr/local/lib/perl5/site_perl/5.8.0/Net/SNMP.pm
/usr/local/lib/perl5/site_perl/5.8.0/SNMP.pm
/usr/local/lib/perl5/site_perl/SNMP.pm
/usr/local/src/net-snmp-5.3.0.1/perl/SNMP/SNMP.pm
/usr/local/src/net-snmp-5.3.0.1/perl/blib/lib/SNMP.pm
/usr/local/src/SNMP-4.2.0/SNMP.pm
/bgpdata/home/ipstaff/net-snmp-5.0.3/perl/SNMP/SNMP.pm

# grep VERSION /usr/local/lib/perl5/5.8.0/sun4-solaris/SNMP.pm
$VERSION = '4.2.0';   # current release version number

# grep VERSION /usr/local/lib/perl5/5.8.0/SNMP.pm
$VERSION = '4.2.0';   # current release version number

# grep VERSION /usr/local/lib/perl5/site_perl/5.8.0/sun4-solaris/SNMP.pm
$VERSION = '5.3.0.1';   # current release version number

# grep VERSION /usr/local/lib/perl5/site_perl/5.8.0/Net/SNMP.pm
our $VERSION = v5.2.0;


GoodServerA seems to have only 2 SNMP.pm in the library path:

# find / -name SNMP.pm
/usr/local/lib/perl5/site_perl/5.8.0/sun4-solaris/SNMP.pm
/usr/local/lib/perl5/site_perl/5.8.0/Net/SNMP.pm
/usr/local/src/net-snmp-5.3.0.1/perl/SNMP/SNMP.pm
/usr/local/src/net-snmp-5.3.0.1/perl/blib/lib/SNMP.pm
/usr/local/src/Net-SNMP-5.2.0/lib/Net/SNMP.pm
/usr/local/src/Net-SNMP-5.2.0/blib/lib/Net/SNMP.pm


# grep VERSION /usr/local/lib/perl5/site_perl/5.8.0/sun4-solaris/SNMP.pm
$VERSION = '5.3.0.1';   # current release version number

# grep VERSION /usr/local/lib/perl5/site_perl/5.8.0/Net/SNMP.pm
our $VERSION = v5.2.0;


Hope the above information will be of some help. Thanks.


> # uname -a
> SunOS foo 5.8 Generic_108528-15 sun4u sparc SUNW,Sun-Fire-280R
>
> I do realized that this perl is somehow being compiled on Solaris 9,
> when the OS is Solaris 8. I am not sure if this is the cause of the
> problem.

I'll leave that to the Sun experts, but it doesn't sound particularly
safe.  The general impression that I've got is that you shouldn't try
and mix binaries from different Solaris releases.  If you're running
Solaris 8, then the first step is probably to install a Solaris 8
version of perl.
   But I'll leave the Solaris people to comment further on that possibility

Dave


> Appreciate if someone can help me out on the following problem. Thanks very much.
Appreciate if you could show a little patience (more than just one day
- over the weekend at that!) before starting to nag. Thanks very much.


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
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.