mirror of
https://github.com/ADD-SP/ngx_waf.git
synced 2026-04-26 14:05:52 +03:00
[GH-ISSUE #56] openresty support(编译失败) #35
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#35
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 @gclm on GitHub (Jul 24, 2021).
Original GitHub issue: https://github.com/ADD-SP/ngx_waf/issues/56
环境
错误信息
编译指令
./configure --prefix=/usr/local/openresty
--with-cc-opt='-O2 -DNGX_LUA_ABORT_AT_PANIC -I/usr/local/openresty/zlib/include -I/usr/local/openresty/pcre/include -I/usr/local/openresty/openssl111/include'
--with-ld-opt='-Wl,-rpath,/usr/local/openresty/luajit/lib -L/usr/local/openresty/zlib/lib -L/usr/local/openresty/pcre/lib -L/usr/local/openresty/openssl111/lib -Wl,-rpath,/usr/local/openresty/zlib/lib:/usr/local/openresty/pcre/lib:/usr/local/openresty/openssl111/lib'
--with-cc='ccache gcc -fdiagnostics-color=always'
--with-pcre-jit
--with-stream
--with-stream_ssl_module
--with-stream_ssl_preread_module
--with-http_v2_module
--without-mail_pop3_module
--without-mail_imap_module
--without-mail_smtp_module
--with-http_stub_status_module
--with-http_realip_module
--with-http_addition_module
--with-http_auth_request_module
--with-http_secure_link_module
--with-http_random_index_module
--with-http_gzip_static_module
--with-http_sub_module
--with-http_dav_module
--with-http_flv_module
--with-http_mp4_module
--with-http_gunzip_module
--with-threads
--with-compat
--with-stream
--with-http_ssl_module
--add-dynamic-module=path/ngx_waf
@ADD-SP commented on GitHub (Jul 24, 2021):
关注一下报错信息,按照里面的提示做。
@gclm commented on GitHub (Jul 24, 2021):
已经按照提示在做了。但是发现根本不行。我怀疑原因出现在指令上
@gclm commented on GitHub (Jul 24, 2021):
但是目前使用这个指令可以正确编译ngx_brotli模块
@ADD-SP commented on GitHub (Jul 24, 2021):
这行指令执行没有报错么?
@gclm commented on GitHub (Jul 24, 2021):
没,他是只是个目录切换吧了。核心问题在编译的目录不是这个,正常指令的编译目录:/app/plugins/openresty-1.19.3.2,切换到这个目录重新输入编译指令爆同样的错误。
我个人感觉会不会这个组件不太支持openresty
@ADD-SP commented on GitHub (Jul 24, 2021):
这行指令生成了高级规则的词法分析器。检查下列的文件是否存在于模块的源码目录中。
如果不存在请手动到模块的源代码目录下执行
make,然后再尝试编译。@gclm commented on GitHub (Jul 24, 2021):
好的。我在研究一下
@ADD-SP commented on GitHub (Jul 24, 2021):
@gclm 问题解决了么?如果解决了请关闭本 issue,反之麻烦给出一些错误信息,如命令行的报错信息等。
@gclm commented on GitHub (Jul 24, 2021):
没,同样的错误。
@gclm commented on GitHub (Jul 24, 2021):
现在有点事打算明天再仔细研究一下。看怎么搞
@gclm commented on GitHub (Jul 25, 2021):
截止20210725问题还没有解决。@ADD-SP 你看是直接关闭还是。
@ADD-SP commented on GitHub (Jul 25, 2021):
@gclm 我本地使用相同版本的 openresty 并使用相同的参数可以编译完成,怀疑是
config文件有问题。尝试删除模块源码目录下的config文件中的下列内容,并在模块源码目录下执行make,然后重新尝试编译。github.com/ADD-SP/ngx_waf@4e960b37c9/config (L92-L115)