[BusyBox] trouble with route.c

stephan knabe skn at sysgo.de
Tue Oct 2 06:31:16 UTC 2001


hello,
i have tried to build the bb v0.60.1 with route. i used a
cross-toolchain for arm-linux (gcc-2.95.3, binutils-2.11.2 and
glibc-2.2.4 built with linux-kernel sources 2.4.8-ac12-rmk2-np1 ).

i was changing the Makefile for cross-compiling and it worked. now i
activated #define BB_ROUTE in Config.h and got some warnings (that seems
to be normal to me) and tons of error messages like these (i send only a
few because i think it are too many for a first post):


arm-linux-gcc -Wall -Wshadow -Os -fomit-frame-pointer -D_GNU_SOURCE 
-DBB_VER='"0.60.1"' -DBB_BT='"2001.10.02-12:27+0000"'  -I.  -c route.c
-o route.o
In file included from
/home/skn/arm2/lib/gcc-lib/arm-linux/2.95.3/../../../../arm-linux/sys-include/linux/sched.h:77,
                 from `SIGEV_THREAD' redefined

...

/home/skn/arm2/lib/gcc-lib/arm-linux/2.95.3/../../../../arm-linux/sys-include/asm/siginfo.h:194:
warning: this is the location of the previous definition
In file included from
/home/skn/arm2/lib/gcc-lib/arm-linux/2.95.3/../../../../arm-linux/sys-include/net/route.h:28,
                 from route.c:27:
/home/skn/arm2/lib/gcc-lib/arm-linux/2.95.3/../../../../arm-linux/sys-include/net/dst.h:30:
parse error before `atomic_t'
/home/skn/arm2/lib/gcc-lib/arm-linux/2.95.3/../../../../arm-linux/sys-include/net/dst.h:30:
warning: no semicolon at end of struct or union
/home/skn/arm2/lib/gcc-lib/arm-linux/2.95.3/../../../../arm-linux/sys-include/net/dst.h:67:
parse error before `}'

...

In file included from route.c:27:
/home/skn/arm2/lib/gcc-lib/arm-linux/2.95.3/../../../../arm-linux/sys-include/net/route.h:
At top level:
/home/skn/arm2/lib/gcc-lib/arm-linux/2.95.3/../../../../arm-linux/sys-include/net/route.h:61:
field `dst' has incomplete type
/home/skn/arm2/lib/gcc-lib/arm-linux/2.95.3/../../../../arm-linux/sys-include/net/route.h:114:
parse error before `old_gw'
/home/skn/arm2/lib/gcc-lib/arm-linux/2.95.3/../../../../arm-linux/sys-include/net/route.h:119:
parse error before `u32'
/home/skn/arm2/lib/gcc-lib/arm-linux/2.95.3/../../../../arm-linux/sys-include/net/route.h:120:
warning: `struct iphdr' declared inside parameter list
/home/skn/arm2/lib/gcc-lib/arm-linux/2.95.3/../../../../arm-linux/sys-include/net/route.h:120:
warning: its scope is only this definition or declaration, which is
probably not what you want.
/home/skn/arm2/lib/gcc-lib/arm-linux/2.95.3/../../../../arm-linux/sys-include/net/route.h:124:
parse error before `addr'
/home/skn/arm2/lib/gcc-lib/arm-linux/2.95.3/../../../../arm-linux/sys-include/net/route.h:127:
parse error before `*'
/home/skn/arm2/lib/gcc-lib/arm-linux/2.95.3/../../../../arm-linux/sys-include/net/route.h:128:
warning: 

...

make: *** [route.o] Error 1   




what could have gone wrong there?
had anybody else this problem?
any ideas or tips?

thanks in advance
stephan knabe





More information about the busybox mailing list