Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

macos 环境下编译错误 #313

Closed
FarmerLi opened this issue Oct 18, 2023 · 1 comment
Closed

macos 环境下编译错误 #313

FarmerLi opened this issue Oct 18, 2023 · 1 comment

Comments

@FarmerLi
Copy link

FarmerLi commented Oct 18, 2023

config 文件中
ngx_feature_name=
ngx_feature_run=no
ngx_feature_incs="#include <modsecurity/modsecurity.h>"
ngx_feature_libs="-lmodsecurity"
ngx_feature_test='printf("hello");'
ngx_modsecurity_opt_I=
ngx_modsecurity_opt_L=
ngx_feature_test 使用了printf,但是没有 #include <stdio.h> ,导致编译检查组件时无法通过测试,建议调整为:
ngx_feature_incs="#include <stdio.h>\n#include <modsecurity/modsecurity.h>"

@martinhsv
Copy link
Contributor

It's unclear what this is about. Closing.

(Please keep in mind, that this repo is being operated in English, as the best choice for maximum comprehension by the community.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants