artemp/tickets2issues — Issue #554: Problems compiling shape.input in mapnik2
Author: artemp
Created: 2011-10-11 15:24:41+00:00
State: open
Labels: Shapefile_Input_Driver

If i try to compile the mapnik2 i get some problems. I have installed boost-1.41 as noted.

{{{
g++ -o plugins/input/shape/shape.os -c -DHAVE_LIBXML2 -DHAVE_CAIRO -DHAVE_PYCAIRO -ansi -Wall -pthread -ftemplate-depth-200 -DLINUX -DBOOST_SPIRIT_THREADSAFE -DMAPNIK_THREADSAFE -DSVN_REVISION=1477 -O2 -finline-functions -Wno-inline -DNDEBUG -DSHAPE_MEMORY_MAPPED_FILE -fPIC -DNone -Iagg/include -Iinclude -I. -I/usr/include -I/usr/local/include -I/usr/include/freetype2 -I/usr/include/libxml2 -I/usr/include/cairomm-1.0 -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/libpng12 -I/usr/include/pycairo plugins/input/shape/shape.cpp
In file included from plugins/input/shape/shapefile.hpp:36,
from plugins/input/shape/shape_io.hpp:28,
from plugins/input/shape/shape.hpp:31,
from plugins/input/shape/shape_featureset.hpp:28,
from plugins/input/shape/shape.cpp:35:
/usr/include/boost/iostreams/device/mapped_file.hpp:43: error: redefinition of ‘class boost::iostreams::mapped_file_base’
/usr/include/boost/iostreams/device/mapped_file.hpp:43: error: previous definition of ‘class boost::iostreams::mapped_file_base’
/usr/include/boost/iostreams/device/mapped_file.hpp:78: error: redefinition of ‘struct boost::iostreams::detail::mapped_file_params_base’
/usr/include/boost/iostreams/device/mapped_file.hpp:78: error: previous definition of ‘struct boost::iostreams::detail::mapped_file_params_base’
/usr/include/boost/iostreams/device/mapped_file.hpp:105: error: redefinition of ‘struct boost::iostreams::basic_mapped_file_params’
/usr/include/boost/iostreams/device/mapped_file.hpp:107: error: previous definition of ‘struct boost::iostreams::basic_mapped_file_params’
/usr/include/boost/iostreams/device/mapped_file.hpp:145: error: redefinition of ‘class boost::iostreams::mapped_file_source’
/usr/include/boost/iostreams/device/mapped_file.hpp:145: error: previous definition of ‘class boost::iostreams::mapped_file_source’
/usr/include/boost/iostreams/device/mapped_file.hpp:219: error: redefinition of ‘class boost::iostreams::mapped_file’
/usr/include/boost/iostreams/device/mapped_file.hpp:219: error: previous definition of ‘class boost::iostreams::mapped_file’
/usr/include/boost/iostreams/device/mapped_file.hpp:322: error: redefinition of ‘class boost::iostreams::mapped_file_sink’
/usr/include/boost/iostreams/device/mapped_file.hpp:322: error: previous definition of ‘class boost::iostreams::mapped_file_sink’
/usr/include/boost/iostreams/device/mapped_file.hpp:382: error: redefinition of ‘boost::iostreams::mapped_file_source::mapped_file_source(const boost::iostreams::basic_mapped_file_params&)’
/usr/include/boost/iostreams/device/mapped_file.hpp:382: error: ‘boost::iostreams::mapped_file_source::mapped_file_source(const boost::iostreams::basic_mapped_file_params&)’ previously declared here
/usr/include/boost/iostreams/device/mapped_file.hpp:387: error: redefinition of ‘boost::iostreams::mapped_file_source::mapped_file_source(const Path&, size_t, intmax_t)’
/usr/include/boost/iostreams/device/mapped_file.hpp:387: error: ‘boost::iostreams::mapped_file_source::mapped_file_source(const Path&, size_t, intmax_t)’ previously declared here
/usr/include/boost/iostreams/device/mapped_file.hpp:391: error: redefinition of ‘void boost::iostreams::mapped_file_source::open(const boost::iostreams::basic_mapped_file_params&)’
/usr/include/boost/iostreams/device/mapped_file.hpp:391: error: ‘void boost::iostreams::mapped_file_source::open(const boost::iostreams::basic_mapped_file_params&)’ previously declared here
/usr/include/boost/iostreams/device/mapped_file.hpp:407: error: redefinition of ‘void boost::iostreams::mapped_file_source::open(const Path&, size_t, intmax_t)’
/usr/include/boost/iostreams/device/mapped_file.hpp:407: error: ‘void boost::iostreams::mapped_file_source::open(const Path&, size_t, intmax_t)’ previously declared here
/usr/include/boost/iostreams/device/mapped_file.hpp:418: error: redefinition of ‘boost::iostreams::mapped_file::mapped_file(const boost::iostreams::basic_mapped_file_params&)’
/usr/include/boost/iostreams/device/mapped_file.hpp:418: error: ‘boost::iostreams::mapped_file::mapped_file(const boost::iostreams::basic_mapped_file_params&)’ previously declared here
/usr/include/boost/iostreams/device/mapped_file.hpp:424: error: redefinition of ‘boost::iostreams::mapped_file::mapped_file(const Path&, boost::iostreams::mapped_file_base::mapmode, size_t, boost::iostreams::stream_offset)’
/usr/include/boost/iostreams/device/mapped_file.hpp:424: error: ‘boost::iostreams::mapped_file::mapped_file(const Path&, boost::iostreams::mapped_file_base::mapmode, size_t, boost::iostreams::stream_offset)’ previously declared here
/usr/include/boost/iostreams/device/mapped_file.hpp:430: error: redefinition of ‘boost::iostreams::mapped_file::mapped_file(const Path&, std::_Ios_Openmode, size_t, boost::iostreams::stream_offset)’
/usr/include/boost/iostreams/device/mapped_file.hpp:430: error: ‘boost::iostreams::mapped_file::mapped_file(const Path&, std::_Ios_Openmode, size_t, boost::iostreams::stream_offset)’ previously declared here
/usr/include/boost/iostreams/device/mapped_file.hpp:434: error: redefinition of ‘void boost::iostreams::mapped_file::open(const boost::iostreams::basic_mapped_file_params&)’
/usr/include/boost/iostreams/device/mapped_file.hpp:434: error: ‘void boost::iostreams::mapped_file::open(const boost::iostreams::basic_mapped_file_params&)’ previously declared here
/usr/include/boost/iostreams/device/mapped_file.hpp:440: error: redefinition of ‘void boost::iostreams::mapped_file::open(const Path&, boost::iostreams::mapped_file_base::mapmode, size_t, boost::iostreams::stream_offset)’
/usr/include/boost/iostreams/device/mapped_file.hpp:440: error: ‘void boost::iostreams::mapped_file::open(const Path&, boost::iostreams::mapped_file_base::mapmode, size_t, boost::iostreams::stream_offset)’ previously declared here
/usr/include/boost/iostreams/device/mapped_file.hpp:452: error: redefinition of ‘void boost::iostreams::mapped_file::open(const Path&, std::_Ios_Openmode, size_t, boost::iostreams::stream_offset)’
/usr/include/boost/iostreams/device/mapped_file.hpp:452: error: ‘void boost::iostreams::mapped_file::open(const Path&, std::_Ios_Openmode, size_t, boost::iostreams::stream_offset)’ previously declared here
/usr/include/boost/iostreams/device/mapped_file.hpp:461: error: redefinition of ‘char* boost::iostreams::mapped_file::data() const’
/usr/include/boost/iostreams/device/mapped_file.hpp:461: error: ‘char* boost::iostreams::mapped_file::data() const’ previously defined here
/usr/include/boost/iostreams/device/mapped_file.hpp:467: error: redefinition of ‘boost::iostreams::mapped_file_sink::mapped_file_sink(const boost::iostreams::basic_mapped_file_params&)’
/usr/include/boost/iostreams/device/mapped_file.hpp:467: error: ‘boost::iostreams::mapped_file_sink::mapped_file_sink(const boost::iostreams::basic_mapped_file_params&)’ previously declared here
/usr/include/boost/iostreams/device/mapped_file.hpp:473: error: redefinition of ‘boost::iostreams::mapped_file_sink::mapped_file_sink(const Path&, size_t, intmax_t, boost::iostreams::mapped_file_base::mapmode)’
/usr/include/boost/iostreams/device/mapped_file.hpp:473: error: ‘boost::iostreams::mapped_file_sink::mapped_file_sink(const Path&, size_t, intmax_t, boost::iostreams::mapped_file_base::mapmode)’ previously declared here
/usr/include/boost/iostreams/device/mapped_file.hpp:477: error: redefinition of ‘void boost::iostreams::mapped_file_sink::open(const boost::iostreams::basic_mapped_file_params&)’
/usr/include/boost/iostreams/device/mapped_file.hpp:477: error: ‘void boost::iostreams::mapped_file_sink::open(const boost::iostreams::basic_mapped_file_params&)’ previously declared here
/usr/include/boost/iostreams/device/mapped_file.hpp:494: error: redefinition of ‘void boost::iostreams::mapped_file_sink::open(const Path&, size_t, intmax_t, boost::iostreams::mapped_file_base::mapmode)’
/usr/include/boost/iostreams/device/mapped_file.hpp:494: error: ‘void boost::iostreams::mapped_file_sink::open(const Path&, size_t, intmax_t, boost::iostreams::mapped_file_base::mapmode)’ previously declared here
/usr/include/boost/iostreams/device/mapped_file.hpp:506: error: redefinition of ‘struct boost::iostreams::operations’
/usr/include/boost/iostreams/device/mapped_file.hpp:508: error: previous definition of ‘struct boost::iostreams::operations’
/usr/include/boost/iostreams/device/mapped_file.hpp:518: error: redefinition of ‘struct boost::iostreams::operations’
/usr/include/boost/iostreams/device/mapped_file.hpp:520: error: previous definition of ‘struct boost::iostreams::operations’
/usr/include/boost/iostreams/device/mapped_file.hpp:534: error: redefinition of ‘struct boost::iostreams::operations’
/usr/include/boost/iostreams/device/mapped_file.hpp:536: error: previous definition of ‘struct boost::iostreams::operations’
/usr/include/boost/iostreams/device/mapped_file.hpp: In function ‘boost::iostreams::mapped_file_base::mapmode boost::iostreams::operator|(boost::iostreams::mapped_file_base::mapmode, boost::iostreams::mapped_file_base::mapmode)’:
/usr/include/boost/iostreams/device/mapped_file.hpp:547: error: redefinition of ‘boost::iostreams::mapped_file_base::mapmode boost::iostreams::operator|(boost::iostreams::mapped_file_base::mapmode, boost::iostreams::mapped_file_base::mapmode)’
/usr/include/boost/iostreams/device/mapped_file.hpp:547: error: ‘boost::iostreams::mapped_file_base::mapmode boost::iostreams::operator|(boost::iostreams::mapped_file_base::mapmode, boost::iostreams::mapped_file_base::mapmode)’ previously defined here
/usr/include/boost/iostreams/device/mapped_file.hpp: In function ‘boost::iostreams::mapped_file_base::mapmode boost::iostreams::operator&(boost::iostreams::mapped_file_base::mapmode, boost::iostreams::mapped_file_base::mapmode)’:
/usr/include/boost/iostreams/device/mapped_file.hpp:554: error: redefinition of ‘boost::iostreams::mapped_file_base::mapmode boost::iostreams::operator&(boost::iostreams::mapped_file_base::mapmode, boost::iostreams::mapped_file_base::mapmode)’
/usr/include/boost/iostreams/device/mapped_file.hpp:554: error: ‘boost::iostreams::mapped_file_base::mapmode boost::iostreams::operator&(boost::iostreams::mapped_file_base::mapmode, boost::iostreams::mapped_file_base::mapmode)’ previously defined here
/usr/include/boost/iostreams/device/mapped_file.hpp: In function ‘boost::iostreams::mapped_file_base::mapmode boost::iostreams::operator^(boost::iostreams::mapped_file_base::mapmode, boost::iostreams::mapped_file_base::mapmode)’:
/usr/include/boost/iostreams/device/mapped_file.hpp:561: error: redefinition of ‘boost::iostreams::mapped_file_base::mapmode boost::iostreams::operator^(boost::iostreams::mapped_file_base::mapmode, boost::iostreams::mapped_file_base::mapmode)’
/usr/include/boost/iostreams/device/mapped_file.hpp:561: error: ‘boost::iostreams::mapped_file_base::mapmode boost::iostreams::operator^(boost::iostreams::mapped_file_base::mapmode, boost::iostreams::mapped_file_base::mapmode)’ previously defined here
/usr/include/boost/iostreams/device/mapped_file.hpp: In function ‘boost::iostreams::mapped_file_base::mapmode boost::iostreams::operator~(boost::iostreams::mapped_file_base::mapmode)’:
/usr/include/boost/iostreams/device/mapped_file.hpp:568: error: redefinition of ‘boost::iostreams::mapped_file_base::mapmode boost::iostreams::operator~(boost::iostreams::mapped_file_base::mapmode)’
/usr/include/boost/iostreams/device/mapped_file.hpp:568: error: ‘boost::iostreams::mapped_file_base::mapmode boost::iostreams::operator~(boost::iostreams::mapped_file_base::mapmode)’ previously defined here
/usr/include/boost/iostreams/device/mapped_file.hpp: In function ‘boost::iostreams::mapped_file_base::mapmode boost::iostreams::operator|=(boost::iostreams::mapped_file_base::mapmode&, boost::iostreams::mapped_file_base::mapmode)’:
/usr/include/boost/iostreams/device/mapped_file.hpp:574: error: redefinition of ‘boost::iostreams::mapped_file_base::mapmode boost::iostreams::operator|=(boost::iostreams::mapped_file_base::mapmode&, boost::iostreams::mapped_file_base::mapmode)’
/usr/include/boost/iostreams/device/mapped_file.hpp:574: error: ‘boost::iostreams::mapped_file_base::mapmode boost::iostreams::operator|=(boost::iostreams::mapped_file_base::mapmode&, boost::iostreams::mapped_file_base::mapmode)’ previously defined here
/usr/include/boost/iostreams/device/mapped_file.hpp: In function ‘boost::iostreams::mapped_file_base::mapmode boost::iostreams::operator&=(boost::iostreams::mapped_file_base::mapmode&, boost::iostreams::mapped_file_base::mapmode)’:
/usr/include/boost/iostreams/device/mapped_file.hpp:580: error: redefinition of ‘boost::iostreams::mapped_file_base::mapmode boost::iostreams::operator&=(boost::iostreams::mapped_file_base::mapmode&, boost::iostreams::mapped_file_base::mapmode)’
/usr/include/boost/iostreams/device/mapped_file.hpp:580: error: ‘boost::iostreams::mapped_file_base::mapmode boost::iostreams::operator&=(boost::iostreams::mapped_file_base::mapmode&, boost::iostreams::mapped_file_base::mapmode)’ previously defined here
/usr/include/boost/iostreams/device/mapped_file.hpp: In function ‘boost::iostreams::mapped_file_base::mapmode boost::iostreams::operator^=(boost::iostreams::mapped_file_base::mapmode&, boost::iostreams::mapped_file_base::mapmode)’:
/usr/include/boost/iostreams/device/mapped_file.hpp:586: error: redefinition of ‘boost::iostreams::mapped_file_base::mapmode boost::iostreams::operator^=(boost::iostreams::mapped_file_base::mapmode&, boost::iostreams::mapped_file_base::mapmode)’
/usr/include/boost/iostreams/device/mapped_file.hpp:586: error: ‘boost::iostreams::mapped_file_base::mapmode boost::iostreams::operator^=(boost::iostreams::mapped_file_base::mapmode&, boost::iostreams::mapped_file_base::mapmode)’ previously defined here
scons: *** [plugins/input/shape/shape.os] Error 1

}}}