lua-nginx-module
lua-nginx-module copied to clipboard
lua-nginx-module compilation issues on rhel 8
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