yaoweibin / nginx_tcp_proxy_module

add the feature of tcp proxy with nginx, with health check and status monitor
http://yaoweibin.github.com/nginx_tcp_proxy_module
1.64k stars 366 forks source link

nginx 1.20.2 版本编译错误 #177

Open sxm20074428 opened 2 years ago

sxm20074428 commented 2 years ago

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 commented 1 year ago

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 commented 1 year ago

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 commented 1 year ago

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: @.***>