[BusyBox] problem building networking/route.c in pre8

Robert P. J. Day rpjday at mindspring.com
Wed Feb 25 14:40:17 UTC 2004


  after selecting "Networking Utilities" -> "route", and doing a build
using the recent ELDK 3.0 PPC toolchain on PP-1.00-pre8, i get the
following, which is clearly complaining about a parse error in an included
kernel header file (sorry for the verbosity, but i figured i'd better
provide a total context):



ppc_8xx-gcc -I./include -Wall -Wstrict-prototypes -Wshadow -Os
-fomit-frame-pointer -D_GNU_SOURCE -DNDEBUG
-I/home/rpjday/rdm/projects/TONTO/OS/2.4.22-pre8-ep/include -c -o
networking/route.o networking/route.c


In file included from 
/home/rpjday/rdm/projects/TONTO/OS/2.4.22-pre8-ep/include/net/route.h:28,
                 from networking/route.c:29:
/home/rpjday/rdm/projects/TONTO/OS/2.4.22-pre8-ep/include/net/dst.h:30: 
parse error before "atomic_t"
/home/rpjday/rdm/projects/TONTO/OS/2.4.22-pre8-ep/include/net/dst.h:30: 
warning: no semicolon at end of struct or union
/home/rpjday/rdm/projects/TONTO/OS/2.4.22-pre8-ep/include/net/dst.h:67: 
parse error before '}' token
/home/rpjday/rdm/projects/TONTO/OS/2.4.22-pre8-ep/include/net/dst.h:77: 
parse error before "__u32"
/home/rpjday/rdm/projects/TONTO/OS/2.4.22-pre8-ep/include/net/dst.h:77: 
warning: function declaration isn't a prototype
/home/rpjday/rdm/projects/TONTO/OS/2.4.22-pre8-ep/include/net/dst.h:85: 
parse error before "atomic_t"
/home/rpjday/rdm/projects/TONTO/OS/2.4.22-pre8-ep/include/net/dst.h:85: 
warning: no semicolon at end of struct or union
/home/rpjday/rdm/projects/TONTO/OS/2.4.22-pre8-ep/include/net/dst.h:86: 
warning: type defaults to `int' in declaration of `kmem_cachep'
/home/rpjday/rdm/projects/TONTO/OS/2.4.22-pre8-ep/include/net/dst.h:86: 
warning: data definition has no type or storage class
/home/rpjday/rdm/projects/TONTO/OS/2.4.22-pre8-ep/include/net/dst.h:87: 
parse error before '}' token
In file included from 
/home/rpjday/rdm/projects/TONTO/OS/2.4.22-pre8-ep/include/linux/signal.h:4,
                 from 
/home/rpjday/rdm/projects/TONTO/OS/2.4.22-pre8-ep/include/linux/sched.h:26,
                 from 
/home/rpjday/rdm/projects/TONTO/OS/2.4.22-pre8-ep/include/net/inetpeer.h:14,
                 from 
/home/rpjday/rdm/projects/TONTO/OS/2.4.22-pre8-ep/include/net/route.h:29,
                 from networking/route.c:29:
/home/rpjday/rdm/projects/TONTO/OS/2.4.22-pre8-ep/include/asm/signal.h:22: 
conflicting types for `sigset_t'
/usr/local/eldk3.0/ppc_8xx/usr/include/sys/select.h:38: previous 
declaration of `sigset_t'
In file included from 
/home/rpjday/rdm/projects/TONTO/OS/2.4.22-pre8-ep/include/linux/sched.h:80,
                 from 
/home/rpjday/rdm/projects/TONTO/OS/2.4.22-pre8-ep/include/net/inetpeer.h:14,
                 from 
/home/rpjday/rdm/projects/TONTO/OS/2.4.22-pre8-ep/include/net/route.h:29,
                 from networking/route.c:29:
/home/rpjday/rdm/projects/TONTO/OS/2.4.22-pre8-ep/include/linux/time.h:9: 
redefinition of `struct timespec'
/home/rpjday/rdm/projects/TONTO/OS/2.4.22-pre8-ep/include/linux/time.h:88: 
redefinition of `struct timeval'
In file included from 
/home/rpjday/rdm/projects/TONTO/OS/2.4.22-pre8-ep/include/linux/sched.h:80,
                 from 
/home/rpjday/rdm/projects/TONTO/OS/2.4.22-pre8-ep/include/net/inetpeer.h:14,
                 from 
/home/rpjday/rdm/projects/TONTO/OS/2.4.22-pre8-ep/include/net/route.h:29,
                 from networking/route.c:29:
