首页 / 操作系统 / Linux / BusyBox 1.17.1编译错误
在编译交叉编译busybox1.17.1的时候出现以下错误GEN include/usage_compressed.hGEN include/usage_compressed.hCC networking/libiproute/iplink.onetworking/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 oncenetworking/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 1make: *** [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就个工具就可以了希望对碰到同样问题人的有用