Debian Bug report logs - #1097409
modsecurity: ftbfs with GCC-15

version graph

Package: src:modsecurity; Maintainer for src:modsecurity is Ervin Hegedus <[email protected]>;

Reported by: Matthias Klose <[email protected]>

Date: Mon, 17 Feb 2025 17:38:49 UTC

Severity: important

Tags: forky, sid

Found in version modsecurity/3.0.13-1

Reply or subscribe to this bug.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to Alberto Gonzalez Iniesta <[email protected]>:
Bug#1097409; Package src:modsecurity. (Mon, 17 Feb 2025 17:38:49 GMT) (full text, mbox, link).


Acknowledgement sent to Matthias Klose <[email protected]>:
New Bug report received and forwarded. Copy sent to Alberto Gonzalez Iniesta <[email protected]>. (Mon, 17 Feb 2025 17:38:50 GMT) (full text, mbox, link).


Message #5 received at [email protected] (full text, mbox, reply):

From: Matthias Klose <[email protected]>
To: [email protected]
Subject: modsecurity: ftbfs with GCC-15
Date: Mon, 17 Feb 2025 17:38:07 +0000
Package: src:modsecurity
Version: 3.0.13-1
Severity: important
Tags: sid forky
User: [email protected]
Usertags: ftbfs-gcc-15

[This bug is NOT targeted to the upcoming trixie release]

Please keep this issue open in the bug tracker for the package it
was filed for.  If a fix in another package is required, please
file a bug for the other package (or clone), and add a block in this
package. Please keep the issue open until the package can be built in
a follow-up test rebuild.

The package fails to build in a test rebuild on at least amd64 with
gcc-15/g++-15, but succeeds to build with gcc-14/g++-14. The
severity of this report will be raised before the forky release.

The full build log can be found at:
http://qa-logs.debian.net/2025/02/16/amd64exp/modsecurity_3.0.13-1_unstable_gccexp.log.gz
The last lines of the build log are at the end of this report.

To build with GCC 15, either set CC=gcc-15 CXX=g++-15 explicitly,
or install the gcc, g++, gfortran, ... packages from experimental.

  apt-get -t=experimental install g++ 

GCC 15 now defaults to the C23/C++23 standards, exposing many FTBFS.
Other Common build failures are new warnings resulting in build failures
with -Werror turned on, or new/dropped symbols in Debian symbols files.
For other C/C++ related build failures see the porting guide at
http://gcc.gnu.org/gcc-15/porting_to.html

[...]
In file included from ../src/variables/variable.h:24,
                 from ../src/run_time_string.h:27,
                 from run_time_string.cc:19:
../headers/modsecurity/rules_set.h:85:5: error: 'uint8_t' does not name a type
   85 |     uint8_t m_secmarker_skipped;
      |     ^~~~~~~
../headers/modsecurity/rules_set.h:36:1: note: 'uint8_t' is defined in header '<cstdint>'; this is probably fixable by adding '#include <cstdint>'
   35 | #include "modsecurity/rules_set_phases.h"
  +++ |+#include <cstdint>
   36 | 
../headers/modsecurity/rules_set.h: In constructor 'modsecurity::RulesSet::RulesSet()':
../headers/modsecurity/rules_set.h:53:10: error: class 'modsecurity::RulesSet' does not have any field named 'm_secmarker_skipped'
   53 |         ,m_secmarker_skipped(0)
      |          ^~~~~~~~~~~~~~~~~~~
../headers/modsecurity/rules_set.h: In constructor 'modsecurity::RulesSet::RulesSet(modsecurity::debug_log::DebugLog*)':
../headers/modsecurity/rules_set.h:60:10: error: class 'modsecurity::RulesSet' does not have any field named 'm_secmarker_skipped'
   60 |         ,m_secmarker_skipped(0)
      |          ^~~~~~~~~~~~~~~~~~~
In file included from ../src/actions/disruptive/deny.h:19,
                 from transaction.cc:36:
../headers/modsecurity/rules_set.h:85:5: error: 'uint8_t' does not name a type
   85 |     uint8_t m_secmarker_skipped;
      |     ^~~~~~~
../headers/modsecurity/rules_set.h:36:1: note: 'uint8_t' is defined in header '<cstdint>'; this is probably fixable by adding '#include <cstdint>'
   35 | #include "modsecurity/rules_set_phases.h"
  +++ |+#include <cstdint>
   36 | 
../headers/modsecurity/rules_set.h: In constructor 'modsecurity::RulesSet::RulesSet()':
../headers/modsecurity/rules_set.h:53:10: error: class 'modsecurity::RulesSet' does not have any field named 'm_secmarker_skipped'
   53 |         ,m_secmarker_skipped(0)
      |          ^~~~~~~~~~~~~~~~~~~
../headers/modsecurity/rules_set.h: In constructor 'modsecurity::RulesSet::RulesSet(modsecurity::debug_log::DebugLog*)':
../headers/modsecurity/rules_set.h:60:10: error: class 'modsecurity::RulesSet' does not have any field named 'm_secmarker_skipped'
   60 |         ,m_secmarker_skipped(0)
      |          ^~~~~~~~~~~~~~~~~~~
In file included from rules_set.cc:22:
../headers/modsecurity/rules_set.h:85:5: error: 'uint8_t' does not name a type
   85 |     uint8_t m_secmarker_skipped;
      |     ^~~~~~~
../headers/modsecurity/rules_set.h:36:1: note: 'uint8_t' is defined in header '<cstdint>'; this is probably fixable by adding '#include <cstdint>'
   35 | #include "modsecurity/rules_set_phases.h"
  +++ |+#include <cstdint>
   36 | 
