找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
广告投放联系QQ68610888
查看: 1760|回复: 3

LEDE1702下编译openflow 1.3错误,请大家协助,谢谢

[复制链接]
本帖最后由 hzjnet@163.com 于 2017-9-1 22:56 编辑

openwrt的cc和15051版本下依据官方https://github.com/CPqD/openflow-openwrt.git的方法编译无任何错误,但是在lede下不行,提示如下:make[6]: Entering directory '/home/lede/source/build_dir/target-mips_24kc_musl/ofsoftswitch13-open_wrt'
depbase=`echo lib/netdev.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
mips-openwrt-linux-musl-gcc -DHAVE_CONFIG_H -I.   -g -I ./include -I ./lib  -DOFL_LOG_VLOG -DOFL_LOG_VLOG -DNETPDLDIR='"/usr/share/openflow"' -I/home/lede/source/staging_dir/target-mips_24kc_musl/usr/include -I/home/lede/source/staging_dir/target-mips_24kc_musl/include -I/home/lede/source/staging_dir/toolchain-mips_24kc_gcc-5.4.0_musl/usr/include -I/home/lede/source/staging_dir/toolchain-mips_24kc_gcc-5.4.0_musl/include/fortify -I/home/lede/source/staging_dir/toolchain-mips_24kc_gcc-5.4.0_musl/include  -Wstrict-prototypes  -Os -pipe -mno-branch-likely -mips32r2 -mtune=24kc -fno-caller-saves -fno-plt -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -msoft-float -mips16 -minterlink-mips16 -iremap/home/lede/source/build_dir/target-mips_24kc_musl/ofsoftswitch13-open_wrtfsoftswitch13-open_wrt -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -std=c99 -MT lib/netdev.o -MD -MP -MF $depbase.Tpo -c -o lib/netdev.o lib/netdev.c &&\
mv -f $depbase.Tpo $depbase.Po
In file included from /home/lede/source/staging_dir/toolchain-mips_24kc_gcc-5.4.0_musl/include/net/ethernet.h:10:0,
                 from lib/netdev.c:105:
/home/lede/source/staging_dir/toolchain-mips_24kc_gcc-5.4.0_musl/include/netinet/if_ether.h:101:8: error: redefinition of 'struct ethhdr'
struct ethhdr {
        ^
In file included from /home/lede/source/staging_dir/toolchain-mips_24kc_gcc-5.4.0_musl/include/linux/if_tun.h:20:0,
                 from lib/netdev.c:74:
/home/lede/source/staging_dir/toolchain-mips_24kc_gcc-5.4.0_musl/include/linux/if_ether.h:140:8: note: originally defined here
struct ethhdr {
        ^
Makefile:1660: recipe for target 'lib/netdev.o' failed
make[6]: *** [lib/netdev.o] Error 1
make[6]: Leaving directory '/home/lede/source/build_dir/target-mips_24kc_musl/ofsoftswitch13-open_wrt'
make[5]: *** [all-recursive] Error 1
Makefile:2236: recipe for target 'all-recursive' failed
make[5]: Leaving directory '/home/lede/source/build_dir/target-mips_24kc_musl/ofsoftswitch13-open_wrt'
make[4]: *** [all] Error 2
Makefile:1011: recipe for target 'all' failed
make[4]: Leaving directory '/home/lede/source/build_dir/target-mips_24kc_musl/ofsoftswitch13-open_wrt'
make[3]: *** [/home/lede/source/build_dir/target-mips_24kc_musl/ofsoftswitch13-open_wrt/.built] Error 2
Makefile:103: recipe for target '/home/lede/source/build_dir/target-mips_24kc_musl/ofsoftswitch13-open_wrt/.built' failed
make[3]: Leaving directory '/home/lede/source/openflow-openwrt/openflow-1.3'
package/Makefile:109: recipe for target 'package/openflow-1.3/compile' failed
make[2]: *** [package/openflow-1.3/compile] Error 2
我的恩山、我的无线 The best wifi forum is right here.
 楼主| | 显示全部楼层
只有自己定一下了

点评

请问你最后怎么编译openflow1.3的,我现在也遇到这个问题了  详情 回复 发表于 2023-10-13 23:23
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

lib/netdev.o  依赖缺少
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报


请问你最后怎么编译openflow1.3的,我现在也遇到这个问题了
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

关闭

欢迎大家光临恩山无线论坛上一条 /1 下一条

有疑问请添加管理员QQ86788181|手机版|小黑屋|Archiver|恩山无线论坛(常州市恩山计算机开发有限公司版权所有) ( 苏ICP备05084872号 )

GMT+8, 2024-4-29 07:18

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

| 江苏省互联网有害信息举报中心 举报信箱:js12377 | @jischina.com.cn 举报电话:025-88802724 本站不良内容举报信箱:68610888@qq.com 举报电话:0519-86695797

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