package (#21) - pgrouting make failed (#309) - Message List

pgrouting make failed

Hey,

I've got a problem to compile pgrouting.

I use Solaris10 with postgresql8.4.1, boost1.40, postgis 1.4.0.

cmake works fine:
Boost headers were found here: /usr/local/include
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 then make return an error:
[ 16%] Building C object core/src/CMakeFiles/routing.dir/dijkstra.o
/opt/src/pgrouting/core/src/dijkstra.c: In function `fetch_edge_columns':
/opt/src/pgrouting/core/src/dijkstra.c:98: error: `INT4OID' undeclared (first use in this function)
/opt/src/pgrouting/core/src/dijkstra.c:98: error: (Each undeclared identifier is reported only once
/opt/src/pgrouting/core/src/dijkstra.c:98: error: for each function it appears in.)
/opt/src/pgrouting/core/src/dijkstra.c:100: error: `FLOAT8OID' undeclared (first use in this function)
*** Error code 1
The following command caused the error:
cd /opt/src/pgrouting/core/src && /usr/sfw/bin/gcc -Drouting_EXPORTS -O2 -g -fPIC -I/opt/src/pgrouting/. -I/opt/src/pgrouting/core -I/opt/src/pgrouting/core/src -I/opt/src/pgrouting/extra -I/opt/src/pgrouting/extra/tsp -I/opt/src/pgrouting/extra/tsp/src -I/opt/src/pgrouting/extra/driving_distance -I/opt/src/pgrouting/extra/driving_distance/src -I/opt/postgresql/8.4.1/include/server -I/usr/local/include -o CMakeFiles/routing.dir/dijkstra.o -c /opt/src/pgrouting/core/src/dijkstra.c
make: Fatal error: Command failed for target `core/src/CMakeFiles/routing.dir/dijkstra.o'
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'

Can anybody help my???

  • Message #1190

    Hi,

    It looks like you miss postgresql-devel package (or how you call it on Solaris).

    • Message #1192

      I build postgres with

      LDFLAGS=-lstdc++ ./configure --with-includes=/opt/sfw/include/ --with-libs=/opt/sfw/lib/ --prefix=/opt/postgresql/8.4.1 --with-libxml

      what's wrong?? Should I set a spezial flag??

      • Message #1193

        I solved the problem by changing the Paths in FindPostgreSQL.cmake, so now I have the sqls for pgrouting.

        The next problem appears when I use routing_core.sql:

        psql:/usr/share/postlbs/routing_core.sql:32: ERROR: incompatible library "/opt/postgresql/8.4.1/lib/librouting.so": missing magic block HINT: Extension libraries are required to use the PG_MODULE_MAGIC macro. psql:/usr/share/postlbs/routing_core.sql:43: ERROR: incompatible library "/opt/postgresql/8.4.1/lib/librouting.so": missing magic block HINT: Extension libraries are required to use the PG_MODULE_MAGIC macro. psql:/usr/share/postlbs/routing_core.sql:53: ERROR: incompatible library "/opt/postgresql/8.4.1/lib/librouting.so": missing magic block HINT: Extension libraries are required to use the PG_MODULE_MAGIC macro.

        Does anybody know a solution for this problem?