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

开发者你好,烦请提供编译好的可执行文件吧 #185

Open
wholenewx opened this issue May 28, 2023 · 6 comments
Open

开发者你好,烦请提供编译好的可执行文件吧 #185

wholenewx opened this issue May 28, 2023 · 6 comments

Comments

@wholenewx
Copy link

您好开发者,我因为需要能处理udp的流量转发工具而找到这里,我对编程完全一窍不通,您的源码,我在debian11和majaro系统上怎么都编译不出来,debian上的错误是:
In file included from parser.c:29: utils.h:7:10: fatal error: event2/event.h: No such file or directory 7 | #include <event2/event.h> | ^~~~~~~~~~~~~~~~ compilation terminated. make: *** [<builtin>: parser.o] Error 1

majaro上的错误是:
encrypt.c: 在函数‘enc_key_init’中: encrypt.c:919:17: 错误:‘cipher_info’的存储大小未知 919 | cipher_kt_t cipher_info; | ^~~~~~~~~~~ encrypt.c:919:17: 警告:未使用的变量‘cipher_info’ [-Wunused-variable] encrypt.c: 在文件作用域: encrypt.c:146:12: 警告:‘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: 警告:‘supported_ciphers_key_size’ defined but not used [-Wunused-const-variable=] 139 | static const int supported_ciphers_key_size[] = | ^~~~~~~~~~~~~~~~~~~~~~~~~~ encrypt.c:134:18: 警告:‘supported_ciphers_iv_size’ defined but not used [-Wunused-const-variable=] 134 | static const int supported_ciphers_iv_size[] = | ^~~~~~~~~~~~~~~~~~~~~~~~~ make: *** [<内置>:encrypt.o] 错误 1

都只是默认的make,没有任何特殊需求,但这些错误提示对我们不会编程的人如同天书,根本无从下手。烦请您提供一下amd64、arm64等几个主流平台的可执行文件吧!感谢!

@semigodking
Copy link
Owner

semigodking commented May 29, 2023 via email

@wholenewx
Copy link
Author

wholenewx commented May 29, 2023

根据您的提示,分别在debian和manjaro系统里运行 “make DISABLE_SHADOWSOCKS=1 ENABLE_STATIC=1”,但依然还是错误,

debian的错误是:
In file included from parser.c:29: utils.h:7:10: fatal error: event2/event.h: No such file or directory 7 | #include <event2/event.h> | ^~~~~~~~~~~~~~~~ compilation terminated. make: *** [<builtin>: parser.o] Error 1
Manjaro的错误是:
/usr/bin/ld: 找不到 -levent: 没有那个文件或目录 /usr/bin/ld: 找不到 -lssl: 没有那个文件或目录 /usr/bin/ld: 找不到 -lcrypto: 没有那个文件或目录 /usr/bin/ld: base.o: in function base_init':
base.c:(.text+0x388): 警告:Using 'getgrnam' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
/usr/bin/ld: base.c:(.text+0x367): 警告:Using 'getpwnam' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
/usr/bin/ld: parser.o: in function vp_in_addr': parser.c:(.text+0x35b): 警告:Using 'getaddrinfo' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking collect2: 错误:ld 返回 1 make: *** [Makefile:153:redsocks2] 错误 1

@rampageX
Copy link

Prerequisites
The following libraries are required.

libevent2
OpenSSL or PolarSSL

@wholenewx
Copy link
Author

Prerequisites The following libraries are required.

libevent2 OpenSSL or PolarSSL

debian11的源里面没有libevent2这个包

@ghost
Copy link

ghost commented Jun 8, 2023

Prerequisites The following libraries are required.
libevent2 OpenSSL or PolarSSL

debian11的源里面没有libevent2这个包

Please run:

sudo apt install libevent-core-2.1-7 libevent-extra-2.1-7 libevent-dev

@TerenceCooper
Copy link

Prerequisites The following libraries are required.
libevent2 OpenSSL or PolarSSL

debian11的源里面没有libevent2这个包

Please run:

sudo apt install libevent-core-2.1-7 libevent-extra-2.1-7 libevent-dev

Thank you so much, Sir! I was failed building first time, then I installed these packages you mentioned here and built successfully!

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

4 participants