《busybox编译错误提示及解决办法集绵》由会员分享,可在线阅读,更多相关《busybox编译错误提示及解决办法集绵(12页珍藏版)》请在金锄头文库上搜索。
1、BUSYBOX 编译错误提示及解决办法集绵1、提示如下:#warning Static linking against glibc produces buggy executables#warning (glibc does not cope well with ld -gc-sections).#warning See Note that glibc is unsuitable for static linking anyway.#warning If you still want to do it, remove -Wl,-gc-sections#warning from scripts
2、/trylink and remove this warning.解决方法: applets/applets.c:15-21 行2、CC miscutils/taskset.omiscutils/taskset.c:17: error: parse error before * tokenmiscutils/taskset.c:18: warning: function declaration isnt a prototypemiscutils/taskset.c: In function _from_cpuset:miscutils/taskset.c:22: error: CPU_SETS
3、IZE undeclared (first use in this function)miscutils/taskset.c:22: error: (Each undeclared identifier is reported only oncemiscutils/taskset.c:22: error: for each function it appears in.)miscutils/taskset.c:26: warning: implicit declaration of function CPU_ISSETmiscutils/taskset.c:26: error: mask un
4、declared (first use in this function)miscutils/taskset.c: In function taskset_main:miscutils/taskset.c:47: error: cpu_set_t undeclared (first use in this function)miscutils/taskset.c:47: error: parse error before maskmiscutils/taskset.c:68: warning: implicit declaration of function CPU_ZEROmiscutils
5、/taskset.c:68: error: new_mask undeclared (first use in this function)miscutils/taskset.c:69: error: CPU_SETSIZE undeclared (first use in this function)miscutils/taskset.c:71: warning: implicit declaration of function CPU_SETmiscutils/taskset.c:78: error: mask undeclared (first use in this function)
6、make1: * miscutils/taskset.o Error 1make: * miscutils Error 2make menuconfig 去掉 Miscellaneous Utilitiestask set3、libbb/time.c:20: error: CLOCK_MONOTONIC undeclared (first use in this function) make menuconfig 去掉 Busybox Settings-Busybox Library Tuning-Use clock_gettie(CLOCK_MONOTONIC) syscall 4、In f
7、ile included from /usr/local/arm/2.95.3/lib/gcc-lib/arm-linux/2.95.3/././././arm-linux/sys-include/linux/fs.h:12, from /usr/local/arm/2.95.3/lib/gcc-lib/arm-linux/2.95.3/././././arm-linux/sys-include/linux/capability.h:17, from /usr/local/arm/2.95.3/lib/gcc-lib/arm-linux/2.95.3/././././arm-linux/sys
8、-include/linux/binfmts.h:5, from /usr/local/arm/2.95.3/lib/gcc-lib/arm-linux/2.95.3/././././arm-linux/sys-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/././././
9、arm-linux/sys-include/net/route.h:28, from /busybox-1.01/networking/route.c:42: /usr/local/arm/2.95.3/lib/gcc-lib/arm-linux/2.95.3/././././arm-linux/sys-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
10、: 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/sys-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
11、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/sys-include/linux/sched.h:77, 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
12、-lib/arm-linux/2.95.3/././././arm-linux/sys-include/net/route.h:28, from /busybox-1.01/networking/route.c:42: /usr/local/arm/2.95.3/lib/gcc-lib/arm-linux/2.95.3/././././arm-linux/sys-include/linux/time.h:108: warning: FD_SET redefined /usr/local/arm/2.95.3/lib/gcc-lib/arm-linux/2.95.3/././././arm-li
13、nux/include/sys/select.h:83: 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/sys-include/linux/time.h:109: warning: FD_CLR redefined /usr/local/arm/2.95.3/lib/gcc-lib/arm-linux/2.95.3/././././arm-linux/include/sys/select.h
14、:84: 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/sys-include/linux/time.h:110: 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
15、the location of the previous definition /usr/local/arm/2.95.3/lib/gcc-lib/arm-linux/2.95.3/././././arm-linux/sys-include/linux/time.h:111: 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 /busybox-1.01/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