#1106633 xmlcopyeditor ftbfs with libxml 2.14.x from experimental

#1106633#5
Date:
2025-05-27 08:52:02 UTC
From:
To:
[this bug is NOT targeted to the upcoming trixie release]

http://qa-logs.debian.net/2025/05/23/xmlcopyeditor_1.3.1.0-1.1_unstable_libxml2.log

[...]
In file included from /usr/include/libxml2/libxml/valid.h:16,
                  from /usr/include/libxml2/libxml/parser.h:20,
                  from wraplibxml.h:28,
                  from wraplibxml.cpp:21:
wraplibxml.cpp: In constructor ‘Initializer::Initializer(const
wxString&)’:
/usr/include/libxml2/libxml/xmlerror.h:22:69: error: invalid type
argument of unary ‘*’ (have ‘long int’)
    22 | #define initGenericErrorDefaultFunc(h)
xmlSetGenericErrorFunc(NULL, *(h))
       |
     ^~~~
wraplibxml.cpp:57:17: note: in expansion of macro
‘initGenericErrorDefaultFunc’
    57 |                 initGenericErrorDefaultFunc ( NULL );
       |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~
wraplibxml.cpp: In static member function ‘static void
Initializer::OnXmlGenericError(void*, const char*, ...)’:
wraplibxml.cpp:81:33: warning: ‘throw’ will always call
‘terminate’ [-Wterminate]
    81 |                                 throw std::runtime_error ( "Out
of memory" );
       |
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
wraplibxml.cpp:90:33: warning: ‘throw’ will always call
‘terminate’ [-Wterminate]
    90 |                                 throw std::runtime_error (
buffer );
       |                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
wraplibxml.cpp:95:33: warning: ‘throw’ will always call
‘terminate’ [-Wterminate]
    95 |                                 throw std::runtime_error (
       |                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~
    96 |                                         std::string ( "Can't
format message: " ) + msg );
       |
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
wraplibxml.cpp: In member function ‘std::string
WrapLibxml::dumpXPathObject(xmlXPathObjectPtr)’:
wraplibxml.cpp:476:9: warning: case value ‘5’ not in enumerated type
‘xmlXPathObjectType’ [-Wswitch]
   476 |         case XPATH_POINT:
       |         ^~~~
wraplibxml.cpp:487:9: warning: case value ‘6’ not in enumerated type
‘xmlXPathObjectType’ [-Wswitch]
   487 |         case XPATH_RANGE:
       |         ^~~~
wraplibxml.cpp:488:9: warning: case value ‘7’ not in enumerated type
‘xmlXPathObjectType’ [-Wswitch]
   488 |         case XPATH_LOCATIONSET:
       |         ^~~~
wraplibxml.cpp: In member function ‘wxString
WrapLibxml::getLastError()’:
wraplibxml.cpp:709:42: warning: invalid conversion from ‘const
xmlError*’ {aka ‘const _xmlError*’} to ‘xmlErrorPtr’ {aka
‘_xmlError*’} [-fpermissive]
   709 |         xmlErrorPtr err = xmlGetLastError();
       |                           ~~~~~~~~~~~~~~~^~
       |                                          |
       |                                          const xmlError* {aka
const _xmlError*}
wraplibxml.cpp: In member function ‘std::pair<int, int>
WrapLibxml::getErrorPosition()’:
wraplibxml.cpp:725:42: warning: invalid conversion from ‘const
xmlError*’ {aka ‘const _xmlError*’} to ‘xmlErrorPtr’ {aka
‘_xmlError*’} [-fpermissive]
   725 |         xmlErrorPtr err = xmlGetLastError();
       |                           ~~~~~~~~~~~~~~~^~
       |                                          |
       |                                          const xmlError* {aka
const _xmlError*}
wraplibxml.cpp: In static member function ‘static xmlChar*
WrapLibxml::xmlFileNameToURL(const wxString&)’:
wraplibxml.cpp:791:21: warning: ‘bool wxFileName::Normalize()’ is
deprecated: specify the wanted flags explicitly to avoid surprises
[-Wdeprecated-declarations]
   791 |         fn.Normalize();
       |         ~~~~~~~~~~~~^~
In file included from wraplibxml.h:25:
/usr/include/wx-3.2/wx/filename.h:366:10: note: declared here
   366 |     bool Normalize()
       |          ^~~~~~~~~
make[2]: *** [Makefile:720: wraplibxml.o] Error 1
make[2]: Leaving directory
'/build/reproducible-path/xmlcopyeditor-1.3.1.0/src'
make[1]: *** [Makefile:433: all-recursive] Error 1