RE: Problems with SNMP::Util

This is a discussion on RE: Problems with SNMP::Util within the SNMP Users forums, part of the Networking and Network Related category; Hi Dave, Thanks for responding to my queries, and pardon me if i had been too naggy. I don't ...


Go Back   Usenet Forums > Networking and Network Related > SNMP Users

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 07-31-2006
Tay, Chee Yong
 
Posts: n/a
Default RE: Problems with SNMP::Util

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: dave.shield@googlemail.com on behalf of Dave Shield
Sent: Mon 7/31/2006 5:11 PM
To: Tay, Chee Yong
Cc: net-snmp-users@lists.sourceforge.net
Subject: Re: Problems with SNMP::Util

On 28/07/06, Tay, Chee Yong <cheeyong.tay@asianetcom.com> 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?p...rge&CID=DEVDEV
_______________________________________________
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/...net-snmp-users
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 10:22 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0