redsocks
redsocks copied to clipboard
求助大神,编译不成功
抱歉,本人对Linux不熟,摸索了好多天,都没有成功编译,卡在如下位置了:
Compile with OpenSSL by default. To compile with PolarSSL, run 'make USE_CRYPTO_POLARSSL=true' instead.
cc -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[] =
^~~~~~~~~~~~~~~~~~~~~~~~~
如果你需要ss的话,要用旧版的openssl 来编译。大约应该是0.98这样的版本。
newwlfz2015 @.***> 于 2023年4月6日周四 22:23写道:
抱歉,本人对Linux不熟,摸索了好多天,都没有成功编译,卡在如下位置了:
Compile with OpenSSL by default. To compile with PolarSSL, run 'make USE_CRYPTO_POLARSSL=true' instead. cc -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[] = ^~~~~~~~~~~~~~~~~~~~~~~~~ : recipe for target 'encrypt.o' failed make: *** [encrypt.o] Error 1
— Reply to this email directly, view it on GitHub https://github.com/semigodking/redsocks/issues/184, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAP2XD5WZWWNPN7A6D4P2JTW73GW5ANCNFSM6AAAAAAWVPMOKU . You are receiving this because you are subscribed to this thread.Message ID: @.***>
如果你需要ss的话,要用旧版的openssl 来编译。大约应该是0.98这样的版本。 newwlfz2015 @.**> 于 2023年4月6日周四 22:23写道: … 抱歉,本人对Linux不熟,摸索了好多天,都没有成功编译,卡在如下位置了: Compile with OpenSSL by default. To compile with PolarSSL, run 'make USE_CRYPTO_POLARSSL=true' instead. cc -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[] = ^~~~~~~~~~~~~~~~~~~~~~~~~ : recipe for target 'encrypt.o' failed make: *** [encrypt.o] Error 1 — Reply to this email directly, view it on GitHub <#184>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAP2XD5WZWWNPN7A6D4P2JTW73GW5ANCNFSM6AAAAAAWVPMOKU . You are receiving this because you are subscribed to this thread.Message ID: @.>
感谢大神回复,因为部分用户(比如我)只想使用redsocks2,而无开发的需求,不知道大神能否针对x86_64、arm及arm64架构,分别编译后的程序提供直接下载?虽然只是一个可执行文件,但对我们这些生手来说确实太难了,前前后后折腾一个多月了。
其实你仔细看一下. github文件夹里面的内容就能发现build 的步骤. Linux下build就三条命令。
build:
runs-on: ubuntu-latest
steps:
- uses: ***@***.***
- name: install depends
run: |
sudo apt update
sudo apt install -y libssl1.0-dev libevent-dev
- name: Build
run: make
newwlfz2015 @.***> 于 2023年4月9日周日 23:06写道:
如果你需要ss的话,要用旧版的openssl 来编译。大约应该是0.98这样的版本。 newwlfz2015 @.**
> 于 2023年4月6日周四 22:23写道: … <#m_2587632136541526378_> 抱歉,本人对Linux不熟,摸索了好多天,都没有成功编译,卡在如下位置了: Compile with OpenSSL by default. To compile with PolarSSL, run 'make USE_CRYPTO_POLARSSL=true' instead. cc -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[] = ^~~~~~~~~~~~~~~~~~~~~~~~~ : recipe for target 'encrypt.o' failed make: *** [encrypt.o] Error 1 — Reply to this email directly, view it on GitHub <#184 https://github.com/semigodking/redsocks/issues/184>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAP2XD5WZWWNPN7A6D4P2JTW73GW5ANCNFSM6AAAAAAWVPMOKU https://github.com/notifications/unsubscribe-auth/AAP2XD5WZWWNPN7A6D4P2JTW73GW5ANCNFSM6AAAAAAWVPMOKU . You are receiving this because you are subscribed to this thread.Message ID: @.>
感谢大神回复,因为部分用户(比如我)只想使用redsocks2,而无开发的需求,不知道大神能否针对x86_64、arm及arm64架构,分别编译后的程序提供直接下载?虽然只是一个可执行文件,但对我们这些生手来说确实太难了,前前后后折腾一个多月了。
— Reply to this email directly, view it on GitHub https://github.com/semigodking/redsocks/issues/184#issuecomment-1501150006, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAP2XD643GIQMZF7QLAUAKTXALF6HANCNFSM6AAAAAAWVPMOKU . You are receiving this because you commented.Message ID: @.***>