Skip to content

Conversation

theseion
Copy link
Contributor

@theseion theseion commented Apr 26, 2025

See owasp-modsecurity/ModSecurity-nginx#275. ModSecurity-nginx uses printf as part of the nginx configure test. As of GCC 14, this leads to an error during compilation and thus to an error when running configure on nginx.

This commit works around the issue by patching the config file in ModSecurity-nginx with a valid value for.

This affects the nginx-alpine build as of nginx 1.28.0 which is built with Alpine 3.21, which requires GCC 14+.

See owasp-modsecurity/ModSecurity-nginx#275.
ModSecurity-nginx uses `printf` as part of the nginx configure test. As
of GCC 14, this leads to an error during compilation and thus to an
error when running `configure` on nginx.

This commit works around the issue by patching the `config` file in
ModSecurity-nginx with a valid value for.
@theseion theseion requested a review from fzipi April 26, 2025 16:34
@theseion theseion added the bug Something isn't working label Apr 26, 2025
@fzipi fzipi merged commit d38a95e into coreruleset:main Apr 26, 2025
5 checks passed
@theseion theseion deleted the work-around-configure-issue-in-gcc-14 branch April 26, 2025 16:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants