Bug#1106634: xmlstarlet ftbfs with libxml 2.14.x from experimental
Package: src:xmlstarlet
Version: 1.6.1-4
Tags: ftbfs sid forky
User: debian-xml-sgml-pkgs@lists.alioth.debian.org
Usertags: libxml2.14
[this bug is NOT targeted to the upcoming trixie release]
http://qa-logs.debian.net/2025/05/23/xmlstarlet_1.6.1-4_unstable_libxml2.log
[...]
gcc -DHAVE_CONFIG_H -I. -I/usr/include/libxml2 -I/usr/include/libxml2
-Wdate-time -D_FORTIFY_SOURCE=2 -Wall -pedantic -ansi -g -O2
-Werror=implicit-function-declaration
-ffile-prefix-map=/build/reproducible-path/xmlstarlet-1.6.1=.
-fstack-protector-strong -fstack-clash-protection -Wformat
-Werror=format-security -fcf-protection -c -o src/xml_trans.o
src/xml_trans.c
src/xml_pyx.c:203:36: error: expected ‘;’, ‘,’ or ‘)’ before
‘ATTRIBUTE_UNUSED’
203 | pyxExternalSubsetHandler(void *ctx ATTRIBUTE_UNUSED, const
xmlChar *name,
| ^~~~~~~~~~~~~~~~
src/xml_pyx.c:218:29: error: expected ‘;’, ‘,’ or ‘)’ before
‘ATTRIBUTE_UNUSED’
218 | pyxCommentHandler(void *ctx ATTRIBUTE_UNUSED, const xmlChar *value)
| ^~~~~~~~~~~~~~~~
src/xml_pyx.c:226:32: error: expected ‘;’, ‘,’ or ‘)’ before
‘ATTRIBUTE_UNUSED’
226 | pyxCdataBlockHandler(void *ctx ATTRIBUTE_UNUSED, const xmlChar
*value, int len)
| ^~~~~~~~~~~~~~~~
src/xml_ls.c: In function ‘xml_print_dir’:
src/xml_ls.c:149:22: warning: the comparison will always evaluate as
‘false’ for the address of ‘d_name’ will never be NULL [-Waddress]
149 | if ((d->d_name == NULL) || !strcmp(d->d_name, ".") ||
!strcmp(d->d_name, ".."))
| ^~
In file included from /usr/include/dirent.h:61,
from src/xml_ls.c:33:
/usr/include/x86_64-linux-gnu/bits/dirent.h:33:10: note: ‘d_name’
declared here
33 | char d_name[256]; /* We must not include limits.h! */
| ^~~~~~
src/xml_ls.c:140:4: warning: ignoring return value of ‘chdir’
declared with attribute ‘warn_unused_result’ [-Wunused-result]
140 | chdir(dir);
| ^~~~~~~~~~
In file included from src/xml_trans.c:29:
./config.h:65:37: warning: '$' in identifier or number
65 | #define PACKAGE_STRING "XMLStarlet "${DEB_VERSION_UPSTREAM}""
| ^
src/xml_pyx.c: In function ‘pyxMain’:
src/xml_pyx.c:291:29: error: ‘pyxExternalSubsetHandler’ undeclared
(first use in this function)
291 | pyxSAX.externalSubset = pyxExternalSubsetHandler;
| ^~~~~~~~~~~~~~~~~~~~~~~~
src/xml_pyx.c:291:29: note: each undeclared identifier is reported only
once for each function it appears in
src/xml_pyx.c:292:22: error: ‘pyxCommentHandler’ undeclared (first
use in this function)
292 | pyxSAX.comment = pyxCommentHandler;
| ^~~~~~~~~~~~~~~~~
src/xml_edit.c: In function ‘edInsert’:
src/xml_edit.c:371:9: warning: ‘node’ may be used uninitialized
[-Wmaybe-uninitialized]
371 | xmlXPathNodeSetAdd(previous_insertion, node);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/xml_edit.c:339:20: note: ‘node’ was declared here
339 | xmlNodePtr node;
| ^~~~
src/xml_pyx.c:293:25: error: ‘pyxCdataBlockHandler’ undeclared
(first use in this function)
293 | pyxSAX.cdataBlock = pyxCdataBlockHandler;
| ^~~~~~~~~~~~~~~~~~~~
make[2]: *** [Makefile:955: src/xml_pyx.o] Error 1
make[2]: *** Waiting for unfinished jobs....
In file included from /usr/include/libxml2/libxml/tree.h:27,
from /usr/include/libxml2/libxml/parser.h:16,
from /usr/include/libxml2/libxml/tree.h:17,
from src/xml_select.c:38:
src/xml_select.c: In function ‘selPrepareXslt’:
/usr/include/libxml2/libxml/xmlstring.h:35:18: warning: pointer targets
in passing argument 3 of ‘xmlStrPrintf’ differ in signedness
[-Wpointer-sign]
35 | #define BAD_CAST (xmlChar *)
src/xml_select.c:552:55: note: in expansion of macro ‘BAD_CAST’
552 | xmlStrPrintf(num_buf, sizeof num_buf, BAD_CAST
"t%d", t);
| ^~~~~~~~
/usr/include/libxml2/libxml/xmlstring.h:100:54: note: expected ‘const
char *’ but argument is of type ‘xmlChar *’ {aka ‘unsigned char
*’}
100 | const char *msg,
| ~~~~~~~~~~~~^~~
rm doc/xmlstarlet-ug.fo
make[2]: Leaving directory '/build/reproducible-path/xmlstarlet-1.6.1'
make[1]: *** [Makefile:732: all] Error 2
make[1]: Leaving directory '/build/reproducible-path/xmlstarlet-1.6.1'
dh_auto_build: error: make -j8 returned exit code 2
make: *** [debian/rules:12: binary] Error 25
Reply to: