mirror of
https://github.com/ADD-SP/ngx_waf.git
synced 2026-04-26 22:15:55 +03:00
[GH-ISSUE #41] Failure to compile in CentOS/RHEL 7 #23
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#23
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 @FlyBirdF on GitHub (May 26, 2021).
Original GitHub issue: https://github.com/ADD-SP/ngx_waf/issues/41
Error
Run the following commands
I run the following commands when i first saw this error, but noting was changed, the error shows again.
@ADD-SP commented on GitHub (May 26, 2021):
Make sure the following files exist in
/usr/local/src/uthash/include.If the above file does not exist, please download it.
Make sure the value of
$LIB_UTHASHis/usr/local/src/uthash.Are the access permissions for the
/usr/local/src/uthashcorrect?Before executing
./configure, the above three conditions need to be met.@FlyBirdF commented on GitHub (May 26, 2021):
I have checked the above three needs, seem everything is ok, but when i run "./configure" the same error shows again.
@ADD-SP commented on GitHub (May 26, 2021):
Please provide the contents of
/usr/local/src/nginx-1.18.0/objs/autoconf.err.@FlyBirdF commented on GitHub (May 26, 2021):
Here is the
autoconf.errfile.@ADD-SP commented on GitHub (May 26, 2021):
There is a bug in the file
configof this module, which has been fixed in the branchhotfix-compile, please retry with the code from this branch.@FlyBirdF commented on GitHub (May 26, 2021):
Thank you for your help, it works.But it raises another problem when i run the
make modulescommand.There is the error:
@FlyBirdF commented on GitHub (May 26, 2021):
And i can find the
sodium.hheader file at/usr/local/libsodium, the env variables containsLIB_SODIUM="/usr/local/libsodium"andLIB_UTHASH="/usr/local/src/uthash".@ADD-SP commented on GitHub (May 26, 2021):
Fixed in branch
hotfix-compile.@ADD-SP commented on GitHub (May 26, 2021):
Fixed in v5.3.1.
@FlyBirdF commented on GitHub (May 27, 2021):
Thanks, it works. But it shows a error after i copy the
ngx_http_waf_module.sofile to my module folder of nginx and runnginx -tcommand.Error:
@ADD-SP commented on GitHub (May 27, 2021):
Do not change
/usr/local/libsodiumafter compilation, and make sure that the nginx process can read all the contents of this directory. This directory contains the dynamic libraries needed to run the module, and errors will occur if the path or contents change.@ADD-SP commented on GitHub (May 27, 2021):
Try to run the following command and then retry.
It may be a problem with the search path of dynamic libraries, I am considering whether to link these libraries statically or not.
@ADD-SP commented on GitHub (May 27, 2021):
This should also be solved by creating a symbolic link under
/usr/libor/lib.@FlyBirdF commented on GitHub (May 27, 2021):
Thanks a lot. I run the following commands and the problem have been solved.
By the way, the hostname
cobbleris my compile machine, thenginxis my prod host, i use the dynamic method in mycobblerhost and the static method in mynginxhost, both of them are works well.