Ticket #192 (new defect)
Opened 13 months ago
compiling pgrouting
Reported by: | mkuis | Owned by: | somebody |
---|---|---|---|
Priority: | major | Milestone: | |
Component: | pgRouting package | Version: | 1.03 |
Keywords: | Cc: |
Description
He,
I've got a problem with compiling pgrouting. cmake works: #cmake . Boost headers were found here: /usr/local/include/boost-1_33_1 Output directory for libraries is set to /opt/postgresql/8.4.1/lib Installation directory for libraries is set to /opt/postgresql/8.4.1/lib and for SQL files is set to /usr/share/postlbs -- Configuring done -- Generating done -- Build files have been written to: /opt/src/pgrouting
BUT make produces an error: make [ 16%] Building C object core/src/CMakeFiles/routing.dir/dijkstra.o [ 33%] Building C object core/src/CMakeFiles/routing.dir/astar.o [ 50%] Building C object core/src/CMakeFiles/routing.dir/shooting_star.o [ 66%] Building CXX object core/src/CMakeFiles/routing.dir/boost_wrapper.o In file included from /usr/include/pgsql/server/c.h:53,
from /usr/include/pgsql/server/postgres.h:48, from /opt/src/pgrouting/core/src/dijkstra.h:25, from /opt/src/pgrouting/core/src/boost_wrapper.cpp:28:
/usr/include/pgsql/server/pg_config.h:663:1: warning: "_FILE_OFFSET_BITS" redefined In file included from /usr/include/unistd.h:18,
from /usr/local/include/boost-1_33_1/boost/config/posix_features.hpp:18, from /usr/local/include/boost-1_33_1/boost/config/platform/solaris.hpp:17, from /usr/local/include/boost-1_33_1/boost/config.hpp:53, from /opt/src/pgrouting/core/src/boost_wrapper.cpp:22:
/usr/include/sys/feature_tests.h:188:1: warning: this is the location of the previous definition [ 83%] Building CXX object core/src/CMakeFiles/routing.dir/astar_boost_wrapper.o In file included from /usr/include/pgsql/server/c.h:53,
from /usr/include/pgsql/server/postgres.h:48, from /opt/src/pgrouting/core/src/astar.h:24, from /opt/src/pgrouting/core/src/astar_boost_wrapper.cpp:28:
/usr/include/pgsql/server/pg_config.h:663:1: warning: "_FILE_OFFSET_BITS" redefined In file included from /usr/include/unistd.h:18,
from /usr/local/include/boost-1_33_1/boost/config/posix_features.hpp:18, from /usr/local/include/boost-1_33_1/boost/config/platform/solaris.hpp:17, from /usr/local/include/boost-1_33_1/boost/config.hpp:53, from /opt/src/pgrouting/core/src/astar_boost_wrapper.cpp:22:
/usr/include/sys/feature_tests.h:188:1: warning: this is the location of the previous definition [100%] Building CXX object core/src/CMakeFiles/routing.dir/shooting_star_boost_wrapper.o In file included from /usr/include/pgsql/server/c.h:53,
from /usr/include/pgsql/server/postgres.h:48, from /opt/src/pgrouting/core/src/shooting_star_relax.hpp:20, from /opt/src/pgrouting/core/src/shooting_star_search.hpp:22, from /opt/src/pgrouting/core/src/shooting_star_boost_wrapper.cpp:27:
/usr/include/pgsql/server/pg_config.h:663:1: warning: "_FILE_OFFSET_BITS" redefined In file included from /usr/include/unistd.h:18,
from /usr/local/include/boost-1_33_1/boost/config/posix_features.hpp:18, from /usr/local/include/boost-1_33_1/boost/config/platform/solaris.hpp:17, from /usr/local/include/boost-1_33_1/boost/config.hpp:53, from /opt/src/pgrouting/core/src/shooting_star_boost_wrapper.cpp:22:
/usr/include/sys/feature_tests.h:188:1: warning: this is the location of the previous definition Linking CXX shared library ../../lib/librouting.so ld: fatal: symbol `std::abs(double)' is multiply-defined:
(file CMakeFiles/routing.dir/astar_boost_wrapper.o type=FUNC; file CMakeFiles/routing.dir/shooting_star_boost_wrapper.o type=FUNC);
ld: fatal: symbol `std::abs(float)' is multiply-defined:
(file CMakeFiles/routing.dir/astar_boost_wrapper.o type=FUNC; file CMakeFiles/routing.dir/shooting_star_boost_wrapper.o type=FUNC);
ld: fatal: symbol `std::abs(long double)' is multiply-defined:
(file CMakeFiles/routing.dir/astar_boost_wrapper.o type=FUNC; file CMakeFiles/routing.dir/shooting_star_boost_wrapper.o type=FUNC);
ld: fatal: symbol `std::acos(float)' is multiply-defined:
(file CMakeFiles/routing.dir/astar_boost_wrapper.o type=FUNC; file CMakeFiles/routing.dir/shooting_star_boost_wrapper.o type=FUNC);
ld: fatal: symbol `std::acos(long double)' is multiply-defined:
(file CMakeFiles/routing.dir/astar_boost_wrapper.o type=FUNC; file CMakeFiles/routing.dir/shooting_star_boost_wrapper.o type=FUNC);
ld: fatal: symbol `std::asin(float)' is multiply-defined:
(file CMakeFiles/routing.dir/astar_boost_wrapper.o type=FUNC; file CMakeFiles/routing.dir/shooting_star_boost_wrapper.o type=FUNC);
ld: fatal: symbol `std::asin(long double)' is multiply-defined:
(file CMakeFiles/routing.dir/astar_boost_wrapper.o type=FUNC; file CMakeFiles/routing.dir/shooting_star_boost_wrapper.o type=FUNC);
ld: fatal: symbol `std::atan(float)' is multiply-defined:
(file CMakeFiles/routing.dir/astar_boost_wrapper.o type=FUNC; file CMakeFiles/routing.dir/shooting_star_boost_wrapper.o type=FUNC);
ld: fatal: symbol `std::atan(long double)' is multiply-defined:
(file CMakeFiles/routing.dir/astar_boost_wrapper.o type=FUNC; file CMakeFiles/routing.dir/shooting_star_boost_wrapper.o type=FUNC);
ld: fatal: symbol `std::atan2(float, float)' is multiply-defined:
(file CMakeFiles/routing.dir/astar_boost_wrapper.o type=FUNC; file CMakeFiles/routing.dir/shooting_star_boost_wrapper.o type=FUNC);
ld: fatal: symbol `std::atan2(long double, long double)' is multiply-defined:
(file CMakeFiles/routing.dir/astar_boost_wrapper.o type=FUNC; file CMakeFiles/routing.dir/shooting_star_boost_wrapper.o type=FUNC);
ld: fatal: symbol `std::ceil(float)' is multiply-defined:
(file CMakeFiles/routing.dir/astar_boost_wrapper.o type=FUNC; file CMakeFiles/routing.dir/shooting_star_boost_wrapper.o type=FUNC);
ld: fatal: symbol `std::ceil(long double)' is multiply-defined:
(file CMakeFiles/routing.dir/astar_boost_wrapper.o type=FUNC; file CMakeFiles/routing.dir/shooting_star_boost_wrapper.o type=FUNC);
ld: fatal: symbol `std::cos(float)' is multiply-defined:
(file CMakeFiles/routing.dir/astar_boost_wrapper.o type=FUNC; file CMakeFiles/routing.dir/shooting_star_boost_wrapper.o type=FUNC);
ld: fatal: symbol `std::cos(long double)' is multiply-defined:
(file CMakeFiles/routing.dir/astar_boost_wrapper.o type=FUNC; file CMakeFiles/routing.dir/shooting_star_boost_wrapper.o type=FUNC);
ld: fatal: symbol `std::cosh(float)' is multiply-defined:
(file CMakeFiles/routing.dir/astar_boost_wrapper.o type=FUNC; file CMakeFiles/routing.dir/shooting_star_boost_wrapper.o type=FUNC);
ld: fatal: symbol `std::cosh(long double)' is multiply-defined:
(file CMakeFiles/routing.dir/astar_boost_wrapper.o type=FUNC; file CMakeFiles/routing.dir/shooting_star_boost_wrapper.o type=FUNC);
ld: fatal: symbol `std::exp(float)' is multiply-defined:
(file CMakeFiles/routing.dir/astar_boost_wrapper.o type=FUNC; file CMakeFiles/routing.dir/shooting_star_boost_wrapper.o type=FUNC);
ld: fatal: symbol `std::exp(long double)' is multiply-defined:
(file CMakeFiles/routing.dir/astar_boost_wrapper.o type=FUNC; file CMakeFiles/routing.dir/shooting_star_boost_wrapper.o type=FUNC);
ld: fatal: symbol `std::fabs(float)' is multiply-defined:
(file CMakeFiles/routing.dir/astar_boost_wrapper.o type=FUNC; file CMakeFiles/routing.dir/shooting_star_boost_wrapper.o type=FUNC);
ld: fatal: symbol `std::fabs(long double)' is multiply-defined:
(file CMakeFiles/routing.dir/astar_boost_wrapper.o type=FUNC; file CMakeFiles/routing.dir/shooting_star_boost_wrapper.o type=FUNC);
ld: fatal: symbol `std::floor(float)' is multiply-defined:
(file CMakeFiles/routing.dir/astar_boost_wrapper.o type=FUNC; file CMakeFiles/routing.dir/shooting_star_boost_wrapper.o type=FUNC);
ld: fatal: symbol `std::floor(long double)' is multiply-defined:
(file CMakeFiles/routing.dir/astar_boost_wrapper.o type=FUNC; file CMakeFiles/routing.dir/shooting_star_boost_wrapper.o type=FUNC);
ld: fatal: symbol `std::fmod(float, float)' is multiply-defined:
(file CMakeFiles/routing.dir/astar_boost_wrapper.o type=FUNC; file CMakeFiles/routing.dir/shooting_star_boost_wrapper.o type=FUNC);
ld: fatal: symbol `std::fmod(long double, long double)' is multiply-defined:
(file CMakeFiles/routing.dir/astar_boost_wrapper.o type=FUNC; file CMakeFiles/routing.dir/shooting_star_boost_wrapper.o type=FUNC);
ld: fatal: symbol `std::frexp(float, int*)' is multiply-defined:
(file CMakeFiles/routing.dir/astar_boost_wrapper.o type=FUNC; file CMakeFiles/routing.dir/shooting_star_boost_wrapper.o type=FUNC);
ld: fatal: symbol `std::frexp(long double, int*)' is multiply-defined:
(file CMakeFiles/routing.dir/astar_boost_wrapper.o type=FUNC; file CMakeFiles/routing.dir/shooting_star_boost_wrapper.o type=FUNC);
ld: fatal: symbol `std::ldexp(float, int)' is multiply-defined:
(file CMakeFiles/routing.dir/astar_boost_wrapper.o type=FUNC; file CMakeFiles/routing.dir/shooting_star_boost_wrapper.o type=FUNC);
ld: fatal: symbol `std::ldexp(long double, int)' is multiply-defined:
(file CMakeFiles/routing.dir/astar_boost_wrapper.o type=FUNC; file CMakeFiles/routing.dir/shooting_star_boost_wrapper.o type=FUNC);
ld: fatal: symbol `std::log(float)' is multiply-defined:
(file CMakeFiles/routing.dir/astar_boost_wrapper.o type=FUNC; file CMakeFiles/routing.dir/shooting_star_boost_wrapper.o type=FUNC);
ld: fatal: symbol `std::log(long double)' is multiply-defined:
(file CMakeFiles/routing.dir/astar_boost_wrapper.o type=FUNC; file CMakeFiles/routing.dir/shooting_star_boost_wrapper.o type=FUNC);
ld: fatal: symbol `std::log10(float)' is multiply-defined:
(file CMakeFiles/routing.dir/astar_boost_wrapper.o type=FUNC; file CMakeFiles/routing.dir/shooting_star_boost_wrapper.o type=FUNC);
ld: fatal: symbol `std::log10(long double)' is multiply-defined:
(file CMakeFiles/routing.dir/astar_boost_wrapper.o type=FUNC; file CMakeFiles/routing.dir/shooting_star_boost_wrapper.o type=FUNC);
ld: fatal: symbol `std::modf(float, float*)' is multiply-defined:
(file CMakeFiles/routing.dir/astar_boost_wrapper.o type=FUNC; file CMakeFiles/routing.dir/shooting_star_boost_wrapper.o type=FUNC);
ld: fatal: symbol `std::modf(long double, long double*)' is multiply-defined:
(file CMakeFiles/routing.dir/astar_boost_wrapper.o type=FUNC; file CMakeFiles/routing.dir/shooting_star_boost_wrapper.o type=FUNC);
ld: fatal: symbol `std::pow(float, float)' is multiply-defined:
(file CMakeFiles/routing.dir/astar_boost_wrapper.o type=FUNC; file CMakeFiles/routing.dir/shooting_star_boost_wrapper.o type=FUNC);
ld: fatal: symbol `std::pow(long double, long double)' is multiply-defined:
(file CMakeFiles/routing.dir/astar_boost_wrapper.o type=FUNC; file CMakeFiles/routing.dir/shooting_star_boost_wrapper.o type=FUNC);
ld: fatal: symbol `std::sin(float)' is multiply-defined:
(file CMakeFiles/routing.dir/astar_boost_wrapper.o type=FUNC; file CMakeFiles/routing.dir/shooting_star_boost_wrapper.o type=FUNC);
ld: fatal: symbol `std::sin(long double)' is multiply-defined:
(file CMakeFiles/routing.dir/astar_boost_wrapper.o type=FUNC; file CMakeFiles/routing.dir/shooting_star_boost_wrapper.o type=FUNC);
ld: fatal: symbol `std::sinh(float)' is multiply-defined:
(file CMakeFiles/routing.dir/astar_boost_wrapper.o type=FUNC; file CMakeFiles/routing.dir/shooting_star_boost_wrapper.o type=FUNC);
ld: fatal: symbol `std::sinh(long double)' is multiply-defined:
(file CMakeFiles/routing.dir/astar_boost_wrapper.o type=FUNC; file CMakeFiles/routing.dir/shooting_star_boost_wrapper.o type=FUNC);
ld: fatal: symbol `std::sqrt(float)' is multiply-defined:
(file CMakeFiles/routing.dir/astar_boost_wrapper.o type=FUNC; file CMakeFiles/routing.dir/shooting_star_boost_wrapper.o type=FUNC);
ld: fatal: symbol `std::sqrt(long double)' is multiply-defined:
(file CMakeFiles/routing.dir/astar_boost_wrapper.o type=FUNC; file CMakeFiles/routing.dir/shooting_star_boost_wrapper.o type=FUNC);
ld: fatal: symbol `std::tan(float)' is multiply-defined:
(file CMakeFiles/routing.dir/astar_boost_wrapper.o type=FUNC; file CMakeFiles/routing.dir/shooting_star_boost_wrapper.o type=FUNC);
ld: fatal: symbol `std::tan(long double)' is multiply-defined:
(file CMakeFiles/routing.dir/astar_boost_wrapper.o type=FUNC; file CMakeFiles/routing.dir/shooting_star_boost_wrapper.o type=FUNC);
ld: fatal: symbol `std::tanh(float)' is multiply-defined:
(file CMakeFiles/routing.dir/astar_boost_wrapper.o type=FUNC; file CMakeFiles/routing.dir/shooting_star_boost_wrapper.o type=FUNC);
ld: fatal: symbol `std::tanh(long double)' is multiply-defined:
(file CMakeFiles/routing.dir/astar_boost_wrapper.o type=FUNC; file CMakeFiles/routing.dir/shooting_star_boost_wrapper.o type=FUNC);
ld: fatal: symbol `std::pow(double, int)' is multiply-defined:
(file CMakeFiles/routing.dir/astar_boost_wrapper.o type=FUNC; file CMakeFiles/routing.dir/shooting_star_boost_wrapper.o type=FUNC);
ld: fatal: symbol `std::pow(float, int)' is multiply-defined:
(file CMakeFiles/routing.dir/astar_boost_wrapper.o type=FUNC; file CMakeFiles/routing.dir/shooting_star_boost_wrapper.o type=FUNC);
ld: fatal: symbol `std::pow(long double, int)' is multiply-defined:
(file CMakeFiles/routing.dir/astar_boost_wrapper.o type=FUNC; file CMakeFiles/routing.dir/shooting_star_boost_wrapper.o type=FUNC);
ld: fatal: File processing errors. No output written to ../../lib/librouting.so collect2: ld returned 1 exit status *** Error code 1 The following command caused the error: cd /opt/src/pgrouting/core/src && /usr/local/bin/cmake -E cmake_link_script CMakeFiles/routing.dir/link.txt --verbose= make: Fatal error: Command failed for target `lib/librouting.so' Current working directory /opt/src/pgrouting *** Error code 1 The following command caused the error: make -f core/src/CMakeFiles/routing.dir/build.make core/src/CMakeFiles/routing.dir/build make: Fatal error: Command failed for target `core/src/CMakeFiles/routing.dir/all' Current working directory /opt/src/pgrouting *** Error code 1 The following command caused the error: make -f CMakeFiles/Makefile2 all make: Fatal error: Command failed for target `all'
what can I do??? I work with Solaris12, Postgresql8.4.1, postgis1.4.0
Thanks a lot