redsocks
redsocks copied to clipboard
编译失败
arm-openwrt-linux-muslgnueabi-gcc -Os -pipe -fno-caller-saves -fno-plt -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -mfloat-abi=hard -iremap/home/hyird/lede/build_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/redsocks2//redsocks2-0.67:redsocks2-0.67 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -I/home/hyird/lede/staging_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/usr/include -I/home/hyird/lede/staging_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/include -I/home/hyird/lede/staging_dir/toolchain-arm_cortex-a7+neon-vfpv4_gcc-7.5.0_musl_eabi/usr/include -I/home/hyird/lede/staging_dir/toolchain-arm_cortex-a7+neon-vfpv4_gcc-7.5.0_musl_eabi/include/fortify -I/home/hyird/lede/staging_dir/toolchain-arm_cortex-a7+neon-vfpv4_gcc-7.5.0_musl_eabi/include -fPIC -O3 -D_BSD_SOURCE -D_DEFAULT_SOURCE -Wall -std=c99 -D_XOPEN_SOURCE=600 -DUSE_CRYPTO_OPENSSL -c -o encrypt.o encrypt.c
In file included from encrypt.c:50:0:
encrypt.h:92:18: error: field 'evp' has incomplete type
cipher_evp_t evp;
^~~
encrypt.c: In function 'enc_key_init':
encrypt.c:919:17: error: storage size of 'cipher_info' isn't known
cipher_kt_t cipher_info;
^~~~~~~~~~~
encrypt.c:919:17: warning: unused variable 'cipher_info' [-Wunused-variable]
At top level:
encrypt.c:146:12: warning: 'crypto_stream_xor_ic' defined but not used [-Wunused-function]
static int crypto_stream_xor_ic(uint8_t *c, const uint8_t *m, uint64_t mlen,
^~~~~~~~~~~~~~~~~~~~
encrypt.c:139:18: warning: 'supported_ciphers_key_size' defined but not used [-Wunused-const-variable=]
static const int supported_ciphers_key_size[] =
^~~~~~~~~~~~~~~~~~~~~~~~~~
encrypt.c:134:18: warning: 'supported_ciphers_iv_size' defined but not used [-Wunused-const-variable=]
static const int supported_ciphers_iv_size[] =
^~~~~~~~~~~~~~~~~~~~~~~~~
make[4]: *** [
disable掉shadowsock
如果我没猜错的话应该不是编译失败而是连接失败。把最后一步的链接命令拷贝出来。然后把命令行中的下面部分去掉。-lssl 和-lz 如果我没记错的话。然后运行这条命令就可以了。
GektorUA @.***> 于 2022年6月3日周五 04:05写道:
Have same issue on OpenWrt 21.02.3 build, have try already:
make DISABLE_SHADOWSOCKS=1 make DISABLE_SHADOWSOCKS=true
nothing helps., same issue. How to resolve?
— Reply to this email directly, view it on GitHub https://github.com/semigodking/redsocks/issues/139#issuecomment-1145291891, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAP2XD2QB2LGAJ5EETZOKRLVNEH2HANCNFSM4KQXLJIA . You are receiving this because you are subscribed to this thread.Message ID: @.***>