Control: fixed -1 mapnik/4.0.0~rc1+ds-1~exp1 On 6/16/24 2:48 PM, Lucas Nussbaum wrote:
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
Mapnik 4.0.0 in experimental doesn't suffer from this issue. We might be able to cherry-pick the relevant change for the newer libxml2 to 3.1.0 to fix this in unstable.
Kind Regards, Bas -- GPG Key ID: 4096R/6750F10AE88D4AF1 Fingerprint: 8182 DE41 7056 408D 6146 50D1 6750 F10A E88D 4AF1