[BusyBox] compile error with route.c

Joe Welfeld jwelfeld at netfabric.net
Mon May 3 14:50:49 UTC 2004


Hello,

Every time I try to add build with route.c added to my build I get 
errors.  (see below) I've included a "gcc" line that compiles OK and 
then the one for route.c,  I was wondering if my build like looks ok or 
am I missing some includes ?   If route is not included then I get a 
good build. I'm just getting back into Linux after being away for quite 
afew years so any help or pointers would be greatlt appreciated.  thanks,

also wondering about my PATH
PATH=/usr/kerberos/bin:/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:/usr/local/arm/2.95.3/bin:/home/jwelfeld/bin

Joe Welfeld

arm-linux-gcc -I./include -Wall -Wstrict-prototypes -Wshadow -Os 
-fstrict-aliasing -fomit-frame-pointer -D_GNU_SOURCE -DNDEBUG     -c -o 
coreutils/ls.o coreutils/ls.c


arm-linux-gcc -I./include -Wall -Wstrict-prototypes -Wshadow -Os 
-fstrict-aliasing -fomit-frame-pointer -D_GNU_SOURCE -DNDEBUG     -c -o 
networking/route.o networking/route.c
In file included from include/linux/fs.h:12,
                 from include/linux/capability.h:17,
                 from include/linux/binfmts.h:5,
                 from include/linux/sched.h:9,
                 from 
/usr/local/arm/2.95.3/lib/gcc-lib/arm-linux/2.95.3/../../../../arm-linux/sys-include/net/inetpeer.h:14,
                 from 
/usr/local/arm/2.95.3/lib/gcc-lib/arm-linux/2.95.3/../../../../arm-linux/sys-include/net/route.h:28,
                 from networking/route.c:42:
include/linux/wait.h:4: warning: `WNOHANG' redefined
/usr/local/arm/2.95.3/lib/gcc-lib/arm-linux/2.95.3/../../../../arm-linux/include/bits/waitflags.h:26: 
warning: this is the location of the previous definition
include/linux/wait.h:5: warning: `WUNTRACED' redefined
/usr/local/arm/2.95.3/lib/gcc-lib/arm-linux/2.95.3/../../../../arm-linux/include/bits/waitflags.h:27: 
warning: this is the location of the previous definition
In file included from include/linux/sched.h:80,
                 from 
/usr/local/arm/2.95.3/lib/gcc-lib/arm-linux/2.95.3/../../../../arm-linux/sys-include/net/inetpeer.h:14,
                 from 
/usr/local/arm/2.95.3/lib/gcc-lib/arm-linux/2.95.3/../../../../arm-linux/sys-include/net/route.h:28,
                 from networking/route.c:42:
include/linux/time.h:106: warning: `FD_SET' redefined
/usr/local/arm/2.95.3/lib/gcc-lib/arm-linux/2.95.3/../../../../arm-linux/include/sys/select.h:83: 
warning: this is the location of the previous definition
include/linux/time.h:107: warning: `FD_CLR' redefined
/usr/local/arm/2.95.3/lib/gcc-lib/arm-linux/2.95.3/../../../../arm-linux/include/sys/select.h:84: 
warning: this is the location of the previous definition
include/linux/time.h:108: warning: `FD_ISSET' redefined
/usr/local/arm/2.95.3/lib/gcc-lib/arm-linux/2.95.3/../../../../arm-linux/include/sys/select.h:85: 
warning: this is the location of the previous definition
include/linux/time.h:109: warning: `FD_ZERO' redefined
/usr/local/arm/2.95.3/lib/gcc-lib/arm-linux/2.95.3/../../../../arm-linux/include/sys/select.h:86: 
warning: this is the location of the previous definition
In file included from include/linux/route.h:26,
                 from 
/usr/local/arm/2.95.3/lib/gcc-lib/arm-linux/2.95.3/../../../../arm-linux/sys-include/net/route.h:31,
                 from networking/route.c:42:
