• Bug#1106612: liblouisdtml ftbfs with libxml 2.14.x from experimental

    From Matthias Klose@21:1/5 to All on Tue May 27 09:10:01 2025
    Package: src:liblouisutdml
    Version: 2.12.0-7
    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/liblouisutdml_2.12.0-7_unstable_libxml2.log

    [...]
    In file included from change_table.c:34:
    louisutdml.h:373:31: error: expected ';', ',' or ')' before
    'ATTRIBUTE_UNUSED'
    373 | void libxml_errors (void *ctx ATTRIBUTE_UNUSED, const char
    *msg, ...);
    | ^~~~~~~~~~~~~~~~
    In file included from examine_document.c:34:
    louisutdml.h:373:31: error: expected ';', ',' or ')' before
    'ATTRIBUTE_UNUSED'
    373 | void libxml_errors (void *ctx ATTRIBUTE_UNUSED, const char
    *msg, ...);
    | ^~~~~~~~~~~~~~~~
    make[4]: *** [Makefile:1198: liblouisutdml_la-change_table.lo] Error 1
    make[4]: *** Waiting for unfinished jobs....
    make[4]: *** [Makefile:1219: liblouisutdml_la-examine_document.lo] Error 1
    In file included from makeEndnotes.c:35:
    louisutdml.h:373:31: error: expected ';', ',' or ')' before
    'ATTRIBUTE_UNUSED'
    373 | void libxml_errors (void *ctx ATTRIBUTE_UNUSED, const char
    *msg, ...);
    | ^~~~~~~~~~~~~~~~
    In file included from logging.c:30:
    louisutdml.h:373:31: error: expected ';', ',' or ')' before
    'ATTRIBUTE_UNUSED'
    373 | void libxml_errors (void *ctx ATTRIBUTE_UNUSED, const char
    *msg, ...);
    | ^~~~~~~~~~~~~~~~
    In file included from makeContents.c:35:
    louisutdml.h:373:31: error: expected ';', ',' or ')' before
    'ATTRIBUTE_UNUSED'
    373 | void libxml_errors (void *ctx ATTRIBUTE_UNUSED, const char
    *msg, ...);
    | ^~~~~~~~~~~~~~~~
    In file included from readconfig.c:39:
    louisutdml.h:373:31: error: expected ';', ',' or ')' before
    'ATTRIBUTE_UNUSED'
    373 | void libxml_errors (void *ctx ATTRIBUTE_UNUSED, const char
    *msg, ...);
    | ^~~~~~~~~~~~~~~~
    make[4]: *** [Makefile:1233: liblouisutdml_la-logging.lo] Error 1
    In file included from paths.c:35:
    louisutdml.h:373:31: error: expected ';', ',' or ')' before
    'ATTRIBUTE_UNUSED'
    373 | void libxml_errors (void *ctx ATTRIBUTE_UNUSED, const char
    *msg, ...);
    | ^~~~~~~~~~~~~~~~
    In file included from liblouisutdml.c:36:
    louisutdml.h:373:31: error: expected ';', ',' or ')' before
    'ATTRIBUTE_UNUSED'
    373 | void libxml_errors (void *ctx ATTRIBUTE_UNUSED, const char
    *msg, ...);
    | ^~~~~~~~~~~~~~~~
    make[4]: *** [Makefile:1205: liblouisutdml_la-makeContents.lo] Error 1 liblouisutdml.c:59:26: error: expected ';', ',' or ')' before 'ATTRIBUTE_UNUSED'
    59 | libxml_errors (void *ctx ATTRIBUTE_UNUSED, const char *msg, ...)
    | ^~~~~~~~~~~~~~~~
    make[4]: *** [Makefile:1212: liblouisutdml_la-makeEndnotes.lo] Error 1
    In file included from /usr/include/libxml2/libxml/valid.h:16,
    from /usr/include/libxml2/libxml/parser.h:20,
    from louisutdml.h:34:
    liblouisutdml.c: In function 'cleanupLibxml': /usr/include/libxml2/libxml/xmlerror.h:22:69: warning: dereferencing
    'void *' pointer
    22 | #define initGenericErrorDefaultFunc(h)
    xmlSetGenericErrorFunc(NULL, *(h))
    |
    ^~~~
    liblouisutdml.c:82:3: note: in expansion of macro
    'initGenericErrorDefaultFunc'
    82 | initGenericErrorDefaultFunc (NULL);
    | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/libxml2/libxml/xmlerror.h:22:69: error: invalid use of void expression
    22 | #define initGenericErrorDefaultFunc(h)
    xmlSetGenericErrorFunc(NULL, *(h))
    |
    ^~~~
    liblouisutdml.c:82:3: note: in expansion of macro
    'initGenericErrorDefaultFunc'
    82 | initGenericErrorDefaultFunc (NULL);
    | ^~~~~~~~~~~~~~~~~~~~~~~~~~~
    liblouisutdml.c: In function 'processXmlDocument':
    liblouisutdml.c:107:7: warning: 'xmlSubstituteEntitiesDefault' is
    deprecated [-Wdeprecated-declarations]
    107 | xmlSubstituteEntitiesDefault (1);
    | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/libxml2/libxml/parser.h:1106:17: note: declared here
    1106 | xmlSubstituteEntitiesDefault(int val);
    | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
    liblouisutdml.c:108:7: warning: 'xmlThrDefIndentTreeOutput' is
    deprecated [-Wdeprecated-declarations]
    108 | xmlThrDefIndentTreeOutput (1);
    | ^~~~~~~~~~~~~~~~~~~~~~~~~
    In file included from liblouisutdml.c:37: /usr/include/libxml2/libxml/xmlsave.h:96:17: note: declared here
    96 | xmlThrDefIndentTreeOutput(int v);
    | ^~~~~~~~~~~~~~~~~~~~~~~~~
    liblouisutdml.c:109:7: warning: 'xmlThrDefKeepBlanksDefaultValue' is
    deprecated [-Wdeprecated-declarations]
    109 | xmlThrDefKeepBlanksDefaultValue (0);
    | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/libxml2/libxml/parser.h:1114:17: note: declared here
    1114 | xmlThrDefKeepBlanksDefaultValue(int v);
    | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    liblouisutdml.c:110:7: warning: 'xmlThrDefLineNumbersDefaultValue' is deprecated [-Wdeprecated-declarations]
    110 | xmlThrDefLineNumbersDefaultValue (1);
    | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/libxml2/libxml/parser.h:1128:17: note: declared here
    1128 | xmlThrDefLineNumbersDefaultValue(int v);
    | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    make[4]: *** [Makefile:1240: liblouisutdml_la-paths.lo] Error 1 liblouisutdml.c:114:33: error: 'libxml_errors' undeclared (first use in
    this function)
    114 | xmlSetGenericErrorFunc (ctxt, libxml_errors);
    | ^~~~~~~~~~~~~
    liblouisutdml.c:114:33: note: each undeclared identifier is reported
    only once for each function it appears in
    make[4]: *** [Makefile:1247: liblouisutdml_la-readconfig.lo] Error 1
    make[4]: *** [Makefile:1226: liblouisutdml_la-liblouisutdml.lo] Error 1

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)