[pgrouting-users] error: make in trsp.c can not find postgres.h
carsten
carsten64stadt at gmx.de
Tue Feb 25 07:02:32 PST 2014
Hello,
I try to install pgrouting under CentOS 6.4 with PostGIS 2.1.1 and
PostgreSQL 9.3.3.
I run the cmake command like this: cmake -DWITH_DD=OFF .. and when I try to
build the files with make
then I get the following error:
(I already installed all necessary devel program like postgresql-devel,
boost-devel etc.)
[ 3%] Building C object src/trsp/src/CMakeFiles/trsp.dir/trsp.c.o
/home/mvictoria/pgrouting-2.0.0/src/trsp/src/trsp.c:1:22: error: postgres.h:
No such file or directory
/home/mvictoria/pgrouting-2.0.0/src/trsp/src/trsp.c:2:26: error:
executor/spi.h: No such file or directory
/home/mvictoria/pgrouting-2.0.0/src/trsp/src/trsp.c:3:21: error: funcapi.h:
No such file or directory
/home/mvictoria/pgrouting-2.0.0/src/trsp/src/trsp.c:4:29: error:
catalog/pg_type.h: No such file or directory
/home/mvictoria/pgrouting-2.0.0/src/trsp/src/trsp.c:6:33: error:
access/htup_details.h: No such file or directory
/home/mvictoria/pgrouting-2.0.0/src/trsp/src/trsp.c:9:18: error: fmgr.h: No
such file or directory
In file included from
/home/mvictoria/pgrouting-2.0.0/src/trsp/src/trsp.c:10:
/home/mvictoria/pgrouting-2.0.0/src/trsp/src/trsp.h:34: error: expected
specifier-qualifier-list before ‘float8’
/home/mvictoria/pgrouting-2.0.0/src/trsp/src/trsp.h:41: error: expected
specifier-qualifier-list before ‘float8’
/home/mvictoria/pgrouting-2.0.0/src/trsp/src/trsp.h:50: error: expected
specifier-qualifier-list before ‘float8’
/home/mvictoria/pgrouting-2.0.0/src/trsp/src/trsp.h:64: error: expected
declaration specifiers or ‘...’ before ‘bool’
/home/mvictoria/pgrouting-2.0.0/src/trsp/src/trsp.h:65: error: expected
declaration specifiers or ‘...’ before ‘bool’
/home/mvictoria/pgrouting-2.0.0/src/trsp/src/trsp.h:84: error: expected
declaration specifiers or ‘...’ before ‘bool’
/home/mvictoria/pgrouting-2.0.0/src/trsp/src/trsp.h:85: error: expected
declaration specifiers or ‘...’ before ‘bool’
/home/mvictoria/pgrouting-2.0.0/src/trsp/src/trsp.c:12: error: expected ‘=’,
‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before
‘turn_restrict_shortest_path_vertex’
/home/mvictoria/pgrouting-2.0.0/src/trsp/src/trsp.c:13: error: expected ‘=’,
‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘turn_restrict_shortest_path_edge’
/home/mvictoria/pgrouting-2.0.0/src/trsp/src/trsp.c:51: error: expected ‘)’
before ‘*’ token
/home/mvictoria/pgrouting-2.0.0/src/trsp/src/trsp.c: In function ‘finish’:
/home/mvictoria/pgrouting-2.0.0/src/trsp/src/trsp.c:65: error:
‘SPI_OK_FINISH’ undeclared (first use in this function)
/home/mvictoria/pgrouting-2.0.0/src/trsp/src/trsp.c:65: error: (Each
undeclared identifier is reported only once
/home/mvictoria/pgrouting-2.0.0/src/trsp/src/trsp.c:65: error: for each
function it appears in.)
/home/mvictoria/pgrouting-2.0.0/src/trsp/src/trsp.c:67: error: ‘ERROR’
undeclared (first use in this function)
/home/mvictoria/pgrouting-2.0.0/src/trsp/src/trsp.c: At top level:
/home/mvictoria/pgrouting-2.0.0/src/trsp/src/trsp.c:78: error: expected ‘)’
before ‘*’ token
/home/mvictoria/pgrouting-2.0.0/src/trsp/src/trsp.c:107: error: expected ‘)’
before ‘*’ token
/home/mvictoria/pgrouting-2.0.0/src/trsp/src/trsp.c:167: error: expected ‘)’
before ‘*’ token
/home/mvictoria/pgrouting-2.0.0/src/trsp/src/trsp.c:215: error: expected ‘)’
before ‘*’ token
/home/mvictoria/pgrouting-2.0.0/src/trsp/src/trsp.c:264: error: expected
declaration specifiers or ‘...’ before ‘bool’
/home/mvictoria/pgrouting-2.0.0/src/trsp/src/trsp.c:265: error: expected
declaration specifiers or ‘...’ before ‘bool’
/home/mvictoria/pgrouting-2.0.0/src/trsp/src/trsp.c: In function
‘compute_trsp’:
/home/mvictoria/pgrouting-2.0.0/src/trsp/src/trsp.c:272: error: ‘SPIPlanPtr’
undeclared (first use in this function)
/home/mvictoria/pgrouting-2.0.0/src/trsp/src/trsp.c:272: error: expected ‘;’
before ‘SPIplan’
/home/mvictoria/pgrouting-2.0.0/src/trsp/src/trsp.c:273: error: ‘Portal’
undeclared (first use in this function)
/home/mvictoria/pgrouting-2.0.0/src/trsp/src/trsp.c:273: error: expected ‘;’
before ‘SPIportal’
/home/mvictoria/pgrouting-2.0.0/src/trsp/src/trsp.c:274: error: ‘bool’
undeclared (first use in this function)
/home/mvictoria/pgrouting-2.0.0/src/trsp/src/trsp.c:274: error: expected ‘;’
before ‘moredata’
/home/mvictoria/pgrouting-2.0.0/src/trsp/src/trsp.c:277: error: ‘NULL’
undeclared (first use in this function)
/home/mvictoria/pgrouting-2.0.0/src/trsp/src/trsp.c:287: error: ‘INT_MAX’
undeclared (first use in this function)
/home/mvictoria/pgrouting-2.0.0/src/trsp/src/trsp.c:300: error:
‘SPI_OK_CONNECT’ undeclared (first use in this function)
/home/mvictoria/pgrouting-2.0.0/src/trsp/src/trsp.c:301: error: ‘ERROR’
undeclared (first use in this function)
/home/mvictoria/pgrouting-2.0.0/src/trsp/src/trsp.c:305: error: ‘SPIplan’
undeclared (first use in this function)
/home/mvictoria/pgrouting-2.0.0/src/trsp/src/trsp.c:311: error: ‘SPIportal’
undeclared (first use in this function)
/home/mvictoria/pgrouting-2.0.0/src/trsp/src/trsp.c:311: error: ‘true’
undeclared (first use in this function)
/home/mvictoria/pgrouting-2.0.0/src/trsp/src/trsp.c:316: error: ‘moredata’
undeclared (first use in this function)
/home/mvictoria/pgrouting-2.0.0/src/trsp/src/trsp.c:316: error: ‘TRUE’
undeclared (first use in this function)
/home/mvictoria/pgrouting-2.0.0/src/trsp/src/trsp.c:320: error:
‘SPI_tuptable’ undeclared (first use in this function)
/home/mvictoria/pgrouting-2.0.0/src/trsp/src/trsp.c:327: error:
‘has_reverse_cost’ undeclared (first use in this function)
/home/mvictoria/pgrouting-2.0.0/src/trsp/src/trsp.c:331: error:
‘SPI_processed’ undeclared (first use in this function)
/home/mvictoria/pgrouting-2.0.0/src/trsp/src/trsp.c:339: warning: assignment
makes pointer from integer without a cast
/home/mvictoria/pgrouting-2.0.0/src/trsp/src/trsp.c:341: warning: assignment
makes pointer from integer without a cast
/home/mvictoria/pgrouting-2.0.0/src/trsp/src/trsp.c:349: error:
‘SPITupleTable’ undeclared (first use in this function)
/home/mvictoria/pgrouting-2.0.0/src/trsp/src/trsp.c:349: error: ‘tuptable’
undeclared (first use in this function)
/home/mvictoria/pgrouting-2.0.0/src/trsp/src/trsp.c:350: error: ‘TupleDesc’
undeclared (first use in this function)
/home/mvictoria/pgrouting-2.0.0/src/trsp/src/trsp.c:350: error: expected ‘;’
before ‘tupdesc’
/home/mvictoria/pgrouting-2.0.0/src/trsp/src/trsp.c:354: error: ‘HeapTuple’
undeclared (first use in this function)
/home/mvictoria/pgrouting-2.0.0/src/trsp/src/trsp.c:354: error: expected ‘;’
before ‘tuple’
/home/mvictoria/pgrouting-2.0.0/src/trsp/src/trsp.c:355: error: ‘tuple’
undeclared (first use in this function)
/home/mvictoria/pgrouting-2.0.0/src/trsp/src/trsp.c:355: error: ‘tupdesc’
undeclared (first use in this function)
/home/mvictoria/pgrouting-2.0.0/src/trsp/src/trsp.c:363: error: ‘FALSE’
undeclared (first use in this function)
/home/mvictoria/pgrouting-2.0.0/src/trsp/src/trsp.c:409: error: ‘edge_t’ has
no member named ‘cost’
/home/mvictoria/pgrouting-2.0.0/src/trsp/src/trsp.c:409: error: ‘edge_t’ has
no member named ‘cost’
/home/mvictoria/pgrouting-2.0.0/src/trsp/src/trsp.c:467: warning: assignment
makes pointer from integer without a cast
/home/mvictoria/pgrouting-2.0.0/src/trsp/src/trsp.c:469: warning: assignment
makes pointer from integer without a cast
/home/mvictoria/pgrouting-2.0.0/src/trsp/src/trsp.c:478: error: expected ‘;’
before ‘tupdesc’
/home/mvictoria/pgrouting-2.0.0/src/trsp/src/trsp.c:481: error: expected ‘;’
before ‘tuple’
/home/mvictoria/pgrouting-2.0.0/src/trsp/src/trsp.c:509: error: ‘directed’
undeclared (first use in this function)
/home/mvictoria/pgrouting-2.0.0/src/trsp/src/trsp.c:510: warning: passing
argument 9 of ‘trsp_node_wrapper’ from incompatible pointer type
/home/mvictoria/pgrouting-2.0.0/src/trsp/src/trsp.h:57: note: expected ‘char
**’ but argument is of type ‘struct path_element_t **’
/home/mvictoria/pgrouting-2.0.0/src/trsp/src/trsp.c:510: error: too many
arguments to function ‘trsp_node_wrapper’
/home/mvictoria/pgrouting-2.0.0/src/trsp/src/trsp.c:518: warning: passing
argument 11 of ‘trsp_edge_wrapper’ from incompatible pointer type
/home/mvictoria/pgrouting-2.0.0/src/trsp/src/trsp.h:75: note: expected ‘char
**’ but argument is of type ‘struct path_element_t **’
/home/mvictoria/pgrouting-2.0.0/src/trsp/src/trsp.c:518: error: too many
arguments to function ‘trsp_edge_wrapper’
/home/mvictoria/pgrouting-2.0.0/src/trsp/src/trsp.c:542: error:
‘ERRCODE_E_R_E_CONTAINING_SQL_NOT_PERMITTED’ undeclared (first use in this
function)
/home/mvictoria/pgrouting-2.0.0/src/trsp/src/trsp.c: At top level:
/home/mvictoria/pgrouting-2.0.0/src/trsp/src/trsp.c:551: warning: data
definition has no type or storage class
/home/mvictoria/pgrouting-2.0.0/src/trsp/src/trsp.c:551: warning: parameter
names (without types) in function declaration
/home/mvictoria/pgrouting-2.0.0/src/trsp/src/trsp.c:553: error: expected
‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before
‘turn_restrict_shortest_path_vertex’
/home/mvictoria/pgrouting-2.0.0/src/trsp/src/trsp.c:676: warning: data
definition has no type or storage class
/home/mvictoria/pgrouting-2.0.0/src/trsp/src/trsp.c:676: warning: parameter
names (without types) in function declaration
/home/mvictoria/pgrouting-2.0.0/src/trsp/src/trsp.c:678: error: expected
‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before
‘turn_restrict_shortest_path_edge’
make[2]: *** [src/trsp/src/CMakeFiles/trsp.dir/trsp.c.o] Error 1
make[1]: *** [src/trsp/src/CMakeFiles/trsp.dir/all] Error 2
make: *** [all] Error 2
Can anybody help me?
Tanks
--
View this message in context: http://pgrouting-users.974093.n3.nabble.com/error-make-in-trsp-c-can-not-find-postgres-h-tp4025496.html
Sent from the pgRouting-users mailing list archive at Nabble.com.
More information about the Pgrouting-users
mailing list