mini2440之编译busybox-1.22.1c出错以及解决办法

来源:互联网 发布:windows内核攻击游戏 编辑:程序博客网 时间:2024/05/29 18:44

编译busybox是出现如下错误

  book@book-desktop:/lesson/starace/busybox/busybox-1.22.1$ make
  CC      networking/libiproute/iplink.o
networking/libiproute/iplink.c: In function `vlan_parse_opt':
networking/libiproute/iplink.c:331: error: variable `flags' has initializer but incomplete type
networking/libiproute/iplink.c:331: error: storage size of 'flags' isn't known
networking/libiproute/iplink.c:341: error: `IFLA_VLAN_ID' undeclared (first use in this function)
networking/libiproute/iplink.c:341: error: (Each undeclared identifier is reported only once
networking/libiproute/iplink.c:341: error: for each function it appears in.)
networking/libiproute/iplink.c:383: error: `IFLA_VLAN_FLAGS' undeclared (first use in this function)
networking/libiproute/iplink.c:331: warning: unused variable `flags'
networking/libiproute/iplink.c: In function `do_add_or_delete':
networking/libiproute/iplink.c:453: error: `IFLA_INFO_DATA' undeclared (first use in this function)
make[1]: *** [networking/libiproute/iplink.o] Error 1
make: *** [networking/libiproute] Error 2



这是由于编译器版本较低 不能识别  `IFLA_VLAN_ID' 、`IFLA_VLAN_FLAGS‘以及`IFLA_INFO_DATA'  ,换个高版本的编译器j就可以了

版本下载地址:

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

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


0 0
原创粉丝点击