RE: Compilation error

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 > ...


Go Back   Usenet Forums > Networking and Network Related > SNMP Users

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 05-30-2008
Mike Ayers
 
Posts: n/a
Default RE: Compilation error


> 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

Reply With Quote
  #2 (permalink)  
Old 06-02-2008
Dave Shield
 
Posts: n/a
Default Re: Compilation error

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

Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 12:15 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0