VirtuBox/nginx-ee

nginx compile with NAXSI WAF not possible

Rar9 opened this issue · 0 comments

Rar9 commented

Attach the following commands output

  • lsb_release -a : Ubuntu 18.04.6 LTS
  • nginx -V : 1.121.6

Describe the bug
A clear and concise description of what the bug is.

nginx compile with NAXSI WAF not possible

cc1: note: ‘-gsplit-dwarf’ is not supported with LTO, disabling
../naxsi/naxsi_src/naxsi_runtime.c: In function ‘ngx_http_process_basic_rule_buffer’:
../naxsi/naxsi_src/naxsi_runtime.c:205:61: error: dereferencing pointer to incomplete type ‘ngx_regex_t’ {aka ‘struct pcre2_real_code_8’}
205 | (tmp_idx < len && (match = pcre_exec(rl->br->rx->regex->code,
| ^~
objs/Makefile:1617: recipe for target 'objs/addon/naxsi_src/naxsi_runtime.o' failed
make[1]: *** [objs/addon/naxsi_src/naxsi_runtime.o] Error 1
make[1]: Leaving directory '/usr/local/src/nginx'