#1097580 php-zmq: ftbfs with GCC-15

Package:
src:php-zmq
Source:
src:php-zmq
Submitter:
Matthias Klose
Date:
2026-01-29 12:03:02 UTC
Severity:
normal
Tags:
#1097580#5
Date:
2025-02-17 17:43:37 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/php-zmq_1.1.3-30_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

[...]
Generating files
configure: creating build directories
configure: creating Makefile
configure: patching config.h.in
configure: creating ./config.status
config.status: creating config.h
config.status: executing libtool commands
touch configure-8.4-stamp
dh override_dh_auto_configure --with php
make[1]: Leaving directory '/build/reproducible-path/php-zmq-1.1.3'
   debian/rules override_dh_auto_build
make[1]: Entering directory '/build/reproducible-path/php-zmq-1.1.3'
dh_auto_build --sourcedirectory=build-8.4
	cd build-8.4 && make -j8
make[2]: Entering directory '/build/reproducible-path/php-zmq-1.1.3/build-8.4'
/bin/bash /build/reproducible-path/php-zmq-1.1.3/build-8.4/libtool --tag=CC --mode=compile cc -I. -I/build/reproducible-path/php-zmq-1.1.3/build-8.4 -I/usr/include/php/20240924 -I/usr/include/php/20240924/main -I/usr/include/php/20240924/TSRM -I/usr/include/php/20240924/Zend -I/usr/include/php/20240924/ext -I/usr/include/php/20240924/ext/date/lib -I/usr/include/pgm-5.3 -I/usr/include/libxml2 -I/usr/include/x86_64-linux-gnu  -Wdate-time -D_FORTIFY_SOURCE=2 -DHAVE_CONFIG_H  -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/php-zmq-1.1.3=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wall -pedantic -D_GNU_SOURCE    -DZEND_COMPILE_DL_EXT=1 -c /build/reproducible-path/php-zmq-1.1.3/build-8.4/zmq.c -o zmq.lo  -MMD -MF zmq.dep -MT zmq.lo
/bin/bash /build/reproducible-path/php-zmq-1.1.3/build-8.4/libtool --tag=CC --mode=compile cc -I. -I/build/reproducible-path/php-zmq-1.1.3/build-8.4 -I/usr/include/php/20240924 -I/usr/include/php/20240924/main -I/usr/include/php/20240924/TSRM -I/usr/include/php/20240924/Zend -I/usr/include/php/20240924/ext -I/usr/include/php/20240924/ext/date/lib -I/usr/include/pgm-5.3 -I/usr/include/libxml2 -I/usr/include/x86_64-linux-gnu  -Wdate-time -D_FORTIFY_SOURCE=2 -DHAVE_CONFIG_H  -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/php-zmq-1.1.3=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wall -pedantic -D_GNU_SOURCE    -DZEND_COMPILE_DL_EXT=1 -c /build/reproducible-path/php-zmq-1.1.3/build-8.4/zmq_helpers.c -o zmq_helpers.lo  -MMD -MF zmq_helpers.dep -MT zmq_helpers.lo
/bin/bash /build/reproducible-path/php-zmq-1.1.3/build-8.4/libtool --tag=CC --mode=compile cc -I. -I/build/reproducible-path/php-zmq-1.1.3/build-8.4 -I/usr/include/php/20240924 -I/usr/include/php/20240924/main -I/usr/include/php/20240924/TSRM -I/usr/include/php/20240924/Zend -I/usr/include/php/20240924/ext -I/usr/include/php/20240924/ext/date/lib -I/usr/include/pgm-5.3 -I/usr/include/libxml2 -I/usr/include/x86_64-linux-gnu  -Wdate-time -D_FORTIFY_SOURCE=2 -DHAVE_CONFIG_H  -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/php-zmq-1.1.3=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wall -pedantic -D_GNU_SOURCE    -DZEND_COMPILE_DL_EXT=1 -c /build/reproducible-path/php-zmq-1.1.3/build-8.4/zmq_pollset.c -o zmq_pollset.lo  -MMD -MF zmq_pollset.dep -MT zmq_pollset.lo
/bin/bash /build/reproducible-path/php-zmq-1.1.3/build-8.4/libtool --tag=CC --mode=compile cc -I. -I/build/reproducible-path/php-zmq-1.1.3/build-8.4 -I/usr/include/php/20240924 -I/usr/include/php/20240924/main -I/usr/include/php/20240924/TSRM -I/usr/include/php/20240924/Zend -I/usr/include/php/20240924/ext -I/usr/include/php/20240924/ext/date/lib -I/usr/include/pgm-5.3 -I/usr/include/libxml2 -I/usr/include/x86_64-linux-gnu  -Wdate-time -D_FORTIFY_SOURCE=2 -DHAVE_CONFIG_H  -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/php-zmq-1.1.3=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wall -pedantic -D_GNU_SOURCE    -DZEND_COMPILE_DL_EXT=1 -c /build/reproducible-path/php-zmq-1.1.3/build-8.4/zmq_device.c -o zmq_device.lo  -MMD -MF zmq_device.dep -MT zmq_device.lo
/bin/bash /build/reproducible-path/php-zmq-1.1.3/build-8.4/libtool --tag=CC --mode=compile cc -I. -I/build/reproducible-path/php-zmq-1.1.3/build-8.4 -I/usr/include/php/20240924 -I/usr/include/php/20240924/main -I/usr/include/php/20240924/TSRM -I/usr/include/php/20240924/Zend -I/usr/include/php/20240924/ext -I/usr/include/php/20240924/ext/date/lib -I/usr/include/pgm-5.3 -I/usr/include/libxml2 -I/usr/include/x86_64-linux-gnu  -Wdate-time -D_FORTIFY_SOURCE=2 -DHAVE_CONFIG_H  -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/php-zmq-1.1.3=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wall -pedantic -D_GNU_SOURCE    -DZEND_COMPILE_DL_EXT=1 -c /build/reproducible-path/php-zmq-1.1.3/build-8.4/zmq_sockopt.c -o zmq_sockopt.lo  -MMD -MF zmq_sockopt.dep -MT zmq_sockopt.lo
/bin/bash /build/reproducible-path/php-zmq-1.1.3/build-8.4/libtool --tag=CC --mode=compile cc -I. -I/build/reproducible-path/php-zmq-1.1.3/build-8.4 -I/usr/include/php/20240924 -I/usr/include/php/20240924/main -I/usr/include/php/20240924/TSRM -I/usr/include/php/20240924/Zend -I/usr/include/php/20240924/ext -I/usr/include/php/20240924/ext/date/lib -I/usr/include/pgm-5.3 -I/usr/include/libxml2 -I/usr/include/x86_64-linux-gnu  -Wdate-time -D_FORTIFY_SOURCE=2 -DHAVE_CONFIG_H  -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/php-zmq-1.1.3=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wall -pedantic -D_GNU_SOURCE    -DZEND_COMPILE_DL_EXT=1 -c /build/reproducible-path/php-zmq-1.1.3/build-8.4/zmq_fd_stream.c -o zmq_fd_stream.lo  -MMD -MF zmq_fd_stream.dep -MT zmq_fd_stream.lo
/bin/bash /build/reproducible-path/php-zmq-1.1.3/build-8.4/libtool --tag=CC --mode=compile cc -I. -I/build/reproducible-path/php-zmq-1.1.3/build-8.4 -I/usr/include/php/20240924 -I/usr/include/php/20240924/main -I/usr/include/php/20240924/TSRM -I/usr/include/php/20240924/Zend -I/usr/include/php/20240924/ext -I/usr/include/php/20240924/ext/date/lib -I/usr/include/pgm-5.3 -I/usr/include/libxml2 -I/usr/include/x86_64-linux-gnu  -Wdate-time -D_FORTIFY_SOURCE=2 -DHAVE_CONFIG_H  -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/php-zmq-1.1.3=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wall -pedantic -D_GNU_SOURCE    -DZEND_COMPILE_DL_EXT=1 -c /build/reproducible-path/php-zmq-1.1.3/build-8.4/zmq_clock.c -o zmq_clock.lo  -MMD -MF zmq_clock.dep -MT zmq_clock.lo
/bin/bash /build/reproducible-path/php-zmq-1.1.3/build-8.4/libtool --tag=CC --mode=compile cc -I. -I/build/reproducible-path/php-zmq-1.1.3/build-8.4 -I/usr/include/php/20240924 -I/usr/include/php/20240924/main -I/usr/include/php/20240924/TSRM -I/usr/include/php/20240924/Zend -I/usr/include/php/20240924/ext -I/usr/include/php/20240924/ext/date/lib -I/usr/include/pgm-5.3 -I/usr/include/libxml2 -I/usr/include/x86_64-linux-gnu  -Wdate-time -D_FORTIFY_SOURCE=2 -DHAVE_CONFIG_H  -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/php-zmq-1.1.3=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wall -pedantic -D_GNU_SOURCE    -DZEND_COMPILE_DL_EXT=1 -c /build/reproducible-path/php-zmq-1.1.3/build-8.4/zmq_shared_ctx.c -o zmq_shared_ctx.lo  -MMD -MF zmq_shared_ctx.dep -MT zmq_shared_ctx.lo
libtool: compile:  cc -I. -I/build/reproducible-path/php-zmq-1.1.3/build-8.4 -I/usr/include/php/20240924 -I/usr/include/php/20240924/main -I/usr/include/php/20240924/TSRM -I/usr/include/php/20240924/Zend -I/usr/include/php/20240924/ext -I/usr/include/php/20240924/ext/date/lib -I/usr/include/pgm-5.3 -I/usr/include/libxml2 -I/usr/include/x86_64-linux-gnu -Wdate-time -D_FORTIFY_SOURCE=2 -DHAVE_CONFIG_H -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/php-zmq-1.1.3=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wall -pedantic -D_GNU_SOURCE -DZEND_COMPILE_DL_EXT=1 -c /build/reproducible-path/php-zmq-1.1.3/build-8.4/zmq_pollset.c -MMD -MF zmq_pollset.dep -MT zmq_pollset.lo  -fPIC -DPIC -o .libs/zmq_pollset.o
libtool: compile:  cc -I. -I/build/reproducible-path/php-zmq-1.1.3/build-8.4 -I/usr/include/php/20240924 -I/usr/include/php/20240924/main -I/usr/include/php/20240924/TSRM -I/usr/include/php/20240924/Zend -I/usr/include/php/20240924/ext -I/usr/include/php/20240924/ext/date/lib -I/usr/include/pgm-5.3 -I/usr/include/libxml2 -I/usr/include/x86_64-linux-gnu -Wdate-time -D_FORTIFY_SOURCE=2 -DHAVE_CONFIG_H -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/php-zmq-1.1.3=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wall -pedantic -D_GNU_SOURCE -DZEND_COMPILE_DL_EXT=1 -c /build/reproducible-path/php-zmq-1.1.3/build-8.4/zmq_clock.c -MMD -MF zmq_clock.dep -MT zmq_clock.lo  -fPIC -DPIC -o .libs/zmq_clock.o
libtool: compile:  cc -I. -I/build/reproducible-path/php-zmq-1.1.3/build-8.4 -I/usr/include/php/20240924 -I/usr/include/php/20240924/main -I/usr/include/php/20240924/TSRM -I/usr/include/php/20240924/Zend -I/usr/include/php/20240924/ext -I/usr/include/php/20240924/ext/date/lib -I/usr/include/pgm-5.3 -I/usr/include/libxml2 -I/usr/include/x86_64-linux-gnu -Wdate-time -D_FORTIFY_SOURCE=2 -DHAVE_CONFIG_H -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/php-zmq-1.1.3=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wall -pedantic -D_GNU_SOURCE -DZEND_COMPILE_DL_EXT=1 -c /build/reproducible-path/php-zmq-1.1.3/build-8.4/zmq.c -MMD -MF zmq.dep -MT zmq.lo  -fPIC -DPIC -o .libs/zmq.o
libtool: compile:  cc -I. -I/build/reproducible-path/php-zmq-1.1.3/build-8.4 -I/usr/include/php/20240924 -I/usr/include/php/20240924/main -I/usr/include/php/20240924/TSRM -I/usr/include/php/20240924/Zend -I/usr/include/php/20240924/ext -I/usr/include/php/20240924/ext/date/lib -I/usr/include/pgm-5.3 -I/usr/include/libxml2 -I/usr/include/x86_64-linux-gnu -Wdate-time -D_FORTIFY_SOURCE=2 -DHAVE_CONFIG_H -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/php-zmq-1.1.3=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wall -pedantic -D_GNU_SOURCE -DZEND_COMPILE_DL_EXT=1 -c /build/reproducible-path/php-zmq-1.1.3/build-8.4/zmq_sockopt.c -MMD -MF zmq_sockopt.dep -MT zmq_sockopt.lo  -fPIC -DPIC -o .libs/zmq_sockopt.o
libtool: compile:  cc -I. -I/build/reproducible-path/php-zmq-1.1.3/build-8.4 -I/usr/include/php/20240924 -I/usr/include/php/20240924/main -I/usr/include/php/20240924/TSRM -I/usr/include/php/20240924/Zend -I/usr/include/php/20240924/ext -I/usr/include/php/20240924/ext/date/lib -I/usr/include/pgm-5.3 -I/usr/include/libxml2 -I/usr/include/x86_64-linux-gnu -Wdate-time -D_FORTIFY_SOURCE=2 -DHAVE_CONFIG_H -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/php-zmq-1.1.3=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wall -pedantic -D_GNU_SOURCE -DZEND_COMPILE_DL_EXT=1 -c /build/reproducible-path/php-zmq-1.1.3/build-8.4/zmq_device.c -MMD -MF zmq_device.dep -MT zmq_device.lo  -fPIC -DPIC -o .libs/zmq_device.o
libtool: compile:  cc -I. -I/build/reproducible-path/php-zmq-1.1.3/build-8.4 -I/usr/include/php/20240924 -I/usr/include/php/20240924/main -I/usr/include/php/20240924/TSRM -I/usr/include/php/20240924/Zend -I/usr/include/php/20240924/ext -I/usr/include/php/20240924/ext/date/lib -I/usr/include/pgm-5.3 -I/usr/include/libxml2 -I/usr/include/x86_64-linux-gnu -Wdate-time -D_FORTIFY_SOURCE=2 -DHAVE_CONFIG_H -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/php-zmq-1.1.3=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wall -pedantic -D_GNU_SOURCE -DZEND_COMPILE_DL_EXT=1 -c /build/reproducible-path/php-zmq-1.1.3/build-8.4/zmq_helpers.c -MMD -MF zmq_helpers.dep -MT zmq_helpers.lo  -fPIC -DPIC -o .libs/zmq_helpers.o
libtool: compile:  cc -I. -I/build/reproducible-path/php-zmq-1.1.3/build-8.4 -I/usr/include/php/20240924 -I/usr/include/php/20240924/main -I/usr/include/php/20240924/TSRM -I/usr/include/php/20240924/Zend -I/usr/include/php/20240924/ext -I/usr/include/php/20240924/ext/date/lib -I/usr/include/pgm-5.3 -I/usr/include/libxml2 -I/usr/include/x86_64-linux-gnu -Wdate-time -D_FORTIFY_SOURCE=2 -DHAVE_CONFIG_H -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/php-zmq-1.1.3=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wall -pedantic -D_GNU_SOURCE -DZEND_COMPILE_DL_EXT=1 -c /build/reproducible-path/php-zmq-1.1.3/build-8.4/zmq_fd_stream.c -MMD -MF zmq_fd_stream.dep -MT zmq_fd_stream.lo  -fPIC -DPIC -o .libs/zmq_fd_stream.o
libtool: compile:  cc -I. -I/build/reproducible-path/php-zmq-1.1.3/build-8.4 -I/usr/include/php/20240924 -I/usr/include/php/20240924/main -I/usr/include/php/20240924/TSRM -I/usr/include/php/20240924/Zend -I/usr/include/php/20240924/ext -I/usr/include/php/20240924/ext/date/lib -I/usr/include/pgm-5.3 -I/usr/include/libxml2 -I/usr/include/x86_64-linux-gnu -Wdate-time -D_FORTIFY_SOURCE=2 -DHAVE_CONFIG_H -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/php-zmq-1.1.3=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wall -pedantic -D_GNU_SOURCE -DZEND_COMPILE_DL_EXT=1 -c /build/reproducible-path/php-zmq-1.1.3/build-8.4/zmq_shared_ctx.c -MMD -MF zmq_shared_ctx.dep -MT zmq_shared_ctx.lo  -fPIC -DPIC -o .libs/zmq_shared_ctx.o
/build/reproducible-path/php-zmq-1.1.3/build-8.4/zmq.c:35:37: warning: ISO C does not allow extra ';' outside of a function [-Wpedantic]
   35 | ZEND_DECLARE_MODULE_GLOBALS(php_zmq);
      |                                     ^
