[Debichem-devel] Bug#1073327: openbabel: FTBFS: xml.cpp:245:39: error: invalid conversion from ‘const xmlError*’ {aka ‘const _xmlError*’} to ‘xmlError*’ {aka ‘_xmlError*’} [-fpermissive]
Lucas Nussbaum
lucas at debian.org
Sun Jun 16 13:48:58 BST 2024
Source: openbabel
Version: 3.1.1+dfsg-9
Severity: serious
Justification: FTBFS
Tags: trixie sid ftbfs
User: lucas at debian.org
Usertags: ftbfs-20240615 ftbfs-trixie
Hi,
During a rebuild of all packages in sid, your package failed to build
on amd64.
Relevant part (hopefully):
> cd /<<PKGBUILDDIR>>/builddir/src/formats && /usr/bin/c++ -DBUILD_LINK_AS_DLL -DHAVE_EIGEN -DHAVE_EIGEN3 -DHAVE_LIBZ -DHAVE_RADPIJSON -DHAVE_SHARED_POINTER -DHAVE_WXWIDGETS -DUSING_DYNAMIC_LIBS -DWXUSINGDLL -D_FILE_OFFSET_BITS=64 -D__WXGTK__ -Dcmlreactformat_EXPORTS -I/<<PKGBUILDDIR>>/builddir/include -I/<<PKGBUILDDIR>>/data -I/<<PKGBUILDDIR>>/include -I/usr/include/eigen3 -I/usr/include/cairo -I/usr/include/libxml2 -isystem /usr/lib/x86_64-linux-gnu/wx/include/gtk3-unicode-3.2 -isystem /usr/include/wx-3.2 -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -std=gnu++98 -Wdate-time -D_FORTIFY_SOURCE=2 -Wdate-time -D_FORTIFY_SOURCE=2 -pthread -fopenmp -std=gnu++11 -fPIC -MD -MT src/formats/CMakeFiles/cmlreactformat.dir/xml/cmlreactformat.cpp.o -MF CMakeFiles/cmlreactformat.dir/xml/cmlreactformat.cpp.o.d -o CMakeFiles/cmlreactformat.dir/xml/cmlreactformat.cpp.o -c /<<PKGBUILDDIR>>/src/formats/xml/cmlreactformat.cpp
> In file included from /<<PKGBUILDDIR>>/include/openbabel/format.h:22,
> from /<<PKGBUILDDIR>>/include/openbabel/obconversion.h:37,
> from /<<PKGBUILDDIR>>/include/openbabel/xml.h:21,
> from /<<PKGBUILDDIR>>/src/formats/xml/xml.cpp:15:
> /<<PKGBUILDDIR>>/include/openbabel/plugin.h:41:42: warning: ‘template<class _Arg1, class _Arg2, class _Result> struct std::binary_function’ is deprecated [-Wdeprecated-declarations]
> 41 | struct OBERROR CharPtrLess : public std::binary_function<const char*,const char*, bool>
> | ^~~~~~~~~~~~~~~
> In file included from /usr/include/c++/13/string:49,
> from /usr/include/c++/13/bits/locale_classes.h:40,
> from /usr/include/c++/13/bits/ios_base.h:41,
> from /usr/include/c++/13/ios:44,
> from /usr/include/c++/13/ostream:40,
> from /usr/include/c++/13/iostream:41,
> from /<<PKGBUILDDIR>>/include/openbabel/obconversion.h:24:
> /usr/include/c++/13/bits/stl_function.h:131:12: note: declared here
> 131 | struct binary_function
> | ^~~~~~~~~~~~~~~
> /<<PKGBUILDDIR>>/src/formats/xml/xml.cpp: In member function ‘bool OpenBabel::XMLConversion::ReadXML(OpenBabel::XMLBaseFormat*, OpenBabel::OBBase*)’:
> /<<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*}
> [ 75%] Linking CXX shared module ../../lib/x86_64-linux-gnu/chemdrawcdx.so
> cd /<<PKGBUILDDIR>>/builddir/src/formats && /usr/bin/cmake -E cmake_link_script CMakeFiles/chemdrawcdx.dir/link.txt --verbose=1
> /usr/bin/c++ -fPIC -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -std=gnu++98 -Wdate-time -D_FORTIFY_SOURCE=2 -Wdate-time -D_FORTIFY_SOURCE=2 -pthread -fopenmp -Wl,--enable-new-dtags -Wl,--enable-new-dtags -Wl,--fatal-warnings -Wl,--no-undefined -lc -Wl,-z,relro -shared -o ../../lib/x86_64-linux-gnu/chemdrawcdx.so CMakeFiles/chemdrawcdx.dir/chemdrawcdx.cpp.o -lmaeparser -lcoordgen -lm -ldl -lz -lcairo -linchi -lm ../../lib/x86_64-linux-gnu/libopenbabel.so.7.0.0
> make[4]: *** [src/formats/CMakeFiles/cdxmlformat.dir/build.make:93: src/formats/CMakeFiles/cdxmlformat.dir/xml/xml.cpp.o] Error 1
The full build log is available from:
http://qa-logs.debian.net/2024/06/15/openbabel_3.1.1+dfsg-9_unstable.log
All bugs filed during this archive rebuild are listed at:
https://bugs.debian.org/cgi-bin/pkgreport.cgi?tag=ftbfs-20240615;users=lucas@debian.org
or:
https://udd.debian.org/bugs/?release=na&merged=ign&fnewerval=7&flastmodval=7&fusertag=only&fusertagtag=ftbfs-20240615&fusertaguser=lucas@debian.org&allbugs=1&cseverity=1&ctags=1&caffected=1#results
A list of current common problems and possible solutions is available at
http://wiki.debian.org/qa.debian.org/FTBFS . You're welcome to contribute!
If you reassign this bug to another package, please mark it as 'affects'-ing
this package. See https://www.debian.org/Bugs/server-control#affects
If you fail to reproduce this, please provide a build log and diff it with mine
so that we can identify if something relevant changed in the meantime.
More information about the Debichem-devel
mailing list