Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

compile fails with trunk #1082

Closed
mediafactory opened this issue Feb 14, 2012 · 13 comments
Closed

compile fails with trunk #1082

mediafactory opened this issue Feb 14, 2012 · 13 comments

Comments

@mediafactory
Copy link

g++ -o plugins/input/ogr/ogr_index_featureset.os -c -DHAVE_JPEG -DBOOST_REGEX_HAS_ICU -ansi -Wall -pthread -ftemplate-depth-300 -DLINUX -DBOOST_SPIRIT_THREADSAFE -DMAPNIK_THREADSAFE -O3 -finline-functions -Wno-inline -Wno-parentheses -Wno-char-subscripts -DNDEBUG -fPIC -Ideps/agg/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 plugins/input/ogr/ogr_index_featureset.cpp
In file included from /usr/include/boost/interprocess/detail/utilities.hpp:29:0,
from /usr/include/boost/interprocess/mapped_region.hpp:20,
from include/mapnik/mapped_memory_cache.hpp:33,
from plugins/input/ogr/ogr_index_featureset.cpp:33:
/usr/include/boost/interprocess/detail/transform_iterator.hpp:57:15: error: reference ‘m_value’ cannot be declared ‘mutable’ [-fpermissive]
scons: *** [plugins/input/ogr/ogr_index_featureset.os] Error 1
scons: building terminated because of errors.
make: *** [mapnik] Error 2

@springmeyer
Copy link
Member

This should have been fixed in e9bb566. What mapnik version are you using? Are you able to pull from master?

@mediafactory
Copy link
Author

the error happens on master :-(

@springmeyer
Copy link
Member

Can you paste here the output of:

g++ -version

and

cat /usr/include/boost/version.hpp

@mediafactory
Copy link
Author

Using built-in specs.
COLLECT_GCC=g++
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/4.6.1/lto-wrapper
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Ubuntu/Linaro 4.6.1-9ubuntu3' --with-bugurl=file:///usr/share/doc/gcc-4.6/README.Bugs --enable-languages=c,c++,fortran,objc,obj-c++,go --prefix=/usr --program-suffix=-4.6 --enable-shared --enable-linker-build-id --with-system-zlib --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.6 --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --enable-plugin --enable-objc-gc --disable-werror --with-arch-32=i686 --with-tune=generic --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu
Thread model: posix
gcc version 4.6.1 (Ubuntu/Linaro 4.6.1-9ubuntu3)

// Boost version.hpp configuration header file ------------------------------//

// (C) Copyright John maddock 1999. 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)

// See http://www.boost.org/libs/config for documentation

#ifndef BOOST_VERSION_HPP
#define BOOST_VERSION_HPP

//
// Caution, this is the only boost header that is guarenteed
// to change with every boost release, including this header
// will cause a recompile every time a new boost version is
// released.
//
// BOOST_VERSION % 100 is the patch level
// BOOST_VERSION / 100 % 1000 is the minor version
// BOOST_VERSION / 100000 is the major version

#define BOOST_VERSION 104200

//
// BOOST_LIB_VERSION must be defined to be the same as BOOST_VERSION
// but as a string in the form "x_y[_z]" where x is the major version
// number, y is the minor version number, and z is the patch level if not 0.
// This is used by <config/auto_link.hpp> to select which library version to link to.

#define BOOST_LIB_VERSION "1_42"

#endif

@springmeyer
Copy link
Member

okay, git pull and try again?

@mediafactory
Copy link
Author

no, now it stops:

g++ -o utils/shapeindex/shapeindex.o -c -DHAVE_JPEG -DBOOST_REGEX_HAS_ICU -ansi -Wall -pthread -ftemplate-depth-300 -DLINUX -DBOOST_SPIRIT_THREADSAFE -DMAPNIK_THREADSAFE -O3 -finline-functions -Wno-inline -Wno-parentheses -Wno-char-subscripts -DNDEBUG -Iplugins/input/shape -Ideps/agg/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 utils/shapeindex/shapeindex.cpp
In file included from /usr/include/boost/interprocess/detail/utilities.hpp:29:0,
from /usr/include/boost/interprocess/mapped_region.hpp:20,
from include/mapnik/mapped_memory_cache.hpp:33,
from plugins/input/shape/shapefile.hpp:33,
from utils/shapeindex/shapeindex.cpp:34:
/usr/include/boost/interprocess/detail/transform_iterator.hpp:57:15: error: reference ‘m_value’ cannot be declared ‘mutable’ [-fpermissive]
scons: *** [utils/shapeindex/shapeindex.o] Error 1
scons: building terminated because of errors.
make: *** [mapnik] Error 2

@mediafactory
Copy link
Author

uuhh, same error, wait a second

@mediafactory
Copy link
Author

no, different (looked equal to me at first)...

@springmeyer
Copy link
Member

that is a different spot, git pull and try again?

@mediafactory
Copy link
Author

hmm, git says, I am already up-to-date - is guthub delayed?

@springmeyer
Copy link
Member

try again.

@mediafactory
Copy link
Author

works, thx

@springmeyer
Copy link
Member

note: also just backported (git cherry-pick'd) these to the 2.0.x branch.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants