#1097564 pdns: ftbfs with GCC-15

Package:
src:pdns
Source:
src:pdns
Submitter:
Matthias Klose
Date:
2025-02-24 17:39:08 UTC
Severity:
normal
Tags:
#1097564#5
Date:
2025-02-17 17:43:07 UTC
From:
To:
[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/pdns_4.9.4-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

[...]
   50 | std::string hashPassword(const std::string& password, uint64_t workFactor, uint64_t parallelFactor, uint64_t blockSize);
      |                                                                                                     ^~~~~~~~
credentials.hh:50:101: note: ‘uint64_t’ is defined in header ‘<cstdint>’; this is probably fixable by adding ‘#include <cstdint>’
credentials.hh:52:77: error: ‘uint64_t’ has not been declared
   52 | bool verifyPassword(const std::string& binaryHash, const std::string& salt, uint64_t workFactor, uint64_t parallelFactor, uint64_t blockSize, const std::string& binaryPassword);
      |                                                                             ^~~~~~~~
credentials.hh:52:77: note: ‘uint64_t’ is defined in header ‘<cstdint>’; this is probably fixable by adding ‘#include <cstdint>’
credentials.hh:52:98: error: ‘uint64_t’ has not been declared
   52 | bool verifyPassword(const std::string& binaryHash, const std::string& salt, uint64_t workFactor, uint64_t parallelFactor, uint64_t blockSize, const std::string& binaryPassword);
      |                                                                                                  ^~~~~~~~
credentials.hh:52:98: note: ‘uint64_t’ is defined in header ‘<cstdint>’; this is probably fixable by adding ‘#include <cstdint>’
credentials.hh:52:123: error: ‘uint64_t’ has not been declared
   52 | bool verifyPassword(const std::string& binaryHash, const std::string& salt, uint64_t workFactor, uint64_t parallelFactor, uint64_t blockSize, const std::string& binaryPassword);
      |                                                                                                                           ^~~~~~~~
credentials.hh:52:123: note: ‘uint64_t’ is defined in header ‘<cstdint>’; this is probably fixable by adding ‘#include <cstdint>’
credentials.hh:84:10: error: ‘uint64_t’ does not name a type
   84 |   static uint64_t const s_defaultWorkFactor;
      |          ^~~~~~~~
credentials.hh:84:10: note: ‘uint64_t’ is defined in header ‘<cstdint>’; this is probably fixable by adding ‘#include <cstdint>’
credentials.hh:85:10: error: ‘uint64_t’ does not name a type
   85 |   static uint64_t const s_defaultParallelFactor;
      |          ^~~~~~~~
credentials.hh:85:10: note: ‘uint64_t’ is defined in header ‘<cstdint>’; this is probably fixable by adding ‘#include <cstdint>’
credentials.hh:86:10: error: ‘uint64_t’ does not name a type
   86 |   static uint64_t const s_defaultBlockSize;
      |          ^~~~~~~~
credentials.hh:86:10: note: ‘uint64_t’ is defined in header ‘<cstdint>’; this is probably fixable by adding ‘#include <cstdint>’
credentials.hh:93:3: error: ‘uint64_t’ does not name a type
   93 |   uint64_t d_workFactor{0};
      |   ^~~~~~~~
credentials.hh:93:3: note: ‘uint64_t’ is defined in header ‘<cstdint>’; this is probably fixable by adding ‘#include <cstdint>’
credentials.hh:94:3: error: ‘uint64_t’ does not name a type
   94 |   uint64_t d_parallelFactor{0};
      |   ^~~~~~~~
credentials.hh:94:3: note: ‘uint64_t’ is defined in header ‘<cstdint>’; this is probably fixable by adding ‘#include <cstdint>’
credentials.hh:95:3: error: ‘uint64_t’ does not name a type
   95 |   uint64_t d_blockSize{0};
      |   ^~~~~~~~
credentials.hh:95:3: note: ‘uint64_t’ is defined in header ‘<cstdint>’; this is probably fixable by adding ‘#include <cstdint>’
credentials.hh:97:3: error: ‘uint32_t’ does not name a type
   97 |   uint32_t d_fallbackHashPerturb{0};
      |   ^~~~~~~~
credentials.hh:97:3: note: ‘uint32_t’ is defined in header ‘<cstdint>’; this is probably fixable by adding ‘#include <cstdint>’
credentials.hh:98:3: error: ‘uint32_t’ does not name a type
   98 |   uint32_t d_fallbackHash{0};
      |   ^~~~~~~~
credentials.hh:98:3: note: ‘uint32_t’ is defined in header ‘<cstdint>’; this is probably fixable by adding ‘#include <cstdint>’
make[4]: *** [Makefile:3376: ixfrdist-web.o] Error 1
make[4]: *** Waiting for unfinished jobs....
In file included from resolver.hh:41,
                 from axfr-retriever.hh:27,
                 from ixfrdist.cc:44:
dnssecinfra.hh: In member function ‘void DNSCryptoKeyEngine::createFromPEMString(DNSKEYRecordContent&, const std::string&)’:
dnssecinfra.hh:70:51: warning: ignoring attributes on template argument ‘int (*)(FILE*)’ [-Wignored-attributes]
   70 |       unique_ptr<std::FILE, decltype(&std::fclose)> inputFile{fmemopen(const_cast<char*>(contents.data()), contents.length(), "r"), &std::fclose};
      |                                                   ^
dnssecinfra.hh: In member function ‘std::string DNSCryptoKeyEngine::convertToPEMString() const’:
dnssecinfra.hh:93:51: warning: ignoring attributes on template argument ‘int (*)(FILE*)’ [-Wignored-attributes]
   93 |       unique_ptr<std::FILE, decltype(&std::fclose)> outputFile{fmemopen(output.data(), output.length() - 1, "w"), &std::fclose};
      |                                                   ^
make[4]: Leaving directory '/build/reproducible-path/pdns-4.9.4/pdns'
make[3]: *** [Makefile:2843: all] Error 2
make[3]: Leaving directory '/build/reproducible-path/pdns-4.9.4/pdns'
make[2]: *** [Makefile:612: all-recursive] Error 1
make[2]: Leaving directory '/build/reproducible-path/pdns-4.9.4'
make[1]: *** [Makefile:544: all] Error 2
make[1]: Leaving directory '/build/reproducible-path/pdns-4.9.4'
dh_auto_build: error: make -j8 returned exit code 2
make: *** [debian/rules:26: binary] Error 25
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2