天嵌 ARM开发社区

 找回密码
 注册
查看: 1875|回复: 8

在安装这个build_busybox_20100105.exe时

[复制链接]
贝贝剑 发表于 2010-12-25 19:40:56 | 显示全部楼层 |阅读模式
我先又有个问题,就是在安装这个build_busybox_20100105.exe时
有这么一个问题
我在[root@EmbedSky busybox-1.13.0]# make
之后会运行一段最后会出现以下的问题
In file included from /opt/EmbedSky/4.3.3/bin..arm-none-linux-gnueabi/ libc/usr/include/ linux/if_tunnel.h:5
                         from networking/ libiproute/iptunnel.c:24:
/opt/EmbedSky/4.3.3/bin/../arm-none-linux-gnueabi/ libc/usr/include/ linux/ip.h:85:error:redefinition of ‘struct iphdr’
make[1]:*** [networking/ libiproute/iptunnel.0]  error 1
make:***[networking/ libiproute]  error 2
 楼主| 贝贝剑 发表于 2010-12-25 22:08:32 | 显示全部楼层
1# 贝贝剑


呵呵,终于有人找到了最终的解答了。
错误提示信息:
In file included from /opt/EmbedSky/4.3.3/bin/../arm-none-linux-gnueabi/libc/usr/include/linux/if_tunnel.h:5,
                 from /opt/EmbedSky/BusyBox-1.2.0/networking/libiproute/iptunnel.c:32:
/opt/EmbedSky/4.3.3/bin/../arm-none-linux-gnueabi/libc/usr/include/linux/ip.h:85: error: redefinition of 'struct iphdr'
make[1]: *** [/opt/EmbedSky/BusyBox-1.2.0/networking/libiproute/iptunnel.o] Error 1
make: *** [_all] Error 2

这句话讲了:In file included from /opt/EmbedSky/4.3.3/bin/../arm-none-linux-gnueabi/libc/usr/include/linux/if_tunnel.h:5,在头文件if_tunnel.h第五行调用了ip.h这个头文件;
下面这句话:
/opt/EmbedSky/4.3.3/bin/../arm-none-linux-gnueabi/libc/usr/include/linux/ip.h:85: error: redefinition of 'struct iphdr'在头文件ip.h的85行又redefinition(翻译成中文是:重复定义)了结构体 iphdr。
iphdr结构在另外一个头文件中定义了:arm-none-linux-gnueabi/libc/usr/include/netinet/ip.h的45行。而这个头文件正好现在iptunnel.c文件的17行调用了。linux/if_tunnel.h头文件在24行调用的。

最合理的解决方法:修改busybox的源码:把busybox-1.13.0\networking\libiproute\iptunnel.c文件的24行屏蔽掉就行了。
 楼主| 贝贝剑 发表于 2010-12-26 08:42:15 | 显示全部楼层
2# 贝贝剑


Cancel this item bellow when you make menu configuration.


Networking Utilities ---->
天嵌_support1 发表于 2010-12-27 11:07:37 | 显示全部楼层
1# 贝贝剑


暂时把网络配置中 的 iptunnel 屏蔽一下吧
 楼主| 贝贝剑 发表于 2010-12-28 09:01:01 | 显示全部楼层
4# embedsky_lxt


哦谢谢啊   我的问题解决了  我发的那些是解决方法
tom7232 发表于 2011-1-13 00:14:21 | 显示全部楼层
make結束後還要把屏蔽取消嗎
天嵌_support1 发表于 2011-1-13 15:52:52 | 显示全部楼层
我说屏蔽的意思是,不要选那个选项。
啊啊45 发表于 2011-2-24 23:20:04 | 显示全部楼层
我刚才也碰到楼主同样的问题,
谢谢了!
uboard 发表于 2011-2-25 12:10:11 | 显示全部楼层
学习学习学习学习学习学习学习学习学习
您需要登录后才可以回帖 登录 | 注册

本版积分规则

关闭

i.MX8系列ARM cortex A53 M4 工控板上一条 /1 下一条

Archiver|手机版|小黑屋|天嵌 嵌入式开发社区 ( 粤ICP备11094220号-2 )

GMT+8, 2024-7-16 02:34 , Processed in 1.031250 second(s), 19 queries .

Powered by Discuz! X3.4 Licensed

Copyright © 2001-2020, Tencent Cloud.

快速回复 返回顶部 返回列表