[Pkg-swan-devel] Bug#1097943: strongswan: ftbfs with GCC-15

Matthias Klose doko at debian.org
Mon Feb 17 17:55:28 GMT 2025


Package: src:strongswan
Version: 5.9.13-2
Severity: important
Tags: sid forky
User: debian-gcc at lists.debian.org
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/strongswan_5.9.13-2_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

[...]
      |                                                ~^   ~~~~~~~~~~~~~~~~~~~~
      |                                                 |   |
      |                                                 |   enum_name_t *
      |                                                 char *
plugins/plugin_feature.c:435:44: warning: too many arguments for format [-Wformat-extra-args]
  435 |                         if (asprintf(&str, "%N:%s", plugin_feature_names, feature->type,
      |                                            ^~~~~~~
plugins/plugin_feature.c:442:46: warning: unknown conversion type character 'N' in format [-Wformat=]
  442 |                         if (asprintf(&str, "%N:%s", plugin_feature_names, feature->type,
      |                                              ^
plugins/plugin_feature.c:442:49: warning: format '%s' expects argument of type 'char *', but argument 3 has type 'enum_name_t *' [-Wformat=]
  442 |                         if (asprintf(&str, "%N:%s", plugin_feature_names, feature->type,
      |                                                ~^   ~~~~~~~~~~~~~~~~~~~~
      |                                                 |   |
      |                                                 |   enum_name_t *
      |                                                 char *
plugins/plugin_feature.c:442:44: warning: too many arguments for format [-Wformat-extra-args]
  442 |                         if (asprintf(&str, "%N:%s", plugin_feature_names, feature->type,
      |                                            ^~~~~~~
plugins/plugin_feature.c:450:46: warning: unknown conversion type character 'N' in format [-Wformat=]
  450 |                         if (asprintf(&str, "%N:%s", plugin_feature_names, feature->type,
      |                                              ^
plugins/plugin_feature.c:450:49: warning: format '%s' expects argument of type 'char *', but argument 3 has type 'enum_name_t *' [-Wformat=]
  450 |                         if (asprintf(&str, "%N:%s", plugin_feature_names, feature->type,
      |                                                ~^   ~~~~~~~~~~~~~~~~~~~~
      |                                                 |   |
      |                                                 |   enum_name_t *
      |                                                 char *
plugins/plugin_feature.c:450:44: warning: too many arguments for format [-Wformat-extra-args]
  450 |                         if (asprintf(&str, "%N:%s", plugin_feature_names, feature->type,
      |                                            ^~~~~~~
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I../.. -I../../src/libstrongswan -DIPSEC_DIR=\"/usr/lib/ipsec\" -DIPSEC_LIB_DIR=\"/usr/lib/ipsec\" -DPLUGINDIR=\"/usr/lib/ipsec/plugins\" -DSTRONGSWAN_CONF=\"/etc/strongswan.conf\" -DUSE_SYSTEMD -Wdate-time -D_FORTIFY_SOURCE=2 -Wno-format -Wno-format-security -Wno-implicit-fallthrough -Wno-missing-field-initializers -Wno-pointer-sign -Wno-sign-compare -Wno-type-limits -Wno-unused-parameter -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/strongswan-5.9.13=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -include /build/reproducible-path/strongswan-5.9.13/config.h -c resolver/resolver_manager.c  -fPIC -DPIC -o resolver/.libs/resolver_manager.o
/bin/bash ../../libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I../..  -I../../src/libstrongswan -DIPSEC_DIR=\"/usr/lib/ipsec\" -DIPSEC_LIB_DIR=\"/usr/lib/ipsec\" -DPLUGINDIR=\"/usr/lib/ipsec/plugins\" -DSTRONGSWAN_CONF=\"/etc/strongswan.conf\"      -DUSE_SYSTEMD -Wdate-time -D_FORTIFY_SOURCE=2   -Wno-format -Wno-format-security -Wno-implicit-fallthrough -Wno-missing-field-initializers -Wno-pointer-sign -Wno-sign-compare -Wno-type-limits -Wno-unused-parameter -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/strongswan-5.9.13=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -include /build/reproducible-path/strongswan-5.9.13/config.h -c -o selectors/sec_label.lo selectors/sec_label.c
processing/scheduler.c: In function 'scheduler_create':
processing/scheduler.c:332:87: error: passing argument 4 of 'callback_job_create_with_prio' from incompatible pointer type [-Wincompatible-pointer-types]
  332 |                                                                                 NULL, return_false, JOB_PRIO_CRITICAL);
      |                                                                                       ^~~~~~~~~~~~
      |                                                                                       |
      |                                                                                       _Bool (*)(void)
In file included from processing/scheduler.c:25:
./processing/jobs/callback_job.h:114:87: note: expected 'callback_job_cancel_t' {aka '_Bool (*)(void *)'} but argument is of type '_Bool (*)(void)'
  114 |                                 callback_job_cleanup_t cleanup, callback_job_cancel_t cancel,
      |                                                                 ~~~~~~~~~~~~~~~~~~~~~~^~~~~~
In file included from ./library.h:102,
                 from processing/scheduler.h:29,
                 from processing/scheduler.c:21:
./utils/utils.h:273:6: note: 'return_false' declared here
  273 | bool return_false();
      |      ^~~~~~~~~~~~
./processing/jobs/callback_job.h:63:16: note: 'callback_job_cancel_t' declared here
   63 | typedef bool (*callback_job_cancel_t)(void *data);
      |                ^~~~~~~~~~~~~~~~~~~~~
make[6]: *** [Makefile:2213: processing/scheduler.lo] Error 1
make[6]: *** Waiting for unfinished jobs....
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I../.. -I../../src/libstrongswan -DIPSEC_DIR=\"/usr/lib/ipsec\" -DIPSEC_LIB_DIR=\"/usr/lib/ipsec\" -DPLUGINDIR=\"/usr/lib/ipsec/plugins\" -DSTRONGSWAN_CONF=\"/etc/strongswan.conf\" -DUSE_SYSTEMD -Wdate-time -D_FORTIFY_SOURCE=2 -Wno-format -Wno-format-security -Wno-implicit-fallthrough -Wno-missing-field-initializers -Wno-pointer-sign -Wno-sign-compare -Wno-type-limits -Wno-unused-parameter -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/strongswan-5.9.13=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -include /build/reproducible-path/strongswan-5.9.13/config.h -c resolver/rr_set.c  -fPIC -DPIC -o resolver/.libs/rr_set.o
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I../.. -I../../src/libstrongswan -DIPSEC_DIR=\"/usr/lib/ipsec\" -DIPSEC_LIB_DIR=\"/usr/lib/ipsec\" -DPLUGINDIR=\"/usr/lib/ipsec/plugins\" -DSTRONGSWAN_CONF=\"/etc/strongswan.conf\" -DUSE_SYSTEMD -Wdate-time -D_FORTIFY_SOURCE=2 -Wno-format -Wno-format-security -Wno-implicit-fallthrough -Wno-missing-field-initializers -Wno-pointer-sign -Wno-sign-compare -Wno-type-limits -Wno-unused-parameter -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/strongswan-5.9.13=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -include /build/reproducible-path/strongswan-5.9.13/config.h -c selectors/sec_label.c  -fPIC -DPIC -o selectors/.libs/sec_label.o
make[6]: Leaving directory '/build/reproducible-path/strongswan-5.9.13/src/libstrongswan'
make[5]: *** [Makefile:2297: all-recursive] Error 1
make[5]: Leaving directory '/build/reproducible-path/strongswan-5.9.13/src/libstrongswan'
make[4]: *** [Makefile:1372: all] Error 2
make[4]: Leaving directory '/build/reproducible-path/strongswan-5.9.13/src/libstrongswan'
make[3]: *** [Makefile:547: all-recursive] Error 1
make[3]: Leaving directory '/build/reproducible-path/strongswan-5.9.13/src'
make[2]: *** [Makefile:609: all-recursive] Error 1
make[2]: Leaving directory '/build/reproducible-path/strongswan-5.9.13'
make[1]: *** [Makefile:520: all] Error 2
make[1]: Leaving directory '/build/reproducible-path/strongswan-5.9.13'
dh_auto_build: error: make -j8 returned exit code 2
make: *** [debian/rules:264: binary] Error 25
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2



More information about the Pkg-swan-devel mailing list