This is a discussion on RE: Compilation error within the SNMP Users forums, part of the Networking and Network Related category; > From: net-snmp-users-bounces@lists.sourceforge.net > [mailto:net-snmp-users-bounces@lists.sourceforge.net] On > ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
> From: net-snmp-users-bounces@lists.sourceforge.net > [mailto:net-snmp-users-bounces@lists.sourceforge.net] On > Behalf Of Rabindra Paikaray > I am new to this group and started using net-snmp recently . > I am configuring it for a cross-compiler , but while running make > I am getting an error like : > > mibII/at.c: In function `ARP_Scan_Next': > mibII/at.c:729: error: `ifIndex' undeclared (first use in > this function) This is weird - you seem to be building the address translation table, but not the inerfaces table. That just won't work. > my configuration option is like > ./configure --quiet --prefix=/tmp/snmp > --sbindir=/home/dlink/DIR-300/dir300_v1.03/rootfs/sbin/ > --host=mipsel --with-cc=mips-linux-gcc > --with-ar=mips-linux-ar --with-endianness=big > --with-cflags="-Os -mtune=mips32 -mips32 -pipe > -DCAN_USE_SYSCTL=1 -Dlinux" --disable-debugging > --disable-privacy--without-opaque-special-types > --with-persistent-directory=/tmp/snmp-persist > --with-default-snmp-version=3 --with-sys-contact=root > --with-sys-location=Unknown --with-logfile=/dev/null > --with-out-transports=UDPIPv6,TCPIPv6,AAL5PVC,IPX,TCP,Unix > --enable-mfd-rewrites --enable-shared=no --enable-static > --with-gnu-ld --enable-internal-md5 > --with-copy-persistent-files=no --without-openssl > -sysconfdir=/tmp > --with-mib-modules=mibII,host,mibII/ip,mibII/tcp,mibII/udp,mib II/icmp,mibII/var_route,mibII/kernel_linux,ucd_snmp,notification,target,disman/event --> with-out-mib-modules=snmpv3mibs,agent_mips,agentx,utilities > --disable-ipv6 --with-defaults > --without-efence--without-rsaref --without-kmem-usage > --without-rpm --without-dmalloc Can someone help with this, please? I can't remember how to get the listing of all possible mib modules. Also, why doen't including "mibII" include all mib2 modules? Thanks, Mike ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Net-snmp-users mailing list Net-snmp-users@lists.sourceforge.net Please see the following page to unsubscribe or change other options: https://lists.sourceforge.net/lists/...net-snmp-users |
|
|||
|
2008/5/30 Mike Ayers <mike_ayers@tvworks.com>:
> On Behalf Of Rabindra Paikaray > >> I am new to this group and started using net-snmp recently . >> I am configuring it for a cross-compiler , but while running make >> I am getting an error like : >> >> mibII/at.c: In function `ARP_Scan_Next': >> mibII/at.c:729: error: `ifIndex' undeclared (first use in >> this function) > > This is weird - you seem to be building the address translation table, > but not the inerfaces table. That just won't work. No - that's not it. If you check the code in question, 'ifIndex' is one of the parameters to the ARP_Scan_Next routine. But only if ARP_SCAN_FOUR_ARGUMENTS is defined. I suspect that something about the cross-compilation environment is not picking up the need for this particular token. You may need to force the use of this definition. >> my configuration option is like >> ./configure --quiet --prefix=/tmp/snmp.... >> --with-mib-modules=mibII,host,mibII/ip,mibII/tcp,mibII/udp, >> mibII/icmp,mibII/var_route,mibII/kernel_linux,ucd_snmp,notification, >> target,disman/event >> --with-out-mib-modules=snmpv3mibs,agent_mips,agentx,utilities >> --disable-ipv6 --with-defaults >> --without-efence--without-rsaref --without-kmem-usage >> --without-rpm --without-dmalloc > > Can someone help with this, please? I can't remember how to get the listing > of all possible mib modules. I'm not sure there is a simple way. Other than 'configure --help' and/or looking at the README.agent-mibs file. > Also, why doen't including "mibII" include all mib2 modules? It should do (unless it's picking up the rewrites instead) I wouldn't have thought it necessary to list these individually. Dave ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Net-snmp-users mailing list Net-snmp-users@lists.sourceforge.net Please see the following page to unsubscribe or change other options: https://lists.sourceforge.net/lists/...net-snmp-users |
![]() |
| Thread Tools | |
| Display Modes | |
|
|