busybox1.01 about 'route' and 'netstat'

Rob Landley rob at landley.net
Fri Sep 16 03:16:24 UTC 2005


On Thursday 15 September 2005 20:55, Ðñ ÖÜ wrote:
> hi,
>
> i receive errors when i select route and netstat options in menuconfig. My
> arm-linux-gcc is 2.95.3.
>
> ========================================================
> In file included from
> /usr/local/arm/2.95.3/lib/gcc-lib/arm-linux/2.95.3/../../../../arm-linux/in
>clude/netdb.h:38, from
> /home/raptor/arm-project/edukit/sysapps/busybox-1.01/include/libbb.h:36,
>                  from
> /home/raptor/arm-project/edukit/sysapps/busybox-1.01/include/busybox.h:54,
>                  from
> /home/raptor/arm-project/edukit/sysapps/busybox-1.01/networking/route.c:44:
> /usr/local/arm/2.95.3/lib/gcc-lib/arm-linux/2.95.3/../../../../arm-linux/in
>clude/bits/siginfo.h:34: redefinition of `union sigval'

Okay, checking my source code:

landley at driftwood:~/busybox/busybox$ find . -name "*.h" | xargs grep sigval
landley at driftwood:~/busybox/busybox$  

None of our .h files include the string "sigval", so we can't be defining it 
twice.  The problem has to be the headers in your build environment.  I'd 
guess they don't have the standard #ifndef/#define/#endif guards around them 
to prevent bad things from happening when they're included twice.  (Which, 
since header files include other header files, is unavoidable.  Hence the 
invention of the guards over 30 years ago.)

I.E. This is not busybox's problem.  Your build environment is defective.  (We 
may be other problems, but since they occurred after the first one in your 
list we can't tell due to the fallout and shrapnel...)

Rob




More information about the busybox mailing list