[uClibc]Fwd: SNMP

Valera valeriy at levsha.ru
Fri Jan 24 15:07:57 UTC 2003


Hello,

When I have tried to compile the  Net-SNMP-5.0.7 with uClibc-0.9.15.

# ./configure --disable-ipv6 \
--with-out-mib-modules="ucd_snmp ucd-snmp/disk ucd-snmp/diskio" \
--enable-shared --enable-internal-md5 --enable-mini-agent \
--with-mib-modules="host examples/example examples/data_set"
# make

Below error messages are given:
..............
gcc -g -O2 -Dlinux -o .libs/snmpd snmpd.o  ./.libs/libnetsnmpagent.so ./.libs/libnetsnmpmibs.so helpers/.libs/libnetsnmphelpers.so ../snmplib/.libs/libnetsnmp.so -ldl -lz -lcrypto -lm  -Wl,--rpath -Wl,/usr/local/lib
../snmplib/.libs/libnetsnmp.so: the 'setlocale' function supports only C|POSIX locales
./.libs/libnetsnmpmibs.so: undefined reference to `setutxent'
./.libs/libnetsnmpmibs.so: undefined reference to `endutxent'
./.libs/libnetsnmpmibs.so: undefined reference to `getutxent'
collect2: ld returned 1 exit status
make[1]: *** [snmpd] Error 1
make[1]: Leaving directory `/usr/work/net-snmp-5.0.7/agent'
make: *** [subdirs] Error 1
----------------------------------------------------------------------------------------------


When I have tried to compile the  Net-SNMP-5.0.7 with uClibc-0.9.16.

# ./configure --disable-ipv6 \
--with-out-mib-modules="ucd_snmp ucd-snmp/disk ucd-snmp/diskio" \
--enable-shared --enable-internal-md5 --enable-mini-agent \
--with-mib-modules="host examples/example examples/data_set"
# make

Below error messages are given:
..............
gcc -I../../include -I../../include -I. -I../.. -I. -I./../.. -I./../../snmplib -I./.. -I.. -I/usr/include/rpm -g -O2 -Dlinux -c host/hr_system.c   -fPIC -DPIC -o host/.libs/hr_system.lo
host/hr_system.c:26: utmpx.h: No such file or directory
make[2]: *** [host/hr_system.lo] Error 1
make[2]: Leaving directory `/usr/work/net-snmp-5.0.7/agent/mibgroup'
make[1]: *** [subdirs] Error 1
make[1]: Leaving directory `/usr/work/net-snmp-5.0.7/agent'
make: *** [subdirs] Error 1


How to solve this problem?


-- 
Best regards,
 Valera                            mailto:valeriy at levsha.ru

===8<===========End of original message text===========



-- 
Best regards,
 Valera                            mailto:valeriy at levsha.ru





More information about the uClibc mailing list