Skip to content

Build failure with Lua 5.5.0: LUA_ERRGCMM undeclared #3523

Closed

Description

@Easton97-Jens

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

  1. added
    3.x
    on Mar 27, 2026
  2. airween commented on Mar 27, 2026

    @airween
    Member
  3. airween commented on Mar 27, 2026

    @airween
    Member

    #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).

  4. airween commented on Mar 28, 2026

    @airween
    Member

    @Easton97-Jens please pull down the modifications from upstream's v3/master branch.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    3.x

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions