wargio / naxsi

NAXSI is an open-source, high performance, low rules maintenance WAF for NGINX
GNU General Public License v3.0
305 stars 38 forks source link

dont compile #95

Closed redati closed 1 year ago

redati commented 1 year ago

i am get https://github.com/libinjection/libinjection/tree/51f3a96e9fcc90a6112f52ac96fd4661e7ab0a44 but, dont work...

this is part of log.

    -o objs/addon/libinjection_ngxbuild/libinjection_sqli.o \
    /home/ubuntu/naxsi-1.4/naxsi_src/libinjection_ngxbuild/libinjection_sqli.c

/home/ubuntu/naxsi-1.4/naxsi_src/libinjection_ngxbuild/libinjection_sqli.c: In function ‘libinjection_version’: /home/ubuntu/naxsi-1.4/naxsi_src/libinjection_ngxbuild/libinjection_sqli.c:1214:12: error: ‘LIBINJECTION_VERSION’ undeclared (first use in this function); did you mean ‘LIBINJECTION_SQLI_H’? 1214 | return LIBINJECTION_VERSION; | ^~~~~~~~ | LIBINJECTION_SQLI_H /home/ubuntu/naxsi-1.4/naxsi_src/libinjection_ngxbuild/libinjection_sqli.c:1214:12: note: each undeclared identifier is reported only once for each function it appears in /home/ubuntu/naxsi-1.4/naxsi_src/libinjection_ngxbuild/libinjection_sqli.c:1215:1: error: control reaches end of non-void function [-Werror=return-type] 1215 | } | ^

redati commented 1 year ago

fix

redati commented 1 year ago

fix

redati commented 1 year ago

ok