#1098155 xmlrpc-c: ftbfs with GCC-15

#1098155#5
Date:
2025-02-17 18:02:12 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/xmlrpc-c_1.59.03-6_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

[...]
      |   ^~~~
srcdir/lib/util/include/bool.h:15:3: warning: useless type name in empty declaration
make[4]: *** [/build/reproducible-path/xmlrpc-c-1.59.03/common.mk:342: curlmulti.o] Error 1
make[4]: *** Waiting for unfinished jobs....
make[4]: *** [/build/reproducible-path/xmlrpc-c-1.59.03/common.mk:347: curlmulti.osh] Error 1
In file included from xmlrpc_curl_transport.c:71:
srcdir/lib/util/include/bool.h:13:5: error: cannot use keyword ‘false’ as enumeration constant
   13 |     false = 0,
      |     ^~~~~
srcdir/lib/util/include/bool.h:13:5: note: ‘false’ is a keyword with ‘-std=c23’ onwards
srcdir/lib/util/include/bool.h:15:3: error: expected ‘;’, identifier or ‘(’ before ‘bool’
   15 | } bool;
      |   ^~~~
srcdir/lib/util/include/bool.h:15:3: warning: useless type name in empty declaration
make[4]: *** [/build/reproducible-path/xmlrpc-c-1.59.03/common.mk:342: xmlrpc_curl_transport.o] Error 1
make[4]: *** [/build/reproducible-path/xmlrpc-c-1.59.03/common.mk:347: xmlrpc_curl_transport.osh] Error 1
curltransaction.c: In function ‘setupCurlSession’:
curltransaction.c:723:13: warning: ‘CURLOPT_PROGRESSFUNCTION’ is deprecated: since 7.32.0. Use CURLOPT_XFERINFOFUNCTION [-Wdeprecated-declarations]
  723 |             curl_easy_setopt(curlSessionP, CURLOPT_PROGRESSFUNCTION,
      |             ^~~~~~~~~~~~~~~~
In file included from curltransaction.c:19:
/usr/include/x86_64-linux-gnu/curl/curl.h:1309:3: note: declared here
 1309 |   CURLOPTDEPRECATED(CURLOPT_PROGRESSFUNCTION, CURLOPTTYPE_FUNCTIONPOINT, 56,
      |   ^~~~~~~~~~~~~~~~~
curltransaction.c: In function ‘setupCurlSession’:
curltransaction.c:723:13: warning: ‘CURLOPT_PROGRESSFUNCTION’ is deprecated: since 7.32.0. Use CURLOPT_XFERINFOFUNCTION [-Wdeprecated-declarations]
  723 |             curl_easy_setopt(curlSessionP, CURLOPT_PROGRESSFUNCTION,
      |             ^~~~~~~~~~~~~~~~
In file included from curltransaction.c:19:
/usr/include/x86_64-linux-gnu/curl/curl.h:1309:3: note: declared here
 1309 |   CURLOPTDEPRECATED(CURLOPT_PROGRESSFUNCTION, CURLOPTTYPE_FUNCTIONPOINT, 56,
      |   ^~~~~~~~~~~~~~~~~
curltransaction.c:774:13: warning: ‘CURLOPT_RANDOM_FILE’ is deprecated: since 7.84.0. Serves no purpose anymore [-Wdeprecated-declarations]
  774 |             curl_easy_setopt(curlSessionP, CURLOPT_RANDOM_FILE,
      |             ^~~~~~~~~~~~~~~~
/usr/include/x86_64-linux-gnu/curl/curl.h:1376:3: note: declared here
 1376 |   CURLOPTDEPRECATED(CURLOPT_RANDOM_FILE, CURLOPTTYPE_STRINGPOINT, 76,
      |   ^~~~~~~~~~~~~~~~~
curltransaction.c:774:13: warning: ‘CURLOPT_RANDOM_FILE’ is deprecated: since 7.84.0. Serves no purpose anymore [-Wdeprecated-declarations]
  774 |             curl_easy_setopt(curlSessionP, CURLOPT_RANDOM_FILE,
      |             ^~~~~~~~~~~~~~~~
/usr/include/x86_64-linux-gnu/curl/curl.h:1376:3: note: declared here
 1376 |   CURLOPTDEPRECATED(CURLOPT_RANDOM_FILE, CURLOPTTYPE_STRINGPOINT, 76,
      |   ^~~~~~~~~~~~~~~~~
curltransaction.c:777:13: warning: ‘CURLOPT_EGDSOCKET’ is deprecated: since 7.84.0. Serves no purpose anymore [-Wdeprecated-declarations]
  777 |             curl_easy_setopt(curlSessionP, CURLOPT_EGDSOCKET,
      |             ^~~~~~~~~~~~~~~~
/usr/include/x86_64-linux-gnu/curl/curl.h:1380:3: note: declared here
 1380 |   CURLOPTDEPRECATED(CURLOPT_EGDSOCKET, CURLOPTTYPE_STRINGPOINT, 77,
      |   ^~~~~~~~~~~~~~~~~
curltransaction.c:777:13: warning: ‘CURLOPT_EGDSOCKET’ is deprecated: since 7.84.0. Serves no purpose anymore [-Wdeprecated-declarations]
  777 |             curl_easy_setopt(curlSessionP, CURLOPT_EGDSOCKET,
      |             ^~~~~~~~~~~~~~~~
/usr/include/x86_64-linux-gnu/curl/curl.h:1380:3: note: declared here
 1380 |   CURLOPTDEPRECATED(CURLOPT_EGDSOCKET, CURLOPTTYPE_STRINGPOINT, 77,
      |   ^~~~~~~~~~~~~~~~~
make[4]: *** [/build/reproducible-path/xmlrpc-c-1.59.03/common.mk:342: curltransaction.o] Error 1
make[4]: *** [/build/reproducible-path/xmlrpc-c-1.59.03/common.mk:347: curltransaction.osh] Error 1
make[4]: Leaving directory '/build/reproducible-path/xmlrpc-c-1.59.03/lib/curl_transport'
make[3]: *** [/build/reproducible-path/xmlrpc-c-1.59.03/common.mk:381: curl_transport/all] Error 2
make[4]: Leaving directory '/build/reproducible-path/xmlrpc-c-1.59.03/lib/util'
make[3]: *** [/build/reproducible-path/xmlrpc-c-1.59.03/common.mk:381: util/all] Error 2
make[3]: Leaving directory '/build/reproducible-path/xmlrpc-c-1.59.03/lib'
make[2]: *** [/build/reproducible-path/xmlrpc-c-1.59.03/common.mk:381: lib/all] Error 2
make[2]: Leaving directory '/build/reproducible-path/xmlrpc-c-1.59.03'
dh_auto_build: error: make -j8 CC_FOR_BUILD=x86_64-linux-gnu-gcc returned exit code 2
make[1]: *** [debian/rules:19: override_dh_auto_build] Error 25
make[1]: Leaving directory '/build/reproducible-path/xmlrpc-c-1.59.03'
make: *** [debian/rules:8: binary] Error 2
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2