[Debichem-devel] Bug#1073327: Bug#1073327: openbabel: FTBFS: xml.cpp:245:39: error: invalid conversion from ‘const xmlError*’ {aka ‘const _xmlError*’} to ‘xmlError*’ {aka ‘_xmlError*’} [-fpermissive]

Andrius Merkys merkys at debian.org
Mon Jun 17 14:46:20 BST 2024


Hello,

On 2024-06-16 15:48, Lucas Nussbaum wrote:
> /<<PKGBUILDDIR>>/src/formats/xml/xml.cpp:245:39: error:
> invalid conversion from ‘const xmlError*’ {aka ‘const _xmlError*’} to
> ‘xmlError*’ {aka ‘_xmlError*’} [-fpermissive]
>    245 |       xmlError* perr = xmlGetLastError();
>        |                        ~~~~~~~~~~~~~~~^~
>        |                                       |
>        |                                       const xmlError* {aka const _xmlError*}

This is caused by libxml2 update to version 2.12.7 in unstable. It could 
be fixed by the patch suggested above and removal of 
'xmlResetError(perr);' line slightly below in the same source file. 
However, openbabel FTBFS both in unstable and testing due to some other 
bug which is not yet reported:

99% tests passed, 2 tests failed out of 229

Total Test time (real) = 317.34 sec

The following tests FAILED:
	149 - test_tautomer_22 (Subprocess aborted)
	154 - test_tautomer_27 (Subprocess aborted)

I have not yet checked whether the solution I described above does not 
leave unfreed memory.

Andrius



More information about the Debichem-devel mailing list