nginx_tcp_proxy_module icon indicating copy to clipboard operation
nginx_tcp_proxy_module copied to clipboard

nginx 1.20.2 版本编译错误

Open sxm20074428 opened this issue 3 years ago • 3 comments

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

sxm20074428 avatar Jan 15 '22 02:01 sxm20074428

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.

yaoweibin avatar Nov 06 '22 09:11 yaoweibin

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

CodingOX avatar Nov 11 '22 11:11 CodingOX

Got it.

CodingOX @.***> 于2022年11月11日周五 19:10写道:

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.20.1 same error...

— Reply to this email directly, view it on GitHub https://github.com/yaoweibin/nginx_tcp_proxy_module/issues/177#issuecomment-1311559119, or unsubscribe https://github.com/notifications/unsubscribe-auth/AABFRGOA7QLAJNR2B36GQGLWHYSQPANCNFSM5MAIGLOQ . You are receiving this because you commented.Message ID: @.***>

yaoweibin avatar Nov 13 '22 11:11 yaoweibin