openresty / lua-nginx-module

Embed the Power of Lua into NGINX HTTP servers
https://openresty.org/
11.23k stars 2.02k forks source link

Nginx + LibreSSL (undefined symbol: SSL_client_hello_get0_ext) #2325

Closed asyslinux closed 1 week ago

asyslinux commented 2 months ago

LibreSSL isn`t supported by lua-nginx-module ?

I look in sources of LibreSSL and don`t find any implementations of SSL_client_hello_get0 functions. But in sources of lua-nginx-module i saw #ifdef LIBRESSL_VERSION_NUMBER directives.

Debian 12 (amd64) / Nginx 1.27.0 / LibreSSL 3.9.2 / Lua nginx module 0.10.26

After success build nginx + lua modules + LibreSSL 3.9.2 i got an error when try load lua module:

check nginx -t: root@bookworm:~/compile/nginx# nginx -t nginx: 2024/07/02 13:43:06 [emerg] 1732916#1732916: dlopen() "/etc/nginx/modules/ngx_http_lua_module.so" failed (/etc/nginx/modules/ngx_http_lua_module.so: undefined symbol: SSL_client_hello_get0_ext) in /etc/nginx/nginx.conf:9

nginx version:

nginx version: nginx/1.27.0
built with LibreSSL 3.9.2
TLS SNI support enabled

nginx.conf:

load_module modules/ndk_http_module.so;
load_module modules/ngx_http_lua_module.so;

Thanks.

zhuizhuhaomeng commented 2 months ago

https://github.com/openresty/lua-nginx-module/pull/2327 @asyslinux would you please try this PR?

asyslinux commented 2 months ago

@zhuizhuhaomeng unfortunately it doesn't work: nginx: [emerg] dlopen() "/etc/nginx/modules/ngx_http_lua_module.so" failed (/etc/nginx/modules/ngx_http_lua_module.so: undefined symbol: SSL_client_hello_get0_ext) in /etc/nginx/nginx.conf:9 nginx: configuration file /etc/nginx/nginx.conf test failed

asyslinux commented 2 months ago

@zhuizhuhaomeng please add this: https://github.com/openresty/lua-nginx-module/pull/2327#pullrequestreview-2160120275

nginx: the configuration file /etc/nginx/nginx.conf syntax is ok
nginx: configuration file /etc/nginx/nginx.conf test is successful