/home/rpjday/rdm/projects/TONTO/OS/2.4.22-pre8-ep/include/linux/time.h:106:1: 
warning: "FD_SET" redefined
In file included from 
/usr/local/eldk3.0/ppc_8xx/usr/include/sys/types.h:216,
                 from networking/route.c:26:
/usr/local/eldk3.0/ppc_8xx/usr/include/sys/select.h:93:1: warning: this is 
the location of the previous definition
In file included from 
/home/rpjday/rdm/projects/TONTO/OS/2.4.22-pre8-ep/include/linux/sched.h:80,
                 from 
/home/rpjday/rdm/projects/TONTO/OS/2.4.22-pre8-ep/include/net/inetpeer.h:14,
                 from 
/home/rpjday/rdm/projects/TONTO/OS/2.4.22-pre8-ep/include/net/route.h:29,
                 from networking/route.c:29:
/home/rpjday/rdm/projects/TONTO/OS/2.4.22-pre8-ep/include/linux/time.h:107:1: 
warning: "FD_CLR" redefined
In file included from 
/usr/local/eldk3.0/ppc_8xx/usr/include/sys/types.h:216,
                 from networking/route.c:26:
/usr/local/eldk3.0/ppc_8xx/usr/include/sys/select.h:94:1: warning: this is 
the location of the previous definition
In file included from 
/home/rpjday/rdm/projects/TONTO/OS/2.4.22-pre8-ep/include/linux/sched.h:80,
                 from 
/home/rpjday/rdm/projects/TONTO/OS/2.4.22-pre8-ep/include/net/inetpeer.h:14,
                 from 
/home/rpjday/rdm/projects/TONTO/OS/2.4.22-pre8-ep/include/net/route.h:29,
                 from networking/route.c:29:
/home/rpjday/rdm/projects/TONTO/OS/2.4.22-pre8-ep/include/linux/time.h:108:1: 
warning: "FD_ISSET" redefined
In file included from 
/usr/local/eldk3.0/ppc_8xx/usr/include/sys/types.h:216,
                 from networking/route.c:26:
/usr/local/eldk3.0/ppc_8xx/usr/include/sys/select.h:95:1: warning: this is 
the location of the previous definition
In file included from 
/home/rpjday/rdm/projects/TONTO/OS/2.4.22-pre8-ep/include/linux/sched.h:80,
                 from 
/home/rpjday/rdm/projects/TONTO/OS/2.4.22-pre8-ep/include/net/inetpeer.h:14,
                 from 
/home/rpjday/rdm/projects/TONTO/OS/2.4.22-pre8-ep/include/net/route.h:29,
                 from networking/route.c:29:
/home/rpjday/rdm/projects/TONTO/OS/2.4.22-pre8-ep/include/linux/time.h:109:1: 
warning: "FD_ZERO" redefined
In file included from 
/usr/local/eldk3.0/ppc_8xx/usr/include/sys/types.h:216,
                 from networking/route.c:26:
/usr/local/eldk3.0/ppc_8xx/usr/include/sys/select.h:96:1: warning: this is 
the location of the previous definition
In file included from 
/home/rpjday/rdm/projects/TONTO/OS/2.4.22-pre8-ep/include/net/route.h:29,
                 from networking/route.c:29:
