openresty / openresty/lua-nginx-module
lua-nginx-module compilation issues on rhel 8
Nobody has claimed this yet.
- Dominant language
- C
- Stars
- 11.8k
- Forks
- 2.1k
- Avg merge
- 6h 1m
- Merged PRs (30d)
- 6
Description
Hi Team,
While configuring nginx open source 1.20.1 or 1.21 or 1.22 with lua-nginx-module and set-misc-nginx-module getting error specified below.
Modules:
--add-module=../lua-nginx-module-master --add-module=../set-misc-nginx-module-master
Configure Command:
./configure –prefix=/nginx-1.20.1 --sbin-path=/nginx-1.20.1/nginx --conf-path=/nginx-1.20.1/conf/nginx.conf --pid-path=/nginx-1.20.1/logs/nginx.pid --lock-path=/nginx-1.20.1/logs/nginx.lock --error-log-path=/nginx-1.20.1/logs/error.log --http-log-path=/nginx-1.20.1/logs/access.log --with-http_ssl_module --with-openssl=../openssl-1.1.1k --with-pcre=../pcre-8.45 --with-zlib=../zlib-1.2.11 --add-module=../nginx-auth-ldap-master --with-debug --with-cc-opt='-O0 -g' --with-http_perl_module --with-http_stub_status_module --with-perl_modules_path=/nginx-1.20.1/perl/lib --add-module=../nginx-sticky-module-ng --with-http_auth_request_module --with-ld-opt="-Wl,-rpath, /nginx-1.20.1/lua-5.4.3/lib: /nginx-1.20.1/lj2/lib" --add-module=../ngx_devel_kit-0.3.1rc1 --add-module=../lua-nginx-module-master --add-module=../set-misc-nginx-module-master
Install Command:
make CFLAGS=fPIC install
Error:
../lua-nginx-module-master/src/ngx_http_lua_ndk.c:20:8: error: unknown type name 'ndk_set_var_value_pt'
static ndk_set_var_value_pt ngx_http_lookup_ndk_set_var_directive(u_char *name,
^~~~~~~~~~~~~~~~~~~~
../lua-nginx-module-master/src/ngx_http_lua_ndk.c:39:8: error: unknown type name 'ndk_set_var_value_pt'
static ndk_set_var_value_pt
^~~~~~~~~~~~~~~~~~~~
../lua-nginx-module-master/src/ngx_http_lua_ndk.c: In function 'ngx_http_lookup_ndk_set_var_directive':
../lua-nginx-module-master/src/ngx_http_lua_ndk.c:43:5: error: unknown type name 'ndk_set_var_t'; did you mean 'ngx_keyval_t'?
ndk_set_var_t *filter;
^~~~~~~~~~~~~
ngx_keyval_t
../lua-nginx-module-master/src/ngx_http_lua_ndk.c:67:29: error: 'ndk_set_var_value' undeclared (first use in this function); did you mean 'ngx_signal_value'?
if (cmd->set != ndk_set_var_value) {
^~~~~~~~~~~~~~~~~
ngx_signal_value
../lua-nginx-module-master/src/ngx_http_lua_ndk.c:67:29: note: each undeclared identifier is reported only once for each function it appears in
../lua-nginx-module-master/src/ngx_http_lua_ndk.c:82:21: error: 'ndk_set_var_value_pt' undeclared (first use in this function); did you mean 'ngx_http_lua_value_t'?
return (ndk_set_var_value_pt)(filter->func);
^~~~~~~~~~~~~~~~~~~~
ngx_http_lua_value_t
../lua-nginx-module-master/src/ngx_http_lua_ndk.c:82:49: error: request for member 'func' in something not a structure or union
return (ndk_set_var_value_pt)(filter->func);
^~
../lua-nginx-module-master/src/ngx_http_lua_ndk.c:86:12: warning: returning 'void *' from a function with return type 'int' makes integer from pointer without a cast [-Wint-conversion]
return NULL;
^~~~
../lua-nginx-module-master/src/ngx_http_lua_ndk.c: At top level:
../lua-nginx-module-master/src/ngx_http_lua_ndk.c:92:21: error: unknown type name 'ndk_set_var_value_pt'; did you mean 'ngx_http_lua_value_t'?
size_t var_len, ndk_set_var_value_pt *func)
^~~~~~~~~~~~~~~~~~~~
ngx_http_lua_value_t
../lua-nginx-module-master/src/ngx_http_lua_ndk.c:106:5: error: unknown type name 'ndk_set_var_value_pt'; did you mean 'ngx_http_lua_value_t'?
ndk_set_var_value_pt func, const u_char *arg_data, size_t arg_len,
^~~~~~~~~~~~~~~~~~~~
ngx_http_lua_value_t
make[1]: *** [objs/Makefile:1507: objs/addon/src/ngx_http_lua_ndk.o] Error 1
make[1]: Leaving directory '/nginx-1.20.1'
make: *** [Makefile:13: install] Error 2
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the reported nginx 1.20.1–1.22 build on RHEL 8 with the listed modules and inspect src/ngx_http_lua_ndk.c, where the undefined NDK types are reported. Compare the module configuration and headers involved in that build; done means the configured modules compile and make install completes without these errors.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- c, lua, nginx
- Domain
- backend, build-system
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100