Hi all
I'm looking for some information in crosscompiling NetSnmp for Arm
I've seen that there is already a topic about this subject but i
haven't found any response in it

Actually, i'm using prebuild toolchain 2.95.3 and 3.0 and i've some
problems in building
configure step seems to run well but not "make" step

i've tried two command lines:
[EMAIL PROTECTED] net-snmp-5.2.1]# ./configure --target=arm-linux
--with-cc=arm-linux-gcc --with-endianness=big --host=arm --build=i686
--with-install-prefix=/nfsroot/usr/local --disable-manuals
///it use 3.0
and i've got those errors
arm-linux-gcc -I../../include -I. -I../../agent -I../../agent/mibgroup
-I../../snmplib -g -O2 -Dlinux -c mibII/at.c -o mibII/at.o
In file included from /usr/local/arm/3.0/arm-linux/sys-include/net/route.h:27,
                from mibII/at.c:85:
/usr/local/arm/3.0/arm-linux/sys-include/net/dst.h:30: parse error
before "atomic_t"
/usr/local/arm/3.0/arm-linux/sys-include/net/dst.h:67: parse error
before '}' token
/usr/local/arm/3.0/arm-linux/sys-include/net/dst.h:85: parse error
before "atomic_t"
/usr/local/arm/3.0/arm-linux/sys-include/net/dst.h:87: parse error
before '}' token
In file included from /usr/local/arm/3.0/arm-linux/sys-include/linux/sched.h:18,
                from
/usr/local/arm/3.0/arm-linux/sys-include/net/inetpeer.h:14,
                from /usr/local/arm/3.0/arm-linux/sys-include/net/route.h:28,
                from mibII/at.c:85:
/usr/local/arm/3.0/arm-linux/sys-include/asm/semaphore.h:18: parse
error before "wait_queue_head_t"
/usr/local/arm/3.0/arm-linux/sys-include/asm/semaphore.h: In function
`sema_init':
/usr/local/arm/3.0/arm-linux/sys-include/asm/semaphore.h:47:
dereferencing pointer to incomplete type
/usr/local/arm/3.0/arm-linux/sys-include/asm/semaphore.h:48:
dereferencing pointer to incomplete type
/usr/local/arm/3.0/arm-linux/sys-include/asm/semaphore.h:49:
dereferencing pointer to incomplete type
In file included from /usr/local/arm/3.0/arm-linux/sys-include/linux/signal.h:4,
                from /usr/local/arm/3.0/arm-linux/sys-include/linux/sched.h:26,
                from
/usr/local/arm/3.0/arm-linux/sys-include/net/inetpeer.h:14,
                from /usr/local/arm/3.0/arm-linux/sys-include/net/route.h:28,
                from mibII/at.c:85:
/usr/local/arm/3.0/arm-linux/sys-include/asm/signal.h: At top level:
/usr/local/arm/3.0/arm-linux/sys-include/asm/signal.h:27: conflicting
types for `sigset_t'
/usr/local/arm/3.0/arm-linux/include/sys/select.h:38: previous
declaration of `sigset_t'
In file included from /usr/local/arm/3.0/arm-linux/sys-include/linux/sched.h:77,
                from
/usr/local/arm/3.0/arm-linux/sys-include/net/inetpeer.h:14,
                from /usr/local/arm/3.0/arm-linux/sys-include/net/route.h:28,
                from mibII/at.c:85:
/usr/local/arm/3.0/arm-linux/sys-include/linux/time.h:9: redefinition
of `struct timespec'
/usr/local/arm/3.0/arm-linux/sys-include/linux/time.h:88: redefinition
of `struct timeval'
/usr/local/arm/3.0/arm-linux/sys-include/linux/time.h:93: redefinition
of `struct timezone'
/usr/local/arm/3.0/arm-linux/sys-include/linux/time.h:121:
redefinition of `struct itimerspec'
/usr/local/arm/3.0/arm-linux/sys-include/linux/time.h:126:
redefinition of `struct itimerval'
In file included from /usr/local/arm/3.0/arm-linux/sys-include/linux/sched.h:80,
                from
/usr/local/arm/3.0/arm-linux/sys-include/net/inetpeer.h:14,
                from /usr/local/arm/3.0/arm-linux/sys-include/net/route.h:28,
                from mibII/at.c:85:
/usr/local/arm/3.0/arm-linux/sys-include/linux/timer.h:17: field
`list' has incomplete type
/usr/local/arm/3.0/arm-linux/sys-include/linux/timer.h:21: confused by
earlier errors, bailing out
make[2]: *** [mibII/at.lo] Erreur 1
make[2]: Leaving directory `/home/stage/dev/net-snmp-5.2.1/agent/mibgroup'
make[1]: *** [subdirs] Erreur 1
make[1]: Leaving directory `/home/stage/dev/net-snmp-5.2.1/agent'
make: *** [subdirs] Erreur 1

so i've tried to use the 2.95.3 toolchain and i've got an other errors
with a similar command line
[EMAIL PROTECTED] net-snmp-5.2.1]# ./configure --target=arm-linux
--with-cc=/usr/local/arm/2.95.3/bin/arm-linux-gcc
--with-endianness=big --host=arm --build=i686
--with-install-prefix=/nfsroot/usr/local --disable-manuals
///
mibII/at.c: In function `var_atEntry':
mibII/at.c:207: `get_current' declared as function returning an array
mibII/at.c:207: conflicting types for `get_current'
/usr/local/arm/2.95.3/lib/gcc-lib/arm-linux/2.95.3/../../../../arm-linux/sys-include/asm/current.h:7:
previous declaration of `get_current'
mibII/at.c:223: subscripted value is neither array nor pointer
mibII/at.c:236: subscripted value is neither array nor pointer
mibII/at.c:238: subscripted value is neither array nor pointer
mibII/at.c:239: subscripted value is neither array nor pointer
mibII/at.c:240: warning: assignment makes pointer from integer without a cast
mibII/at.c:242: warning: assignment makes pointer from integer without a cast
mibII/at.c:263: warning: passing arg 1 of `snmp_oid_compare' makes
pointer from integer without a cast
mibII/at.c:276: warning: passing arg 1 of `snmp_oid_compare' makes
pointer from integer without a cast
mibII/at.c:280: warning: passing arg 1 of `snmp_oid_compare' makes
pointer from integer without a cast
make[2]: *** [mibII/at.lo] Erreur 1
make[2]: Leaving directory `/home/stage/dev/net-snmp-5.2.1/agent/mibgroup'
make[1]: *** [subdirs] Erreur 1
make[1]: Leaving directory `/home/stage/dev/net-snmp-5.2.1/agent'
make: *** [subdirs] Erreur 1

but by the way, i've noticed that in configure step there is a warning
to report:
configure: WARNING: net/route.h: present but cannot be compiled
configure: WARNING: net/route.h:     check for missing prerequisite headers?
configure: WARNING: net/route.h: see the Autoconf documentation
configure: WARNING: net/route.h:     section "Present But Cannot Be Compiled"
configure: WARNING: net/route.h: proceeding with the preprocessor's result
configure: WARNING: net/route.h: in the future, the compiler will take
precedence
configure: WARNING:     ##
---------------------------------------------------- ##
configure: WARNING:     ## Report this to
[email protected] ##
configure: WARNING:     ##
---------------------------------------------------- ##

so if anybody have an idea on how to resolve the compiling problem....

with regards


Fabrice n' Frederic


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_ide95&alloc_id396&op=click
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to