/home/rpjday/rdm/projects/TONTO/OS/2.4.22-pre8-ep/include/net/inetpeer.h: 
In function `inet_putpeer':
/home/rpjday/rdm/projects/TONTO/OS/2.4.22-pre8-ep/include/net/inetpeer.h:43: 
warning: implicit declaration of function `local_bh_disable'
/home/rpjday/rdm/projects/TONTO/OS/2.4.22-pre8-ep/include/net/inetpeer.h:44: 
warning: implicit declaration of function `atomic_dec_and_test'
/home/rpjday/rdm/projects/TONTO/OS/2.4.22-pre8-ep/include/net/inetpeer.h:49: 
`jiffies' undeclared (first use in this function)
/home/rpjday/rdm/projects/TONTO/OS/2.4.22-pre8-ep/include/net/inetpeer.h:49: 
(Each undeclared identifier is reported only once
/home/rpjday/rdm/projects/TONTO/OS/2.4.22-pre8-ep/include/net/inetpeer.h:49: 
for each function it appears in.)
/home/rpjday/rdm/projects/TONTO/OS/2.4.22-pre8-ep/include/net/inetpeer.h:51: 
warning: implicit declaration of function `local_bh_enable'
In file included from networking/route.c:29:
/home/rpjday/rdm/projects/TONTO/OS/2.4.22-pre8-ep/include/net/route.h:37:2: 
warning: #warning This file is not supposed to be used outside of kernel.
In file included from networking/route.c:29:
/home/rpjday/rdm/projects/TONTO/OS/2.4.22-pre8-ep/include/net/route.h: At 
top level:
/home/rpjday/rdm/projects/TONTO/OS/2.4.22-pre8-ep/include/net/route.h:66: 
field `dst' has incomplete type
/home/rpjday/rdm/projects/TONTO/OS/2.4.22-pre8-ep/include/net/route.h:125: 
parse error before "old_gw"
/home/rpjday/rdm/projects/TONTO/OS/2.4.22-pre8-ep/include/net/route.h:126: 
warning: function declaration isn't a prototype
/home/rpjday/rdm/projects/TONTO/OS/2.4.22-pre8-ep/include/net/route.h:130: 
parse error before "u32"
/home/rpjday/rdm/projects/TONTO/OS/2.4.22-pre8-ep/include/net/route.h:130: 
warning: function declaration isn't a prototype
/home/rpjday/rdm/projects/TONTO/OS/2.4.22-pre8-ep/include/net/route.h:135: 
parse error before "addr"
/home/rpjday/rdm/projects/TONTO/OS/2.4.22-pre8-ep/include/net/route.h:135: 
warning: function declaration isn't a prototype
/home/rpjday/rdm/projects/TONTO/OS/2.4.22-pre8-ep/include/net/route.h:138: 
parse error before '*' token
/home/rpjday/rdm/projects/TONTO/OS/2.4.22-pre8-ep/include/net/route.h:138: 
warning: function declaration isn't a prototype
/home/rpjday/rdm/projects/TONTO/OS/2.4.22-pre8-ep/include/net/route.h:139: 
warning: `struct netlink_callback' declared inside parameter list
/home/rpjday/rdm/projects/TONTO/OS/2.4.22-pre8-ep/include/net/route.h:139: 
warning: its scope is only this definition or declaration, which is 
probably not what you want
/home/rpjday/rdm/projects/TONTO/OS/2.4.22-pre8-ep/include/net/route.h:143: 
parse error before "u32"
/home/rpjday/rdm/projects/TONTO/OS/2.4.22-pre8-ep/include/net/route.h:144: 
warning: function declaration isn't a prototype
/home/rpjday/rdm/projects/TONTO/OS/2.4.22-pre8-ep/include/net/route.h: In 
function `ip_route_output':
/home/rpjday/rdm/projects/TONTO/OS/2.4.22-pre8-ep/include/net/route.h:145: 
`daddr' undeclared (first use in this function)
/home/rpjday/rdm/projects/TONTO/OS/2.4.22-pre8-ep/include/net/route.h:145: 
`saddr' undeclared (first use in this function)
/home/rpjday/rdm/projects/TONTO/OS/2.4.22-pre8-ep/include/net/route.h:145: 
`oif' undeclared (first use in this function)
/home/rpjday/rdm/projects/TONTO/OS/2.4.22-pre8-ep/include/net/route.h:145: 
`tos' undeclared (first use in this function)
/home/rpjday/rdm/projects/TONTO/OS/2.4.22-pre8-ep/include/net/route.h:147: 
`rp' undeclared (first use in this function)
/home/rpjday/rdm/projects/TONTO/OS/2.4.22-pre8-ep/include/net/route.h: In 
function `ip_rt_put':
/home/rpjday/rdm/projects/TONTO/OS/2.4.22-pre8-ep/include/net/route.h:154: 
warning: implicit declaration of function `dst_release'
/home/rpjday/rdm/projects/TONTO/OS/2.4.22-pre8-ep/include/net/route.h: At 
top level:
/home/rpjday/rdm/projects/TONTO/OS/2.4.22-pre8-ep/include/net/route.h:161: 
parse error before "tos"
/home/rpjday/rdm/projects/TONTO/OS/2.4.22-pre8-ep/include/net/route.h:162: 
warning: function declaration isn't a prototype
/home/rpjday/rdm/projects/TONTO/OS/2.4.22-pre8-ep/include/net/route.h: In 
function `rt_tos2priority':
/home/rpjday/rdm/projects/TONTO/OS/2.4.22-pre8-ep/include/net/route.h:163: 
`tos' undeclared (first use in this function)
/home/rpjday/rdm/projects/TONTO/OS/2.4.22-pre8-ep/include/net/route.h: At 
top level:
/home/rpjday/rdm/projects/TONTO/OS/2.4.22-pre8-ep/include/net/route.h:166: 
parse error before "u32"
/home/rpjday/rdm/projects/TONTO/OS/2.4.22-pre8-ep/include/net/route.h:167: 
warning: function declaration isn't a prototype
/home/rpjday/rdm/projects/TONTO/OS/2.4.22-pre8-ep/include/net/route.h: In 
function `ip_route_connect':
/home/rpjday/rdm/projects/TONTO/OS/2.4.22-pre8-ep/include/net/route.h:169: 
`rp' undeclared (first use in this function)
/home/rpjday/rdm/projects/TONTO/OS/2.4.22-pre8-ep/include/net/route.h:169: 
`dst' undeclared (first use in this function)
/home/rpjday/rdm/projects/TONTO/OS/2.4.22-pre8-ep/include/net/route.h:169: 
`src' undeclared (first use in this function)
/home/rpjday/rdm/projects/TONTO/OS/2.4.22-pre8-ep/include/net/route.h:169: 
`tos' undeclared (first use in this function)
/home/rpjday/rdm/projects/TONTO/OS/2.4.22-pre8-ep/include/net/route.h:169: 
`oif' undeclared (first use in this function)
In file included from networking/route.c:30:
/usr/local/eldk3.0/ppc_8xx/usr/include/net/if.h: At top level:
/usr/local/eldk3.0/ppc_8xx/usr/include/net/if.h:45: parse error before 
numeric constant
/usr/local/eldk3.0/ppc_8xx/usr/include/net/if.h:111: redefinition of 
`struct ifmap'
/usr/local/eldk3.0/ppc_8xx/usr/include/net/if.h:126: redefinition of 
`struct ifreq'
/usr/local/eldk3.0/ppc_8xx/usr/include/net/if.h:176: redefinition of 
`struct ifconf'
In file included from networking/route.c:34:
/usr/local/eldk3.0/ppc_8xx/usr/include/stdlib.h:511: unnamed fields of 
type other than struct or union are not allowed
In file included from /usr/local/eldk3.0/ppc_8xx/usr/include/netdb.h:38,
                 from include/libbb.h:36,
                 from include/busybox.h:54,
                 from networking/route.c:39:
