mirror of
https://github.com/ADD-SP/ngx_waf.git
synced 2026-04-26 14:05:52 +03:00
[GH-ISSUE #119] ngx_waf編譯時,沒有適配最新的 libinjection #93
Labels
No labels
MacOS
Nginx
OpenResty
Tengine
bug
documentation
enhancement
needs-investigation
pull-request
question
stale
stale
stale
timeout
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/ngx_waf#93
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @jeromeleong on GitHub (Jan 9, 2023).
Original GitHub issue: https://github.com/ADD-SP/ngx_waf/issues/119
主要是在是libinjection的libinjection_sqli.c出現錯誤
我之後改用了10月的libinjection才沒有出現錯誤
@dne1203 commented on GitHub (Jun 25, 2023):
我似乎遇到了類似的問題,請問您怎麽解決的
cc -c -fPIC -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -fstack-protector-strong -Wno-sign-compare -I src/core -I src/event -I src/event/modules -I src/event/quic -I src/os/unix -I /usr/local/src/ngx_waf/inc -I /usr/local/src/uthash/include -I /usr/local/src/ngx_waf/inc/libinjection/src -I objs -I src/http -I src/http/modules
-o objs/addon/src/libinjection_sqli.o
/usr/local/src/ngx_waf/inc/libinjection/src/libinjection_sqli.c
/usr/local/src/ngx_waf/inc/libinjection/src/libinjection_sqli.c: In function libinjection_version’:
/usr/local/src/ngx_waf/inc/libinjection/src/libinjection_sqli.c:1213:12: error: ‘LIBINJECTION_VERSION’ undeclared (first use in this function); did you mean ‘LIBINJECTION_SQLI_H’?
1213 | return LIBINJECTION_VERSION;
| ^~~~~~~~~~~~~~~~~~~~
| LIBINJECTION_SQLI_H
/usr/local/src/ngx_waf/inc/libinjection/src/libinjection_sqli.c:1213:12: note: each undeclared identifier is reported only once for each function it appears in
/usr/local/src/ngx_waf/inc/libinjection/src/libinjection_sqli.c:1214:1: error: control reaches end of non-void function [-Werror=return-type]
1214 | }
| ^
cc1: all warnings being treated as errors
make[1]: *** [objs/Makefile:1349: objs/addon/src/libinjection_sqli.o] Error 1
make[1]: Leaving directory '/usr/local/src/nginx-1.25.1'
make: *** [Makefile:10: build] Error 2
@liang-hiwin commented on GitHub (Jul 24, 2023):
根据一楼的方法可以解决,具体看截图,找到1的文件,将3的代码改为2,
即1198行代码改为 const char* libinjection_version()
替换这个文件就好了,路径在/xxx/ngx_waf/inc/libinjection/src/
libinjection_sqli.zip
@2837linlinlin commented on GitHub (Nov 10, 2023):
这个问题还没修复吗
@ADD-SP commented on GitHub (Nov 12, 2023):
@2837linlinlin 为什么一翻邮件就有人拷打我(
@osevan commented on GitHub (Dec 27, 2024):
https://github.com/libinjection/libinjection/blob/main/src/libinjection_sqli.c
libinjection code is different now..
we need full working code on par with latest libinjection repository , else nginx doesnt compile.
nginx compile only with above code posted inside zip.
could you update new libinjection_sqli.c file?
i can replace above file, but , this is not actual state of libinjection_sqli.c
@ADD-SP commented on GitHub (Jan 25, 2025):
This issue has been fixed in
LTSversion (v6.1.10). Fixes forcurrentversion is coming soon.此问题已经在 LTS 版本修复,
current版本的修复也正在进行。@ADD-SP commented on GitHub (Jan 25, 2025):
This issues doesn't exists in the
currentversion, closed this issue.