2010-05-31 02:09:33     a error about the net-snmp

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

2010-05-31 02:09:33     a error about the net-snmp

zhang zhihua (CHINA)

Message: 90008   

 

I want to add the net-snmp-5.2.1 to my uClinux,frist,I config the setting like this:

 

./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" \

 

--target=bfin \

 

--host=bfin-uclinux \

 

--with-ar=bfin-uclinux-ar\

 

--enable-mini-agent \

 

--disable-debugging \

 

--includedir="/home/uClinux-dist/user/net-snmp/net-snmp-5.2.1/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" \

 

--with-endianness=little

 

but it find a error like this ,hoe to solve it?

 

making all in /home/uClinux-dist/user/net-snmp/net-snmp-5.2.1/snmplib

make[1]: Entering directory `/home/uClinux-dist/user/net-snmp/net-snmp-5.2.1/snmplib'

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

making all in /home/uClinux-dist/user/net-snmp/net-snmp-5.2.1/agent

make[1]: Entering directory `/home/uClinux-dist/user/net-snmp/net-snmp-5.2.1/agent'

making all in /home/uClinux-dist/user/net-snmp/net-snmp-5.2.1/agent/helpers

make[2]: Entering directory `/home/uClinux-dist/user/net-snmp/net-snmp-5.2.1/agent/helpers'

make[2]: Leaving directory `/home/uClinux-dist/user/net-snmp/net-snmp-5.2.1/agent/helpers'

making all in /home/uClinux-dist/user/net-snmp/net-snmp-5.2.1/agent/mibgroup

make[2]: Entering directory `/home/uClinux-dist/user/net-snmp/net-snmp-5.2.1/agent/mibgroup'

/bin/sh ../../libtool  --mode=compile bfin-uclinux-gcc -I../../include -I. -I../../agent -I../../agent/mibgroup -I../../snmplib   -g -O2 -Dnone  -c -o mibII/at.lo mibII/at.c

bfin-uclinux-gcc -I../../include -I. -I../../agent -I../../agent/mibgroup -I../../snmplib -g -O2 -Dnone -c mibII/at.c -o mibII/at.o

mibII/at.c: In function 'ARP_Scan_Next':

mibII/at.c:705: error: 'ifIndex' undeclared (first use in this function)

mibII/at.c:705: error: (Each undeclared identifier is reported only once

mibII/at.c:705: error: for each function it appears in.)

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

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

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

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

make: *** [subdirs] Error 1

TranslateQuoteReplyEditDelete

 

 

2010-05-31 07:12:02     Re: a error about the net-snmp

Mike Frysinger (UNITED STATES)

Message: 90016   

 

use the uclinux-dist build system to configure & compile net-snmp

QuoteReplyEditDelete

 

 

2010-05-31 20:33:21     Re: a error about the net-snmp

zhang zhihua (CHINA)

Message: 90025   

 

sorry,Mike,

 

    When I run the "make menuconfig",I config the setting like this :

 

[*] net-snmp                                                                                                                                 

 

[*]   Build mini agent                                                                                                                          

 

[*]   Build Applications                                                                                                                       

 

[*]     snmpdelta                                                                                                                             

 

[*]     snmpdf                                                                                                                          

 

[*]    snmpget                                                                                                                                                                                                                     

 

  [*]     snmpwalk                                                                                           

  [*]     snmpnetstat

 

but when I run "make" to compile ,it found the same error!

TranslateQuoteReplyEditDelete

 

 

2010-05-31 21:30:27     Re: a error about the net-snmp

zhang zhihua (CHINA)

Message: 90026   

 

Hi,Mike,

 

I can compile it ,but after make it,the filesystem (rootfs.jffs2) is too big,it was larger than 7MB,before add the net-snmp,it's only 2.1MB!I seletct the [*] Build static,but if don't select it,I can't compile it!

TranslateQuoteReplyEditDelete

 

 

2010-05-31 21:37:41     Re: a error about the net-snmp

zhang zhihua (CHINA)

Message: 90028   

 

romfs-inst.sh -e CONFIG_USER_MTDUTILS_UBIUTILS     build-606f38a2221648ca5c5fa292c9f71d2ddd59fa66/ubi-utils/ubirename /bin/ubirename

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

make[2]: Entering directory `/home/uClinux-dist/user/net-snmp'

romfs-inst.sh -e CONFIG_FMT_USE_FDPIC_ELF build/snmplib/.libs/libnetsnmp.so.5.2.1 /lib/libnetsnmp.so.5

romfs-inst.sh -e CONFIG_FMT_USE_FDPIC_ELF build/agent/.libs/libnetsnmpagent.so.5.2.1 /lib/libnetsnmpagent.so.5

romfs-inst.sh -e CONFIG_FMT_USE_FDPIC_ELF build/agent/.libs/libnetsnmpmibs.so.5.2.1 /lib/libnetsnmpmibs.so.5

romfs-inst.sh -e CONFIG_FMT_USE_FDPIC_ELF build/agent/helpers/.libs/libnetsnmphelpers.so.5.2.1 /lib/libnetsnmphelpers.so.5

romfs-inst.sh build/agent/.libs/snmpd /bin/snmpd

cp: cannot stat `build/agent/.libs/snmpd': No such file or directory

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

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

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

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

make: *** [romfs.subdirs] Error 1

TranslateQuoteReplyEditDelete

 

 

2010-06-15 18:52:05     Re: a error about the net-snmp

Mike Frysinger (UNITED STATES)

Message: 90330   

 

using that config and the 2009R1 branch, net-snmp builds fine for me for FLAT.

 

use `make bugreport` to get all the config files in your setup.

Attachments

    Outcomes