Bug#1073332: mapnik: FTBFS: src/libxml2_loader.cpp:82:51: 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:39 BST 2024


Source: mapnik
Version: 3.1.0+ds-7
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):
> c++ -o src/json/mapnik_json_feature_collection_grammar.o -c -std=c++14 -DU_USING_ICU_NAMESPACE=0 -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wdate-time -D_FORTIFY_SOURCE=2 -g0 -fvisibility=hidden -fvisibility-inlines-hidden -Wall -pthread -ftemplate-depth-300 -Wsign-compare -Wshadow -O2 -fPIC -DMAPNIK_MEMORY_MAPPED_FILE -DMAPNIK_HAS_DLCFN -DBIGINT -DBOOST_REGEX_HAS_ICU -DHAVE_JPEG -DMAPNIK_USE_PROJ -DPROJ_VERSION=90401 -DHAVE_PNG -DHAVE_WEBP -DHAVE_TIFF -DLINUX -DMAPNIK_THREADSAFE -DBOOST_SPIRIT_NO_PREDEFINED_TERMINALS=1 -DBOOST_PHOENIX_NO_PREDEFINED_TERMINALS=1 -DBOOST_PHOENIX_STL_TUPLE_H_ -DBOOST_SPIRIT_USE_PHOENIX_V3=1 -DNDEBUG -Ideps -Ideps/mapbox/variant/include -Ideps/agg/include -Iinclude -I/usr/include -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/libxml2 -I/usr/include/gdal -I/usr/include/postgresql src/json/mapnik_json_feature_collection_grammar.cpp
> In file included from include/mapnik/renderer_common.hpp:27,
>                  from include/mapnik/grid/grid_renderer.hpp:37:
> include/mapnik/font_engine_freetype.hpp:132:35: warning: type attributes ignored after type is already defined [-Wattributes]
>   132 | extern template class MAPNIK_DECL singleton<freetype_engine, CreateUsingNew>;
>       |                                   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> src/libxml2_loader.cpp: In member function ‘void mapnik::libxml2_loader::load(const std::string&, mapnik::xml_node&)’:
> src/libxml2_loader.cpp:82:51: error: invalid conversion from ‘const xmlError*’ {aka ‘const _xmlError*’} to ‘xmlError*’ {aka ‘_xmlError*’} [-fpermissive]
>    82 |             xmlError * error = xmlCtxtGetLastError(ctx_);
>       |                                ~~~~~~~~~~~~~~~~~~~^~~~~~
>       |                                                   |
>       |                                                   const xmlError* {aka const _xmlError*}
> src/libxml2_loader.cpp: In member function ‘void mapnik::libxml2_loader::load(xmlDocPtr, mapnik::xml_node&)’:
> src/libxml2_loader.cpp:121:51: error: invalid conversion from ‘const xmlError*’ {aka ‘const _xmlError*’} to ‘xmlError*’ {aka ‘_xmlError*’} [-fpermissive]
>   121 |             xmlError * error = xmlCtxtGetLastError( ctx_ );
>       |                                ~~~~~~~~~~~~~~~~~~~^~~~~~~~
>       |                                                   |
>       |                                                   const xmlError* {aka const _xmlError*}
> scons: *** [src/libxml2_loader.os] Error 1
> In file included from include/mapnik/symbolizer_base.hpp:32,
>                  from include/mapnik/rule.hpp:28,
>                  from include/mapnik/grid/grid_renderer.hpp:31,
>                  from src/grid/process_text_symbolizer.cpp:27:
> include/mapnik/raster_colorizer.hpp:82:26: warning: declaration of ‘value’ shadows a global declaration [-Wshadow]
>    82 |     colorizer_stop(float value = 0,
>       |                    ~~~~~~^~~~~~~~~
> In file included from include/mapnik/feature.hpp:29,
>                  from src/grid/process_text_symbolizer.cpp:26:
> include/mapnik/value.hpp:113:7: note: shadowed declaration is here
>   113 | using value = value_adl_barrier::value;
>       |       ^~~~~
> In file included from include/mapnik/renderer_common.hpp:27,
>                  from include/mapnik/grid/grid_renderer.hpp:37:
> include/mapnik/font_engine_freetype.hpp:132:35: warning: type attributes ignored after type is already defined [-Wattributes]
>   132 | extern template class MAPNIK_DECL singleton<freetype_engine, CreateUsingNew>;
>       |                                   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> In file included from /usr/include/boost/typeof/detail/requires_cxx11.hpp:9,
>                  from /usr/include/boost/typeof/typeof.hpp:16,
>                  from /usr/include/boost/fusion/adapted/struct/detail/adapt_base.hpp:41,
>                  from /usr/include/boost/fusion/adapted/struct/adapt_struct.hpp:23,
>                  from /usr/include/boost/phoenix/support/vector.hpp:15,
>                  from /usr/include/boost/phoenix/core/environment.hpp:14,
>                  from /usr/include/boost/phoenix/core/actor.hpp:19,
>                  from /usr/include/boost/spirit/home/support/make_component.hpp:17,
>                  from /usr/include/boost/spirit/home/support/meta_compiler.hpp:17,
>                  from /usr/include/boost/spirit/home/qi/domain.hpp:15,
>                  from /usr/include/boost/spirit/home/qi/operator/sequence_base.hpp:15,
>                  from /usr/include/boost/spirit/home/qi/operator/expect.hpp:15,
>                  from /usr/include/boost/spirit/home/qi/nonterminal/error_handler.hpp:14,
>                  from include/mapnik/json/error_handler.hpp:30,
>                  from include/mapnik/json/feature_collection_grammar_impl.hpp:25,
>                  from src/json/mapnik_json_feature_collection_grammar.cpp:24:
> /usr/include/boost/spirit/include/phoenix.hpp:12:1: note: ‘#pragma message: This header is deprecated. Use <boost/phoenix.hpp> instead.’
>    12 | BOOST_HEADER_DEPRECATED("<boost/phoenix.hpp>")
>       | ^~~~~~~~~~~~~~~~~~~~~~~
> /usr/include/boost/spirit/include/phoenix_function.hpp:12:1: note: ‘#pragma message: This header is deprecated. Use <boost/phoenix/function.hpp> instead.’
>    12 | BOOST_HEADER_DEPRECATED("<boost/phoenix/function.hpp>")
>       | ^~~~~~~~~~~~~~~~~~~~~~~
> scons: building terminated because of errors.
> make[1]: *** [debian/rules:70: debian/stamps/build-python] Error 2


The full build log is available from:
http://qa-logs.debian.net/2024/06/15/mapnik_3.1.0+ds-7_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 Pkg-grass-devel mailing list