Just in case others are only skimming titles, if you are going to
rebuild Mapnik against last week's boost 1.41 release make sure to
patch a boost header so that the Mapnik shapefile plugin will properly
compile.
--- boost/iostreams/device/mapped_file.hpp 2009-11-22
11:32:31.000000000 -0800
+++ boost/iostreams/device/mapped_file.hpp 2009-11-22
11:24:25.000000000 -0800
@@ -4,6 +4,9 @@
// Distributed under the Boost Software License, Version 1.0. (See
accompanying
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt.)
+#ifndef BOOST_IOSTREAMS_MAPPED_FILE_HPP_INCLUDED
+#define BOOST_IOSTREAMS_MAPPED_FILE_HPP_INCLUDED
+
#if defined(_MSC_VER) && (_MSC_VER >= 1020)
# pragma once
#endif
@@ -591,3 +594,5 @@
} } // End namespaces iostreams, boost.
#include <boost/config/abi_suffix.hpp> // pops abi_suffix.hpp pragmas
+
+#endif // #ifndef BOOST_IOSTREAMS_MAPPED_FILE_HPP_INCLUDED
Otherwise you'll get an error like:
g++ -o plugins/input/shape/shape.os -c -DHAVE_LIBXML2 -DHAVE_PYCAIRO -
ansi -Wall -pthread -ftemplate-depth-100 -DLINUX -
DBOOST_SPIRIT_THREADSAFE -DMAPNIK_THREADSAFE -DSVN_REVISION=1418 -O0 -
fno-inline -g -DDEBUG -DMAPNIK_DEBUG -DSHAPE_MEMORY_MAPPED_FILE -fPIC -
Iagg/include -Iinclude -I. -I/usr/include -I/usr/local/include -I/usr/
include/freetype2 -I/usr/include/libxml2 -I/usr/include/pycairo -I/usr/
include/cairo -I/usr/include/libpng12 plugins/input/shape/shape.cpp
/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â
Dane
_______________________________________________
Mapnik-users mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/mapnik-users