The issue with mapped_file.hpp is a known bug in 1.41: http://www.mail-archive.com/[email protected]/msg01909.html
Eric ________________________________ From: friism <[email protected]> To: [email protected] Sent: Sun, January 17, 2010 6:47:30 AM Subject: [Mapnik-users] Problem compiling Mapnik I'm trying to compile Mapnik from source by following this guide: http://trac.mapnik.org/wiki/UbuntuInstallation. I've tried both trunk and 0.7. I have boost 1.41 built from source. I get the following error, any clues? g++ -o plugins/input/shape/shape.os -c -DHAVE_LIBXML2 -DHAVE_CAIRO -DHAVE_PYCAIR O -ansi -Wall -pthread -ftemplate-depth-100 -DLINUX -DBOOST_SPIRIT_THREADSAFE -D MAPNIK_THREADSAFE -DSVN_REVISION=1575 -O3 -finline-functions -Wno-inline -DNDEBU G -DSHAPE_MEMORY_MAPPED_FILE -fPIC -D_REENTRANT -Iagg/include -Iinclude -I. -I/u sr/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/sigc++-2.0 -I/usr /lib/sigc++-2.0/include -I/usr/include/pixman-1 -I/usr/include/directfb -I/usr/i nclude/libpng12 -I/usr/include/gdal -I/usr/include/postgresql -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/local/include/boost/iostreams/device/mapped_file.hpp:43: error: redefinition of ‘class boost::iostreams::mapped_file_base’ /usr/local/include/boost/iostreams/device/mapped_file.hpp:43: error: previous definition of ‘class boost::iostreams::mapped_file_base’ /usr/local/include/boost/iostreams/device/mapped_file.hpp:78: error: redefinition of ‘struct boost::iostreams::detail::mapped_file_params_base’ /usr/local/include/boost/iostreams/device/mapped_file.hpp:78: error: previous definition of ‘struct boost::iostreams::detail::mapped_file_params_base’ /usr/local/include/boost/iostreams/device/mapped_file.hpp:105: error: redefinition of ‘struct boost::iostreams::basic_mapped_file_params<Path>’ /usr/local/include/boost/iostreams/device/mapped_file.hpp:107: error: previous definition of ‘struct boost::iostreams::basic_mapped_file_params<Path>’ /usr/local/include/boost/iostreams/device/mapped_file.hpp:145: error: redefinition of ‘class boost::iostreams::mapped_file_source’ /usr/local/include/boost/iostreams/device/mapped_file.hpp:145: error: previous definition of ‘class boost::iostreams::mapped_file_source’ /usr/local/include/boost/iostreams/device/mapped_file.hpp:219: error: redefinition of ‘class boost::iostreams::mapped_file’ /usr/local/include/boost/iostreams/device/mapped_file.hpp:219: error: previous definition of ‘class boost::iostreams::mapped_file’ /usr/local/include/boost/iostreams/device/mapped_file.hpp:322: error: redefinition of ‘class boost::iostreams::mapped_file_sink’ /usr/local/include/boost/iostreams/device/mapped_file.hpp:322: error: previous definition of ‘class boost::iostreams::mapped_file_sink’ /usr/local/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<Path>&)’ . . . . /usr/local/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/local/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/local/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 scons: building terminated because of errors. [fri...@ubuntu-desktop:code/mapnik-07]$ (01-17 05:54) -- View this message in context: http://old.nabble.com/Problem-compiling-Mapnik-tp27198012p27198012.html Sent from the Mapnik - Users mailing list archive at Nabble.com. _______________________________________________ Mapnik-users mailing list [email protected] https://lists.berlios.de/mailman/listinfo/mapnik-users
_______________________________________________ Mapnik-users mailing list [email protected] https://lists.berlios.de/mailman/listinfo/mapnik-users

