Bug#1075219: libxml-libxml-perl: ftbfs with GCC-14
Matthias Klose
doko at debian.org
Wed Jul 3 13:34:46 BST 2024
Package: src:libxml-libxml-perl
Version: 2.0207+dfsg+really+2.0134-3.1
Severity: important
Tags: sid trixie
User: debian-gcc at lists.debian.org
Usertags: ftbfs-gcc-14
[This bug is 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-14/g++-14, but succeeds to build with gcc-13/g++-13. The
severity of this report will be raised before the trixie release.
The full build log can be found at:
http://qa-logs.debian.net/2024/07/01/libxml-libxml-perl_2.0207+dfsg+really+2.0134-3.1_unstable_gccexp.log
The last lines of the build log are at the end of this report.
To build with GCC 14, either set CC=gcc-14 CXX=g++-14 explicitly,
or install the gcc, g++, gfortran, ... packages from experimental.
apt-get -t=experimental install g++
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-14/porting_to.html
[...]
cp lib/XML/LibXML/Literal.pm blib/lib/XML/LibXML/Literal.pm
cp lib/XML/LibXML/Comment.pod blib/lib/XML/LibXML/Comment.pod
cp lib/XML/LibXML/Dtd.pod blib/lib/XML/LibXML/Dtd.pod
cp lib/XML/LibXML/Common.pm blib/lib/XML/LibXML/Common.pm
cp lib/XML/LibXML/Pattern.pod blib/lib/XML/LibXML/Pattern.pod
cp lib/XML/LibXML/Schema.pod blib/lib/XML/LibXML/Schema.pod
cp lib/XML/LibXML/DocumentFragment.pod blib/lib/XML/LibXML/DocumentFragment.pod
cp lib/XML/LibXML/XPathContext.pod blib/lib/XML/LibXML/XPathContext.pod
cp lib/XML/LibXML/XPathExpression.pod blib/lib/XML/LibXML/XPathExpression.pod
"/usr/bin/perl" -MExtUtils::Command::MM -e 'cp_nonempty' -- LibXML.bs blib/arch/auto/XML/LibXML/LibXML.bs 644
mv Devel.xsc Devel.c
x86_64-linux-gnu-gcc -c -I/usr/include/libxml2 -D_REENTRANT -D_GNU_SOURCE -DDEBIAN -fwrapv -fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wdate-time -D_FORTIFY_SOURCE=2 -DVERSION=\"2.0134\" -DXS_VERSION=\"2.0134\" -fPIC "-I/usr/lib/x86_64-linux-gnu/perl/5.38/CORE" -DHAVE_UTF8 Devel.c
perl-libxml-sax.c: In function ‘PmmSaxError’:
perl-libxml-sax.c:1539:28: warning: initialization discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
1539 | xmlErrorPtr last_err = xmlCtxtGetLastError( ctxt );
| ^~~~~~~~~~~~~~~~~~~
perl-libxml-mm.c: In function ‘PmmDumpRegistry’:
perl-libxml-mm.c:142:32: error: passing argument 2 of ‘xmlHashScan’ from incompatible pointer type [-Wincompatible-pointer-types]
142 | xmlHashScan(r, PmmRegistryDumpHashScanner, NULL);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
| |
| void (*)(void *, void *, xmlChar *) {aka void (*)(void *, void *, unsigned char *)}
In file included from /usr/include/libxml2/libxml/parser.h:18,
from perl-libxml-mm.h:20,
from perl-libxml-mm.c:26:
/usr/include/libxml2/libxml/hash.h:209:57: note: expected ‘xmlHashScanner’ {aka ‘void (*)(void *, void *, const unsigned char *)’} but argument is of type ‘void (*)(void *, void *, xmlChar *)’ {aka ‘void (*)(void *, void *, unsigned char *)’}
209 | xmlHashScanner scan,
| ~~~~~~~~~~~~~~~^~~~
perl-libxml-mm.c: In function ‘PmmUnregisterProxyNode’:
perl-libxml-mm.c:234:51: error: passing argument 3 of ‘xmlHashRemoveEntry’ from incompatible pointer type [-Wincompatible-pointer-types]
234 | if( xmlHashRemoveEntry(PmmREGISTRY, name, PmmRegistryHashDeallocator) )
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
| |
| void (*)(void *, xmlChar *) {aka void (*)(void *, unsigned char *)}
/usr/include/libxml2/libxml/hash.h:152:61: note: expected ‘xmlHashDeallocator’ {aka ‘void (*)(void *, const unsigned char *)’} but argument is of type ‘void (*)(void *, xmlChar *)’ {aka ‘void (*)(void *, unsigned char *)’}
152 | xmlHashDeallocator dealloc);
| ~~~~~~~~~~~~~~~~~~~^~~~~~~
perl-libxml-mm.c: In function ‘PmmCloneProxyNodes’:
perl-libxml-mm.c:301:45: error: passing argument 2 of ‘xmlHashCopy’ from incompatible pointer type [-Wincompatible-pointer-types]
301 | reg_copy = xmlHashCopy(PmmREGISTRY, PmmRegistryHashCopier);
| ^~~~~~~~~~~~~~~~~~~~~
| |
| void * (*)(void *, xmlChar *) {aka void * (*)(void *, unsigned char *)}
/usr/include/libxml2/libxml/hash.h:204:56: note: expected ‘xmlHashCopier’ {aka ‘void * (*)(void *, const unsigned char *)’} but argument is of type ‘void * (*)(void *, xmlChar *)’ {aka ‘void * (*)(void *, unsigned char *)’}
204 | xmlHashCopier copy);
| ~~~~~~~~~~~~~~^~~~
mv LibXML.xsc LibXML.c
x86_64-linux-gnu-gcc -c -I/usr/include/libxml2 -D_REENTRANT -D_GNU_SOURCE -DDEBIAN -fwrapv -fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wdate-time -D_FORTIFY_SOURCE=2 -DVERSION=\"2.0134\" -DXS_VERSION=\"2.0134\" -fPIC "-I/usr/lib/x86_64-linux-gnu/perl/5.38/CORE" -DHAVE_UTF8 LibXML.c
make[1]: *** [Makefile:439: perl-libxml-mm.o] Error 1
make[1]: *** Waiting for unfinished jobs....
LibXML.xs: In function ‘LibXML_init_parser’:
LibXML.xs:942:13: warning: ‘xmlKeepBlanksDefault’ is deprecated [-Wdeprecated-declarations]
942 | xmlKeepBlanksDefault(0);
| ^~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/libxml2/libxml/HTMLparser.h:16,
from /usr/include/libxml2/libxml/globals.h:18,
from LibXML.xs:40:
/usr/include/libxml2/libxml/parser.h:957:17: note: declared here
957 | xmlKeepBlanksDefault (int val);
| ^~~~~~~~~~~~~~~~~~~~
LibXML.xs:945:13: warning: ‘xmlKeepBlanksDefault’ is deprecated [-Wdeprecated-declarations]
945 | xmlKeepBlanksDefault(1);
| ^~~~~~~~~~~~~~~~~~~~
/usr/include/libxml2/libxml/parser.h:957:17: note: declared here
957 | xmlKeepBlanksDefault (int val);
| ^~~~~~~~~~~~~~~~~~~~
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
dh_auto_build: error: make -j8 returned exit code 2
make: *** [debian/rules:22: binary] Error 25
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2
More information about the pkg-perl-maintainers
mailing list