BUSYBOX编译错误提示及解决办法集绵.doc_第1页
BUSYBOX编译错误提示及解决办法集绵.doc_第2页
BUSYBOX编译错误提示及解决办法集绵.doc_第3页
BUSYBOX编译错误提示及解决办法集绵.doc_第4页
BUSYBOX编译错误提示及解决办法集绵.doc_第5页
已阅读5页,还剩6页未读 继续免费阅读

下载本文档

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

BUSYBOX编译错误提示及解决办法集绵1、提示如下:#warning Static linking against glibc produces buggy executables#warning (glibc does not cope well with ld -gc-sections).#warning See /bugzilla/show_bug.cgi?id=3400#warning Note that glibc is unsuitable for static linking anyway.#warning If you still want to do it, remove -Wl,-gc-sections#warning from scripts/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_SETSIZE 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 undeclared (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/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)make1: * miscutils/taskset.o Error 1make: * miscutils Error 2 make menuconfig去掉Miscellaneous Utilities-task 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 file 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-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/././././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: 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 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-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-linux/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: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 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 /usr/local/arm/2.95.3/lib/gcc-lib/arm-linux/2.95.3/././././arm-linux/include/netdb.h:38, from /busybox-1.01/include/libbb.h:36, from /busybox-1.01/include/busybox.h:54, from /busybox-1.01/networking/route.c:44: /usr/local/arm/2.95.3/lib/gcc-lib/arm-linux/2.95.3/././././arm-linux/include/bits/siginfo.h:34: redefinition of union sigval /usr/local/arm/2.95.3/lib/gcc-lib/arm-linux/2.95.3/././././arm-linux/include/bits/siginfo.h:37: warning: redefinition of sigval_t /usr/local/arm/2.95.3/lib/gcc-lib/arm-linux/2.95.3/././././arm-linux/sys-include/asm/siginfo.h:11: warning: sigval_t previously declared here /usr/local/arm/2.95.3/lib/gcc-lib/arm-linux/2.95.3/././././arm-linux/include/bits/siginfo.h:274: redefinition of struct sigevent /usr/local/arm/2.95.3/lib/gcc-lib/arm-linux/2.95.3/././././arm-linux/include/bits/siginfo.h:289: warning: redefinition of sigevent_t /usr/local/arm/2.95.3/lib/gcc-lib/arm-linux/2.95.3/././././arm-linux/sys-include/asm/siginfo.h:211: warning: sigevent_t previously declared here /usr/local/arm/2.95.3/lib/gcc-lib/arm-linux/2.95.3/././././arm-linux/include/bits/siginfo.h:298: parse error before 0 In file included from /busybox-1.01/include/busybox.h:54, from /busybox-1.01/networking/route.c:44: /busybox-1.01/include/libbb.h:112: warning: declaration of flags shadows global declaration /busybox-1.01/include/libbb.h:113: warning: declaration of flags shadows global declaration /busybox-1.01/include/libbb.h:135: warning: declaration of flags shadows global declaration /busybox-1.01/include/libbb.h:251: warning: declaration of flags shadows global declaration /busybox-1.01/include/libbb.h:256: redefinition of struct sysinfo /busybox-1.01/include/libbb.h:272: warning: declaration of info shadows global declaration /busybox-1.01/include/libbb.h:309: warning: declaration of flags shadows global declaration /busybox-1.01/include/libbb.h:440: warning: declaration of flags shadows global declaration /busybox-1.01/networking/route.c:475: warning: declaration of flags shadows global declaration /busybox-1.01/networking/route.c: In function set_flags: /busybox-1.01/networking/route.c:476: warning: declaration of flags shadows global declaration /busybox-1.01/networking/route.c: In function displayroutes: /busybox-1.01/networking/route.c:490: warning: declaration of flags shadows global declaration make: * /busybox-1.01/networking/route.o Error 1 去掉Busybox Settings-NetWork device-route5、usr/src/armlinux/busybox-1.0.0/libbb/loop.c:32:linux/version.h:No such file or directory/usr/src/armlinux/busybox-1.0.0/libbb/loop.c:35 arse error/usr/src/armlinux/busybox-1.0.0/libbb/loop.c:37 arse error将内核源码下的include/linux目录下的versition.h文件 放到 busybox-1.0.0/include/linux下6、libbb/time.c:20: error: _NR_clock_gettime undeclared (first use in this function) libbb/time.c:20: error: (Each undeclared identifier is reported only once libbb/time.c:20: error: for each function it appears in.) libbb/time.c: In function monotonic_sec: libbb/time.c:27: error: _NR_clock_gettime undeclared (first use in this function) make1: * libbb/time.o Error 1 make: * libbb Error 2this is caused by a feature called CONFIG_MONOTONIC_SYSCALL去掉Busybox Settings -Busybox Library Tuning - Use clock_gettime(CLOCK_MONOTONIC) syscall7、CC miscutils/readahead.o miscutils/readahead.c: In function readahead_main: miscutils/readahead.c:26: warning: implicit declaration of function readahead make1: * miscutils/readahead.o Error 1 make: * miscutils Error 2去掉Busybox Miscellaneous Utilities - readahead8、In file included from include/busybox.h:10, from applets/applets.c:11: include/libbb.h:50:29: selinux/selinux.h: No such file or directory include/libbb.h:51:29: selinux/context.h: No such file or directory include/libbb.h:52:27: selinux/flask.h: No such file or directory include/libbb.h:53:36: selinux/av_permissions.h: No such file or directory In file included from include/busybox.h:10, from applets/applets.c:11: include/libbb.h:844: error: syntax error before sid include/libbb.h:844: warning: function declaration isnt a prototype include/libbb.h:845: error: syntax error before set_security_context_component include/libbb.h:845: error: syntax error before cur_context include/libbb.h:846: warning: type defaults to int in declaration of set_security_context_component include/libbb.h:846: warning: function declaration isnt a prototype include/libbb.h:846: warning: data definition has no type or storage class include/libbb.h:847: error: syntax error before scontext include/libbb.h:847: warning: function declaration isnt a prototype make1: * applets/applets.o Error 1 make: * applets Error 2 拷贝系统/usr/include/selinux中的*.h到busybox的include目录中,并修改相应的头文件。例如:#include 修改为 #include “selinux.h”9、selinux/setfiles.c:9:25: sepol/sepol.h: No such file or directory selinux/setfiles.c: In function canoncon:

温馨提示

  • 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
  • 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
  • 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
  • 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
  • 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
  • 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
  • 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

评论

0/150

提交评论