openresty / openresty/lua-nginx-module

compile nginx with lua-nginx-module fail in openssl 1.0.1t enviroment

Open
#2,077 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C
Stars
11.8k
Forks
2.1k
Avg merge
6h 1m
Merged PRs (30d)
6

Description

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

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Read src/ngx_http_lua_ssl_certby.c around ngx_http_lua_ffi_ssl_verify_client and compare the reported builds with OpenSSL 1.0.1t and 1.1.1f. Reproduce the nginx 1.21.6 build using the listed lua-nginx-module and LuaJIT versions; done means the module compiles without the reported implicit-declaration error.

Written by the indexing model from the issue text.

Assessment

Tech stack
c, nginx
Domain
backend, build-system
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.