Closed dlford closed 2 years ago
looks like many definitions are not available anymore
looks like many definitions are not available anymore
They are available, however:
Changes with nginx 1.23.0 21 Jun 2022
*) Change in internal API: now header lines are represented as linked
lists.
It requires a fix like https://github.com/openresty/headers-more-nginx-module/pull/136/commits/00e95cb7ae0cad571a47640de0259ef18189aef8
Same issue here.
nginx version: nginx/1.22.0
objs/ngx_modules.o \
-Wl,-z,relro -Wl,-z,now -fPIC -ldl -lpthread -lpthread -lcrypt -lpcre2-8 -lssl -lcrypto -ldl -lpthread -lz \
-Wl,-E
cc -c -fPIC -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -g -O2 -ffile-prefix-map=/build/nginx-1.22.0=. -fstack-protector-strong -Wformat -Werror=format-security -fPIC -Wdate-time -D_FORTIFY_SOURCE=2 -I src/core -I src/event -I src/event/modules -I src/os/unix -I objs -I src/http -I src/http/modules -I src/http/v2 \
-o objs/addon/naxsi_src/naxsi_runtime.o \
../naxsi-1.3/naxsi_src//naxsi_runtime.c
../naxsi-1.3/naxsi_src//naxsi_runtime.c: In function ‘ngx_http_process_basic_rule_buffer’:
../naxsi-1.3/naxsi_src//naxsi_runtime.c:205:61: error: invalid use of incomplete typedef ‘ngx_regex_t’ {aka ‘struct pcre2_real_code_8’}
205 | (tmp_idx < len && (match = pcre_exec(rl->br->rx->regex->code,
| ^~
../naxsi-1.3/naxsi_src//naxsi_runtime.c: In function ‘ngx_http_naxsi_pcre_wrapper’:
../naxsi-1.3/naxsi_src//naxsi_runtime.c:500:30: error: invalid use of incomplete typedef ‘ngx_regex_t’ {aka ‘struct pcre2_real_code_8’}
500 | match = pcre_exec(rx->regex->code, 0, (const char*)str, len, 0, 0, captures, 1);
| ^~
make[1]: *** [objs/Makefile:1461: objs/addon/naxsi_src/naxsi_runtime.o] Error 1
make[1]: Leaving directory '/tmp/tmp.qsuwWV9da0/nginx-1.22.0'
make: *** [Makefile:10: build] Error 2
make -f objs/Makefile install
make[1]: Entering directory '/tmp/tmp.qsuwWV9da0/nginx-1.22.0'
cc -c -fPIC -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -g -O2 -ffile-prefix-map=/build/nginx-1.22.0=. -fstack-protector-strong -Wformat -Werror=format-security -fPIC -Wdate-time -D_FORTIFY_SOURCE=2 -I src/core -I src/event -I src/event/modules -I src/os/unix -I objs -I src/http -I src/http/modules -I src/http/v2 \
-o objs/addon/naxsi_src/naxsi_runtime.o \
../naxsi-1.3/naxsi_src//naxsi_runtime.c
../naxsi-1.3/naxsi_src//naxsi_runtime.c: In function ‘ngx_http_process_basic_rule_buffer’:
../naxsi-1.3/naxsi_src//naxsi_runtime.c:205:61: error: invalid use of incomplete typedef ‘ngx_regex_t’ {aka ‘struct pcre2_real_code_8’}
205 | (tmp_idx < len && (match = pcre_exec(rl->br->rx->regex->code,
| ^~
../naxsi-1.3/naxsi_src//naxsi_runtime.c: In function ‘ngx_http_naxsi_pcre_wrapper’:
../naxsi-1.3/naxsi_src//naxsi_runtime.c:500:30: error: invalid use of incomplete typedef ‘ngx_regex_t’ {aka ‘struct pcre2_real_code_8’}
500 | match = pcre_exec(rx->regex->code, 0, (const char*)str, len, 0, 0, captures, 1);
| ^~
make[1]: *** [objs/Makefile:1461: objs/addon/naxsi_src/naxsi_runtime.o] Error 1
make[1]: Leaving directory '/tmp/tmp.qsuwWV9da0/nginx-1.22.0'
make: *** [Makefile:13: install] Error 2
The same error is reported. Is there a solution?
closing since this issue has been fixed here: https://github.com/wargio/naxsi/commit/9e06c5f53b2e393e40e9df7746a7b8bc4c2abfa4
@wargio is the fix going to make it into nbs-system/naxsi? Or is your repo upstream now? Pardon my confusion.
no. this is an abandoned repository. mine is going to be the upstream.
Environment:
Info from last successful build:
Error in build: