mapnik-org/mapnik — Issue #842: Mapnik claims to require boost 1.41, but needs a newer one
Author: artemp
Created: 2011-10-11 08:14:07+00:00
State: open
Labels: Core_Library

Compiling with 1.42 resulted in this error:
{{{
clang++ -o bindings/python/mapnik_python.os -c -DHAVE_JPEG -DBOOST_REGEX_HAS_ICU -ansi -Wall -pthread -ftemplate-depth-200 -DLINUX -DBOOST_SPIRIT_THREADSAFE -DMAPNIK_THREADSAFE -O3 -finline-functions -Wno-inline -DNDEBUG -DHAVE_CAIRO -DHAVE_PYCAIRO -pthread -fPIC -Iagg/include -I. -Iinclude -I/usr/local/include -I/usr/include -I/usr/include/freetype2 -I/usr/include/libxml2 -I/usr/include/gdal -I/usr/include/postgresql -I/usr/include/python2.6 -I/usr/include/cairomm-1.0 -I/usr/lib/cairomm-1.0/include -I/usr/include/cairo -I/usr/include/sigc++-2.0 -I/usr/lib/sigc++-2.0/include -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/libpng12 -I/usr/include/pycairo bindings/python/mapnik_python.cpp
In file included from bindings/python/mapnik_python.cpp:72:
In file included from include/mapnik/agg_renderer.hpp:30:
In file included from include/mapnik/feature_style_processor.hpp:33:
In file included from include/mapnik/attribute_collector.hpp:31:
In file included from include/mapnik/path_expression_grammar.hpp:37:
In file included from /usr/include/boost/spirit/include/qi.hpp:16:
In file included from /usr/include/boost/spirit/home/qi.hpp:20:
In file included from /usr/include/boost/spirit/home/qi/nonterminal.hpp:17:
/usr/include/boost/spirit/home/qi/nonterminal/debug_handler.hpp:112:34: error: invalid use of incomplete type 'boost::spirit::qi::simple_trace'
r.f = debug_handler(r.f, simple_trace(), r.name());
^~~~~~~~~~~~~~
/usr/include/boost/spirit/home/qi/nonterminal/debug_handler.hpp:98:12: note: forward declaration of 'boost::spirit::qi::simple_trace'
struct simple_trace;
^
1 error generated.
}}}

Upgrading to 1.47 resolved this error.