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

编译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
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值