Source: php-zmq
Version: 1.1.3-25
Severity: normal
Justification: FTBFS
Tags: trixie sid ftbfs
User: pkg-php-p...@lists.alioth.debian.org
Usertags: php8.4

Hi,

During a test rebuild, php-zmq was found to fail to build with
php8.4 8.4.0~beta4-1 available in experimental.

There are intentions to transition to php8.4 for trixie, please see #1074180.

To reproduce this locally, you need to install php8.4 and php-defaults from
experimental on an unstable system or build chroot.

Relevant part (hopefully):
> /bin/bash /<<PKGBUILDDIR>>/build-8.4/libtool --tag=CC --mode=compile cc -I. 
> -I/<<PKGBUILDDIR>>/build-8.4 -I/usr/include/php/20230901 
> -I/usr/include/php/20230901/main -I/usr/include/php/20230901/TSRM 
> -I/usr/include/php/20230901/Zend -I/usr/include/php/20230901/ext 
> -I/usr/include/php/20230901/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=/<<PKGBUILDDIR>>=. 
> -fstack-protector-strong -fstack-clash-protection -Wformat 
> -Werror=format-security -fcf-protection -Wall -pedantic -D_GNU_SOURCE    
> -DZEND_COMPILE_DL_EXT=1 -c /<<PKGBUILDDIR>>/build-8.4/zmq_pollset.c -o 
> zmq_pollset.lo  -MMD -MF zmq_pollset.dep -MT zmq_pollset.lo
> libtool: compile:  cc -I. -I/<<PKGBUILDDIR>>/build-8.4 
> -I/usr/include/php/20230901 -I/usr/include/php/20230901/main 
> -I/usr/include/php/20230901/TSRM -I/usr/include/php/20230901/Zend 
> -I/usr/include/php/20230901/ext -I/usr/include/php/20230901/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=/<<PKGBUILDDIR>>=. 
> -fstack-protector-strong -fstack-clash-protection -Wformat 
> -Werror=format-security -fcf-protection -Wall -pedantic -D_GNU_SOURCE 
> -DZEND_COMPILE_DL_EXT=1 -c /<<PKGBUILDDIR>>/build-8.4/zmq_pollset.c -MMD -MF 
> zmq_pollset.dep -MT zmq_pollset.lo  -fPIC -DPIC -o .libs/zmq_pollset.o
> /<<PKGBUILDDIR>>/build-8.4/zmq_pollset.c: In function 's_create_key':
> /<<PKGBUILDDIR>>/build-8.4/zmq_pollset.c:172:42: warning: format '%d' expects 
> argument of type 'int', but argument 3 has type 'zend_long' {aka 'long int'} 
> [-Wformat=]
>   172 |                 return strpprintf(0, "r:%d", Z_RES_P(entry)->handle);
>       |                                         ~^
>       |                                          |
>       |                                          int
>       |                                         %ld
> /<<PKGBUILDDIR>>/build-8.4/zmq_pollset.c:175:57: error: passing argument 1 of 
> 'php_spl_object_hash' from incompatible pointer type 
> [-Wincompatible-pointer-types]
>   175 |                 zend_string *hash = php_spl_object_hash(entry);
>       |                                                         ^~~~~
>       |                                                         |
>       |                                                         zval * {aka 
> struct _zval_struct *}
> In file included from /<<PKGBUILDDIR>>/build-8.4/zmq_pollset.c:35:
> /usr/include/php/20230901/ext/spl/php_spl.h:33:54: note: expected 
> 'zend_object *' {aka 'struct _zend_object *'} but argument is of type 'zval 
> *' {aka 'struct _zval_struct *'}
>    33 | PHPAPI zend_string *php_spl_object_hash(zend_object *obj);
>       |                                         ~~~~~~~~~~~~~^~~
> make[2]: *** [Makefile:210: zmq_pollset.lo] Error 1


The full build log is available at
http://people.ubuntu.com/~athos-ribeiro/rebuilds/php8.4-beta/2/php-zmq/php-zmq_1.1.3-25+rebuild1726681596_amd64-2024-09-18T17:46:37Z.build

Reply via email to