[Taginfo-dev] Error compliling tagstats
Jochen Topf
jochen at remote.org
Tue Dec 13 13:59:31 GMT 2011
Hi!
I don't fully understand whats going on here, but it looks like it has
something to do with BOOST_HAS_RVALUE_REFS not being defined. Maybe
https://svn.boost.org/trac/boost/ticket/4112 helps. Look especially at
the patch in https://svn.boost.org/trac/boost/changeset/61453
for suffix.hpp.
Jochen
On Tue, Dec 13, 2011 at 12:10:04PM +0000, Donal Diamond wrote:
> Date: Tue, 13 Dec 2011 12:10:04 +0000
> From: Donal Diamond <donal.diamond at gmail.com>
> To: taginfo-dev at openstreetmap.org
> Subject: [Taginfo-dev] Error compliling tagstats
>
> Was eager to try out the latest taginfo with tag combinations but I'm
> now having problems compiling tagstats.
>
> I first updated and compiled the latest osmium.
>
> however, when trying to compile tagstats I get:
> g++ -O3 -std=c++0x -Wall -Wextra -Wredundant-decls
> -Wdisabled-optimization -pedantic -DTAGSTATS_COUNT_USERS
> -DTAGSTATS_COUNT_KEY_COMBINATIONS -DTAGSTATS_COUNT_TAG_COMBINATIONS
> -DTAGSTATS_GEODISTRIBUTION_INT=uint32_t
> -DTAGSTATS_GEODISTRIBUTION_FOR_WAYS=SparseTable -D_LARGEFILE_SOURCE
> -D_FILE_OFFSET_BITS=64 -I../../../osmium/osmium/include -o tagstats
> tagstats.cpp -L/usr/local/lib -lexpat -lpthread -lz -lprotobuf-lite
> -losmpbf -lgd -lz -lm -lsqlite3
> In file included from /usr/include/boost/make_shared.hpp:15:0,
> from /usr/include/osmium/input.hpp:27,
> from /usr/include/osmium.hpp:116,
> from tagstats.cpp:25:
> /usr/include/boost/smart_ptr/make_shared.hpp: In function
> ‘boost::shared_ptr<T> boost::make_shared(Args&& ...) [with T =
> Osmium::OSM::Way, Args = int]’:
> /usr/include/osmium/input.hpp:215:21: instantiated from
> ‘Osmium::OSM::Way& Osmium::Input::Base<THandler>::prepare_way() [with
> THandler = TagStatsHandler]’
> /usr/include/osmium/input/pbf.hpp:212:63: instantiated from ‘void
> Osmium::Input::PBF<THandler>::parse_way_group(const
> OSMPBF::PrimitiveGroup&, const OSMPBF::StringTable&, T) [with T = void
> (TagStatsHandler::*)(const boost::shared_ptr<const
> Osmium::OSM::Way>&), THandler = TagStatsHandler]’
> /usr/include/osmium/input/pbf.hpp:153:21: instantiated from ‘void
> Osmium::Input::PBF<THandler>::parse_group(const
> OSMPBF::PrimitiveGroup&, const OSMPBF::StringTable&) [with THandler =
> TagStatsHandler]’
> /usr/include/osmium/input/pbf.hpp:86:33: instantiated from ‘void
> Osmium::Input::PBF<THandler>::parse() [with THandler =
> TagStatsHandler]’
> tagstats.cpp:160:1: instantiated from here
> /usr/include/boost/smart_ptr/make_shared.hpp:148:5: error: no matching
> function for call to ‘forward(int&)’
> make: *** [tagstats] Error 1
>
> Only change I've made to tagstats/Makefile is to set CXXFLAGS +=
> -DTAGSTATS_GEODISTRIBUTION_INT=uint32_t
>
> I'm running on 32bit architecture:
> Ubuntu 11.04 (GNU/Linux 2.6.38-11-generic i686)
> libboost-dev 1.42.0.1ubuntu1
> libprotobuf-lite6 2.3.0-4ubuntu2
> protobuf-compiler 2.3.0-4ubuntu2
>
> I also tried updating to latest OSM-binary but I get the same error
> compiling tagstats.
>
> Any suggestions?
>
> D
>
> _______________________________________________
> Taginfo-dev mailing list
> Taginfo-dev at openstreetmap.org
> http://lists.openstreetmap.org/listinfo/taginfo-dev
>
--
Jochen Topf jochen at remote.org http://www.remote.org/jochen/ +49-721-388298
More information about the Taginfo-dev
mailing list