BusyBox 1.17.1编译错误

在编译交叉编译busybox1.17.1的时候出现以下错误

GEN     include/usage_compressed.h

GEN     include/usage_compressed.h

CC      networking/libiproute/iplink.o

networking/libiproute/iplink.c: In function 'do_change':

networking/libiproute/iplink.c:337: error: 'IFLA_LINKINFO' undeclared (first use in this function)

networking/libiproute/iplink.c:337: error: (Each undeclared identifier is reported only once

networking/libiproute/iplink.c:337: error: for each function it appears in.)

networking/libiproute/iplink.c:338: error: 'IFLA_INFO_KIND' undeclared (first use in this function)

make[1]: *** [networking/libiproute/iplink.o] Error 1

make: *** [networking/libiproute] Error 2

其实这个错误的原因很交叉编译工具链的版本有问题换成最新就好了,在老的版本里面 include/linux/if_link.h 并没有IFLA_LINKINFO和IFLA_INFO_KIND,在新板本里面已经有了,所以我们只要去下载一个新的编译工具就可以了

下载交叉编译工具: GNU Toolchain for ARM Processors

下载地址:http://www.codesourcery.com/gnu_toolchains/arm/download.html

选择GNU/Linux就个工具就可以了

希望对碰到同样问题人的有用

相关推荐