Re: Compilation error

"Dave Shield" <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
2008/5/30 Mike Ayers <[email protected]>:
> 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
[email protected]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.