LGA1150 / openwrt-fullconenat

Netfilter and iptables extension for full cone NAT ported to OpenWrt.
157 stars 54 forks source link

OpenWrt SNAPSHOT 编译出错。求大佬教一下 #11

Open tinnlux opened 2 years ago

tinnlux commented 2 years ago

/home/ubuntu/openwrt/staging_dir/toolchain-mipsel_24kc_gcc-11.3.0_musl/lib/gcc/mipsel-openwrt-linux-musl/11.3.0/../../../../mipsel-openwrt-linux-musl/bin/ld: libipt_FULLCONENAT.o: in function _init': libipt_FULLCONENAT.c:(.text+0x4a9): multiple definition of_init'; /home/ubuntu/openwrt/staging_dir/toolchain-mipsel_24kc_gcc-11.3.0_musl/lib/gcc/mipsel-openwrt-linux-musl/11.3.0/../../../../mipsel-openwrt-linux-musl/lib/crti.o:/home/ubuntu/openwrt/build_dir/toolchain-mipsel_24kc_gcc-11.3.0_musl/musl-1.2.3/crt/mips/crti.s:8: first defined here collect2: error: ld returned 1 exit status make[3]: [Makefile:5: libipt_FULLCONENAT.so] Error 1 rm libipt_FULLCONENAT.o make[3]: Leaving directory '/home/ubuntu/openwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt7620/fullconenat-2022-02-13-108a36cb' make[2]: [Makefile:70: /home/ubuntu/openwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt7620/fullconenat-2022-02-13-108a36cb/.built] Error 2 make[2]: Leaving directory '/home/ubuntu/openwrt/package/fullconenat' time: package/fullconenat/compile#1.81#0.39#2.24 ERROR: package/fullconenat failed to build. make[1]: [package/Makefile:116: package/fullconenat/compile] Error 1 make[1]: Leaving directory '/home/ubuntu/openwrt' make: [/home/ubuntu/openwrt/include/toplevel.mk:230:package/fullconenat/compile] 错误 2

这个错误我手动把libipt_FULLCONENAT.c里最后的“void _init(void)”改成“static void _init(void)”可以编译,但是实际测试固件此功能不可用。求大佬解答一下!万分感谢