../headers/modsecurity/rules_set.h: In constructor 'modsecurity::RulesSet::RulesSet()':
../headers/modsecurity/rules_set.h:53:10: error: class 'modsecurity::RulesSet' does not have any field named 'm_secmarker_skipped'
   53 |         ,m_secmarker_skipped(0)
      |          ^~~~~~~~~~~~~~~~~~~
../headers/modsecurity/rules_set.h: In constructor 'modsecurity::RulesSet::RulesSet(modsecurity::debug_log::DebugLog*)':
../headers/modsecurity/rules_set.h:60:10: error: class 'modsecurity::RulesSet' does not have any field named 'm_secmarker_skipped'
   60 |         ,m_secmarker_skipped(0)
      |          ^~~~~~~~~~~~~~~~~~~
make[4]: *** [Makefile:2185: libmodsecurity_la-rules_set_properties.lo] Error 1
make[4]: *** Waiting for unfinished jobs....
libtool: compile:  g++ -std=c++17 -DHAVE_CONFIG_H -I. -I.. -g -I../others -I../others/mbedtls/include -fPIC -O3 -I../headers -DWITH_CURL_SSLVERSION_TLSv1_2 -DWITH_CURL -DWITH_GEOIP -I/usr/include/ -DNDEBUG -DWITH_YAJL -I/usr/include -DWITH_PCRE2 -DWITH_SSDEEP -I/usr/include -DWITH_MAXMIND -I/usr/include/x86_64-linux-gnu -DWITH_LUA -DWITH_LUA_5_3 -I/usr/include/lua5.3 -I/usr/include/libxml2 -DWITH_LIBXML2 -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/reproducible-path/modsecurity-3.0.13=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -c anchored_variable.cc -o libmodsecurity_la-anchored_variable.o >/dev/null 2>&1
make[4]: *** [Makefile:2206: libmodsecurity_la-run_time_string.lo] Error 1
make[4]: *** [Makefile:2108: libmodsecurity_la-transaction.lo] Error 1
libtool: compile:  g++ -std=c++17 -DHAVE_CONFIG_H -I. -I.. -g -I../others -I../others/mbedtls/include -fPIC -O3 -I../headers -DWITH_CURL_SSLVERSION_TLSv1_2 -DWITH_CURL -DWITH_GEOIP -I/usr/include/ -DNDEBUG -DWITH_YAJL -I/usr/include -DWITH_PCRE2 -DWITH_SSDEEP -I/usr/include -DWITH_MAXMIND -I/usr/include/x86_64-linux-gnu -DWITH_LUA -DWITH_LUA_5_3 -I/usr/include/lua5.3 -I/usr/include/libxml2 -DWITH_LIBXML2 -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/reproducible-path/modsecurity-3.0.13=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -c rules_set_phases.cc -o libmodsecurity_la-rules_set_phases.o >/dev/null 2>&1
make[4]: *** [Makefile:2171: libmodsecurity_la-rules_set.lo] Error 1
libtool: compile:  g++ -std=c++17 -DHAVE_CONFIG_H -I. -I.. -g -I../others -I../others/mbedtls/include -fPIC -O3 -I../headers -DWITH_CURL_SSLVERSION_TLSv1_2 -DWITH_CURL -DWITH_GEOIP -I/usr/include/ -DNDEBUG -DWITH_YAJL -I/usr/include -DWITH_PCRE2 -DWITH_SSDEEP -I/usr/include -DWITH_MAXMIND -I/usr/include/x86_64-linux-gnu -DWITH_LUA -DWITH_LUA_5_3 -I/usr/include/lua5.3 -I/usr/include/libxml2 -DWITH_LIBXML2 -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/reproducible-path/modsecurity-3.0.13=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -c anchored_set_variable.cc -o libmodsecurity_la-anchored_set_variable.o >/dev/null 2>&1
libtool: compile:  g++ -std=c++17 -DHAVE_CONFIG_H -I. -I.. -g -I../others -I../others/mbedtls/include -fPIC -O3 -I../headers -DWITH_CURL_SSLVERSION_TLSv1_2 -DWITH_CURL -DWITH_GEOIP -I/usr/include/ -DNDEBUG -DWITH_YAJL -I/usr/include -DWITH_PCRE2 -DWITH_SSDEEP -I/usr/include -DWITH_MAXMIND -I/usr/include/x86_64-linux-gnu -DWITH_LUA -DWITH_LUA_5_3 -I/usr/include/lua5.3 -I/usr/include/libxml2 -DWITH_LIBXML2 -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/reproducible-path/modsecurity-3.0.13=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -c modsecurity.cc -o libmodsecurity_la-modsecurity.o >/dev/null 2>&1
make[4]: Leaving directory '/build/reproducible-path/modsecurity-3.0.13/src'
make[3]: *** [Makefile:3483: all-recursive] Error 1
make[3]: Leaving directory '/build/reproducible-path/modsecurity-3.0.13/src'
make[2]: *** [Makefile:1238: all] Error 2
make[2]: Leaving directory '/build/reproducible-path/modsecurity-3.0.13/src'
make[1]: *** [Makefile:1067: all-recursive] Error 1
make[1]: Leaving directory '/build/reproducible-path/modsecurity-3.0.13'
dh_auto_build: error: make -j8 returned exit code 2
make: *** [debian/rules:9: binary] Error 25
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2



Send a report that this bug log contains spam.


Debian bug tracking system administrator <[email protected]>. Last modified: Tue May 13 13:08:06 2025; Machine Name: buxtehude

Debian Bug tracking system

Debbugs is free software and licensed under the terms of the GNU General Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.