Debian Bug report logs - #1106642
libvirt-php ftbfs with libxml 2.14.x from experimental

version graph

Package: src:libvirt-php; Maintainer for src:libvirt-php is Debian PHP PECL Maintainers <[email protected]>;

Reported by: Matthias Klose <[email protected]>

Date: Tue, 27 May 2025 10:39:01 UTC

Severity: serious

Tags: fixed-upstream, forky, ftbfs, sid, upstream

Found in version libvirt-php/0.5.8-7

Forwarded to https://gitlab.com/libvirt/libvirt-php/-/merge_requests/51

Reply or subscribe to this bug.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to [email protected], Debian PHP PECL Maintainers <[email protected]>:
Bug#1106642; Package src:libvirt-php. (Tue, 27 May 2025 10:39:02 GMT) (full text, mbox, link).


Acknowledgement sent to Matthias Klose <[email protected]>:
New Bug report received and forwarded. Copy sent to Debian PHP PECL Maintainers <[email protected]>. (Tue, 27 May 2025 10:39:02 GMT) (full text, mbox, link).


Message #5 received at [email protected] (full text, mbox, reply):

From: Matthias Klose <[email protected]>
To: Debian Bug Tracking System <[email protected]>
Subject: libvirt-php ftbfs with libxml 2.14.x from experimental
Date: Tue, 27 May 2025 12:36:35 +0200
Package: src:libvirt-php
Version: 0.5.8-7
Tags: ftbfs sid forky
User: [email protected]
Usertags: libxml2.14

[this bug is NOT targeted to the upcoming trixie release]

http://qa-logs.debian.net/2025/05/23/libvirt-php_0.5.8-7_unstable_libxml2.log

[...]

../../src/sockets.c: In function 'socket_read':
../../src/sockets.c:190:9: warning: 'read' specified size between 
9223372036854775808 and 18446744073709551614 exceeds maximum object size 
9223372036854775807 [-Wstringop-overflow=]
  190 |         read(sfd, bigbuf, length) != length)
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~
../../src/sockets.c:165:19: note: destination object allocated here
  165 |     unsigned char bigbuf[1048576];
      |                   ^~~~~~
In file included from /usr/include/unistd.h:1217,
                 from ../../src/sockets.c:16:
/usr/include/x86_64-linux-gnu/bits/unistd.h:26:1: note: in a call to 
function 'read' declared with attribute 'access (write_only, 2, 3)'
   26 | read (int __fd, __fortify_clang_overload_arg0 (void *, ,__buf), 
size_t __nbytes)
      | ^~~~
../../src/sockets.c: In function 'socket_read_and_save':
../../src/sockets.c:241:15: warning: 'read' specified size between 
9223372036854775808 and 18446744073709551615 exceeds maximum object size 
9223372036854775807 [-Wstringop-overflow=]
  241 |         len = read(sfd, bigbuf, length);
      |               ^~~~~~~~~~~~~~~~~~~~~~~~~
../../src/sockets.c:210:19: note: destination object allocated here
  210 |     unsigned char bigbuf[1048576];
      |                   ^~~~~~
/usr/include/x86_64-linux-gnu/bits/unistd.h:26:1: note: in a call to 
function 'read' declared with attribute 'access (write_only, 2, 3)'
   26 | read (int __fd, __fortify_clang_overload_arg0 (void *, ,__buf), 
size_t __nbytes)
      | ^~~~