include/linux/if.h:24: linux/hdlc/ioctl.h: No such file or directory
In file included from networking/route.c:42:
/usr/local/arm/2.95.3/lib/gcc-lib/arm-linux/2.95.3/../../../../arm-linux/sys-include/net/route.h:34: 
warning: #warning This file is not supposed to be used outside of kernel.
In file included from networking/route.c:43:
/usr/local/arm/2.95.3/lib/gcc-lib/arm-linux/2.95.3/../../../../arm-linux/include/net/if.h:46: 
warning: `IFF_UP' redefined
include/linux/if.h:27: warning: this is the location of the previous 
definition
/usr/local/arm/2.95.3/lib/gcc-lib/arm-linux/2.95.3/../../../../arm-linux/include/net/if.h:48: 
warning: `IFF_BROADCAST' redefined
include/linux/if.h:28: warning: this is the location of the previous 
definition
/usr/local/arm/2.95.3/lib/gcc-lib/arm-linux/2.95.3/../../../../arm-linux/include/net/if.h:50: 
warning: `IFF_DEBUG' redefined
include/linux/if.h:29: warning: this is the location of the previous 
definition
/usr/local/arm/2.95.3/lib/gcc-lib/arm-linux/2.95.3/../../../../arm-linux/include/net/if.h:52: 
warning: `IFF_LOOPBACK' redefined
include/linux/if.h:30: warning: this is the location of the previous 
definition
/usr/local/arm/2.95.3/lib/gcc-lib/arm-linux/2.95.3/../../../../arm-linux/include/net/if.h:54: 
warning: `IFF_POINTOPOINT' redefined
include/linux/if.h:31: warning: this is the location of the previous 
definition
/usr/local/arm/2.95.3/lib/gcc-lib/arm-linux/2.95.3/../../../../arm-linux/include/net/if.h:56: 
warning: `IFF_NOTRAILERS' redefined
include/linux/if.h:32: warning: this is the location of the previous 
definition
/usr/local/arm/2.95.3/lib/gcc-lib/arm-linux/2.95.3/../../../../arm-linux/include/net/if.h:58: 
warning: `IFF_RUNNING' redefined
include/linux/if.h:33: warning: this is the location of the previous 
definition
/usr/local/arm/2.95.3/lib/gcc-lib/arm-linux/2.95.3/../../../../arm-linux/include/net/if.h:60: 
warning: `IFF_NOARP' redefined
include/linux/if.h:34: warning: this is the location of the previous 
definition
/usr/local/arm/2.95.3/lib/gcc-lib/arm-linux/2.95.3/../../../../arm-linux/include/net/if.h:62: 
warning: `IFF_PROMISC' redefined
include/linux/if.h:35: warning: this is the location of the previous 
definition
/usr/local/arm/2.95.3/lib/gcc-lib/arm-linux/2.95.3/../../../../arm-linux/include/net/if.h:66: 
warning: `IFF_ALLMULTI' redefined
include/linux/if.h:36: warning: this is the location of the previous 
definition
/usr/local/arm/2.95.3/lib/gcc-lib/arm-linux/2.95.3/../../../../arm-linux/include/net/if.h:69: 
warning: `IFF_MASTER' redefined
include/linux/if.h:38: warning: this is the location of the previous 
definition
/usr/local/arm/2.95.3/lib/gcc-lib/arm-linux/2.95.3/../../../../arm-linux/include/net/if.h:71: 
warning: `IFF_SLAVE' redefined
include/linux/if.h:39: warning: this is the location of the previous 
definition
/usr/local/arm/2.95.3/lib/gcc-lib/arm-linux/2.95.3/../../../../arm-linux/include/net/if.h:74: 
warning: `IFF_MULTICAST' redefined
include/linux/if.h:41: warning: this is the location of the previous 
definition
/usr/local/arm/2.95.3/lib/gcc-lib/arm-linux/2.95.3/../../../../arm-linux/include/net/if.h:77: 
warning: `IFF_PORTSEL' redefined
include/linux/if.h:45: warning: this is the location of the previous 
definition
/usr/local/arm/2.95.3/lib/gcc-lib/arm-linux/2.95.3/../../../../arm-linux/include/net/if.h:79: 
warning: `IFF_AUTOMEDIA' redefined
include/linux/if.h:46: warning: this is the location of the previous 
definition
/usr/local/arm/2.95.3/lib/gcc-lib/arm-linux/2.95.3/../../../../arm-linux/include/net/if.h:128: 
warning: `IFNAMSIZ' redefined
include/linux/if.h:123: warning: this is the location of the previous 
definition
In file included from 
/usr/local/arm/2.95.3/lib/gcc-lib/arm-linux/2.95.3/../../../../arm-linux/include/netdb.h:38,
                 from include/libbb.h:36,
                 from include/busybox.h:54,
                 from networking/route.c:44:
/usr/local/arm/2.95.3/lib/gcc-lib/arm-linux/2.95.3/../../../../arm-linux/include/bits/siginfo.h:299: 
warning: `SIGEV_SIGNAL' redefined
/usr/local/arm/2.95.3/lib/gcc-lib/arm-linux/2.95.3/../../../../arm-linux/sys-include/asm/siginfo.h:192: 
warning: this is the location of the previous definition
/usr/local/arm/2.95.3/lib/gcc-lib/arm-linux/2.95.3/../../../../arm-linux/include/bits/siginfo.h:301: 
warning: `SIGEV_NONE' redefined
/usr/local/arm/2.95.3/lib/gcc-lib/arm-linux/2.95.3/../../../../arm-linux/sys-include/asm/siginfo.h:193: 
warning: this is the location of the previous definition
/usr/local/arm/2.95.3/lib/gcc-lib/arm-linux/2.95.3/../../../../arm-linux/include/bits/siginfo.h:303: 
warning: `SIGEV_THREAD' redefined
/usr/local/arm/2.95.3/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
make: *** [networking/route.o] Error 1
[jwelfeld at suade busybox-1.00-pre10]$







More information about the busybox mailing list