Problems with SNMP::Util
"Tay, Chee Yong" <[email protected]>
| Newsgroups | gmane.network.net-snmp.user |
|---|---|
| Message-ID | <207A8FA83882D643BDA4398E6365CDDB69D498@W3HKEXCHVS1.asianetcom.com> |
Hi,
I have installed net-snmp 5.0.3.1 and has perl 5.8.0 on my system. I
have also installed the SNMP::Util perl module, but have encountered
some problems.
When I tried to create the make file using "perl Makefile.PL", it gave
the following error, but I was eventually able to install the Util.pm.
# perl Makefile.PL
Checking for SNMP, V1.8
You don't have installed the SNMP module, version 1.8 or later.
Enter the IP address of the Device: 0.0.0.0
Enter the SNMP community string: public
Writing Makefile for SNMP::Util
However, when I tried to execute the snmpwalk inside the
/usr/local/src/SNMP-Util-1.8/examples/snmpwalk, it returned me with the
following errors:
# ./snmpwalk
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/lib/perl5/5.8.0/SNMP/Util.pm line 15 Compilation failed
in require at /usr/local/lib/perl5/5.8.0/SNMP/Util.pm line 15.
BEGIN failed--compilation aborted at
/usr/local/lib/perl5/5.8.0/SNMP/Util.pm line 15.
Compilation failed in require at ./snmpwalk line 10.
BEGIN failed--compilation aborted at ./snmpwalk line 10.
# 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.
# perl -V
Summary of my perl5 (revision 5.0 version 8 subversion 0) configuration:
Platform:
osname=solaris, osvers=2.9, archname=sun4-solaris
uname='sunos solaris 5.9 generic sun4u sparc sunw,ultra-5_10 '
config_args='-Dcc=gcc -B/usr/ccs/bin/'
hint=recommended, useposix=true, d_sigaction=define
usethreads=undef use5005threads=undef useithreads=undef
usemultiplicity=undef
useperlio=define d_sfio=undef uselargefiles=define usesocks=undef
use64bitint=undef use64bitall=undef uselongdouble=undef
usemymalloc=n, bincompat5005=undef
Compiler:
cc='gcc -B/usr/ccs/bin/', ccflags ='-fno-strict-aliasing
-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64',
optimize='-O',
cppflags='-fno-strict-aliasing'
ccversion='', gccversion='3.1', gccosandvers='solaris2.9'
intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=4321
d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=16
ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='off_t',
lseeksize=8
alignbytes=8, prototype=define
Linker and Libraries:
ld='gcc -B/usr/ccs/bin/', ldflags =' -L/usr/local/lib '
libpth=/usr/local/lib /usr/lib /usr/ccs/lib
libs=-lsocket -lnsl -ldb -ldl -lm -lc
perllibs=-lsocket -lnsl -ldl -lm -lc
libc=/lib/libc.so, so=so, useshrplib=false, libperl=libperl.a
gnulibc_version=''
Dynamic Linking:
dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags=' '
cccdlflags='-fPIC', lddlflags='-G -L/usr/local/lib'
Characteristics of this binary (from libperl):
Compile-time options: USE_LARGE_FILES
Built under solaris
Compiled at Jul 22 2002 04:42:16
@INC:
/usr/local/lib/perl5/5.8.0/sun4-solaris
/usr/local/lib/perl5/5.8.0
/usr/local/lib/perl5/site_perl/5.8.0/sun4-solaris
/usr/local/lib/perl5/site_perl/5.8.0
/usr/local/lib/perl5/site_perl
.
I have a similar installation on another server as well using the same
version of perl, net-snmp and SNMP::Util module, but I am able to run
the examples without any problems.
Do you happen to know what could be the problem that I am facing, and
hope you can shed some light on it.
Thank you very much.
Regards,
Cheeyong
-------------------------------------------------------------------------
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