semigodking / redsocks

transparent redirector of any TCP/UDP connection to proxy
Apache License 2.0
1.14k stars 246 forks source link

Compilation error on Debian 11 #187

Closed Tutez-64 closed 5 months ago

Tutez-64 commented 11 months ago

Hello, I installed the prerequisite but I have this error:

# make
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:
encrypt.h:92:18: error: field ‘evp’ has incomplete type
   92 |     cipher_evp_t evp;
      |                  ^~~
encrypt.c: In function ‘enc_key_init’:
encrypt.c:919:17: error: storage size of ‘cipher_info’ isn’t known
  919 |     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]
  146 | 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=]
  139 | static const int supported_ciphers_key_size[] =
      |                  ^~~~~~~~~~~~~~~~~~~~~~~~~~
encrypt.c:134:18: warning: ‘supported_ciphers_iv_size’ defined but not used [-Wunused-const-variable=]
  134 | static const int supported_ciphers_iv_size[] =
      |                  ^~~~~~~~~~~~~~~~~~~~~~~~~
make: *** [<builtin>: encrypt.o] Error 1
semigodking commented 11 months ago

make DISABLE_SHADOWSOCKS=1

Enzo Persillet @.***> 于 2023年7月23日周日 10:52写道:

Hello, I installed the prerequisite but I have this error:

make

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: encrypt.h:92:18: error: field ‘evp’ has incomplete type 92 | cipher_evp_t evp; | ^~~ encrypt.c: In function ‘enc_key_init’: encrypt.c:919:17: error: storage size of ‘cipher_info’ isn’t known 919 | 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] 146 | 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=] 139 | static const int supported_ciphers_key_size[] = | ^~~~~~ encrypt.c:134:18: warning: ‘supported_ciphers_iv_size’ defined but not used [-Wunused-const-variable=] 134 | static const int supported_ciphers_iv_size[] = | ^~~~~~~~~ make: *** [: encrypt.o] Error 1

— Reply to this email directly, view it on GitHub https://github.com/semigodking/redsocks/issues/187, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAP2XDYHWXTOG56CI5E7QXTXRSGV5ANCNFSM6AAAAAA2UG34C4 . You are receiving this because you are subscribed to this thread.Message ID: @.***>