/build/reproducible-path/php-zmq-1.1.3/build-8.4/zmq_clock.c:74:8: warning: struct has no members [-Wpedantic]
   74 | struct _php_zmq_clock_ctx_t {};
      |        ^~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/php/20240924/main/php.h:35,
                 from /build/reproducible-path/php-zmq-1.1.3/build-8.4/php_zmq.h:45,
                 from /build/reproducible-path/php-zmq-1.1.3/build-8.4/zmq.c:31:
/build/reproducible-path/php-zmq-1.1.3/build-8.4/zmq.c: In function 'zim_zmqpoll_getlasterrors':
/build/reproducible-path/php-zmq-1.1.3/build-8.4/zmq.c:1523:21: error: too many arguments to function 'php_zmq_pollset_errors'; expected 0, have 1
 1523 |         RETVAL_ZVAL(php_zmq_pollset_errors(intern->set), 1, 0);
      |                     ^~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~
/usr/include/php/20240924/Zend/zend_API.h:994:31: note: in definition of macro 'ZVAL_ZVAL'
  994 |                 zval *__zv = (zv);                                              \
      |                               ^~
/build/reproducible-path/php-zmq-1.1.3/build-8.4/zmq.c:1523:9: note: in expansion of macro 'RETVAL_ZVAL'
 1523 |         RETVAL_ZVAL(php_zmq_pollset_errors(intern->set), 1, 0);
      |         ^~~~~~~~~~~
