Bug#1073328: scram: FTBFS: xml.cc:31:42: error: invalid conversion from ‘const xmlError*’ {aka ‘const _xmlError*’} to ‘xmlErrorPtr’ {aka ‘_xmlError*’} [-fpermissive]
Lucas Nussbaum
lucas at debian.org
Sun Jun 16 13:55:27 BST 2024
Source: scram
Version: 0.16.2-3
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>>/obj-x86_64-linux-gnu/src && /usr/bin/c++ -DBOOST_ATOMIC_DYN_LINK -DBOOST_ATOMIC_NO_LIB -DBOOST_FILESYSTEM_DYN_LINK -DBOOST_FILESYSTEM_NO_LIB -DBOOST_PROGRAM_OPTIONS_DYN_LINK -DBOOST_PROGRAM_OPTIONS_NO_LIB -DBOOST_RANDOM_DYN_LINK -DBOOST_RANDOM_NO_LIB -DBOOST_SYSTEM_DYN_LINK -DBOOST_SYSTEM_NO_LIB -DPROJECT_SOURCE_DIR=\"/<<PKGBUILDDIR>>\" -Dscram_EXPORTS -I/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/src -I/<<PKGBUILDDIR>>/src -I/<<PKGBUILDDIR>> -isystem /usr/include/libxml2 -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wdate-time -D_FORTIFY_SOURCE=2 -fno-new-ttp-matching -O3 -DNDEBUG -std=c++17 -fPIC -MD -MT src/CMakeFiles/scram.dir/expression/conditional.cc.o -MF CMakeFiles/scram.dir/expression/conditional.cc.o.d -o CMakeFiles/scram.dir/expression/conditional.cc.o -c /<<PKGBUILDDIR>>/src/expression/conditional.cc
> /<<PKGBUILDDIR>>/src/xml.cc: In constructor ‘scram::xml::Document::Document(const std::string&, scram::xml::Validator*)’:
> /<<PKGBUILDDIR>>/src/xml.cc:31:42: error: invalid conversion from ‘const xmlError*’ {aka ‘const _xmlError*’} to ‘xmlErrorPtr’ {aka ‘_xmlError*’} [-fpermissive]
> 31 | xmlErrorPtr xml_error = xmlGetLastError();
> | ~~~~~~~~~~~~~~~^~
> | |
> | const xmlError* {aka const _xmlError*}
> In file included from /<<PKGBUILDDIR>>/src/xml.cc:21:
> /<<PKGBUILDDIR>>/src/xml.h: In instantiation of ‘T scram::xml::detail::GetError(xmlErrorPtr) [with T = scram::xml::ValidityError; xmlErrorPtr = _xmlError*]’:
> /<<PKGBUILDDIR>>/src/xml.h:460:7: required from here
> /<<PKGBUILDDIR>>/src/xml.h:163:32: error: invalid conversion from ‘const xmlError*’ {aka ‘const _xmlError*’} to ‘xmlErrorPtr’ {aka ‘_xmlError*’} [-fpermissive]
> 163 | xml_error = xmlGetLastError();
> | ~~~~~~~~~~~~~~~^~
> | |
> | const xmlError* {aka const _xmlError*}
> /<<PKGBUILDDIR>>/src/xml.h: In instantiation of ‘T scram::xml::detail::GetError(xmlErrorPtr) [with T = scram::xml::ParseError; xmlErrorPtr = _xmlError*]’:
> /<<PKGBUILDDIR>>/src/xml.cc:38:5: required from here
> /<<PKGBUILDDIR>>/src/xml.h:163:32: error: invalid conversion from ‘const xmlError*’ {aka ‘const _xmlError*’} to ‘xmlErrorPtr’ {aka ‘_xmlError*’} [-fpermissive]
> 163 | xml_error = xmlGetLastError();
> | ~~~~~~~~~~~~~~~^~
> | |
> | const xmlError* {aka const _xmlError*}
> /<<PKGBUILDDIR>>/src/xml.h: In instantiation of ‘T scram::xml::detail::GetError(xmlErrorPtr) [with T = scram::xml::XIncludeError; xmlErrorPtr = _xmlError*]’:
> /<<PKGBUILDDIR>>/src/xml.cc:42:5: required from here
> /<<PKGBUILDDIR>>/src/xml.h:163:32: error: invalid conversion from ‘const xmlError*’ {aka ‘const _xmlError*’} to ‘xmlErrorPtr’ {aka ‘_xmlError*’} [-fpermissive]
> 163 | xml_error = xmlGetLastError();
> | ~~~~~~~~~~~~~~~^~
> | |
> | const xmlError* {aka const _xmlError*}
> /<<PKGBUILDDIR>>/src/xml.h: In instantiation of ‘T scram::xml::detail::GetError(xmlErrorPtr) [with T = scram::LogicError; xmlErrorPtr = _xmlError*]’:
> /<<PKGBUILDDIR>>/src/xml.cc:55:5: required from here
> /<<PKGBUILDDIR>>/src/xml.h:163:32: error: invalid conversion from ‘const xmlError*’ {aka ‘const _xmlError*’} to ‘xmlErrorPtr’ {aka ‘_xmlError*’} [-fpermissive]
> 163 | xml_error = xmlGetLastError();
> | ~~~~~~~~~~~~~~~^~
> | |
> | const xmlError* {aka const _xmlError*}
> make[3]: *** [src/CMakeFiles/scram.dir/build.make:135: src/CMakeFiles/scram.dir/xml.cc.o] Error 1
The full build log is available from:
http://qa-logs.debian.net/2024/06/15/scram_0.16.2-3_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 debian-science-maintainers
mailing list