In file included from ../../src/libvirt-php.c:18:
../../src/libvirt-php.h:170:32: error: expected ';', ',' or ')' before 
'ATTRIBUTE_UNUSED'
  170 | int streamSink(virStreamPtr st ATTRIBUTE_UNUSED,
      |                                ^~~~~~~~~~~~~~~~
In file included from ../../src/libvirt-network.c:11:
../../src/libvirt-php.h:170:32: error: expected ';', ',' or ')' before 
'ATTRIBUTE_UNUSED'
  170 | int streamSink(virStreamPtr st ATTRIBUTE_UNUSED,
      |                                ^~~~~~~~~~~~~~~~
In file included from ../../src/libvirt-domain.c:12:
../../src/libvirt-php.h:170:32: error: expected ';', ',' or ')' before 
'ATTRIBUTE_UNUSED'
  170 | int streamSink(virStreamPtr st ATTRIBUTE_UNUSED,
      |                                ^~~~~~~~~~~~~~~~
In file included from ../../src/libvirt-connection.c:11:
../../src/libvirt-php.h:170:32: error: expected ';', ',' or ')' before 
'ATTRIBUTE_UNUSED'
  170 | int streamSink(virStreamPtr st ATTRIBUTE_UNUSED,
      |                                ^~~~~~~~~~~~~~~~
/bin/bash ../libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. 
-I../../src -I..   -Wdate-time -D_FORTIFY_SOURCE=2 
-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/libxml2    -DCOMPILE_DL_LIBVIRT=1 -g -O2 
-Werror=implicit-function-declaration 
-ffile-prefix-map=/build/reproducible-path/libvirt-php-0.5.8=. 
-fstack-protector-strong -fstack-clash-protection -Wformat 
-Werror=format-security -fcf-protection -c -o 
libvirt_php_la-libvirt-node.lo `test -f 'libvirt-node.c' || echo 
'../../src/'`libvirt-node.c
../../src/libvirt-php.c:990:40: error: expected ';', ',' or ')' before 
'ATTRIBUTE_UNUSED'
  990 | static void catch_error(void *userData ATTRIBUTE_UNUSED,
      |                                        ^~~~~~~~~~~~~~~~
make[4]: *** [Makefile:605: libvirt_php_la-libvirt-network.lo] Error 1
make[4]: *** Waiting for unfinished jobs....
In file included from /usr/include/features.h:523,
                 from /usr/include/errno.h:25,
                 from ../../src/sockets.c:9:
In function 'read',
    inlined from 'socket_read' at ../../src/sockets.c:190:9:
/usr/include/x86_64-linux-gnu/bits/unistd.h:32:10: warning: call to 
'__read_chk_warn' declared with attribute warning: read called with 
bigger length than size of the destination buffer [-Wattribute-warning]
   32 |   return __glibc_fortify (read, __nbytes, sizeof (char),
      |          ^~~~~~~~~~~~~~~
make[4]: *** [Makefile:591: libvirt_php_la-libvirt-connection.lo] Error 1
../../src/libvirt-php.c: In function 'zm_startup_libvirt':
../../src/libvirt-php.c:1591:27: error: 'catch_error' undeclared (first 
use in this function); did you mean 'set_error'?
 1591 |     virSetErrorFunc(NULL, catch_error);
      |                           ^~~~~~~~~~~
      |                           set_error
../../src/libvirt-php.c:1591:27: note: each undeclared identifier is 
reported only once for each function it appears in
In function 'read',
    inlined from 'socket_read_and_save' at ../../src/sockets.c:241:15:
/usr/include/x86_64-linux-gnu/bits/unistd.h:32:10: warning: call to 
'__read_chk_warn' declared with attribute warning: read called with 
bigger length than size of the destination buffer [-Wattribute-warning]
   32 |   return __glibc_fortify (read, __nbytes, sizeof (char),
      |          ^~~~~~~~~~~~~~~
../../src/libvirt-php.c: At top level:
../../src/libvirt-domain.c: In function 
'zif_libvirt_domain_get_screenshot_api':
../../src/libvirt-php.c:2585:32: error: expected ';', ',' or ')' before 
'ATTRIBUTE_UNUSED'
 2585 | int streamSink(virStreamPtr st ATTRIBUTE_UNUSED,
      |                                ^~~~~~~~~~~~~~~~
../../src/libvirt-domain.c:2920:30: error: 'streamSink' undeclared 
(first use in this function); did you mean 'readlink'?
 2920 |     if (virStreamRecvAll(st, streamSink, &fd) < 0) {
      |                              ^~~~~~~~~~
      |                              readlink
../../src/libvirt-domain.c:2920:30: note: each undeclared identifier is 
reported only once for each function it appears in
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I../../src -I.. -Wdate-time 
-D_FORTIFY_SOURCE=2 -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/libxml2 
-DCOMPILE_DL_LIBVIRT=1 -g -O2 -Werror=implicit-function-declaration 
-ffile-prefix-map=/build/reproducible-path/libvirt-php-0.5.8=. 
-fstack-protector-strong -fstack-clash-protection -Wformat 
-Werror=format-security -fcf-protection -c ../../src/libvirt-node.c 
-fPIC -DPIC -o .libs/libvirt_php_la-libvirt-node.o
make[4]: *** [Makefile:584: libvirt_php_la-libvirt-php.lo] Error 1
make[4]: *** [Makefile:598: libvirt_php_la-libvirt-domain.lo] Error 1
In file included from ../../src/libvirt-node.c:11:
../../src/libvirt-php.h:170:32: error: expected ';', ',' or ')' before 
'ATTRIBUTE_UNUSED'
  170 | int streamSink(virStreamPtr st ATTRIBUTE_UNUSED,
      |                                ^~~~~~~~~~~~~~~~
make[4]: *** [Makefile:612: libvirt_php_la-libvirt-node.lo] Error 1



Severity set to 'serious' from 'normal' Request was from Graham Inggs <[email protected]> to [email protected]. (Thu, 14 Aug 2025 11:39:09 GMT) (full text, mbox, link).


Information forwarded to [email protected], Debian PHP PECL Maintainers <[email protected]>:
Bug#1106642; Package src:libvirt-php. (Fri, 15 Aug 2025 19:21:01 GMT) (full text, mbox, link).


Acknowledgement sent to Andrea Bolognani <[email protected]>:
Extra info received and forwarded to list. Copy sent to Debian PHP PECL Maintainers <[email protected]>. (Fri, 15 Aug 2025 19:21:01 GMT) (full text, mbox, link).


Message #12 received at [email protected] (full text, mbox, reply):

From: Andrea Bolognani <[email protected]>
To: Matthias Klose <[email protected]>, [email protected]
Subject: Re: Bug#1106642: libvirt-php ftbfs with libxml 2.14.x from experimental
Date: Fri, 15 Aug 2025 21:19:30 +0200
[Message part 1 (text/plain, inline)]
Control: tags -1 +upstream +fixed-upstream

On Tue, May 27, 2025 at 12:36:35PM +0200, Matthias Klose wrote:
> Package: src:libvirt-php
> Version: 0.5.8-7
> Tags: ftbfs sid forky
> User: [email protected]
> Usertags: libxml2.14
> 
> [this bug is NOT targeted to the upcoming trixie release]
> 
> http://qa-logs.debian.net/2025/05/23/libvirt-php_0.5.8-7_unstable_libxml2.log
> 
> [...]
> 
> ../../src/sockets.c: In function 'socket_read':
> ../../src/sockets.c:190:9: warning: 'read' specified size between
> 9223372036854775808 and 18446744073709551614 exceeds maximum object size
> 9223372036854775807 [-Wstringop-overflow=]
>   190 |         read(sfd, bigbuf, length) != length)
>       |         ^~~~~~~~~~~~~~~~~~~~~~~~~
> ../../src/sockets.c:165:19: note: destination object allocated here
>   165 |     unsigned char bigbuf[1048576];
>       |                   ^~~~~~
> In file included from /usr/include/unistd.h:1217,
>                  from ../../src/sockets.c:16:
> /usr/include/x86_64-linux-gnu/bits/unistd.h:26:1: note: in a call to
> function 'read' declared with attribute 'access (write_only, 2, 3)'
>    26 | read (int __fd, __fortify_clang_overload_arg0 (void *, ,__buf),
> size_t __nbytes)
>       | ^~~~
> ../../src/sockets.c: In function 'socket_read_and_save':
> ../../src/sockets.c:241:15: warning: 'read' specified size between
> 9223372036854775808 and 18446744073709551615 exceeds maximum object size
> 9223372036854775807 [-Wstringop-overflow=]
>   241 |         len = read(sfd, bigbuf, length);
>       |               ^~~~~~~~~~~~~~~~~~~~~~~~~
> ../../src/sockets.c:210:19: note: destination object allocated here
>   210 |     unsigned char bigbuf[1048576];
>       |                   ^~~~~~
> /usr/include/x86_64-linux-gnu/bits/unistd.h:26:1: note: in a call to
> function 'read' declared with attribute 'access (write_only, 2, 3)'
>    26 | read (int __fd, __fortify_clang_overload_arg0 (void *, ,__buf),
> size_t __nbytes)
>       | ^~~~
> In file included from ../../src/libvirt-php.c:18:
> ../../src/libvirt-php.h:170:32: error: expected ';', ',' or ')' before
> 'ATTRIBUTE_UNUSED'
>   170 | int streamSink(virStreamPtr st ATTRIBUTE_UNUSED,
>       |                                ^~~~~~~~~~~~~~~~
> In file included from ../../src/libvirt-network.c:11:
> ../../src/libvirt-php.h:170:32: error: expected ';', ',' or ')' before
> 'ATTRIBUTE_UNUSED'
>   170 | int streamSink(virStreamPtr st ATTRIBUTE_UNUSED,
>       |                                ^~~~~~~~~~~~~~~~
> In file included from ../../src/libvirt-domain.c:12:
> ../../src/libvirt-php.h:170:32: error: expected ';', ',' or ')' before
> 'ATTRIBUTE_UNUSED'
>   170 | int streamSink(virStreamPtr st ATTRIBUTE_UNUSED,
>       |                                ^~~~~~~~~~~~~~~~
> In file included from ../../src/libvirt-connection.c:11:
> ../../src/libvirt-php.h:170:32: error: expected ';', ',' or ')' before
> 'ATTRIBUTE_UNUSED'
>   170 | int streamSink(virStreamPtr st ATTRIBUTE_UNUSED,
>       |                                ^~~~~~~~~~~~~~~~
> /bin/bash ../libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I.
> -I../../src -I..   -Wdate-time -D_FORTIFY_SOURCE=2
> -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/libxml2    -DCOMPILE_DL_LIBVIRT=1 -g -O2
> -Werror=implicit-function-declaration
> -ffile-prefix-map=/build/reproducible-path/libvirt-php-0.5.8=.
> -fstack-protector-strong -fstack-clash-protection -Wformat
> -Werror=format-security -fcf-protection -c -o libvirt_php_la-libvirt-node.lo
> `test -f 'libvirt-node.c' || echo '../../src/'`libvirt-node.c
> ../../src/libvirt-php.c:990:40: error: expected ';', ',' or ')' before
> 'ATTRIBUTE_UNUSED'
>   990 | static void catch_error(void *userData ATTRIBUTE_UNUSED,
>       |                                        ^~~~~~~~~~~~~~~~
> make[4]: *** [Makefile:605: libvirt_php_la-libvirt-network.lo] Error 1
> make[4]: *** Waiting for unfinished jobs....
> In file included from /usr/include/features.h:523,
>                  from /usr/include/errno.h:25,
>                  from ../../src/sockets.c:9:
> In function 'read',
>     inlined from 'socket_read' at ../../src/sockets.c:190:9:
> /usr/include/x86_64-linux-gnu/bits/unistd.h:32:10: warning: call to
> '__read_chk_warn' declared with attribute warning: read called with bigger
> length than size of the destination buffer [-Wattribute-warning]
>    32 |   return __glibc_fortify (read, __nbytes, sizeof (char),
>       |          ^~~~~~~~~~~~~~~
> make[4]: *** [Makefile:591: libvirt_php_la-libvirt-connection.lo] Error 1
> ../../src/libvirt-php.c: In function 'zm_startup_libvirt':
> ../../src/libvirt-php.c:1591:27: error: 'catch_error' undeclared (first use
> in this function); did you mean 'set_error'?
>  1591 |     virSetErrorFunc(NULL, catch_error);
>       |                           ^~~~~~~~~~~
>       |                           set_error
> ../../src/libvirt-php.c:1591:27: note: each undeclared identifier is
> reported only once for each function it appears in
> In function 'read',
>     inlined from 'socket_read_and_save' at ../../src/sockets.c:241:15:
> /usr/include/x86_64-linux-gnu/bits/unistd.h:32:10: warning: call to
> '__read_chk_warn' declared with attribute warning: read called with bigger
> length than size of the destination buffer [-Wattribute-warning]
>    32 |   return __glibc_fortify (read, __nbytes, sizeof (char),
>       |          ^~~~~~~~~~~~~~~
> ../../src/libvirt-php.c: At top level:
> ../../src/libvirt-domain.c: In function
> 'zif_libvirt_domain_get_screenshot_api':
> ../../src/libvirt-php.c:2585:32: error: expected ';', ',' or ')' before
> 'ATTRIBUTE_UNUSED'
>  2585 | int streamSink(virStreamPtr st ATTRIBUTE_UNUSED,
>       |                                ^~~~~~~~~~~~~~~~
> ../../src/libvirt-domain.c:2920:30: error: 'streamSink' undeclared (first
> use in this function); did you mean 'readlink'?
>  2920 |     if (virStreamRecvAll(st, streamSink, &fd) < 0) {
>       |                              ^~~~~~~~~~
>       |                              readlink
> ../../src/libvirt-domain.c:2920:30: note: each undeclared identifier is
> reported only once for each function it appears in
> libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I../../src -I.. -Wdate-time
> -D_FORTIFY_SOURCE=2 -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/libxml2
> -DCOMPILE_DL_LIBVIRT=1 -g -O2 -Werror=implicit-function-declaration
> -ffile-prefix-map=/build/reproducible-path/libvirt-php-0.5.8=.
> -fstack-protector-strong -fstack-clash-protection -Wformat
> -Werror=format-security -fcf-protection -c ../../src/libvirt-node.c -fPIC
> -DPIC -o .libs/libvirt_php_la-libvirt-node.o
> make[4]: *** [Makefile:584: libvirt_php_la-libvirt-php.lo] Error 1
> make[4]: *** [Makefile:598: libvirt_php_la-libvirt-domain.lo] Error 1
> In file included from ../../src/libvirt-node.c:11:
> ../../src/libvirt-php.h:170:32: error: expected ';', ',' or ')' before
> 'ATTRIBUTE_UNUSED'
>   170 | int streamSink(virStreamPtr st ATTRIBUTE_UNUSED,
>       |                                ^~~~~~~~~~~~~~~~
> make[4]: *** [Makefile:612: libvirt_php_la-libvirt-node.lo] Error 1

FYI this has been addressed upstream.

https://gitlab.com/libvirt/libvirt-php/-/merge_requests/51

-- 
Andrea Bolognani <[email protected]>
Resistance is futile, you will be garbage collected.
[signature.asc (application/pgp-signature, inline)]

Added tag(s) upstream. Request was from Andrea Bolognani <[email protected]> to [email protected]. (Fri, 15 Aug 2025 19:21:01 GMT) (full text, mbox, link).


Added tag(s) fixed-upstream. Request was from Andrea Bolognani <[email protected]> to [email protected]. (Fri, 15 Aug 2025 19:21:02 GMT) (full text, mbox, link).


Set Bug forwarded-to-address to 'https://gitlab.com/libvirt/libvirt-php/-/merge_requests/51'. Request was from Pino Toscano <[email protected]> to [email protected]. (Wed, 20 Aug 2025 05:41:02 GMT) (full text, mbox, link).


Send a report that this bug log contains spam.


Debian bug tracking system administrator <[email protected]>. Last modified: Mon Jan 12 06:28:31 2026; Machine Name: buxtehude

Debian Bug tracking system

Debbugs is free software and licensed under the terms of the GNU General Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.