-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Compiler error with LUA for libmodsecurity 3.0 #1622
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
Comments
Hi @luengnat, As of now libModSecurity is fully compatible with Lua 5.3. I'm currently working on a patch to also add support for Lua 5.2 and avoid these errors when Lua <5.2 is used. Unfortunately Lua 5.1 is unsupported for now. Try upgrading to Lua 5.3 and you should be good. |
The documentation said that it should be compatible with 5.1. Sadly, 5.1 is still popular as it is what being distributed with RHEL 7.4. Is there a way to disable LUA if it's already installed? |
Hi @luengnat, Please do notice that the documentation regarding LUA installation on the manual is referring to ModSecurity 2.x. It has been updated to mention LUA support on libModSecurity. For now there was make a choice to be made in supporting deprecated LUA 5.1 (latest version release on Feb/2012) or supporting a current version like v5.3 (and now v5.2). Debian, Ubuntu, Fedora and other major distros supports many versions of Lua in parallel for quite some time. It's unfortunate that RHEL / CentOS is stuck with this old version :( To have LUA support on your case I would suggest using Lua lib binaries which the installation should be as straight forward as downloading, unzipping and then copying the files to /usr/local (or --with-lua=PATH) #1623 should avoid breaking the compilation if LUA 5.1 is being used by disabling LUA support. If you want to manually disable LUA support use ./configure --without-lua or ./configure --with-lua=no |
My Centos 7 workaround (for people who searched this problem, like me)
in modsecurity |
Thanks for your contribution @dmitryzykov. Your fix have been pushed to #1855 for evaluation. Also, Lua 5.1 is now officially supported as of dee9898 and LuaJIT support is being evaluated at #1854. |
I got this error when including Lua in the compilation:
Dependencies
The text was updated successfully, but these errors were encountered: