https://bugs.documentfoundation.org/show_bug.cgi?id=158302

            Bug ID: 158302
           Summary: libxml type issue in 7.6.3.2
           Product: LibreOffice
           Version: 7.6.3.2 rc
          Hardware: All
                OS: All
            Status: UNCONFIRMED
          Severity: normal
          Priority: medium
         Component: LibreOffice
          Assignee: [email protected]
          Reporter: [email protected]

Compilation of 7.6.3.2 release fails with libxml2 2.12.0:

/builddir/build/BUILD/libreoffice-7.6.3.2/sax/source/fastparser/fastparser.cxx:
In function ‘rtl::OUString {anonymous}::lclGetErrorMessage(xmlParserCtxtPtr,
std::u16string_view, sal_Int32)’:
/builddir/build/BUILD/libreoffice-7.6.3.2/sax/source/fastparser/fastparser.cxx:582:44:
error: invalid conversion from ‘const xmlError*’ {aka ‘const _xmlError*’} to
‘xmlErrorPtr’ {aka ‘_xmlError*’} [-fpermissive]
  582 |     xmlErrorPtr error = xmlCtxtGetLastError( ctxt );
      |                         ~~~~~~~~~~~~~~~~~~~^~~~~~~~
      |                                            |
      |                                            const xmlError* {aka const
_xmlError*}
S=/builddir/build/BUILD/libreoffice-7.6.3.2 && I=$S/instdir && W=$S/workdir && 
readelf -d $I/program/libuno_purpenvhelpergcc3.so.3 | grep SONAME >
$W/LinkTarget/Library/libuno_purpenvhelpergcc3.so.3.exports.tmp; gcc-nm 
--dynamic --extern-only --defined-only --format=posix
$I/program/libuno_purpenvhelpergcc3.so.3 | cut -d' ' -f1-2 >>
$W/LinkTarget/Library/libuno_purpenvhelpergcc3.so.3.exports.tmp && if cmp -s
$W/LinkTarget/Library/libuno_purpenvhelpergcc3.so.3.exports.tmp 
$W/LinkTarget/Library/libuno_purpenvhelpergcc3.so.3.exports; then rm
$W/LinkTarget/Library/libuno_purpenvhelpergcc3.so.3.exports.tmp; else mv
$W/LinkTarget/Library/libuno_purpenvhelpergcc3.so.3.exports.tmp 
$W/LinkTarget/Library/libuno_purpenvhelpergcc3.so.3.exports && touch -r
$I/program/libuno_purpenvhelpergcc3.so.3 
$W/LinkTarget/Library/libuno_purpenvhelpergcc3.so.3.exports; fi
S=/builddir/build/BUILD/libreoffice-7.6.3.2 && I=$S/instdir && W=$S/workdir && 
readelf -d $I/program/libxmlreaderlo.so | grep SONAME >
$W/LinkTarget/Library/libxmlreaderlo.so.exports.tmp; gcc-nm  --dynamic
--extern-only --defined-only --format=posix $I/program/libxmlreaderlo.so | cut
-d' ' -f1-2 >> $W/LinkTarget/Library/libxmlreaderlo.so.exports.tmp && if cmp -s
$W/LinkTarget/Library/libxmlreaderlo.so.exports.tmp 
$W/LinkTarget/Library/libxmlreaderlo.so.exports; then rm
$W/LinkTarget/Library/libxmlreaderlo.so.exports.tmp; else mv
$W/LinkTarget/Library/libxmlreaderlo.so.exports.tmp 
$W/LinkTarget/Library/libxmlreaderlo.so.exports && touch -r
$I/program/libxmlreaderlo.so  $W/LinkTarget/Library/libxmlreaderlo.so.exports;
fi
/builddir/build/BUILD/libreoffice-7.6.3.2/helpcompiler/source/HelpLinker.cxx:
In function ‘bool compileExtensionHelp(const rtl::OUString&,
std::u16string_view, std::u16string_view, sal_Int32, const rtl::OUString*,
std::u16string_view, HelpProcessingErrorInfo&)’:
/builddir/build/BUILD/libreoffice-7.6.3.2/helpcompiler/source/HelpLinker.cxx:879:41:
error: invalid conversion from ‘void (*)(void*, xmlErrorPtr)’ {aka ‘void
(*)(void*, _xmlError*)’} to ‘xmlStructuredErrorFunc’ {aka ‘void (*)(void*,
const _xmlError*)’} [-fpermissive]
  879 |     xmlSetStructuredErrorFunc( nullptr, StructuredXMLErrorFunction );
      |                                         ^~~~~~~~~~~~~~~~~~~~~~~~~~
      |                                         |
      |                                         void (*)(void*, xmlErrorPtr)
{aka void (*)(void*, _xmlError*)}
In file included from /usr/include/libxml2/libxml/valid.h:15,
                 from /usr/include/libxml2/libxml/parser.h:17,
                 from
/builddir/build/BUILD/libreoffice-7.6.3.2/helpcompiler/inc/HelpCompiler.hxx:30,
                 from
/builddir/build/BUILD/libreoffice-7.6.3.2/helpcompiler/source/HelpLinker.cxx:20:
/usr/include/libxml2/libxml/xmlerror.h:898:57: note:   initializing argument 2
of ‘void xmlSetStructuredErrorFunc(void*, xmlStructuredErrorFunc)’
  898 |                                  xmlStructuredErrorFunc handler);
      |                                  ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to