编译busybox错误

1.错误一

     ipsvd/tcpudp.c: In function 'tcpudpsvd_main': 

     ipsvd/tcpudp.c:314:10: warning: ignoring return value of 'write', declared with attribute warn_unused_result 

     make[1]: *** [ipsvd/tcpudp.o] 错误1 

     make: *** [ipsvd] 错误2 

解决办法:cd  /usr/local/arm/4.4.3/arm-none-linux-gnueabi/sys-root/usr/include/linux  找到netfilter.h 头文件,

执行sudo  vi  netfilter.h 打开加入#include 头文件即解决

2.错误二

networking/libiproute/lib.a(iptunnel.o): In function `print_tunnel':
iptunnel.c:(.text.print_tunnel+0x1ec): undefined reference to `__cpu_to_be16'
iptunnel.c:(.text.print_tunnel+0x200): undefined reference to `__cpu_to_be16'
iptunnel.c:(.text.print_tunnel+0x238): undefined reference to `__cpu_to_be16'
iptunnel.c:(.text.print_tunnel+0x24c): undefined reference to `__cpu_to_be16'
iptunnel.c:(.text.print_tunnel+0x26c): undefined reference to `__cpu_to_be16'
networking/libiproute/lib.a(iptunnel.o):iptunnel.c:(.text.print_tunnel+0x290): more undefined references to `__cpu_to_be16' follow
collect2: ld returned 1 exit status
make: *** [busybox_unstripped] Error 1
linux@linux-my:~/u_boot/busybox-1.7.0$ cd /usr/local/arm/4.4.3/
解决办法:

修改 networking/libiproute/iptunnel.c文件
在#include

后面加上
#include

 

你可能感兴趣的:(内核配置)