[Pkg-xmpp-devel] Bug#1097274: libstrophe: ftbfs with GCC-15
Matthias Klose
doko at debian.org
Mon Feb 17 17:33:58 GMT 2025
Package: src:libstrophe
Version: 0.13.1-1
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/libstrophe_0.13.1-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
[...]
| xmpp_timed_handler {aka int (*)(struct _xmpp_conn_t *, void *)}
src/handler.c:262:50: note: expected 'xmpp_void_handler' {aka 'int (*)(void)'} but argument is of type 'xmpp_timed_handler' {aka 'int (*)(struct _xmpp_conn_t *, void *)'}
262 | xmpp_void_handler handler,
| ~~~~~~~~~~~~~~~~~~^~~~~~~
src/handler.c:28:15: note: 'xmpp_void_handler' declared here
28 | typedef int (*xmpp_void_handler)();
| ^~~~~~~~~~~~~~~~~
./strophe.h:455:15: note: 'xmpp_timed_handler' declared here
455 | typedef int (*xmpp_timed_handler)(xmpp_conn_t *conn, void *userdata);
| ^~~~~~~~~~~~~~~~~~
src/handler.c: In function 'handler_add_timed':
src/handler.c:551:58: error: passing argument 3 of '_timed_handler_add' from incompatible pointer type [-Wincompatible-pointer-types]
551 | _timed_handler_add(conn->ctx, &conn->timed_handlers, handler, period,
| ^~~~~~~
| |
| xmpp_timed_handler {aka int (*)(struct _xmpp_conn_t *, void *)}
src/handler.c:262:50: note: expected 'xmpp_void_handler' {aka 'int (*)(void)'} but argument is of type 'xmpp_timed_handler' {aka 'int (*)(struct _xmpp_conn_t *, void *)'}
262 | xmpp_void_handler handler,
| ~~~~~~~~~~~~~~~~~~^~~~~~~
src/handler.c:28:15: note: 'xmpp_void_handler' declared here
28 | typedef int (*xmpp_void_handler)();
| ^~~~~~~~~~~~~~~~~
./strophe.h:455:15: note: 'xmpp_timed_handler' declared here
455 | typedef int (*xmpp_timed_handler)(xmpp_conn_t *conn, void *userdata);
| ^~~~~~~~~~~~~~~~~~
src/handler.c: In function 'xmpp_global_timed_handler_add':
src/handler.c:750:51: error: passing argument 3 of '_timed_handler_add' from incompatible pointer type [-Wincompatible-pointer-types]
750 | _timed_handler_add(ctx, &ctx->timed_handlers, handler, period, userdata, 1);
| ^~~~~~~
| |
| xmpp_global_timed_handler {aka int (*)(struct _xmpp_ctx_t *, void *)}
src/handler.c:262:50: note: expected 'xmpp_void_handler' {aka 'int (*)(void)'} but argument is of type 'xmpp_global_timed_handler' {aka 'int (*)(struct _xmpp_ctx_t *, void *)'}
262 | xmpp_void_handler handler,
| ~~~~~~~~~~~~~~~~~~^~~~~~~
src/handler.c:28:15: note: 'xmpp_void_handler' declared here
28 | typedef int (*xmpp_void_handler)();
| ^~~~~~~~~~~~~~~~~
./strophe.h:464:15: note: 'xmpp_global_timed_handler' declared here
464 | typedef int (*xmpp_global_timed_handler)(xmpp_ctx_t *ctx, void *userdata);
| ^~~~~~~~~~~~~~~~~~~~~~~~~
src/handler.c: In function 'xmpp_global_timed_handler_delete':
src/handler.c:763:54: error: passing argument 3 of '_timed_handler_delete' from incompatible pointer type [-Wincompatible-pointer-types]
763 | _timed_handler_delete(ctx, &ctx->timed_handlers, handler);
| ^~~~~~~
| |
| xmpp_global_timed_handler {aka int (*)(struct _xmpp_ctx_t *, void *)}
src/handler.c:299:53: note: expected 'xmpp_void_handler' {aka 'int (*)(void)'} but argument is of type 'xmpp_global_timed_handler' {aka 'int (*)(struct _xmpp_ctx_t *, void *)'}
299 | xmpp_void_handler handler)
| ~~~~~~~~~~~~~~~~~~^~~~~~~
src/handler.c:28:15: note: 'xmpp_void_handler' declared here
28 | typedef int (*xmpp_void_handler)();
| ^~~~~~~~~~~~~~~~~
./strophe.h:464:15: note: 'xmpp_global_timed_handler' declared here
464 | typedef int (*xmpp_global_timed_handler)(xmpp_ctx_t *ctx, void *userdata);
| ^~~~~~~~~~~~~~~~~~~~~~~~~
make[2]: *** [Makefile:1715: src/libstrophe_la-handler.lo] Error 1
make[2]: *** Waiting for unfinished jobs....
libtool: compile: gcc -DPACKAGE_NAME=\"libstrophe\" -DPACKAGE_TARNAME=\"libstrophe\" -DPACKAGE_VERSION=\"0.13.1\" "-DPACKAGE_STRING=\"libstrophe 0.13.1\"" -DPACKAGE_BUGREPORT=\"jack at metajack.im\" -DPACKAGE_URL=\"\" -DPACKAGE=\"libstrophe\" -DVERSION=\"0.13.1\" -DHAVE_STDIO_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_STRINGS_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_UNISTD_H=1 -DSTDC_HEADERS=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=\".libs/\" -DHAVE_CLOCK_GETTIME=1 -DHAVE_SNPRINTF=1 -DHAVE_VSNPRINTF=1 -DHAVE_VA_COPY=1 -DHAVE_GETRANDOM=1 -DHAVE_ZLIB=1 -DLIBXMPP_VERSION_MAJOR=0 -DLIBXMPP_VERSION_MINOR=13 -I. -Wdate-time -D_FORTIFY_SOURCE=2 -I. -Wall -Wextra -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/libstrophe-0.13.1=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -c src/deprecated.c -o src/libstrophe_la-deprecated.o >/dev/null 2>&1
libtool: compile: gcc -DPACKAGE_NAME=\"libstrophe\" -DPACKAGE_TARNAME=\"libstrophe\" -DPACKAGE_VERSION=\"0.13.1\" "-DPACKAGE_STRING=\"libstrophe 0.13.1\"" -DPACKAGE_BUGREPORT=\"jack at metajack.im\" -DPACKAGE_URL=\"\" -DPACKAGE=\"libstrophe\" -DVERSION=\"0.13.1\" -DHAVE_STDIO_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_STRINGS_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_UNISTD_H=1 -DSTDC_HEADERS=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=\".libs/\" -DHAVE_CLOCK_GETTIME=1 -DHAVE_SNPRINTF=1 -DHAVE_VSNPRINTF=1 -DHAVE_VA_COPY=1 -DHAVE_GETRANDOM=1 -DHAVE_ZLIB=1 -DLIBXMPP_VERSION_MAJOR=0 -DLIBXMPP_VERSION_MINOR=13 -I. -Wdate-time -D_FORTIFY_SOURCE=2 -I. -Wall -Wextra -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/libstrophe-0.13.1=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -c src/ctx.c -o src/libstrophe_la-ctx.o >/dev/null 2>&1
libtool: compile: gcc -DPACKAGE_NAME=\"libstrophe\" -DPACKAGE_TARNAME=\"libstrophe\" -DPACKAGE_VERSION=\"0.13.1\" "-DPACKAGE_STRING=\"libstrophe 0.13.1\"" -DPACKAGE_BUGREPORT=\"jack at metajack.im\" -DPACKAGE_URL=\"\" -DPACKAGE=\"libstrophe\" -DVERSION=\"0.13.1\" -DHAVE_STDIO_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_STRINGS_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_UNISTD_H=1 -DSTDC_HEADERS=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=\".libs/\" -DHAVE_CLOCK_GETTIME=1 -DHAVE_SNPRINTF=1 -DHAVE_VSNPRINTF=1 -DHAVE_VA_COPY=1 -DHAVE_GETRANDOM=1 -DHAVE_ZLIB=1 -DLIBXMPP_VERSION_MAJOR=0 -DLIBXMPP_VERSION_MINOR=13 -I. -Wdate-time -D_FORTIFY_SOURCE=2 -I. -Wall -Wextra -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/libstrophe-0.13.1=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -c src/crypto.c -o src/libstrophe_la-crypto.o >/dev/null 2>&1
libtool: compile: gcc -DPACKAGE_NAME=\"libstrophe\" -DPACKAGE_TARNAME=\"libstrophe\" -DPACKAGE_VERSION=\"0.13.1\" "-DPACKAGE_STRING=\"libstrophe 0.13.1\"" -DPACKAGE_BUGREPORT=\"jack at metajack.im\" -DPACKAGE_URL=\"\" -DPACKAGE=\"libstrophe\" -DVERSION=\"0.13.1\" -DHAVE_STDIO_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_STRINGS_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_UNISTD_H=1 -DSTDC_HEADERS=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=\".libs/\" -DHAVE_CLOCK_GETTIME=1 -DHAVE_SNPRINTF=1 -DHAVE_VSNPRINTF=1 -DHAVE_VA_COPY=1 -DHAVE_GETRANDOM=1 -DHAVE_ZLIB=1 -DLIBXMPP_VERSION_MAJOR=0 -DLIBXMPP_VERSION_MINOR=13 -I. -Wdate-time -D_FORTIFY_SOURCE=2 -I. -Wall -Wextra -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/libstrophe-0.13.1=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -c src/hash.c -o src/libstrophe_la-hash.o >/dev/null 2>&1
libtool: compile: gcc -DPACKAGE_NAME=\"libstrophe\" -DPACKAGE_TARNAME=\"libstrophe\" -DPACKAGE_VERSION=\"0.13.1\" "-DPACKAGE_STRING=\"libstrophe 0.13.1\"" -DPACKAGE_BUGREPORT=\"jack at metajack.im\" -DPACKAGE_URL=\"\" -DPACKAGE=\"libstrophe\" -DVERSION=\"0.13.1\" -DHAVE_STDIO_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_STRINGS_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_UNISTD_H=1 -DSTDC_HEADERS=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=\".libs/\" -DHAVE_CLOCK_GETTIME=1 -DHAVE_SNPRINTF=1 -DHAVE_VSNPRINTF=1 -DHAVE_VA_COPY=1 -DHAVE_GETRANDOM=1 -DHAVE_ZLIB=1 -DLIBXMPP_VERSION_MAJOR=0 -DLIBXMPP_VERSION_MINOR=13 -I. -Wdate-time -D_FORTIFY_SOURCE=2 -I. -Wall -Wextra -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/libstrophe-0.13.1=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -c src/event.c -o src/libstrophe_la-event.o >/dev/null 2>&1
libtool: compile: gcc -DPACKAGE_NAME=\"libstrophe\" -DPACKAGE_TARNAME=\"libstrophe\" -DPACKAGE_VERSION=\"0.13.1\" "-DPACKAGE_STRING=\"libstrophe 0.13.1\"" -DPACKAGE_BUGREPORT=\"jack at metajack.im\" -DPACKAGE_URL=\"\" -DPACKAGE=\"libstrophe\" -DVERSION=\"0.13.1\" -DHAVE_STDIO_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_STRINGS_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_UNISTD_H=1 -DSTDC_HEADERS=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=\".libs/\" -DHAVE_CLOCK_GETTIME=1 -DHAVE_SNPRINTF=1 -DHAVE_VSNPRINTF=1 -DHAVE_VA_COPY=1 -DHAVE_GETRANDOM=1 -DHAVE_ZLIB=1 -DLIBXMPP_VERSION_MAJOR=0 -DLIBXMPP_VERSION_MINOR=13 -I. -Wdate-time -D_FORTIFY_SOURCE=2 -I. -Wall -Wextra -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/libstrophe-0.13.1=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -c src/auth.c -o src/libstrophe_la-auth.o >/dev/null 2>&1
libtool: compile: gcc -DPACKAGE_NAME=\"libstrophe\" -DPACKAGE_TARNAME=\"libstrophe\" -DPACKAGE_VERSION=\"0.13.1\" "-DPACKAGE_STRING=\"libstrophe 0.13.1\"" -DPACKAGE_BUGREPORT=\"jack at metajack.im\" -DPACKAGE_URL=\"\" -DPACKAGE=\"libstrophe\" -DVERSION=\"0.13.1\" -DHAVE_STDIO_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_STRINGS_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_UNISTD_H=1 -DSTDC_HEADERS=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=\".libs/\" -DHAVE_CLOCK_GETTIME=1 -DHAVE_SNPRINTF=1 -DHAVE_VSNPRINTF=1 -DHAVE_VA_COPY=1 -DHAVE_GETRANDOM=1 -DHAVE_ZLIB=1 -DLIBXMPP_VERSION_MAJOR=0 -DLIBXMPP_VERSION_MINOR=13 -I. -Wdate-time -D_FORTIFY_SOURCE=2 -I. -Wall -Wextra -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/libstrophe-0.13.1=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -c src/conn.c -o src/libstrophe_la-conn.o >/dev/null 2>&1
make[2]: Leaving directory '/build/reproducible-path/libstrophe-0.13.1'
dh_auto_build: error: make -j8 returned exit code 2
make[1]: *** [debian/rules:13: override_dh_auto_build] Error 25
make[1]: Leaving directory '/build/reproducible-path/libstrophe-0.13.1'
make: *** [debian/rules:7: binary] Error 2
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2
More information about the Pkg-xmpp-devel
mailing list