On AIX 4.3.3 Using
./configure --with-mib-modules="disman/event-mib"
configure ends without errors but make ends with
mkdir ucd-snmp/.libs
gcc -I../../include -I../../include -I. -I../.. -I. -I./../.. -
I./../../snmplib -I./.. -I.. -I/usr/local/ssl/include -g -O2 -
Daix4 -c ucd-snmp/proc.c -DPIC -o ucd-
snmp/.libs/proc.lo
mv -f ucd-snmp/.libs/proc.lo ucd-snmp/proc.o
(cd ucd-snmp && ln -s proc.o proc.lo)
/bin/sh ../../libtool --mode=compile gcc -
I../../include -I../../include -I. -I../.. -I. -I./../.. -
I./../../snmplib -I./.. -I.. -I/usr/local/ssl/include -g -O2 -
Daix4 -c -o ucd-snmp/versioninfo.lo ucd-
snmp/versioninfo.c
rm -f ucd-snmp/.libs/versioninfo.lo
gcc -I../../include -I../../include -I. -I../.. -I. -I./../.. -
I./../../snmplib -I./.. -I.. -I/usr/local/ssl/include -g -O2 -
Daix4 -c ucd-snmp/versioninfo.c -DPIC -o ucd-
snmp/.libs/versioninfo.lo
ucd-snmp/versioninfo.c: In function
`var_extensible_version':
ucd-snmp/versioninfo.c:97: wrong type argument to
decrement
ucd-snmp/versioninfo.c:97: parse error before `with'
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.
Stop.
make: 1254-004 The error code from the last command
is 2.
Stop.
Same procedure on Freebsd 4.7 Stable works fine.
Make completes without errors on AIX if only
./configure is used. The problem appears to be in the
new additions to the disman MIB support.
Logged In: YES
user_id=345882
locate net-snmp-config.h file and line that containis
CONFIGURE_OPTIONS . It will look something like this:
#define CONFIGURE_OPTIONS ""--with-cc=xlc_r""
make it look like
#define CONFIGURE_OPTIONS "--with-cc=xlc_r"