lua-nginx-module
lua-nginx-module copied to clipboard
compile nginx with lua-nginx-module fail in openssl 1.0.1t enviroment
Linux version 5.4.0-107-generic (buildd@lcy02-amd64-058) (gcc version 9.4.0 (Ubuntu 9.4.0-1ubuntu1~20.04.1)) #121-Ubuntu SMP Thu Mar 24 16:04:27 UTC 2022 nginx 1.21.6, 1.19.3 both same fail. lua-nginx-module: 0.10.21 luajit: luajit2-2.1-20220411 ndk: ngx_devel_kit-0.3.1
Last time, I complile success with openssl version OpenSSL 1.1.1f 31 Mar 2020 This time, I use: OpenSSL 1.0.1t 3 May 2016 compile fail and got this :
cc -c -I/usr/local/LuaJIT/include/luajit-2.1 -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -DNDK_SET_VAR -I src/core -I src/event -I src/event/modules -I src/os/unix -I /app/20220718/ngx_devel_kit-0.3.1/objs -I objs/addon/ndk -I /app/20220718/lua-nginx-module-0.10.21/src/api -I objs -I src/http -I src/http/modules -I /app/20220718/ngx_devel_kit-0.3.1/src -I /app/20220718/ngx_devel_kit-0.3.1/src -I /app/20220718/ngx_devel_kit-0.3.1/objs -I objs/addon/ndk -I /usr/local/LuaJIT/include/luajit-2.1
-o objs/addon/src/ngx_http_lua_ssl_ocsp.o
/app/20220718/lua-nginx-module-0.10.21/src/ngx_http_lua_ssl_ocsp.c
/app/20220718/lua-nginx-module-0.10.21/src/ngx_http_lua_ssl_certby.c: In function 'ngx_http_lua_ffi_ssl_verify_client':
/app/20220718/lua-nginx-module-0.10.21/src/ngx_http_lua_ssl_certby.c:1461:13: error: implicit declaration of function 'SSL_set0_verify_cert_store' [-Werror=implicit-function-declaration]
if (SSL_set0_verify_cert_store(ssl_conn, ca_store) == 0) {
^
cc1: all warnings being treated as errors
make[1]: *** [objs/addon/src/ngx_http_lua_ssl_certby.o] Error 1
make[1]: *** Waiting for unfinished jobs....
make[1]: Leaving directory `/app/20220718/nginx-1.21.6'
make: *** [build] Error 2