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

nginx 1.20.2 版本编译错误 #177

Open
sxm20074428 opened this issue Jan 15, 2022 · 3 comments
Open

nginx 1.20.2 版本编译错误 #177

sxm20074428 opened this issue Jan 15, 2022 · 3 comments

Comments

@sxm20074428
Copy link

In file included from src/event/ngx_event_openssl.h:17:0,
from src/core/ngx_core.h:84,
from ../nginx_tcp_proxy_module-master//modules/ngx_tcp_ssl_module.c:3:
../nginx_tcp_proxy_module-master//modules/ngx_tcp_ssl_module.c: 在函数‘ngx_tcp_ssl_merge_srv_conf’中:
../nginx_tcp_proxy_module-master//modules/ngx_tcp_ssl_module.c:389:49: 错误:‘ngx_ssl_rsa512_key_callba ck’未声明(在此函数内第一次使用)
SSL_CTX_set_tmp_rsa_callback(conf->ssl.ctx, ngx_ssl_rsa512_key_callback);
^
../openssl-1.1.1m/.openssl/include/openssl/ssl.h:1492:62: 附注:in definition of macro ‘SSL_CTX_set_tmp _rsa_callback’

define SSL_CTX_set_tmp_rsa_callback(ctx, cb) while(0) (cb)(NULL, 0, 0)

                                                          ^

../nginx_tcp_proxy_module-master//modules/ngx_tcp_ssl_module.c:389:49: 附注:每个未声明的标识符在其出现 的函数内只报告一次
SSL_CTX_set_tmp_rsa_callback(conf->ssl.ctx, ngx_ssl_rsa512_key_callback);
^
../openssl-1.1.1m/.openssl/include/openssl/ssl.h:1492:62: 附注:in definition of macro ‘SSL_CTX_set_tmp _rsa_callback’

define SSL_CTX_set_tmp_rsa_callback(ctx, cb) while(0) (cb)(NULL, 0, 0)

                                                          ^

make[1]: *** [objs/addon/modules/ngx_tcp_ssl_module.o] 错误 1
make[1]: 离开目录“/usr/local/nginx-1.20.2”
make: *** [build] 错误 2

@yaoweibin
Copy link
Owner

It looks like it's broken since nginx-1.20.2, they change a lot of SSL functions. Let me see how to solve it.

@CodingOX
Copy link

CodingOX commented Nov 11, 2022

It looks like it's broken since nginx-1.20.2, they change a lot of SSL functions. Let me see how to solve it.

nginx-1.19.10 nginx-1.20.1 same error...

so sad...

@yaoweibin

@yaoweibin
Copy link
Owner

yaoweibin commented Nov 13, 2022 via email

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

3 participants