In file included from /build/reproducible-path/php-zmq-1.1.3/build-8.4/zmq.c:33:
/build/reproducible-path/php-zmq-1.1.3/build-8.4/php_zmq_pollset.h:86:7: note: declared here
   86 | zval *php_zmq_pollset_errors();
      |       ^~~~~~~~~~~~~~~~~~~~~~
/build/reproducible-path/php-zmq-1.1.3/build-8.4/zmq_pollset.c:371:7: error: conflicting types for 'php_zmq_pollset_errors'; have 'zval *(php_zmq_pollset *)' {aka 'struct _zval_struct *(struct _php_zmq_pollset *)'}
  371 | zval *php_zmq_pollset_errors(php_zmq_pollset *set)
      |       ^~~~~~~~~~~~~~~~~~~~~~
In file included from /build/reproducible-path/php-zmq-1.1.3/build-8.4/zmq_pollset.c:33:
/build/reproducible-path/php-zmq-1.1.3/build-8.4/php_zmq_pollset.h:86:7: note: previous declaration of 'php_zmq_pollset_errors' with type 'zval *(void)' {aka 'struct _zval_struct *(void)'}
   86 | zval *php_zmq_pollset_errors();
      |       ^~~~~~~~~~~~~~~~~~~~~~
make[2]: *** [Makefile:210: zmq_pollset.lo] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: *** [Makefile:204: zmq.lo] Error 1
make[2]: Leaving directory '/build/reproducible-path/php-zmq-1.1.3/build-8.4'
dh_auto_build: error: cd build-8.4 && make -j8 returned exit code 2
make[1]: *** [/usr/share/dh-php/pkg-pecl.mk:108: build-8.4-stamp] Error 25
make[1]: Leaving directory '/build/reproducible-path/php-zmq-1.1.3'
make: *** [/usr/share/dh-php/pkg-pecl.mk:79: binary] Error 2
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2

#1097580#14
Date:
2026-01-29 01:33:49 UTC
From:
To:
Hi,

There is a patch upstream which fixes this bug:
https://github.com/zeromq/php-zmq/commit/616b6c64ffd3866ed038615494306dd464ab53fc

I have applied it on Ubuntu and verified it works.