Re: NetSnmp issue on AIX5.2

[email protected]
Newsgroups gmane.network.net-snmp.user
Message-ID <OFBC3A2CF0.B48D8ADC-ON48257075.00458004-48256F08.00452C05@wesoft.com>
Thanks for your help!

->Some things to check:
-> Run "ldd /usr/local/sbin/snmpd" (is it really a static executable?)

The following are the run log, any problems?

bash-2.05b# ldd /usr/local/sbin/snmpd
/usr/local/sbin/snmpd needs:
         /usr/lib/libc.a(shr.o)
 /home/tango/tmp/net-snmp-5.2/snmplib/.libs/libnetsnmp.a(libnetsnmp.so.5)
 
/home/tango/tmp/net-snmp-5.2/agent/helpers/.libs/libnetsnmphelpers.a(libnetsnmphelpers.so.5)
         /usr/lib/libdl.a(shr.o)
         /usr/lib/libperfstat.a(shr.o)
         /unix
         /usr/lib/libcrypt.a(shr.o)
         /usr/lib/libpthreads.a(shr_xpg5.o)
         /usr/lib/libodm.a(shr.o)
         /usr/lib/libcfg.a(shr.o)
         /usr/lib/liblvm.a(shr.o)
         /usr/lib/libpthreads.a(shr_comm.o)
bash-2.05b#

->- compile a more recent version instead: either 5.2.1.2 or
->http://www.net-snmp.org/nightly/tarballs/net-snmp-cvs-V5-2-patches_20050907_0440.tar.gz

I have download the latest package to build, but get the following error, 
any suggest?

making all in /home/tango/clean-cvs-V5-2-patches/agent/mibgroup
        /bin/sh ../../libtool  --mode=compile gcc -I../../include -I. 
-I../../agent -I../../agent/mibgroup  -I../../snmplib   -g -O2 -Daix5 
-Wall -Winline -Wstrict-prototypes -Wwrite-strings -Wcast-qual 
-Wno-char-subscripts -c -o ucd-snmp/versioninfo.lo ucd-snmp/versioninfo.c
gcc -I../../include -I. -I../../agent -I../../agent/mibgroup 
-I../../snmplib -g -O2 -Daix5 -Wall -Winline -Wstrict-prototypes 
-Wwrite-strings -Wcast-qual -Wno-char-subscripts -c ucd-snmp/versioninfo.c 
-o ucd-snmp/versioninfo.o
ucd-snmp/versioninfo.c:97:37: warning: character constant too long for its 
type
ucd-snmp/versioninfo.c:97:37: warning: character constant too long for its 
type
ucd-snmp/versioninfo.c: In function `var_extensible_version':
ucd-snmp/versioninfo.c:97: error: parse error before '\x61726564'
make: 1254-004 The error code from the last command is 1.


Stop.
make: 1254-004 The error code from the last command is 2.


Best Regards,
Tango
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.