/usr/local/eldk3.0/ppc_8xx/usr/include/bits/siginfo.h:34: redefinition of 
`union sigval'
/usr/local/eldk3.0/ppc_8xx/usr/include/bits/siginfo.h:274: redefinition of 
`struct sigevent'
/usr/local/eldk3.0/ppc_8xx/usr/include/bits/siginfo.h:298: parse error 
before numeric constant
In file included from include/busybox.h:54,
                 from networking/route.c:39:
include/libbb.h:111: warning: declaration of `flags' shadows a global 
declaration
/home/rpjday/rdm/projects/TONTO/OS/2.4.22-pre8-ep/include/net/dst.h:34: 
warning: shadowed declaration is here
include/libbb.h:112: warning: declaration of `flags' shadows a global 
declaration
/home/rpjday/rdm/projects/TONTO/OS/2.4.22-pre8-ep/include/net/dst.h:34: 
warning: shadowed declaration is here
include/libbb.h:134: warning: declaration of `flags' shadows a global 
declaration
/home/rpjday/rdm/projects/TONTO/OS/2.4.22-pre8-ep/include/net/dst.h:34: 
warning: shadowed declaration is here
include/libbb.h:244: warning: declaration of `flags' shadows a global 
declaration
/home/rpjday/rdm/projects/TONTO/OS/2.4.22-pre8-ep/include/net/dst.h:34: 
warning: shadowed declaration is here
include/libbb.h:252: redefinition of `struct sysinfo'
include/libbb.h:268: warning: declaration of `info' shadows a global 
declaration
/home/rpjday/rdm/projects/TONTO/OS/2.4.22-pre8-ep/include/net/dst.h:66: 
warning: shadowed declaration is here
include/libbb.h:307: warning: declaration of `flags' shadows a global 
declaration
/home/rpjday/rdm/projects/TONTO/OS/2.4.22-pre8-ep/include/net/dst.h:34: 
warning: shadowed declaration is here
include/libbb.h:437: warning: declaration of `flags' shadows a global 
declaration
/home/rpjday/rdm/projects/TONTO/OS/2.4.22-pre8-ep/include/net/dst.h:34: 
warning: shadowed declaration is here
networking/route.c: In function `displayroutes':
networking/route.c:491: warning: declaration of `flags' shadows a global 
declaration
/home/rpjday/rdm/projects/TONTO/OS/2.4.22-pre8-ep/include/net/dst.h:34: 
warning: shadowed declaration is here
make[1]: *** [networking/route.o] Error 1
make[1]: Leaving directory 
`/home/rpjday/rdm/projects/TONTO/BASE/OPENSRC/busybox/busybox-1.00-pre8'
make: *** [install] Error 2






More information about the busybox mailing list