busybox编译错误解决方法

networking/libiproute/lib.a(iptunnel.o): In function `parse_args':
iptunnel.c:(.text.parse_args+0x13c): undefined reference to `__cpu_to_be16'
iptunnel.c:(.text.parse_args+0x154): undefined reference to `__cpu_to_be16'
iptunnel.c:(.text.parse_args+0x1ec): undefined reference to `__cpu_to_be16'
iptunnel.c:(.text.parse_args+0x284): undefined reference to `__cpu_to_be16'
iptunnel.c:(.text.parse_args+0x2fc): undefined reference to `__cpu_to_be16'
networking/libiproute/lib.a(iptunnel.o):iptunnel.c:(.text.parse_args+0x338): more undefined references to `__cpu_to_be16' follow
collect2: ld returned 1 exit status
make: *** [busybox_unstripped] Error 1

修改 networking/libiproute/iptunnel.c
#include <asm/types.h>
# 後面加上
#include <asm/byteorder.h>

 

 

posted on 2013-04-11 16:37  xylitohan  阅读(409)  评论(0编辑  收藏  举报

导航