mapnik-org/mapnik — Issue #828: broken compiles with suncc in boost python vector indexing suite
Author: artemp
Created: 2011-10-11 08:13:39+00:00
State: open
Labels: Core_Library

not a mapnik issue, a boost/suncc issue, but logging here until there is a known workaround:

{{{
sunCC -m64 -mt -library=stlport4 -L/usr/sfw/lib/amd64/ -L/usr/local/lib/ -o bindings/python/mapnik_layer.pic.o -c -pthreads -ansi -pthread -ftemplate-depth-100 -DSUNOS -DBOOST_SPIRIT_THREADSAFE -DMAPNIK_THREADSAFE -O3 -finline-functions -DNDEBUG -R/usr/local/lib -fPIC -Iagg/include -I. -Iinclude -I/opt/csw/include -I/usr/local/include -I/usr/local/include/freetype2 -I/usr/local/include/libxml2 -I/usr/local/boost/include -I/usr/include -I/usr/postgres/9.0-pgdg/include/64 -I/usr/include/python2.4 bindings/python/mapnik_layer.cpp
CC: Warning: Option -pthreads passed to ld, if ld is invoked, ignored otherwise
CC: Warning: Option -ansi passed to ld, if ld is invoked, ignored otherwise
CC: Warning: Option -pthread passed to ld, if ld is invoked, ignored otherwise
CC: Warning: Option -ftemplate-depth-100 passed to ld, if ld is invoked, ignored otherwise
CC: Warning: Option -finline-functions passed to ld, if ld is invoked, ignored otherwise
"include/mapnik/utils.hpp", line 106: Warning: Template parameter "CreatePolicy" may not be used in an elaborated type specifier .
"include/mapnik/datasource_cache.hpp", line 41: Where: While specializing "mapnik::singleton>".
"include/mapnik/datasource_cache.hpp", line 41: Where: Specialized in non-template code.
"include/mapnik/utils.hpp", line 106: Warning: A "friend" declaration must specify a class or function.
"include/mapnik/datasource_cache.hpp", line 41: Where: While specializing "mapnik::singleton>".
"include/mapnik/datasource_cache.hpp", line 41: Where: Specialized in non-template code.
"/usr/local/include/boost/python/suite/indexing/container_utils.hpp", line 30: Error: Could not find a match for boost::foreach_detail_::is_const_(std::pair, boost::python::stl_input_iterator>) needed in boost::python::container_utils::extend_container>(std::vector&, boost::python::api::object).
"/usr/local/include/boost/python/suite/indexing/vector_indexing_suite.hpp", line 235: Where: While instantiating "boost::python::container_utils::extend_container>(std::vector&, boost::python::api::object)".
"/usr/local/include/boost/python/suite/indexing/vector_indexing_suite.hpp", line 235: Where: Instantiated from non-template code.
"/usr/local/include/boost/python/suite/indexing/container_utils.hpp", line 30: Error: Could not find a match for boost::foreach_detail_::is_const_(std::pair, boost::python::stl_input_iterator>) needed in boost::python::container_utils::extend_container>(std::vector&, boost::python::api::object).
"/usr/local/include/boost/python/suite/indexing/vector_indexing_suite.hpp", line 235: Where: While instantiating "boost::python::container_utils::extend_container>(std::vector&, boost::python::api::object)".
"/usr/local/include/boost/python/suite/indexing/vector_indexing_suite.hpp", line 235: Where: Instantiated from non-template code.
"/usr/local/include/boost/python/suite/indexing/container_utils.hpp", line 30: Error: Could not find a match for boost::foreach_detail_::is_const_(std::pair, boost::python::stl_input_iterator>) needed in boost::python::container_utils::extend_container>(std::vector&, boost::python::api::object).
"/usr/local/include/boost/python/suite/indexing/vector_indexing_suite.hpp", line 235: Where: While instantiating "boost::python::container_utils::extend_container>(std::vector&, boost::python::api::object)".
"/usr/local/include/boost/python/suite/indexing/vector_indexing_suite.hpp", line 235: Where: Instantiated from non-template code.
"/usr/local/include/boost/python/suite/indexing/container_utils.hpp", line 30: Error: Could not find a match for boost::foreach_detail_::is_const_(std::pair, boost::python::stl_input_iterator>) needed in boost::python::container_utils::extend_container>(std::vector&, boost::python::api::object).
"/usr/local/include/boost/python/suite/indexing/vector_indexing_suite.hpp", line 235: Where: While instantiating "boost::python::container_utils::extend_container>(std::vector&, boost::python::api::object)".
"/usr/local/include/boost/python/suite/indexing/vector_indexing_suite.hpp", line 235: Where: Instantiated from non-template code.
"/usr/local/include/boost/python/suite/indexing/container_utils.hpp", line 30: Error: Could not find a match for boost::foreach_detail_::is_const_(std::pair, boost::python::stl_input_iterator>) needed in boost::python::container_utils::extend_container>(std::vector&, boost::python::api::object).
"/usr/local/include/boost/python/suite/indexing/vector_indexing_suite.hpp", line 235: Where: While instantiating "boost::python::container_utils::extend_container>(std::vector&, boost::python::api::object)".
"/usr/local/include/boost/python/suite/indexing/vector_indexing_suite.hpp", line 235: Where: Instantiated from non-template code.
5 Error(s) and 2 Warning(s) detected.
scons: *** [bindings/python/mapnik_layer.pic.o] Error 2
scons: building terminated because of errors.
}}}