You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Build failure with Lua 5.5.0: LUA_ERRGCMM undeclared #3523
Description:
I noticed a build failure when compiling ModSecurity with Lua 5.5.0 on macOS.
I'm not entirely sure where the issue originates, but the build fails during compilation.
Error message:
engine/lua.cc:158:18: error: use of undeclared identifier 'LUA_ERRGCMM'
case LUA_ERRGCMM:
^
Observation:
It seems related to LUA_ERRGCMM not being defined.
However, I'm not sure whether this is due to changes in Lua (e.g. version 5.5.0) or an issue in the code.
Expected behavior:
The build should either succeed or clearly indicate if a specific Lua version is unsupported.
Actual behavior:
The build fails during compilation.
Steps to reproduce:
Install Lua 5.5.0
Build ModSecurity with Lua support enabled
Run the build
Compilation fails in engine/lua.cc
Additional context:
I noticed this in CI (macOS job with Lua). Other jobs do not seem to be affected.
Activity
airween commentedon Mar 27, 2026
Hi @Easton97-Jens,
seems like this is a duplicated issue, see
I try to solve the workflow and force using Lua < 5.5.
airween commentedon Mar 27, 2026
#3524 will be merged soon and (partially) will solve this issue.
Please note that this is just a workaround, do not close this issue until we don't fix the root cause (namely align the code to Lua 5.5).
airween commentedon Mar 28, 2026
@Easton97-Jens please pull down the modifications from upstream's v3/master branch.