2010-05-13 08:25:59     /net-snmp-5.2.1/agent/mibgroup/mibII/at.c:705: error: 'ifIndex' undeclared

Document created by Aaronwu Employee on Aug 21, 2013
Version 1Show Document
  • View in full screen mode

2010-05-13 08:25:59     /net-snmp-5.2.1/agent/mibgroup/mibII/at.c:705: error: 'ifIndex' undeclared

zhang zhihua (CHINA)

Message: 89369   

 

大家好,我想在linux-2.6.23里加入net-snmp-5.2.1,配置好内核后执行make进行编译,但是却出现如下错误,试了很多办法都没有解决,是我的配置有问题,还是缺少lib库,还是其他什么问题,请大家帮忙出点主意,谢谢!

 

bfin-uclinux-gcc -pipe -Wall -g -O2 -mcpu=bf518-0.0 -I../../include -I../../../net-snmp-5.2.1/include -I. -I../../agent -I../../../net-snmp-5.2.1/agent -I../../agent/mibgroup -I../../../net-snmp-5.2.1/agent/mibgroup -I../../snmplib -I../../../net-snmp-5.2.1/snmplib -DEMBED -D__uClinux__ -I/home/uClinux-dist -mcpu=bf518-0.0 -pipe -Wall -g -O2 -mcpu=bf518-0.0 -Duclinux -c ../../../net-snmp-5.2.1/agent/mibgroup/mibII/at.c -o mibII/at.o

../../../net-snmp-5.2.1/agent/mibgroup/mibII/at.c: In function 'ARP_Scan_Next':

../../../net-snmp-5.2.1/agent/mibgroup/mibII/at.c:705: error: 'ifIndex' undeclared (first use in this function)

../../../net-snmp-5.2.1/agent/mibgroup/mibII/at.c:705: error: (Each undeclared identifier is reported only once

../../../net-snmp-5.2.1/agent/mibgroup/mibII/at.c:705: error: for each function it appears in.)

make[6]: *** [mibII/at.lo] Error 1

make[6]: Leaving directory `/home/uClinux-dist/user/net-snmp/build/agent/mibgroup'

make[5]: *** [subdirs] Error 1

make[5]: Leaving directory `/home/uClinux-dist/user/net-snmp/build/agent'

make[4]: *** [subdirs] Error 1

make[4]: Leaving directory `/home/uClinux-dist/user/net-snmp/build'

make[3]: *** [all] Error 2

make[3]: Leaving directory `/home/uClinux-dist/user/net-snmp'

make[2]: *** [net-snmp] Error 2

make[2]: Leaving directory `/home/uClinux-dist/user'

make[1]: *** [all] Error 2

make[1]: Leaving directory `/home/uClinux-dist/user'

make: *** [subdirs] Error 1

TranslateQuoteReplyEditDelete

 

 

2010-05-19 17:11:42     Re: /net-snmp-5.2.1/agent/mibgroup/mibII/at.c:705: error: 'ifIndex' undeclared

Mike Frysinger (UNITED STATES)

Message: 89561   

 

net-snmp builds fine for me.   you need to post the exact config settings you're using.

QuoteReplyEditDelete

 

 

2010-05-30 23:07:38     Re: /net-snmp-5.2.1/agent/mibgroup/mibII/at.c:705: error: 'ifIndex' undeclared

zhang zhihua (CHINA)

Message: 90007   

 

./configure --prefix=/usr/local/net-snmp-5.2.1 --enable-mfd-rewrites --with-default-snmp-version="2" --with-sys-contact="Aaron,E_mail:zhangzhh@naritech.cn" --with-sys-location="China" --with-logfile="/var/log/snmpd.log" --with-persistent-directory="/var/net-snmp-5.2.1" --enable-mini-agent --disable-debugging  --includedir="/home/manu/uClinux-dist/uClibc/include" --without-kmem-usage --with-transports="UDP"  --with-mib-modules="mibII snmpv3mibs notification target" --with-out-mib-modules="ucd<wbr></wbr>_snmp agent_mibs agentx utilities"

Attachments

    Outcomes