Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
tinnlux opened this issue Jul 21, 2022 · 0 comments
Open

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

tinnlux opened this issue Jul 21, 2022 · 0 comments

Comments

@tinnlux
Copy link

tinnlux commented Jul 21, 2022

/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)”可以编译,但是实际测试固件此功能不可用。求大佬解答一下!万分感谢

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant