|
本帖最后由 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
|
|