busybox에서 에러가 나길래 ne-tool를 받아다 설치를 해봤는데
똑같은 에러가 나는걸로 봐서 busybox나 net-tool의 문제는 아닌거 같습니다.

gcc나 glibc의 에러 같은데 제공되는 ramdisk 이미지 안을 들여다 보면
ifconfig, route 등과 같은 프로그램이 있던데
이건 어떻게 컴파일 했는지 좀 알 수 있을까요?


에러 내용은 다음과 같습니다.

armv5l-linux-gcc -I./include -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -
D_FILE_OFFSET_BITS=64 -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 /usr/armv5l-linux/sys-include/net/route.h:28,
from networking/route.c:29:
/usr/armv5l-linux/sys-include/net/dst.h:30: parse error before "atomic_t"
/usr/armv5l-linux/sys-include/net/dst.h:67: parse error before '}' token
/usr/armv5l-linux/sys-include/net/dst.h:77: parse error before "__u32"
/usr/armv5l-linux/sys-include/net/dst.h:85: parse error before "atomic_t"
/usr/armv5l-linux/sys-include/net/dst.h:87: parse error before '}' token
In file included from /usr/armv5l-linux/sys-include/linux/sched.h:18,
from /usr/armv5l-linux/sys-include/net/inetpeer.h:14,
from /usr/armv5l-linux/sys-include/net/route.h:29,
from networking/route.c:29:
/usr/armv5l-linux/sys-include/asm/semaphore.h:18: parse error
before "wait_queue_head_t"
/usr/armv5l-linux/sys-include/asm/semaphore.h: In function `sema_init':
/usr/armv5l-linux/sys-include/asm/semaphore.h:47: dereferencing pointer
to incomplete type
/usr/armv5l-linux/sys-include/asm/semaphore.h:48: dereferencing pointer
to incomplete type
/usr/armv5l-linux/sys-include/asm/semaphore.h:49: dereferencing pointer
to incomplete type
In file included from /usr/armv5l-linux/sys-include/linux/signal.h:4,
from /usr/armv5l-linux/sys-include/linux/sched.h:26,
from /usr/armv5l-linux/sys-include/net/inetpeer.h:14,
from /usr/armv5l-linux/sys-include/net/route.h:29,
from networking/route.c:29:
/usr/armv5l-linux/sys-include/asm/signal.h: At top level:
/usr/armv5l-linux/sys-include/asm/signal.h:27: conflicting types for
`sigset_t'
/usr/armv5l-linux/include/sys/select.h:38: previous declaration of
`sigset_t'
In file included from /usr/armv5l-linux/sys-include/linux/sched.h:80,
from /usr/armv5l-linux/sys-include/net/inetpeer.h:14,
from /usr/armv5l-linux/sys-include/net/route.h:29,
from networking/route.c:29:
/usr/armv5l-linux/sys-include/linux/time.h:9: redefinition of `struct
timespec'
/usr/armv5l-linux/sys-include/linux/time.h:88: redefinition of `struct
timeval'
In file included from /usr/armv5l-linux/sys-include/net/route.h:29,
from networking/route.c:29:
/usr/armv5l-linux/sys-include/net/inetpeer.h: In function `inet_putpeer':
/usr/armv5l-linux/sys-include/net/inetpeer.h:49: `jiffies' undeclared
(first use in this function)
/usr/armv5l-linux/sys-include/net/inetpeer.h:49: (Each undeclared
identifier is reported only once
/usr/armv5l-linux/sys-include/net/inetpeer.h:49: for each function it
appears in.)
In file included from networking/route.c:29:
/usr/armv5l-linux/sys-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:
/usr/armv5l-linux/sys-include/net/route.h: At top level:
/usr/armv5l-linux/sys-include/net/route.h:66: field `dst' has incomplete
type
/usr/armv5l-linux/sys-include/net/route.h:123: parse error
before "old_gw"
/usr/armv5l-linux/sys-include/net/route.h:128: parse error before "u32"
/usr/armv5l-linux/sys-include/net/route.h:133: parse error before "addr"
/usr/armv5l-linux/sys-include/net/route.h:136: parse error before '*'
token
/usr/armv5l-linux/sys-include/net/route.h:141: parse error before "u32"
/usr/armv5l-linux/sys-include/net/route.h: In function `ip_route_output':
/usr/armv5l-linux/sys-include/net/route.h:143: `daddr' undeclared (first
use in this function)
/usr/armv5l-linux/sys-include/net/route.h:143: `saddr' undeclared (first
use in this function)
/usr/armv5l-linux/sys-include/net/route.h:143: `oif' undeclared (first
use in this function)
/usr/armv5l-linux/sys-include/net/route.h:143: `tos' undeclared (first
use in this function)
/usr/armv5l-linux/sys-include/net/route.h:145: `rp' undeclared (first
use in this function)
/usr/armv5l-linux/sys-include/net/route.h: At top level:
/usr/armv5l-linux/sys-include/net/route.h:159: parse error before "tos"
/usr/armv5l-linux/sys-include/net/route.h: In function `rt_tos2priority':
/usr/armv5l-linux/sys-include/net/route.h:161: `tos' undeclared (first
use in this function)
/usr/armv5l-linux/sys-include/net/route.h: At top level:
/usr/armv5l-linux/sys-include/net/route.h:164: parse error before "u32"
/usr/armv5l-linux/sys-include/net/route.h: In function
`ip_route_connect':
/usr/armv5l-linux/sys-include/net/route.h:167: `rp' undeclared (first
use in this function)
/usr/armv5l-linux/sys-include/net/route.h:167: `dst' undeclared (first
use in this function)
/usr/armv5l-linux/sys-include/net/route.h:167: `src' undeclared (first
use in this function)
/usr/armv5l-linux/sys-include/net/route.h:167: `tos' undeclared (first
use in this function)
/usr/armv5l-linux/sys-include/net/route.h:167: `oif' undeclared (first
use in this function)
In file included from networking/route.c:30:
/usr/armv5l-linux/include/net/if.h: At top level:
/usr/armv5l-linux/include/net/if.h:45: parse error before numeric
constant
/usr/armv5l-linux/include/net/if.h:111: redefinition of `struct ifmap'
/usr/armv5l-linux/include/net/if.h:126: redefinition of `struct ifreq'
/usr/armv5l-linux/include/net/if.h:176: redefinition of `struct ifconf'
In file included from networking/route.c:34:
/usr/armv5l-linux/include/stdlib.h:511: unnamed fields of type other
than struct or union are not allowed
In file included from /usr/armv5l-linux/include/netdb.h:38,
from include/libbb.h:33,
from include/busybox.h:49,
from networking/route.c:39:
/usr/armv5l-linux/include/bits/siginfo.h:34: redefinition of `union
sigval'
/usr/armv5l-linux/include/bits/siginfo.h:274: redefinition of `struct
sigevent'
/usr/armv5l-linux/include/bits/siginfo.h:298: parse error before numeric
constant
In file included from include/busybox.h:49,
from networking/route.c:39:
include/libbb.h:108: warning: declaration of `flags' shadows a global
declaration
/usr/armv5l-linux/sys-include/net/dst.h:34: warning: shadowed
declaration is here
include/libbb.h:109: warning: declaration of `flags' shadows a global
declaration
/usr/armv5l-linux/sys-include/net/dst.h:34: warning: shadowed
declaration is here
include/libbb.h:130: warning: declaration of `flags' shadows a global
declaration
/usr/armv5l-linux/sys-include/net/dst.h:34: warning: shadowed
declaration is here
include/libbb.h:239: warning: declaration of `flags' shadows a global
declaration
/usr/armv5l-linux/sys-include/net/dst.h:34: warning: shadowed
declaration is here
include/libbb.h:247: redefinition of `struct sysinfo'
include/libbb.h:263: warning: declaration of `info' shadows a global
declaration
/usr/armv5l-linux/sys-include/net/dst.h:66: warning: shadowed
declaration is here
include/libbb.h:300: warning: declaration of `flags' shadows a global
declaration
/usr/armv5l-linux/sys-include/net/dst.h:34: warning: shadowed
declaration is here
include/libbb.h:428: warning: declaration of `flags' shadows a global
declaration
/usr/armv5l-linux/sys-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
/usr/armv5l-linux/sys-include/net/dst.h:34: warning: shadowed
declaration is here
make: *** [networking/route.o] 오류 1