Skip to content

Build failure with Lua 5.5.0: LUA_ERRGCMM undeclared #3523

@Easton97-Jens

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    3.xRelated to ModSecurity version 3.x

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions