Skip to content

Instantly share code, notes, and snippets.

@2bits
Created September 30, 2012 16:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save 2bits/3807281 to your computer and use it in GitHub Desktop.
Save 2bits/3807281 to your computer and use it in GitHub Desktop.
pgrouting-1.05 error log on OSX due to boost-1.51 changed api
==> Installing pgrouting
/usr/local/Library/Formula/pgrouting.rb: loading /usr/local/Library/Formula/cmake.rb
/usr/local/Library/Formula/pgrouting.rb: loading /usr/local/Library/Formula/boost.rb
/usr/local/Library/Formula/pgrouting.rb: loading /usr/local/Library/Formula/postgis.rb
/usr/local/Library/Formula/pgrouting.rb: loading /usr/local/Library/Formula/postgresql.rb
/usr/local/Library/Formula/pgrouting.rb: loading /usr/local/Library/Formula/readline.rb
/usr/local/Library/Formula/pgrouting.rb: loading /usr/local/Library/Formula/ossp-uuid.rb
/usr/local/Library/Formula/pgrouting.rb: loading /usr/local/Library/Formula/proj.rb
/usr/local/Library/Formula/pgrouting.rb: loading /usr/local/Library/Formula/geos.rb
/usr/local/Library/Formula/pgrouting.rb: loading /usr/local/Library/Formula/json-c.rb
/usr/local/Library/Formula/pgrouting.rb: loading /usr/local/Library/Formula/gdal.rb
/usr/local/Library/Formula/pgrouting.rb: loading /usr/local/Library/Formula/libpng.rb
/usr/local/Library/Formula/pgrouting.rb: loading /usr/local/Library/Formula/jpeg.rb
/usr/local/Library/Formula/pgrouting.rb: loading /usr/local/Library/Formula/giflib.rb
/usr/local/Library/Formula/pgrouting.rb: loading /usr/local/Library/Formula/sqlite.rb
/usr/local/Library/Formula/pgrouting.rb: loading /usr/local/Library/Formula/freexl.rb
/usr/local/Library/Formula/pgrouting.rb: loading /usr/local/Library/Formula/libspatialite.rb
==> Downloading http://download.osgeo.org/pgrouting/source/pgrouting-1.05.tar.gz
Already downloaded: /Library/Caches/Homebrew/pgrouting-1.05.tar.gz
/usr/bin/tar xf /Library/Caches/Homebrew/pgrouting-1.05.tar.gz
==> Downloading patches
/usr/bin/curl -qf#LA Homebrew 0.9.3 (Ruby 1.8.7-358; Mac OS X 10.8.2) https://github.com/pgRouting/pgrouting/commit/8574864fcce8f37acabe40b985b36c6c3e8c7bdd.patch -o 000-homebrew.diff https://github.com/pgRouting/pgrouting/commit/27e5ccd4da4f8ddd2b7b59c5a10e03d93eeb766b.patch -o 001-homebrew.diff https://github.com/pgRouting/pgrouting/commit/dc6bff6b6923a565986eb4e314351299dc101f9a.patch -o 002-homebrew.diff https://github.com/pgRouting/pgrouting/commit/1be144ec4cc11f9748eca881a44668a4bdf3343b.patch -o 003-homebrew.diff
######################################################################## 100.0%
######################################################################## 100.0%
######################################################################## 100.0%
######################################################################## 100.0%
==> Patching
/usr/bin/patch -f -p1 -i 000-homebrew.diff
patching file CMakeLists.txt
patching file cmake/FindPostgreSQL.cmake
patching file core/src/CMakeLists.txt
/usr/bin/patch -f -p1 -i 001-homebrew.diff
patching file CMakeLists.txt
Hunk #1 succeeded at 86 (offset -1 lines).
patching file extra/driving_distance/src/alpha_drivedist.cpp
/usr/bin/patch -f -p1 -i 002-homebrew.diff
patching file core/src/edge_visitors.hpp
patching file core/src/shooting_star_boost_wrapper.cpp
patching file core/src/shooting_star_relax.hpp
/usr/bin/patch -f -p1 -i 003-homebrew.diff
patching file core/sql/routing_topology.sql
==> cmake -DCMAKE_INSTALL_PREFIX=/usr/local/Cellar/pgrouting/1.05 -DCMAKE_BUILD_TYPE=None -DCMAKE_FIND_FRAMEWORK=LAST -Wno-dev -DPOSTGRESQL_INCLUDE_DIR=/usr/local/Cellar/postgresql/9.2.1/include/server -DPOSTGRESQL_LIBRARIES=/usr/local/Cellar/postgresql/9.2.1/lib ..
cmake -DCMAKE_INSTALL_PREFIX=/usr/local/Cellar/pgrouting/1.05 -DCMAKE_BUILD_TYPE=None -DCMAKE_FIND_FRAMEWORK=LAST -Wno-dev -DPOSTGRESQL_INCLUDE_DIR=/usr/local/Cellar/postgresql/9.2.1/include/server -DPOSTGRESQL_LIBRARIES=/usr/local/Cellar/postgresql/9.2.1/lib ..
Re-run cmake no build system arguments
-- The C compiler identification is Clang 4.1.0
-- The CXX compiler identification is Clang 4.1.0
-- Check for working C compiler: /usr/local/Library/ENV/4.3/cc
-- Check for working C compiler: /usr/local/Library/ENV/4.3/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/local/Library/ENV/4.3/c++
-- Check for working CXX compiler: /usr/local/Library/ENV/4.3/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- POSTGRESQL_EXECUTABLE is /usr/local/bin/postgres
-- Found PostgreSQL: /usr/local/Cellar/postgresql/9.2.1/include/server, /usr/local/Cellar/postgresql/9.2.1/lib
-- Boost version: 1.51.0
Boost headers were found here: /usr/local/include
Output directory for libraries is set to /usr/local/Cellar/postgresql/9.2.1/lib
-- Found PGROUTING_CORE core: /tmp/pgrouting-9esZ/pgrouting-1.05/core/src
Installation directory for libraries is set to /usr/local/Cellar/postgresql/9.2.1/lib and for SQL files is set to /usr/local/Cellar/pgrouting/1.05/share/pgrouting
-- Configuring done
-- Generating done
-- Build files have been written to: /tmp/pgrouting-9esZ/pgrouting-1.05/brewery
==> make
make
/usr/local/Cellar/cmake/2.8.9/bin/cmake -H/tmp/pgrouting-9esZ/pgrouting-1.05 -B/tmp/pgrouting-9esZ/pgrouting-1.05/brewery --check-build-system CMakeFiles/Makefile.cmake 0
/usr/local/Cellar/cmake/2.8.9/bin/cmake -E cmake_progress_start /tmp/pgrouting-9esZ/pgrouting-1.05/brewery/CMakeFiles /tmp/pgrouting-9esZ/pgrouting-1.05/brewery/CMakeFiles/progress.marks
/usr/bin/make -f CMakeFiles/Makefile2 all
/usr/bin/make -f core/src/CMakeFiles/routing.dir/build.make core/src/CMakeFiles/routing.dir/depend
cd /tmp/pgrouting-9esZ/pgrouting-1.05/brewery && /usr/local/Cellar/cmake/2.8.9/bin/cmake -E cmake_depends "Unix Makefiles" /tmp/pgrouting-9esZ/pgrouting-1.05 /tmp/pgrouting-9esZ/pgrouting-1.05/core/src /tmp/pgrouting-9esZ/pgrouting-1.05/brewery /tmp/pgrouting-9esZ/pgrouting-1.05/brewery/core/src /tmp/pgrouting-9esZ/pgrouting-1.05/brewery/core/src/CMakeFiles/routing.dir/DependInfo.cmake --color=
Dependee "/tmp/pgrouting-9esZ/pgrouting-1.05/brewery/core/src/CMakeFiles/routing.dir/DependInfo.cmake" is newer than depender "/tmp/pgrouting-9esZ/pgrouting-1.05/brewery/core/src/CMakeFiles/routing.dir/depend.internal".
Dependee "/tmp/pgrouting-9esZ/pgrouting-1.05/brewery/core/src/CMakeFiles/CMakeDirectoryInformation.cmake" is newer than depender "/tmp/pgrouting-9esZ/pgrouting-1.05/brewery/core/src/CMakeFiles/routing.dir/depend.internal".
Scanning dependencies of target routing
/usr/bin/make -f core/src/CMakeFiles/routing.dir/build.make core/src/CMakeFiles/routing.dir/build
/usr/local/Cellar/cmake/2.8.9/bin/cmake -E cmake_progress_report /tmp/pgrouting-9esZ/pgrouting-1.05/brewery/CMakeFiles 1
[ 16%] Building C object core/src/CMakeFiles/routing.dir/dijkstra.o
cd /tmp/pgrouting-9esZ/pgrouting-1.05/brewery/core/src && /usr/local/Library/ENV/4.3/cc -Drouting_EXPORTS -O2 -g -lgmp -frounding-math -fPIC -I/usr/local/Cellar/postgresql/9.2.1/include/server -I/tmp/pgrouting-9esZ/pgrouting-1.05/core/src -I/tmp/pgrouting-9esZ/pgrouting-1.05/. -I/tmp/pgrouting-9esZ/pgrouting-1.05/core -I/tmp/pgrouting-9esZ/pgrouting-1.05/extra -I/tmp/pgrouting-9esZ/pgrouting-1.05/extra/tsp -I/tmp/pgrouting-9esZ/pgrouting-1.05/extra/tsp/src -I/tmp/pgrouting-9esZ/pgrouting-1.05/extra/driving_distance -I/tmp/pgrouting-9esZ/pgrouting-1.05/extra/driving_distance/src -I/usr/local/include -o CMakeFiles/routing.dir/dijkstra.o -c /tmp/pgrouting-9esZ/pgrouting-1.05/core/src/dijkstra.c
brew: superenv removed: -O2 -g -I/usr/local/include
/usr/local/Cellar/cmake/2.8.9/bin/cmake -E cmake_progress_report /tmp/pgrouting-9esZ/pgrouting-1.05/brewery/CMakeFiles 2
[ 33%] Building C object core/src/CMakeFiles/routing.dir/astar.o
cd /tmp/pgrouting-9esZ/pgrouting-1.05/brewery/core/src && /usr/local/Library/ENV/4.3/cc -Drouting_EXPORTS -O2 -g -lgmp -frounding-math -fPIC -I/usr/local/Cellar/postgresql/9.2.1/include/server -I/tmp/pgrouting-9esZ/pgrouting-1.05/core/src -I/tmp/pgrouting-9esZ/pgrouting-1.05/. -I/tmp/pgrouting-9esZ/pgrouting-1.05/core -I/tmp/pgrouting-9esZ/pgrouting-1.05/extra -I/tmp/pgrouting-9esZ/pgrouting-1.05/extra/tsp -I/tmp/pgrouting-9esZ/pgrouting-1.05/extra/tsp/src -I/tmp/pgrouting-9esZ/pgrouting-1.05/extra/driving_distance -I/tmp/pgrouting-9esZ/pgrouting-1.05/extra/driving_distance/src -I/usr/local/include -o CMakeFiles/routing.dir/astar.o -c /tmp/pgrouting-9esZ/pgrouting-1.05/core/src/astar.c
brew: superenv removed: -O2 -g -I/usr/local/include
/usr/local/Cellar/cmake/2.8.9/bin/cmake -E cmake_progress_report /tmp/pgrouting-9esZ/pgrouting-1.05/brewery/CMakeFiles 3
[ 50%] Building C object core/src/CMakeFiles/routing.dir/shooting_star.o
cd /tmp/pgrouting-9esZ/pgrouting-1.05/brewery/core/src && /usr/local/Library/ENV/4.3/cc -Drouting_EXPORTS -O2 -g -lgmp -frounding-math -fPIC -I/usr/local/Cellar/postgresql/9.2.1/include/server -I/tmp/pgrouting-9esZ/pgrouting-1.05/core/src -I/tmp/pgrouting-9esZ/pgrouting-1.05/. -I/tmp/pgrouting-9esZ/pgrouting-1.05/core -I/tmp/pgrouting-9esZ/pgrouting-1.05/extra -I/tmp/pgrouting-9esZ/pgrouting-1.05/extra/tsp -I/tmp/pgrouting-9esZ/pgrouting-1.05/extra/tsp/src -I/tmp/pgrouting-9esZ/pgrouting-1.05/extra/driving_distance -I/tmp/pgrouting-9esZ/pgrouting-1.05/extra/driving_distance/src -I/usr/local/include -o CMakeFiles/routing.dir/shooting_star.o -c /tmp/pgrouting-9esZ/pgrouting-1.05/core/src/shooting_star.c
brew: superenv removed: -O2 -g -I/usr/local/include
/usr/local/Cellar/cmake/2.8.9/bin/cmake -E cmake_progress_report /tmp/pgrouting-9esZ/pgrouting-1.05/brewery/CMakeFiles 4
[ 66%] Building CXX object core/src/CMakeFiles/routing.dir/boost_wrapper.o
cd /tmp/pgrouting-9esZ/pgrouting-1.05/brewery/core/src && /usr/local/Library/ENV/4.3/c++ -Drouting_EXPORTS -O2 -g -lgmp -frounding-math -fPIC -I/usr/local/Cellar/postgresql/9.2.1/include/server -I/tmp/pgrouting-9esZ/pgrouting-1.05/core/src -I/tmp/pgrouting-9esZ/pgrouting-1.05/. -I/tmp/pgrouting-9esZ/pgrouting-1.05/core -I/tmp/pgrouting-9esZ/pgrouting-1.05/extra -I/tmp/pgrouting-9esZ/pgrouting-1.05/extra/tsp -I/tmp/pgrouting-9esZ/pgrouting-1.05/extra/tsp/src -I/tmp/pgrouting-9esZ/pgrouting-1.05/extra/driving_distance -I/tmp/pgrouting-9esZ/pgrouting-1.05/extra/driving_distance/src -I/usr/local/include -o CMakeFiles/routing.dir/boost_wrapper.o -c /tmp/pgrouting-9esZ/pgrouting-1.05/core/src/boost_wrapper.cpp
brew: superenv removed: -O2 -g -I/usr/local/include
In file included from /tmp/pgrouting-9esZ/pgrouting-1.05/core/src/boost_wrapper.cpp:25:
In file included from /usr/local/include/boost/graph/adjacency_list.hpp:245:
/usr/local/include/boost/graph/detail/adjacency_list.hpp:2652:56: error: no type named 'type' in 'boost::property_value<Vertex, boost::edge_weight_t>'
typedef typename property_value<Property,Tag>::type value_type;
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~
/usr/local/include/boost/graph/detail/adjacency_list.hpp:2686:9: note: in instantiation of template class
'boost::detail::adj_list_any_edge_pmap::bind_<boost::adjacency_list<boost::listS, boost::vecS, boost::directedS, boost::no_property, Vertex,
boost::no_property, boost::listS>, Vertex, boost::edge_weight_t>' requested here
: adj_list_choose_edge_pmap_helper<Tag>::type::template bind_<Graph, Property, Tag>
^
/usr/local/include/boost/graph/detail/adjacency_list.hpp:2690:21: note: in instantiation of template class
'boost::detail::adj_list_choose_edge_pmap<boost::edge_weight_t, boost::adjacency_list<boost::listS, boost::vecS, boost::directedS,
boost::no_property, Vertex, boost::no_property, boost::listS>, Vertex>' requested here
struct bind_: adj_list_choose_edge_pmap<Tag, Graph, Property> {};
^
/usr/local/include/boost/graph/properties.hpp:209:9: note: in instantiation of template class
'boost::detail::adj_list_edge_property_selector::bind_<boost::adjacency_list<boost::listS, boost::vecS, boost::directedS, boost::no_property,
Vertex, boost::no_property, boost::listS>, Vertex, boost::edge_weight_t>' requested here
: edge_property_selector<
^
/usr/local/include/boost/graph/properties.hpp:229:5: note: in instantiation of template class
'boost::detail::edge_property_map<boost::adjacency_list<boost::listS, boost::vecS, boost::directedS, boost::no_property, Vertex,
boost::no_property, boost::listS>, boost::edge_weight_t>' requested here
mpl::if_<
^
/tmp/pgrouting-9esZ/pgrouting-1.05/core/src/boost_wrapper.cpp:76:5: note: in instantiation of template class
'boost::property_map<boost::adjacency_list<boost::listS, boost::vecS, boost::directedS, boost::no_property, Vertex, boost::no_property,
boost::listS>, boost::edge_weight_t>' requested here
property_map<graph_t, edge_weight_t>::type weightmap = get(edge_weight, graph);
^
1 error generated.
make[2]: *** [core/src/CMakeFiles/routing.dir/boost_wrapper.o] Error 1
make[1]: *** [core/src/CMakeFiles/routing.dir/all] Error 2
make: *** [all] Error 2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment