当前位置: 技术问答>linux和unix
busybox-1.13.3交叉编译出现问题望高手指点
来源: 互联网 发布时间:2016-09-29
本文导语: 错误如下: [root@localhost busybox-1.13.3]# make CC networking/ifenslave.o In file included from networking/ifenslave.c:105: /usr/local/arm/3.3.2/arm-linux/sys-include/linux/if_bonding.h:72: error: `IFNAMSIZ' undeclared here (not in a function) make[1]: *** [ne...
错误如下:
[root@localhost busybox-1.13.3]# make
CC networking/ifenslave.o
In file included from networking/ifenslave.c:105:
/usr/local/arm/3.3.2/arm-linux/sys-include/linux/if_bonding.h:72: error: `IFNAMSIZ' undeclared here (not in a function)
make[1]: *** [networking/ifenslave.o] 错误 1
make: *** [networking] 错误 2
[root@localhost busybox-1.13.3]# vim /usr/local/arm/3.3.2/arm-linux/sys-include/linux/if_bonding.h
[5]+ Stopped vim /usr/local/arm/3.3.2/arm-linux/sys-include/linux/if_bonding.h
You have mail in /var/spool/mail/root
百度上找到了相似错误解决方法如下:(busybox-1.13.1)
[root@localhost busybox-1.13.1]# make
CC networking/ifenslave.o
In file included from networking/ifenslave.c:105:
/usr/local/arm/3.3.2/arm-linux/sys-include/linux/if_bonding.h:67: error: `IFNAMSIZ'' undeclared here (not in a function)make[1]: *** [networking/ifenslave.o] Error 1
make: *** [networking] Error 1
vi networking/ifenslave.c
////
#define ARPHRD_INFINIBAND 32
////
然后make install
在 _install目录下得到所有二进制文件。
我照着做了 可是还是报错。。 不知道哪里出问题了
|
源码找下IFNAMSIZ看看怎么回事,或者下最新版吧