honwen / openwrt-shadowsocksr

ShadowsocksR-libev for OpenWrt/LEDE
GNU General Public License v3.0
146 stars 49 forks source link

can't make it on OpenWrt 21.02.2 #11

Closed jack338c closed 9 months ago

jack338c commented 9 months ago

hello Master ! hope everthing is fine to you. I use this project on my portable openwrt for several year,it's really good ,many thanks I can make it on lede17.01 and OpenWrt SNAPSHOT r17840-76817fff14 / LuCI Master git-21.168.43899-e8a6f0b

But I can't make it on OpenWrt 21.02.2 ,could you give me a little tips to solve the problem

Here are the logs,environment: Ubuntu 22.04.3 LTS

mv -f .deps/ss_local-http.Tpo .deps/ss_local-http.Po ccache_cc -DHAVE_CONFIG_H -I. -I.. -I/home/jack4/ea6350chen/staging_dir/toolchain-arm_cortex-a7+neon-vfpv4_gcc-10.2.0_musl_eabi/usr/include -I/home/jack4/ea6350chen/staging_dir/toolchain-arm_cortex-a7+neon-vfpv4_gcc-10.2.0_musl_eabi/include/fortify -I/home/jack4/ea6350chen/staging_dir/toolchain-arm_cortex-a7+neon-vfpv4_gcc-10.2.0_musl_eabi/include -g -O2 -Wall -Werror -Wno-deprecated-declarations -fno-strict-aliasing -std=gnu99 -D_GNU_SOURCE -I../libev -I../libudns -I../libsodium/src/libsodium/include -I../libipset/include -I../libcork/include -DMODULE_LOCAL -Os -pipe -fno-caller-saves -fno-plt -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -mfloat-abi=hard -ffile-prefix-map=/home/jack4/ea6350chen/build_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/shadowsocksr-libev//shadowsocksr-libev-2018-03-07-d63ff863800a5645aca4309d5dd5962bd1e95543=shadowsocksr-libev-2018-03-07-d63ff863800a5645aca4309d5dd5962bd1e95543 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -I/home/jack4/ea6350chen/staging_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/usr/include -DPCRE_STATIC -I/home/jack4/ea6350chen/staging_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/usr/include -MT ss_local-tls.o -MD -MP -MF .deps/ss_local-tls.Tpo -c -o ss_local-tls.otest -f 'tls.c' || echo './'tls.c mv -f .deps/ss_local-tls.Tpo .deps/ss_local-tls.Po ccache_cc -DHAVE_CONFIG_H -I. -I.. -I/home/jack4/ea6350chen/staging_dir/toolchain-arm_cortex-a7+neon-vfpv4_gcc-10.2.0_musl_eabi/usr/include -I/home/jack4/ea6350chen/staging_dir/toolchain-arm_cortex-a7+neon-vfpv4_gcc-10.2.0_musl_eabi/include/fortify -I/home/jack4/ea6350chen/staging_dir/toolchain-arm_cortex-a7+neon-vfpv4_gcc-10.2.0_musl_eabi/include -g -O2 -Wall -Werror -Wno-deprecated-declarations -fno-strict-aliasing -std=gnu99 -D_GNU_SOURCE -I../libev -I../libudns -I../libsodium/src/libsodium/include -I../libipset/include -I../libcork/include -DMODULE_LOCAL -Os -pipe -fno-caller-saves -fno-plt -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -mfloat-abi=hard -ffile-prefix-map=/home/jack4/ea6350chen/build_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/shadowsocksr-libev//shadowsocksr-libev-2018-03-07-d63ff863800a5645aca4309d5dd5962bd1e95543=shadowsocksr-libev-2018-03-07-d63ff863800a5645aca4309d5dd5962bd1e95543 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -I/home/jack4/ea6350chen/staging_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/usr/include -DPCRE_STATIC -I/home/jack4/ea6350chen/staging_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/usr/include -MT ss_local-rule.o -MD -MP -MF .deps/ss_local-rule.Tpo -c -o ss_local-rule.otest -f 'rule.c' || echo './'rule.c mv -f .deps/ss_local-rule.Tpo .deps/ss_local-rule.Po /bin/bash ../libtool --tag=CC --mode=link ccache_cc -g -O2 -Wall -Werror -Wno-deprecated-declarations -fno-strict-aliasing -std=gnu99 -D_GNU_SOURCE -I../libev -I../libudns -I../libsodium/src/libsodium/include -I../libipset/include -I../libcork/include -DMODULE_LOCAL -Os -pipe -fno-caller-saves -fno-plt -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -mfloat-abi=hard -ffile-prefix-map=/home/jack4/ea6350chen/build_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/shadowsocksr-libev//shadowsocksr-libev-2018-03-07-d63ff863800a5645aca4309d5dd5962bd1e95543=shadowsocksr-libev-2018-03-07-d63ff863800a5645aca4309d5dd5962bd1e95543 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -I/home/jack4/ea6350chen/staging_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/usr/include -DPCRE_STATIC -I/home/jack4/ea6350chen/staging_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/usr/include -Wl,-static -static -static-libgcc -L/home/jack4/ea6350chen/staging_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/usr/lib -L/home/jack4/ea6350chen/staging_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/usr/lib -o ss-local ss_local-utils.o ss_local-jconf.o ss_local-json.o ss_local-encrypt.o ss_local-udprelay.o ss_local-cache.o ss_local-acl.o ss_local-netutils.o ss_local-local.o ss_local-http.o ss_local-tls.o ss_local-rule.o ../libipset/libipset.la ../libcork/libcork.la ../libev/libev.la ../libsodium/src/libsodium/libsodium.la ../libudns/libudns.la -lmbedcrypto -lpcre OpenWrt-libtool: link: ccache_cc -g -O2 -Wall -Werror -Wno-deprecated-declarations -fno-strict-aliasing -std=gnu99 -D_GNU_SOURCE -I../libev -I../libudns -I../libsodium/src/libsodium/include -I../libipset/include -I../libcork/include -DMODULE_LOCAL -Os -pipe -fno-caller-saves -fno-plt -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -mfloat-abi=hard -ffile-prefix-map=/home/jack4/ea6350chen/build_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/shadowsocksr-libev//shadowsocksr-libev-2018-03-07-d63ff863800a5645aca4309d5dd5962bd1e95543=shadowsocksr-libev-2018-03-07-d63ff863800a5645aca4309d5dd5962bd1e95543 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z -Wl,now -Wl,-z -Wl,relro -I/home/jack4/ea6350chen/staging_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/usr/include -DPCRE_STATIC -I/home/jack4/ea6350chen/staging_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/usr/include -Wl,-static -static-libgcc -o ss-local ss_local-utils.o ss_local-jconf.o ss_local-json.o ss_local-encrypt.o ss_local-udprelay.o ss_local-cache.o ss_local-acl.o ss_local-netutils.o ss_local-local.o ss_local-http.o ss_local-tls.o ss_local-rule.o -L/home/jack4/ea6350chen/staging_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/usr/lib ../libipset/.libs/libipset.a ../libcork/.libs/libcork.a ../libev/.libs/libev.a ../libsodium/src/libsodium/.libs/libsodium.a ../libudns/.libs/libudns.a -lmbedcrypto -lpcre /home/jack4/ea6350chen/staging_dir/toolchain-arm_cortex-a7+neon-vfpv4_gcc-10.2.0_musl_eabi/lib/gcc/arm-openwrt-linux-muslgnueabi/10.2.0/../../../../arm-openwrt-linux-muslgnueabi/bin/ld: ss_local-http.o:/home/jack4/ea6350chen/build_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/shadowsocksr-libev/shadowsocksr-libev-2018-03-07-d63ff863800a5645aca4309d5dd5962bd1e95543/src/http.h:32: multiple definition ofhttp_protocol'; ss_local-local.o:/home/jack4/ea6350chen/build_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/shadowsocksr-libev/shadowsocksr-libev-2018-03-07-d63ff863800a5645aca4309d5dd5962bd1e95543/src/http.h:32: first defined here /home/jack4/ea6350chen/staging_dir/toolchain-arm_cortex-a7+neon-vfpv4_gcc-10.2.0_musl_eabi/lib/gcc/arm-openwrt-linux-muslgnueabi/10.2.0/../../../../arm-openwrt-linux-muslgnueabi/bin/ld: ss_local-tls.o:/home/jack4/ea6350chen/build_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/shadowsocksr-libev/shadowsocksr-libev-2018-03-07-d63ff863800a5645aca4309d5dd5962bd1e95543/src/tls.h:31: multiple definition of tls_protocol'; ss_local-local.o:/home/jack4/ea6350chen/build_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/shadowsocksr-libev/shadowsocksr-libev-2018-03-07-d63ff863800a5645aca4309d5dd5962bd1e95543/src/tls.h:31: first defined here collect2: error: ld returned 1 exit status make[5]: *** [Makefile:625: ss-local] Error 1 make[5]: Leaving directory '/home/jack4/ea6350chen/build_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/shadowsocksr-libev/shadowsocksr-libev-2018-03-07-d63ff863800a5645aca4309d5dd5962bd1e95543/src' make[4]: *** [Makefile:478: all-recursive] Error 1 make[4]: Leaving directory '/home/jack4/ea6350chen/build_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/shadowsocksr-libev/shadowsocksr-libev-2018-03-07-d63ff863800a5645aca4309d5dd5962bd1e95543' make[3]: *** [Makefile:387: all] Error 2 make[3]: Leaving directory '/home/jack4/ea6350chen/build_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/shadowsocksr-libev/shadowsocksr-libev-2018-03-07-d63ff863800a5645aca4309d5dd5962bd1e95543' make[2]: *** [Makefile:90: /home/jack4/ea6350chen/build_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/shadowsocksr-libev//shadowsocksr-libev-2018-03-07-d63ff863800a5645aca4309d5dd5962bd1e95543/.built] Error 2 make[2]: Leaving directory '/home/jack4/ea6350chen/package/feeds/openwrt-shadowsocksr' time: package/feeds/openwrt-shadowsocksr/compile#30.43#6.77#47.84 ERROR: package/feeds/openwrt-shadowsocksr failed to build. make[1]: *** [package/Makefile:116: package/feeds/openwrt-shadowsocksr/compile] Error 1 make[1]: Leaving directory '/home/jack4/ea6350chen' make: *** [/home/jack4/ea6350chen/include/toplevel.mk:230: package/feeds/openwrt-shadowsocksr/compile] Error 2 jack4@jack4HP:~/ea6350chen$