Hello everybody,

Iam a newbie to linux and I recently downloaded net-snmp, Iam getting errors
when i try cross compiling net-snmp-5.5 for my target platform having xscale
big endian architecture.

I configure using the below configure options, which gives me no errors
*./configure --host=xscale --with-cc=xscale_be-gcc
--with-linkcc=xscale_be-ld --with-ar=xscale_be-ar --with-endianness=big *
**
After configuring, when i do a make, I get the below errors:

/bin/sh ../../libtool  --mode=compile xscale_be-gcc -I../../include -I.
-I../../agent -I../../agent/mibgroup -I../../snmplib   -g -O2 -Unone
-Dnone=none  -c -o mibII/at.lo mibII/at.c
libtool: compile:  xscale_be-gcc -I../../include -I. -I../../agent
-I../../agent/mibgroup -I../../snmplib -g -O2 -Unone -Dnone=none -c
mibII/at.c -o mibII/at.o
mibII/at.c: In function `ARP_Scan_Next':
mibII/at.c:736: error: `ifIndex' undeclared (first use in this function)
mibII/at.c:736: error: (Each undeclared identifier is reported only once
mibII/at.c:736: error: for each function it appears in.)
make[2]: *** [mibII/at.lo] Error 1
make[2]: Leaving directory
`/home/queenie/Linux_NMS/net-snmp-5.5/agent/mibgroup'
make[1]: *** [subdirs] Error 1
make[1]: Leaving directory `/home/queenie/Linux_NMS/net-snmp-5.5/agent'
make: *** [subdirs] Error 1
What could be the problem? any suggestions for solutions???
I tried "make snmptrapd" but again i get below error
make[1]: Entering directory `/home/queenie/Linux_NMS/net-snmp-5.5/snmplib'
make[1]: Leaving directory `/home/queenie/Linux_NMS/net-snmp-5.5/snmplib'
make[1]: Entering directory `/home/queenie/Linux_NMS/net-snmp-5.5/agent'
make[1]: Nothing to be done for `libs'.
make[1]: Leaving directory `/home/queenie/Linux_NMS/net-snmp-5.5/agent'
make[1]: Entering directory `/home/queenie/Linux_NMS/net-snmp-5.5/apps'
/bin/sh ../libtool  --mode=compile xscale_be-gcc -I../include -I. -I../agent
-I../agent/helpers -I../agent/mibgroup -I../snmplib   -g -O2 -Unone
-Dnone=none  -c -o snmptrapd.lo snmptrapd.c
libtool: compile:  xscale_be-gcc -I../include -I. -I../agent
-I../agent/helpers -I../agent/mibgroup -I../snmplib -g -O2 -Unone
-Dnone=none -c snmptrapd.c -o snmptrapd.o
make[1]: *** No rule to make target `../agent/libnetsnmpmibs.la', needed by
`snmptrapd'.  Stop.
make[1]: Leaving directory `/home/queenie/Linux_NMS/net-snmp-5.5/apps'
make: *** [snmptrapd] Error 2

Surprisingly when i configure using below options

*./configure --host=xscale --with-cc=xscale_be-gcc
--with-linkcc=xscale_be-ld --with-ar=xscale_be-ar --with-endianness=big
--disable-agent --disable-applications*
and then do a make or make snmptrapd.... i get no errors. (both
*--disable-agent
--disable-applications* should be disabled)

Any clue?? Please help!!
------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
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/listinfo/net-snmp-users

Reply via email to