当前位置: 技术问答>linux和unix
交叉编译busybox出错
来源: 互联网 发布时间:2017-05-19
本文导语: 因换了一个版本的uclibc,编译busybox出错如下: networking/lib.a(ipcalc.o): In function `ipcalc_main': ipcalc.c:(.text.ipcalc_main+0x310): warning: gethostbyaddr is obsolescent, use getaddrinfo() instead. util-linux/lib.a(mount.o): In function `nfsmount': mo...
因换了一个版本的uclibc,编译busybox出错如下:
networking/lib.a(ipcalc.o): In function `ipcalc_main':
ipcalc.c:(.text.ipcalc_main+0x310): warning: gethostbyaddr is obsolescent, use getaddrinfo() instead.
util-linux/lib.a(mount.o): In function `nfsmount':
mount.c:(.text.nfsmount+0x148): warning: gethostbyname is obsolescent, use getnameinfo() instead.
loginutils/lib.a(getty.o): In function `getty_main':
getty.c:(.text.getty_main+0x7c4): undefined reference to `usleep'
miscutils/lib.a(watchdog.o): In function `watchdog_main':
watchdog.c:(.text.watchdog_main+0x1c4): undefined reference to `usleep'
modutils/lib.a(modprobe-small.o): In function `find_alias':
modprobe-small.c:(.text.find_alias+0x15c): undefined reference to `usleep'
networking/lib.a(ifupdown.o): In function `dhcp_down':
ifupdown.c:(.text.dhcp_down+0x48): undefined reference to `usleep'
networking/lib.a(nslookup.o): In function `nslookup_main':
nslookup.c:(.text.nslookup_main+0x54): undefined reference to `__res_init'
nslookup.c:(.text.nslookup_main+0x98): undefined reference to `__res_state'
nslookup.c:(.text.nslookup_main+0xdc): undefined reference to `__res_state'
nslookup.c:(.text.nslookup_main+0x100): undefined reference to `__res_state'
networking/lib.a(pscan.o): In function `pscan_main':
pscan.c:(.text.pscan_main+0x2d8): undefined reference to `usleep'
networking/lib.a(traceroute.o): In function `common_traceroute_main':
traceroute.c:(.text.common_traceroute_main+0x938): undefined reference to `usleep'
procps/lib.a(top.o): In function `get_jiffy_counts':
top.c:(.text.get_jiffy_counts+0x140): undefined reference to `usleep'
procps/lib.a(top.o): In function `top_main':
top.c:(.text.top_main+0x494): undefined reference to `usleep'
util-linux/lib.a(mdev.o): In function `mdev_main':
mdev.c:(.text.mdev_main+0x2c8): undefined reference to `usleep'
coreutils/lib.a(usleep.o):usleep.c:(.text.usleep_main+0x48): more undefined references to `usleep' follow
collect2: ld returned 1 exit status
make[1]: *** [busybox_unstripped] Error 1
make[1]: Leaving directory `/home/xuegang/src/sdk_9.5.5.36_gdb/apps/busybox-1.19.4'
make: *** [busybox_build] Error 2
xuegang@ubuntu:~/src/sdk_9.5.5.36_gdb/build$
查了许久未能解决,请知道的兄弟指点一下!
networking/lib.a(ipcalc.o): In function `ipcalc_main':
ipcalc.c:(.text.ipcalc_main+0x310): warning: gethostbyaddr is obsolescent, use getaddrinfo() instead.
util-linux/lib.a(mount.o): In function `nfsmount':
mount.c:(.text.nfsmount+0x148): warning: gethostbyname is obsolescent, use getnameinfo() instead.
loginutils/lib.a(getty.o): In function `getty_main':
getty.c:(.text.getty_main+0x7c4): undefined reference to `usleep'
miscutils/lib.a(watchdog.o): In function `watchdog_main':
watchdog.c:(.text.watchdog_main+0x1c4): undefined reference to `usleep'
modutils/lib.a(modprobe-small.o): In function `find_alias':
modprobe-small.c:(.text.find_alias+0x15c): undefined reference to `usleep'
networking/lib.a(ifupdown.o): In function `dhcp_down':
ifupdown.c:(.text.dhcp_down+0x48): undefined reference to `usleep'
networking/lib.a(nslookup.o): In function `nslookup_main':
nslookup.c:(.text.nslookup_main+0x54): undefined reference to `__res_init'
nslookup.c:(.text.nslookup_main+0x98): undefined reference to `__res_state'
nslookup.c:(.text.nslookup_main+0xdc): undefined reference to `__res_state'
nslookup.c:(.text.nslookup_main+0x100): undefined reference to `__res_state'
networking/lib.a(pscan.o): In function `pscan_main':
pscan.c:(.text.pscan_main+0x2d8): undefined reference to `usleep'
networking/lib.a(traceroute.o): In function `common_traceroute_main':
traceroute.c:(.text.common_traceroute_main+0x938): undefined reference to `usleep'
procps/lib.a(top.o): In function `get_jiffy_counts':
top.c:(.text.get_jiffy_counts+0x140): undefined reference to `usleep'
procps/lib.a(top.o): In function `top_main':
top.c:(.text.top_main+0x494): undefined reference to `usleep'
util-linux/lib.a(mdev.o): In function `mdev_main':
mdev.c:(.text.mdev_main+0x2c8): undefined reference to `usleep'
coreutils/lib.a(usleep.o):usleep.c:(.text.usleep_main+0x48): more undefined references to `usleep' follow
collect2: ld returned 1 exit status
make[1]: *** [busybox_unstripped] Error 1
make[1]: Leaving directory `/home/xuegang/src/sdk_9.5.5.36_gdb/apps/busybox-1.19.4'
make: *** [busybox_build] Error 2
xuegang@ubuntu:~/src/sdk_9.5.5.36_gdb/build$
查了许久未能解决,请知道的兄弟指点一下!
|
busybox settings---> build options---->[ ]build with large file support 去掉试试