[pgrouting-users] Complilation Errors on Tps and Disjkstra

Hi everybody
On CentOs 5 (french version).
Why all this errors after the "make install" for Tps and dijkstra?
Can someone help me ?

Thanks !

ERROR [root@bnetd pgrouting]# make install

[ 8%] Building C object extra/tsp/src/CMakeFiles/routing_tsp.dir/tsp.o
Dans le fichier inclus à partir de
/home/sekedoua/pgrouting/extra/tsp/src/tsp.c:22:
/home/sekedoua/pgrouting/extra/tsp/src/tsp.h:25:22: erreur: postgres.h
: Aucun fichier ou répertoire de ce type Dans le fichier inclus à
partir de /home/sekedoua/pgrouting/extra/tsp/src/tsp.h:26, à partir de
/home/sekedoua/pgrouting/extra/tsp/src/tsp.c:22:
/home/sekedoua/pgrouting/core/src/dijkstra.h:25:22: erreur: postgres.h
: Aucun fichier ou répertoire de ce type In file included from
/home/sekedoua/pgrouting/extra/tsp/src/tsp.h:26, from
/home/sekedoua/pgrouting/extra/tsp/src/tsp.c:22:
/home/sekedoua/pgrouting/core/src/dijkstra.h:32: erreur: expected
specifier-qualifier-list before ‘float8’
/home/sekedoua/pgrouting/core/src/dijkstra.h:40: erreur: expected
specifier-qualifier-list before ‘float8’
/home/sekedoua/pgrouting/core/src/dijkstra.h:47: erreur: expected
declaration specifiers or ‘...’ before ‘bool’
/home/sekedoua/pgrouting/core/src/dijkstra.h:47: erreur: expected
declaration specifiers or ‘...’ before ‘bool’ In file included from
/home/sekedoua/pgrouting/extra/tsp/src/tsp.c:22:
/home/sekedoua/pgrouting/extra/tsp/src/tsp.h:31: erreur: expected
specifier-qualifier-list before ‘float8’
/home/sekedoua/pgrouting/extra/tsp/src/tsp.c:25:26: erreur:
executor/spi.h : Aucun fichier ou répertoire de ce type
/home/sekedoua/pgrouting/extra/tsp/src/tsp.c:26:21: erreur: funcapi.h
: Aucun fichier ou répertoire de ce type
/home/sekedoua/pgrouting/extra/tsp/src/tsp.c:27:29: erreur:
catalog/pg_type.h : Aucun fichier ou répertoire de ce type
/home/sekedoua/pgrouting/extra/tsp/src/tsp.c:32:18: erreur: fmgr.h :
Aucun fichier ou répertoire de ce type
/home/sekedoua/pgrouting/extra/tsp/src/tsp.c:73: erreur: expected ‘=’,
‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘tsp’
/home/sekedoua/pgrouting/extra/tsp/src/tsp.c:98: erreur: expected ‘)’
before ‘*’ token /home/sekedoua/pgrouting/extra/tsp/src/tsp.c: In
function ‘finish’: /home/sekedoua/pgrouting/extra/tsp/src/tsp.c:111:
erreur: ‘SPI_OK_FINISH’ undeclared (first use in this function)
/home/sekedoua/pgrouting/extra/tsp/src/tsp.c:111: erreur: (Each
undeclared identifier is reported only once
/home/sekedoua/pgrouting/extra/tsp/src/tsp.c:111: erreur: for each
function it appears in.)
/home/sekedoua/pgrouting/extra/tsp/src/tsp.c:113: erreur: ‘ERROR’
undeclared (first use in this function)
/home/sekedoua/pgrouting/extra/tsp/src/tsp.c: Hors de toute fonction :
/home/sekedoua/pgrouting/extra/tsp/src/tsp.c:123: erreur: expected
specifier-qualifier-list before ‘float8’
/home/sekedoua/pgrouting/extra/tsp/src/tsp.c:129: erreur: expected ‘)’
before ‘*’ token /home/sekedoua/pgrouting/extra/tsp/src/tsp.c:152:
erreur: expected ‘)’ before ‘*’ token
/home/sekedoua/pgrouting/extra/tsp/src/tsp.c: In function ‘solve_tsp’:
/home/sekedoua/pgrouting/extra/tsp/src/tsp.c:194: erreur: ‘Portal’
undeclared (first use in this function)
/home/sekedoua/pgrouting/extra/tsp/src/tsp.c:194: erreur: expected ‘;’
before ‘SPIportal’ /home/sekedoua/pgrouting/extra/tsp/src/tsp.c:195:
erreur: ‘bool’ undeclared (first use in this function)
/home/sekedoua/pgrouting/extra/tsp/src/tsp.c:195: erreur: expected ‘;’
before ‘moredata’ /home/sekedoua/pgrouting/extra/tsp/src/tsp.c:202:
erreur: unknown field ‘x’ specified in initializer
/home/sekedoua/pgrouting/extra/tsp/src/tsp.c:202: attention : éléments
en excès dans l'initialisation de la structure
/home/sekedoua/pgrouting/extra/tsp/src/tsp.c:202: attention : (near
initialization for ‘point_columns’)
/home/sekedoua/pgrouting/extra/tsp/src/tsp.c:202: erreur: unknown
field ‘y’ specified in initializer
/home/sekedoua/pgrouting/extra/tsp/src/tsp.c:202: attention : éléments
en excès dans l'initialisation de la structure
/home/sekedoua/pgrouting/extra/tsp/src/tsp.c:202: attention : (near
initialization for ‘point_columns’)
/home/sekedoua/pgrouting/extra/tsp/src/tsp.c:228: erreur: ‘ERROR’
undeclared (first use in this function)
/home/sekedoua/pgrouting/extra/tsp/src/tsp.c:238: erreur:
‘SPI_OK_CONNECT’ undeclared (first use in this function)
/home/sekedoua/pgrouting/extra/tsp/src/tsp.c:244: attention :
assignment makes pointer from integer without a cast
/home/sekedoua/pgrouting/extra/tsp/src/tsp.c:252: erreur: ‘SPIportal’
undeclared (first use in this function)
/home/sekedoua/pgrouting/extra/tsp/src/tsp.c:252: erreur: ‘true’
undeclared (first use in this function)
/home/sekedoua/pgrouting/extra/tsp/src/tsp.c:261: erreur: ‘moredata’
undeclared (first use in this function)
/home/sekedoua/pgrouting/extra/tsp/src/tsp.c:261: erreur: ‘TRUE’
undeclared (first use in this function)
/home/sekedoua/pgrouting/extra/tsp/src/tsp.c:267: erreur:
‘SPI_tuptable’ undeclared (first use in this function)
/home/sekedoua/pgrouting/extra/tsp/src/tsp.c:271: erreur:
‘SPI_processed’ undeclared (first use in this function)
/home/sekedoua/pgrouting/extra/tsp/src/tsp.c:278: attention :
assignment makes pointer from integer without a cast
/home/sekedoua/pgrouting/extra/tsp/src/tsp.c:280: attention :
assignment makes pointer from integer without a cast
/home/sekedoua/pgrouting/extra/tsp/src/tsp.c:291: erreur:
‘SPITupleTable’ undeclared (first use in this function)
/home/sekedoua/pgrouting/extra/tsp/src/tsp.c:291: erreur: ‘tuptable’
undeclared (first use in this function)
/home/sekedoua/pgrouting/extra/tsp/src/tsp.c:292: erreur: ‘TupleDesc’
undeclared (first use in this function)
/home/sekedoua/pgrouting/extra/tsp/src/tsp.c:292: erreur: expected ‘;’
before ‘tupdesc’ /home/sekedoua/pgrouting/extra/tsp/src/tsp.c:298:
erreur: ‘HeapTuple’ undeclared (first use in this function)
/home/sekedoua/pgrouting/extra/tsp/src/tsp.c:298: erreur: expected ‘;’
before ‘tuple’ /home/sekedoua/pgrouting/extra/tsp/src/tsp.c:300:
erreur: ‘tuple’ undeclared (first use in this function)
/home/sekedoua/pgrouting/extra/tsp/src/tsp.c:300: erreur: ‘tupdesc’
undeclared (first use in this function)
/home/sekedoua/pgrouting/extra/tsp/src/tsp.c:309: erreur: ‘FALSE’
undeclared (first use in this function)
/home/sekedoua/pgrouting/extra/tsp/src/tsp.c:325: erreur: ‘point_t’
has no member named ‘x’
/home/sekedoua/pgrouting/extra/tsp/src/tsp.c:326: erreur: ‘point_t’
has no member named ‘y’
/home/sekedoua/pgrouting/extra/tsp/src/tsp.c:364: erreur:
‘ERRCODE_E_R_E_CONTAINING_SQL_NOT_PERMITTED’ undeclared (first use in
this function) /home/sekedoua/pgrouting/extra/tsp/src/tsp.c: Hors de
toute fonction : /home/sekedoua/pgrouting/extra/tsp/src/tsp.c:370:
attention : la définition de données n'a pas de type ni de classe de
stockage /home/sekedoua/pgrouting/extra/tsp/src/tsp.c:370: attention :
noms de paramètres (sans type) dans la déclaration de fonction
/home/sekedoua/pgrouting/extra/tsp/src/tsp.c:372: erreur: expected
‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘tsp’ make[2]: ***
[extra/tsp/src/CMakeFiles/routing_tsp.dir/tsp.o] Erreur 1 make[1]: ***
[extra/tsp/src/CMakeFiles/routing_tsp.dir/all] Erreur 2 make: ***

2011/7/29, Ricardo Bayley <ricardo.bayley@gmail.com>:

Hi folks,

On the pgRouting website, it says that the latest compiled windows binaries
are for pg8.4.2
Is this strictily for 8.4.2 or for all the 8.4.x series ?

best regards

Ricardo

--
*
*

Your first error is most likely the issue. The build system can not find postgres.h which is the postgresql development header file. You need to install the postgresql development files to build pgRouting. So you might need to do something like:

sudo yum install postgresql-devel

You need to make sure you all the dependencies installed.

-Steve

On 7/30/2011 6:18 AM, Jules Kouadio wrote:

Hi everybody
On CentOs 5 (french version).
Why all this errors after the "make install" for Tps and dijkstra?
Can someone help me ?

Thanks !

ERROR [root@bnetd pgrouting]# make install

[ 8%] Building C object extra/tsp/src/CMakeFiles/routing_tsp.dir/tsp.o
Dans le fichier inclus à partir de
/home/sekedoua/pgrouting/extra/tsp/src/tsp.c:22:
/home/sekedoua/pgrouting/extra/tsp/src/tsp.h:25:22: erreur: postgres.h
: Aucun fichier ou répertoire de ce type Dans le fichier inclus à
partir de /home/sekedoua/pgrouting/extra/tsp/src/tsp.h:26, à partir de
/home/sekedoua/pgrouting/extra/tsp/src/tsp.c:22:
/home/sekedoua/pgrouting/core/src/dijkstra.h:25:22: erreur: postgres.h
: Aucun fichier ou répertoire de ce type In file included from
/home/sekedoua/pgrouting/extra/tsp/src/tsp.h:26, from
/home/sekedoua/pgrouting/extra/tsp/src/tsp.c:22:
/home/sekedoua/pgrouting/core/src/dijkstra.h:32: erreur: expected
specifier-qualifier-list before ‘float8’
/home/sekedoua/pgrouting/core/src/dijkstra.h:40: erreur: expected
specifier-qualifier-list before ‘float8’
/home/sekedoua/pgrouting/core/src/dijkstra.h:47: erreur: expected
declaration specifiers or ‘...’ before ‘bool’
/home/sekedoua/pgrouting/core/src/dijkstra.h:47: erreur: expected
declaration specifiers or ‘...’ before ‘bool’ In file included from
/home/sekedoua/pgrouting/extra/tsp/src/tsp.c:22:
/home/sekedoua/pgrouting/extra/tsp/src/tsp.h:31: erreur: expected
specifier-qualifier-list before ‘float8’
/home/sekedoua/pgrouting/extra/tsp/src/tsp.c:25:26: erreur:
executor/spi.h : Aucun fichier ou répertoire de ce type
/home/sekedoua/pgrouting/extra/tsp/src/tsp.c:26:21: erreur: funcapi.h
: Aucun fichier ou répertoire de ce type
/home/sekedoua/pgrouting/extra/tsp/src/tsp.c:27:29: erreur:
catalog/pg_type.h : Aucun fichier ou répertoire de ce type
/home/sekedoua/pgrouting/extra/tsp/src/tsp.c:32:18: erreur: fmgr.h :
Aucun fichier ou répertoire de ce type
/home/sekedoua/pgrouting/extra/tsp/src/tsp.c:73: erreur: expected ‘=’,
‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘tsp’
/home/sekedoua/pgrouting/extra/tsp/src/tsp.c:98: erreur: expected ‘)’
before ‘*’ token /home/sekedoua/pgrouting/extra/tsp/src/tsp.c: In
function ‘finish’: /home/sekedoua/pgrouting/extra/tsp/src/tsp.c:111:
erreur: ‘SPI_OK_FINISH’ undeclared (first use in this function)
/home/sekedoua/pgrouting/extra/tsp/src/tsp.c:111: erreur: (Each
undeclared identifier is reported only once
/home/sekedoua/pgrouting/extra/tsp/src/tsp.c:111: erreur: for each
function it appears in.)
/home/sekedoua/pgrouting/extra/tsp/src/tsp.c:113: erreur: ‘ERROR’
undeclared (first use in this function)
/home/sekedoua/pgrouting/extra/tsp/src/tsp.c: Hors de toute fonction :
/home/sekedoua/pgrouting/extra/tsp/src/tsp.c:123: erreur: expected
specifier-qualifier-list before ‘float8’
/home/sekedoua/pgrouting/extra/tsp/src/tsp.c:129: erreur: expected ‘)’
before ‘*’ token /home/sekedoua/pgrouting/extra/tsp/src/tsp.c:152:
erreur: expected ‘)’ before ‘*’ token
/home/sekedoua/pgrouting/extra/tsp/src/tsp.c: In function ‘solve_tsp’:
/home/sekedoua/pgrouting/extra/tsp/src/tsp.c:194: erreur: ‘Portal’
undeclared (first use in this function)
/home/sekedoua/pgrouting/extra/tsp/src/tsp.c:194: erreur: expected ‘;’
before ‘SPIportal’ /home/sekedoua/pgrouting/extra/tsp/src/tsp.c:195:
erreur: ‘bool’ undeclared (first use in this function)
/home/sekedoua/pgrouting/extra/tsp/src/tsp.c:195: erreur: expected ‘;’
before ‘moredata’ /home/sekedoua/pgrouting/extra/tsp/src/tsp.c:202:
erreur: unknown field ‘x’ specified in initializer
/home/sekedoua/pgrouting/extra/tsp/src/tsp.c:202: attention : éléments
en excès dans l'initialisation de la structure
/home/sekedoua/pgrouting/extra/tsp/src/tsp.c:202: attention : (near
initialization for ‘point_columns’)
/home/sekedoua/pgrouting/extra/tsp/src/tsp.c:202: erreur: unknown
field ‘y’ specified in initializer
/home/sekedoua/pgrouting/extra/tsp/src/tsp.c:202: attention : éléments
en excès dans l'initialisation de la structure
/home/sekedoua/pgrouting/extra/tsp/src/tsp.c:202: attention : (near
initialization for ‘point_columns’)
/home/sekedoua/pgrouting/extra/tsp/src/tsp.c:228: erreur: ‘ERROR’
undeclared (first use in this function)
/home/sekedoua/pgrouting/extra/tsp/src/tsp.c:238: erreur:
‘SPI_OK_CONNECT’ undeclared (first use in this function)
/home/sekedoua/pgrouting/extra/tsp/src/tsp.c:244: attention :
assignment makes pointer from integer without a cast
/home/sekedoua/pgrouting/extra/tsp/src/tsp.c:252: erreur: ‘SPIportal’
undeclared (first use in this function)
/home/sekedoua/pgrouting/extra/tsp/src/tsp.c:252: erreur: ‘true’
undeclared (first use in this function)
/home/sekedoua/pgrouting/extra/tsp/src/tsp.c:261: erreur: ‘moredata’
undeclared (first use in this function)
/home/sekedoua/pgrouting/extra/tsp/src/tsp.c:261: erreur: ‘TRUE’
undeclared (first use in this function)
/home/sekedoua/pgrouting/extra/tsp/src/tsp.c:267: erreur:
‘SPI_tuptable’ undeclared (first use in this function)
/home/sekedoua/pgrouting/extra/tsp/src/tsp.c:271: erreur:
‘SPI_processed’ undeclared (first use in this function)
/home/sekedoua/pgrouting/extra/tsp/src/tsp.c:278: attention :
assignment makes pointer from integer without a cast
/home/sekedoua/pgrouting/extra/tsp/src/tsp.c:280: attention :
assignment makes pointer from integer without a cast
/home/sekedoua/pgrouting/extra/tsp/src/tsp.c:291: erreur:
‘SPITupleTable’ undeclared (first use in this function)
/home/sekedoua/pgrouting/extra/tsp/src/tsp.c:291: erreur: ‘tuptable’
undeclared (first use in this function)
/home/sekedoua/pgrouting/extra/tsp/src/tsp.c:292: erreur: ‘TupleDesc’
undeclared (first use in this function)
/home/sekedoua/pgrouting/extra/tsp/src/tsp.c:292: erreur: expected ‘;’
before ‘tupdesc’ /home/sekedoua/pgrouting/extra/tsp/src/tsp.c:298:
erreur: ‘HeapTuple’ undeclared (first use in this function)
/home/sekedoua/pgrouting/extra/tsp/src/tsp.c:298: erreur: expected ‘;’
before ‘tuple’ /home/sekedoua/pgrouting/extra/tsp/src/tsp.c:300:
erreur: ‘tuple’ undeclared (first use in this function)
/home/sekedoua/pgrouting/extra/tsp/src/tsp.c:300: erreur: ‘tupdesc’
undeclared (first use in this function)
/home/sekedoua/pgrouting/extra/tsp/src/tsp.c:309: erreur: ‘FALSE’
undeclared (first use in this function)
/home/sekedoua/pgrouting/extra/tsp/src/tsp.c:325: erreur: ‘point_t’
has no member named ‘x’
/home/sekedoua/pgrouting/extra/tsp/src/tsp.c:326: erreur: ‘point_t’
has no member named ‘y’
/home/sekedoua/pgrouting/extra/tsp/src/tsp.c:364: erreur:
‘ERRCODE_E_R_E_CONTAINING_SQL_NOT_PERMITTED’ undeclared (first use in
this function) /home/sekedoua/pgrouting/extra/tsp/src/tsp.c: Hors de
toute fonction : /home/sekedoua/pgrouting/extra/tsp/src/tsp.c:370:
attention : la définition de données n'a pas de type ni de classe de
stockage /home/sekedoua/pgrouting/extra/tsp/src/tsp.c:370: attention :
noms de paramètres (sans type) dans la déclaration de fonction
/home/sekedoua/pgrouting/extra/tsp/src/tsp.c:372: erreur: expected
‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘tsp’ make[2]: ***
[extra/tsp/src/CMakeFiles/routing_tsp.dir/tsp.o] Erreur 1 make[1]: ***
[extra/tsp/src/CMakeFiles/routing_tsp.dir/all] Erreur 2 make: ***

2011/7/29, Ricardo Bayley<ricardo.bayley@gmail.com>:

Hi folks,

On the pgRouting website, it says that the latest compiled windows binaries
are for pg8.4.2
Is this strictily for 8.4.2 or for all the 8.4.x series ?

best regards

Ricardo

If you don’t want to compile yourself, you can add the ELGIS repository to install the pgRouting package for CentOS:
http://wiki.osgeo.org/wiki/Enterprise_Linux_GIS

Daniel

On Sat, Jul 30, 2011 at 11:19 PM, Stephen Woodbridge <woodbri@swoodbridge.com> wrote:

Your first error is most likely the issue. The build system can not find postgres.h which is the postgresql development header file. You need to install the postgresql development files to build pgRouting. So you might need to do something like:

sudo yum install postgresql-devel

You need to make sure you all the dependencies installed.

-Steve

On 7/30/2011 6:18 AM, Jules Kouadio wrote:

Hi everybody
On CentOs 5 (french version).
Why all this errors after the “make install” for Tps and dijkstra?
Can someone help me ?

Thanks !

ERROR [root@bnetd pgrouting]# make install

[ 8%] Building C object extra/tsp/src/CMakeFiles/routing_tsp.dir/tsp.o
Dans le fichier inclus à partir de
/home/sekedoua/pgrouting/extra/tsp/src/tsp.c:22:
/home/sekedoua/pgrouting/extra/tsp/src/tsp.h:25:22: erreur: postgres.h
: Aucun fichier ou répertoire de ce type Dans le fichier inclus à
partir de /home/sekedoua/pgrouting/extra/tsp/src/tsp.h:26, à partir de
/home/sekedoua/pgrouting/extra/tsp/src/tsp.c:22:
/home/sekedoua/pgrouting/core/src/dijkstra.h:25:22: erreur: postgres.h
: Aucun fichier ou répertoire de ce type In file included from
/home/sekedoua/pgrouting/extra/tsp/src/tsp.h:26, from
/home/sekedoua/pgrouting/extra/tsp/src/tsp.c:22:
/home/sekedoua/pgrouting/core/src/dijkstra.h:32: erreur: expected
specifier-qualifier-list before ‘float8’
/home/sekedoua/pgrouting/core/src/dijkstra.h:40: erreur: expected
specifier-qualifier-list before ‘float8’
/home/sekedoua/pgrouting/core/src/dijkstra.h:47: erreur: expected
declaration specifiers or ‘…’ before ‘bool’
/home/sekedoua/pgrouting/core/src/dijkstra.h:47: erreur: expected
declaration specifiers or ‘…’ before ‘bool’ In file included from
/home/sekedoua/pgrouting/extra/tsp/src/tsp.c:22:
/home/sekedoua/pgrouting/extra/tsp/src/tsp.h:31: erreur: expected
specifier-qualifier-list before ‘float8’
/home/sekedoua/pgrouting/extra/tsp/src/tsp.c:25:26: erreur:
executor/spi.h : Aucun fichier ou répertoire de ce type
/home/sekedoua/pgrouting/extra/tsp/src/tsp.c:26:21: erreur: funcapi.h
: Aucun fichier ou répertoire de ce type
/home/sekedoua/pgrouting/extra/tsp/src/tsp.c:27:29: erreur:
catalog/pg_type.h : Aucun fichier ou répertoire de ce type
/home/sekedoua/pgrouting/extra/tsp/src/tsp.c:32:18: erreur: fmgr.h :
Aucun fichier ou répertoire de ce type
/home/sekedoua/pgrouting/extra/tsp/src/tsp.c:73: erreur: expected ‘=’,
‘,’, ‘;’, ‘asm’ or ‘attribute’ before ‘tsp’
/home/sekedoua/pgrouting/extra/tsp/src/tsp.c:98: erreur: expected ‘)’
before ‘’ token /home/sekedoua/pgrouting/extra/tsp/src/tsp.c: In
function ‘finish’: /home/sekedoua/pgrouting/extra/tsp/src/tsp.c:111:
erreur: ‘SPI_OK_FINISH’ undeclared (first use in this function)
/home/sekedoua/pgrouting/extra/tsp/src/tsp.c:111: erreur: (Each
undeclared identifier is reported only once
/home/sekedoua/pgrouting/extra/tsp/src/tsp.c:111: erreur: for each
function it appears in.)
/home/sekedoua/pgrouting/extra/tsp/src/tsp.c:113: erreur: ‘ERROR’
undeclared (first use in this function)
/home/sekedoua/pgrouting/extra/tsp/src/tsp.c: Hors de toute fonction :
/home/sekedoua/pgrouting/extra/tsp/src/tsp.c:123: erreur: expected
specifier-qualifier-list before ‘float8’
/home/sekedoua/pgrouting/extra/tsp/src/tsp.c:129: erreur: expected ‘)’
before ‘
’ token /home/sekedoua/pgrouting/extra/tsp/src/tsp.c:152:
erreur: expected ‘)’ before ‘*’ token
/home/sekedoua/pgrouting/extra/tsp/src/tsp.c: In function ‘solve_tsp’:
/home/sekedoua/pgrouting/extra/tsp/src/tsp.c:194: erreur: ‘Portal’
undeclared (first use in this function)
/home/sekedoua/pgrouting/extra/tsp/src/tsp.c:194: erreur: expected ‘;’
before ‘SPIportal’ /home/sekedoua/pgrouting/extra/tsp/src/tsp.c:195:
erreur: ‘bool’ undeclared (first use in this function)
/home/sekedoua/pgrouting/extra/tsp/src/tsp.c:195: erreur: expected ‘;’
before ‘moredata’ /home/sekedoua/pgrouting/extra/tsp/src/tsp.c:202:
erreur: unknown field ‘x’ specified in initializer
/home/sekedoua/pgrouting/extra/tsp/src/tsp.c:202: attention : éléments
en excès dans l’initialisation de la structure
/home/sekedoua/pgrouting/extra/tsp/src/tsp.c:202: attention : (near
initialization for ‘point_columns’)
/home/sekedoua/pgrouting/extra/tsp/src/tsp.c:202: erreur: unknown
field ‘y’ specified in initializer
/home/sekedoua/pgrouting/extra/tsp/src/tsp.c:202: attention : éléments
en excès dans l’initialisation de la structure
/home/sekedoua/pgrouting/extra/tsp/src/tsp.c:202: attention : (near
initialization for ‘point_columns’)
/home/sekedoua/pgrouting/extra/tsp/src/tsp.c:228: erreur: ‘ERROR’
undeclared (first use in this function)
/home/sekedoua/pgrouting/extra/tsp/src/tsp.c:238: erreur:
‘SPI_OK_CONNECT’ undeclared (first use in this function)
/home/sekedoua/pgrouting/extra/tsp/src/tsp.c:244: attention :
assignment makes pointer from integer without a cast
/home/sekedoua/pgrouting/extra/tsp/src/tsp.c:252: erreur: ‘SPIportal’
undeclared (first use in this function)
/home/sekedoua/pgrouting/extra/tsp/src/tsp.c:252: erreur: ‘true’
undeclared (first use in this function)
/home/sekedoua/pgrouting/extra/tsp/src/tsp.c:261: erreur: ‘moredata’
undeclared (first use in this function)
/home/sekedoua/pgrouting/extra/tsp/src/tsp.c:261: erreur: ‘TRUE’
undeclared (first use in this function)
/home/sekedoua/pgrouting/extra/tsp/src/tsp.c:267: erreur:
‘SPI_tuptable’ undeclared (first use in this function)
/home/sekedoua/pgrouting/extra/tsp/src/tsp.c:271: erreur:
‘SPI_processed’ undeclared (first use in this function)
/home/sekedoua/pgrouting/extra/tsp/src/tsp.c:278: attention :
assignment makes pointer from integer without a cast
/home/sekedoua/pgrouting/extra/tsp/src/tsp.c:280: attention :
assignment makes pointer from integer without a cast
/home/sekedoua/pgrouting/extra/tsp/src/tsp.c:291: erreur:
‘SPITupleTable’ undeclared (first use in this function)
/home/sekedoua/pgrouting/extra/tsp/src/tsp.c:291: erreur: ‘tuptable’
undeclared (first use in this function)
/home/sekedoua/pgrouting/extra/tsp/src/tsp.c:292: erreur: ‘TupleDesc’
undeclared (first use in this function)
/home/sekedoua/pgrouting/extra/tsp/src/tsp.c:292: erreur: expected ‘;’
before ‘tupdesc’ /home/sekedoua/pgrouting/extra/tsp/src/tsp.c:298:
erreur: ‘HeapTuple’ undeclared (first use in this function)
/home/sekedoua/pgrouting/extra/tsp/src/tsp.c:298: erreur: expected ‘;’
before ‘tuple’ /home/sekedoua/pgrouting/extra/tsp/src/tsp.c:300:
erreur: ‘tuple’ undeclared (first use in this function)
/home/sekedoua/pgrouting/extra/tsp/src/tsp.c:300: erreur: ‘tupdesc’
undeclared (first use in this function)
/home/sekedoua/pgrouting/extra/tsp/src/tsp.c:309: erreur: ‘FALSE’
undeclared (first use in this function)
/home/sekedoua/pgrouting/extra/tsp/src/tsp.c:325: erreur: ‘point_t’
has no member named ‘x’
/home/sekedoua/pgrouting/extra/tsp/src/tsp.c:326: erreur: ‘point_t’
has no member named ‘y’
/home/sekedoua/pgrouting/extra/tsp/src/tsp.c:364: erreur:
‘ERRCODE_E_R_E_CONTAINING_SQL_NOT_PERMITTED’ undeclared (first use in
this function) /home/sekedoua/pgrouting/extra/tsp/src/tsp.c: Hors de
toute fonction : /home/sekedoua/pgrouting/extra/tsp/src/tsp.c:370:
attention : la définition de données n’a pas de type ni de classe de
stockage /home/sekedoua/pgrouting/extra/tsp/src/tsp.c:370: attention :
noms de paramètres (sans type) dans la déclaration de fonction
/home/sekedoua/pgrouting/extra/tsp/src/tsp.c:372: erreur: expected
‘=’, ‘,’, ‘;’, ‘asm’ or ‘attribute’ before ‘tsp’ make[2]: ***
[extra/tsp/src/CMakeFiles/routing_tsp.dir/tsp.o] Erreur 1 make[1]: ***
[extra/tsp/src/CMakeFiles/routing_tsp.dir/all] Erreur 2 make: ***

2011/7/29, Ricardo Bayley<ricardo.bayley@gmail.com>:

Hi folks,

On the pgRouting website, it says that the latest compiled windows binaries
are for pg8.4.2
Is this strictily for 8.4.2 or for all the 8.4.x series ?

best regards

Ricardo


Pgrouting-users mailing list
Pgrouting-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/pgrouting-users


Georepublic UG & Georepublic Japan
eMail: daniel.kastl@georepublic.de
Web: http://georepublic.de

Hi.
I’ve always the same errors after the make install

make install
[ 8%] Building C object extra/tsp/src/CMakeFiles/routing_tsp.dir/tsp.o
In file included from /home/sekedoua/pgrouting/extra/tsp/src/tsp.h:25,
from /home/sekedoua/pgrouting/extra/tsp/src/tsp.c:22:
/home/sekedoua/pgrouting/extra/tsp/src/postgres.h:477: erreur: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘attribute’ before ‘bool’
Dans le fichier inclus à partir de /usr/local/pgsql/include/server/catalog/pg_attribute.h:22,
à partir de /usr/local/pgsql/include/server/access/tupdesc.h:18,
à partir de /usr/local/pgsql/include/server/utils/relcache.h:17,
à partir de /usr/local/pgsql/include/server/access/genam.h:22,
à partir de /usr/local/pgsql/include/server/nodes/execnodes.h:17,
à partir de /usr/local/pgsql/include/server/executor/execdesc.h:18,
à partir de /usr/local/pgsql/include/server/utils/portal.h:49,
à partir de /usr/local/pgsql/include/server/executor/spi.h:17,
à partir de /home/sekedoua/pgrouting/extra/tsp/src/tsp.c:25:
/usr/local/pgsql/include/server/catalog/genbki.h:23:1: attention : « CATALOG » redéfini
Dans le fichier inclus à partir de /home/sekedoua/pgrouting/extra/tsp/src/tsp.h:25,
à partir de /home/sekedoua/pgrouting/extra/tsp/src/tsp.c:22:
/home/sekedoua/pgrouting/extra/tsp/src/postgres.h:537:1: attention : ceci est la localisation d’une précédente définition
In file included from /usr/local/pgsql/include/server/catalog/pg_attribute.h:22,
from /usr/local/pgsql/include/server/access/tupdesc.h:18,
from /usr/local/pgsql/include/server/utils/relcache.h:17,
from /usr/local/pgsql/include/server/access/genam.h:22,
from /usr/local/pgsql/include/server/nodes/execnodes.h:17,
from /usr/local/pgsql/include/server/executor/execdesc.h:18,
from /usr/local/pgsql/include/server/utils/portal.h:49,
from /usr/local/pgsql/include/server/executor/spi.h:17,
from /home/sekedoua/pgrouting/extra/tsp/src/tsp.c:25:
/usr/local/pgsql/include/server/catalog/genbki.h:39: erreur: redefinition of typedef ‘aclitem’
/home/sekedoua/pgrouting/extra/tsp/src/postgres.h:550: erreur: previous declaration of ‘aclitem’ was here
make[2]: *** [extra/tsp/src/CMakeFiles/routing_tsp.dir/tsp.o] Erreur 1
make[1]: *** [extra/tsp/src/CMakeFiles/routing_tsp.dir/all] Erreur 2
make: *** [all] Erreur 2

2011/7/30 Stephen Woodbridge <woodbri@swoodbridge.com>

Your first error is most likely the issue. The build system can not find postgres.h which is the postgresql development header file. You need to install the postgresql development files to build pgRouting. So you might need to do something like:

sudo yum install postgresql-devel

You need to make sure you all the dependencies installed.

-Steve

On 7/30/2011 6:18 AM, Jules Kouadio wrote:

Hi everybody
On CentOs 5 (french version).
Why all this errors after the “make install” for Tps and dijkstra?
Can someone help me ?

Thanks !

ERROR [root@bnetd pgrouting]# make install

[ 8%] Building C object extra/tsp/src/CMakeFiles/routing_tsp.dir/tsp.o
Dans le fichier inclus à partir de
/home/sekedoua/pgrouting/extra/tsp/src/tsp.c:22:
/home/sekedoua/pgrouting/extra/tsp/src/tsp.h:25:22: erreur: postgres.h
: Aucun fichier ou répertoire de ce type Dans le fichier inclus à
partir de /home/sekedoua/pgrouting/extra/tsp/src/tsp.h:26, à partir de
/home/sekedoua/pgrouting/extra/tsp/src/tsp.c:22:
/home/sekedoua/pgrouting/core/src/dijkstra.h:25:22: erreur: postgres.h
: Aucun fichier ou répertoire de ce type In file included from
/home/sekedoua/pgrouting/extra/tsp/src/tsp.h:26, from
/home/sekedoua/pgrouting/extra/tsp/src/tsp.c:22:
/home/sekedoua/pgrouting/core/src/dijkstra.h:32: erreur: expected
specifier-qualifier-list before ‘float8’
/home/sekedoua/pgrouting/core/src/dijkstra.h:40: erreur: expected
specifier-qualifier-list before ‘float8’
/home/sekedoua/pgrouting/core/src/dijkstra.h:47: erreur: expected
declaration specifiers or ‘…’ before ‘bool’
/home/sekedoua/pgrouting/core/src/dijkstra.h:47: erreur: expected
declaration specifiers or ‘…’ before ‘bool’ In file included from
/home/sekedoua/pgrouting/extra/tsp/src/tsp.c:22:
/home/sekedoua/pgrouting/extra/tsp/src/tsp.h:31: erreur: expected
specifier-qualifier-list before ‘float8’
/home/sekedoua/pgrouting/extra/tsp/src/tsp.c:25:26: erreur:
executor/spi.h : Aucun fichier ou répertoire de ce type
/home/sekedoua/pgrouting/extra/tsp/src/tsp.c:26:21: erreur: funcapi.h
: Aucun fichier ou répertoire de ce type
/home/sekedoua/pgrouting/extra/tsp/src/tsp.c:27:29: erreur:
catalog/pg_type.h : Aucun fichier ou répertoire de ce type
/home/sekedoua/pgrouting/extra/tsp/src/tsp.c:32:18: erreur: fmgr.h :
Aucun fichier ou répertoire de ce type
/home/sekedoua/pgrouting/extra/tsp/src/tsp.c:73: erreur: expected ‘=’,
‘,’, ‘;’, ‘asm’ or ‘attribute’ before ‘tsp’
/home/sekedoua/pgrouting/extra/tsp/src/tsp.c:98: erreur: expected ‘)’
before ‘’ token /home/sekedoua/pgrouting/extra/tsp/src/tsp.c: In
function ‘finish’: /home/sekedoua/pgrouting/extra/tsp/src/tsp.c:111:
erreur: ‘SPI_OK_FINISH’ undeclared (first use in this function)
/home/sekedoua/pgrouting/extra/tsp/src/tsp.c:111: erreur: (Each
undeclared identifier is reported only once
/home/sekedoua/pgrouting/extra/tsp/src/tsp.c:111: erreur: for each
function it appears in.)
/home/sekedoua/pgrouting/extra/tsp/src/tsp.c:113: erreur: ‘ERROR’
undeclared (first use in this function)
/home/sekedoua/pgrouting/extra/tsp/src/tsp.c: Hors de toute fonction :
/home/sekedoua/pgrouting/extra/tsp/src/tsp.c:123: erreur: expected
specifier-qualifier-list before ‘float8’
/home/sekedoua/pgrouting/extra/tsp/src/tsp.c:129: erreur: expected ‘)’
before ‘
’ token /home/sekedoua/pgrouting/extra/tsp/src/tsp.c:152:
erreur: expected ‘)’ before ‘*’ token
/home/sekedoua/pgrouting/extra/tsp/src/tsp.c: In function ‘solve_tsp’:
/home/sekedoua/pgrouting/extra/tsp/src/tsp.c:194: erreur: ‘Portal’
undeclared (first use in this function)
/home/sekedoua/pgrouting/extra/tsp/src/tsp.c:194: erreur: expected ‘;’
before ‘SPIportal’ /home/sekedoua/pgrouting/extra/tsp/src/tsp.c:195:
erreur: ‘bool’ undeclared (first use in this function)
/home/sekedoua/pgrouting/extra/tsp/src/tsp.c:195: erreur: expected ‘;’
before ‘moredata’ /home/sekedoua/pgrouting/extra/tsp/src/tsp.c:202:
erreur: unknown field ‘x’ specified in initializer
/home/sekedoua/pgrouting/extra/tsp/src/tsp.c:202: attention : éléments
en excès dans l’initialisation de la structure
/home/sekedoua/pgrouting/extra/tsp/src/tsp.c:202: attention : (near
initialization for ‘point_columns’)
/home/sekedoua/pgrouting/extra/tsp/src/tsp.c:202: erreur: unknown
field ‘y’ specified in initializer
/home/sekedoua/pgrouting/extra/tsp/src/tsp.c:202: attention : éléments
en excès dans l’initialisation de la structure
/home/sekedoua/pgrouting/extra/tsp/src/tsp.c:202: attention : (near
initialization for ‘point_columns’)
/home/sekedoua/pgrouting/extra/tsp/src/tsp.c:228: erreur: ‘ERROR’
undeclared (first use in this function)
/home/sekedoua/pgrouting/extra/tsp/src/tsp.c:238: erreur:
‘SPI_OK_CONNECT’ undeclared (first use in this function)
/home/sekedoua/pgrouting/extra/tsp/src/tsp.c:244: attention :
assignment makes pointer from integer without a cast
/home/sekedoua/pgrouting/extra/tsp/src/tsp.c:252: erreur: ‘SPIportal’
undeclared (first use in this function)
/home/sekedoua/pgrouting/extra/tsp/src/tsp.c:252: erreur: ‘true’
undeclared (first use in this function)
/home/sekedoua/pgrouting/extra/tsp/src/tsp.c:261: erreur: ‘moredata’
undeclared (first use in this function)
/home/sekedoua/pgrouting/extra/tsp/src/tsp.c:261: erreur: ‘TRUE’
undeclared (first use in this function)
/home/sekedoua/pgrouting/extra/tsp/src/tsp.c:267: erreur:
‘SPI_tuptable’ undeclared (first use in this function)
/home/sekedoua/pgrouting/extra/tsp/src/tsp.c:271: erreur:
‘SPI_processed’ undeclared (first use in this function)
/home/sekedoua/pgrouting/extra/tsp/src/tsp.c:278: attention :
assignment makes pointer from integer without a cast
/home/sekedoua/pgrouting/extra/tsp/src/tsp.c:280: attention :
assignment makes pointer from integer without a cast
/home/sekedoua/pgrouting/extra/tsp/src/tsp.c:291: erreur:
‘SPITupleTable’ undeclared (first use in this function)
/home/sekedoua/pgrouting/extra/tsp/src/tsp.c:291: erreur: ‘tuptable’
undeclared (first use in this function)
/home/sekedoua/pgrouting/extra/tsp/src/tsp.c:292: erreur: ‘TupleDesc’
undeclared (first use in this function)
/home/sekedoua/pgrouting/extra/tsp/src/tsp.c:292: erreur: expected ‘;’
before ‘tupdesc’ /home/sekedoua/pgrouting/extra/tsp/src/tsp.c:298:
erreur: ‘HeapTuple’ undeclared (first use in this function)
/home/sekedoua/pgrouting/extra/tsp/src/tsp.c:298: erreur: expected ‘;’
before ‘tuple’ /home/sekedoua/pgrouting/extra/tsp/src/tsp.c:300:
erreur: ‘tuple’ undeclared (first use in this function)
/home/sekedoua/pgrouting/extra/tsp/src/tsp.c:300: erreur: ‘tupdesc’
undeclared (first use in this function)
/home/sekedoua/pgrouting/extra/tsp/src/tsp.c:309: erreur: ‘FALSE’
undeclared (first use in this function)
/home/sekedoua/pgrouting/extra/tsp/src/tsp.c:325: erreur: ‘point_t’
has no member named ‘x’
/home/sekedoua/pgrouting/extra/tsp/src/tsp.c:326: erreur: ‘point_t’
has no member named ‘y’
/home/sekedoua/pgrouting/extra/tsp/src/tsp.c:364: erreur:
‘ERRCODE_E_R_E_CONTAINING_SQL_NOT_PERMITTED’ undeclared (first use in
this function) /home/sekedoua/pgrouting/extra/tsp/src/tsp.c: Hors de
toute fonction : /home/sekedoua/pgrouting/extra/tsp/src/tsp.c:370:
attention : la définition de données n’a pas de type ni de classe de
stockage /home/sekedoua/pgrouting/extra/tsp/src/tsp.c:370: attention :
noms de paramètres (sans type) dans la déclaration de fonction
/home/sekedoua/pgrouting/extra/tsp/src/tsp.c:372: erreur: expected
‘=’, ‘,’, ‘;’, ‘asm’ or ‘attribute’ before ‘tsp’ make[2]: ***
[extra/tsp/src/CMakeFiles/routing_tsp.dir/tsp.o] Erreur 1 make[1]: ***
[extra/tsp/src/CMakeFiles/routing_tsp.dir/all] Erreur 2 make: ***

2011/7/29, Ricardo Bayley<ricardo.bayley@gmail.com>:

Hi folks,

On the pgRouting website, it says that the latest compiled windows binaries
are for pg8.4.2
Is this strictily for 8.4.2 or for all the 8.4.x series ?

best regards

Ricardo


Pgrouting-users mailing list
Pgrouting-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/pgrouting-users


Hi Jules,

Do you have GAUL library installed? It’s required for TSP.
Otherwise, is there a reason not to use packages from here: http://wiki.osgeo.org/wiki/Enterprise_Linux_GIS
This would save you a lot of time and also makes it easier to remove and upgrade.

Daniel

On Thu, Aug 4, 2011 at 1:28 AM, Jules Kouadio <sekedoua@gmail.com> wrote:

Hi.
I’ve always the same errors after the make install

make install
[ 8%] Building C object extra/tsp/src/CMakeFiles/routing_tsp.dir/tsp.o
In file included from /home/sekedoua/pgrouting/extra/tsp/src/tsp.h:25,
from /home/sekedoua/pgrouting/extra/tsp/src/tsp.c:22:
/home/sekedoua/pgrouting/extra/tsp/src/postgres.h:477: erreur: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘attribute’ before ‘bool’
Dans le fichier inclus à partir de /usr/local/pgsql/include/server/catalog/pg_attribute.h:22,
à partir de /usr/local/pgsql/include/server/access/tupdesc.h:18,
à partir de /usr/local/pgsql/include/server/utils/relcache.h:17,
à partir de /usr/local/pgsql/include/server/access/genam.h:22,
à partir de /usr/local/pgsql/include/server/nodes/execnodes.h:17,
à partir de /usr/local/pgsql/include/server/executor/execdesc.h:18,
à partir de /usr/local/pgsql/include/server/utils/portal.h:49,
à partir de /usr/local/pgsql/include/server/executor/spi.h:17,
à partir de /home/sekedoua/pgrouting/extra/tsp/src/tsp.c:25:
/usr/local/pgsql/include/server/catalog/genbki.h:23:1: attention : « CATALOG » redéfini
Dans le fichier inclus à partir de /home/sekedoua/pgrouting/extra/tsp/src/tsp.h:25,
à partir de /home/sekedoua/pgrouting/extra/tsp/src/tsp.c:22:
/home/sekedoua/pgrouting/extra/tsp/src/postgres.h:537:1: attention : ceci est la localisation d’une précédente définition
In file included from /usr/local/pgsql/include/server/catalog/pg_attribute.h:22,
from /usr/local/pgsql/include/server/access/tupdesc.h:18,
from /usr/local/pgsql/include/server/utils/relcache.h:17,
from /usr/local/pgsql/include/server/access/genam.h:22,
from /usr/local/pgsql/include/server/nodes/execnodes.h:17,
from /usr/local/pgsql/include/server/executor/execdesc.h:18,
from /usr/local/pgsql/include/server/utils/portal.h:49,
from /usr/local/pgsql/include/server/executor/spi.h:17,
from /home/sekedoua/pgrouting/extra/tsp/src/tsp.c:25:
/usr/local/pgsql/include/server/catalog/genbki.h:39: erreur: redefinition of typedef ‘aclitem’
/home/sekedoua/pgrouting/extra/tsp/src/postgres.h:550: erreur: previous declaration of ‘aclitem’ was here
make[2]: *** [extra/tsp/src/CMakeFiles/routing_tsp.dir/tsp.o] Erreur 1
make[1]: *** [extra/tsp/src/CMakeFiles/routing_tsp.dir/all] Erreur 2
make: *** [all] Erreur 2

2011/7/30 Stephen Woodbridge <woodbri@swoodbridge.com>

Your first error is most likely the issue. The build system can not find postgres.h which is the postgresql development header file. You need to install the postgresql development files to build pgRouting. So you might need to do something like:

sudo yum install postgresql-devel

You need to make sure you all the dependencies installed.

-Steve

On 7/30/2011 6:18 AM, Jules Kouadio wrote:

Hi everybody
On CentOs 5 (french version).
Why all this errors after the “make install” for Tps and dijkstra?
Can someone help me ?

Thanks !

ERROR [root@bnetd pgrouting]# make install

[ 8%] Building C object extra/tsp/src/CMakeFiles/routing_tsp.dir/tsp.o
Dans le fichier inclus à partir de
/home/sekedoua/pgrouting/extra/tsp/src/tsp.c:22:
/home/sekedoua/pgrouting/extra/tsp/src/tsp.h:25:22: erreur: postgres.h
: Aucun fichier ou répertoire de ce type Dans le fichier inclus à
partir de /home/sekedoua/pgrouting/extra/tsp/src/tsp.h:26, à partir de
/home/sekedoua/pgrouting/extra/tsp/src/tsp.c:22:
/home/sekedoua/pgrouting/core/src/dijkstra.h:25:22: erreur: postgres.h
: Aucun fichier ou répertoire de ce type In file included from
/home/sekedoua/pgrouting/extra/tsp/src/tsp.h:26, from
/home/sekedoua/pgrouting/extra/tsp/src/tsp.c:22:
/home/sekedoua/pgrouting/core/src/dijkstra.h:32: erreur: expected
specifier-qualifier-list before ‘float8’
/home/sekedoua/pgrouting/core/src/dijkstra.h:40: erreur: expected
specifier-qualifier-list before ‘float8’
/home/sekedoua/pgrouting/core/src/dijkstra.h:47: erreur: expected
declaration specifiers or ‘…’ before ‘bool’
/home/sekedoua/pgrouting/core/src/dijkstra.h:47: erreur: expected
declaration specifiers or ‘…’ before ‘bool’ In file included from
/home/sekedoua/pgrouting/extra/tsp/src/tsp.c:22:
/home/sekedoua/pgrouting/extra/tsp/src/tsp.h:31: erreur: expected
specifier-qualifier-list before ‘float8’
/home/sekedoua/pgrouting/extra/tsp/src/tsp.c:25:26: erreur:
executor/spi.h : Aucun fichier ou répertoire de ce type
/home/sekedoua/pgrouting/extra/tsp/src/tsp.c:26:21: erreur: funcapi.h
: Aucun fichier ou répertoire de ce type
/home/sekedoua/pgrouting/extra/tsp/src/tsp.c:27:29: erreur:
catalog/pg_type.h : Aucun fichier ou répertoire de ce type
/home/sekedoua/pgrouting/extra/tsp/src/tsp.c:32:18: erreur: fmgr.h :
Aucun fichier ou répertoire de ce type
/home/sekedoua/pgrouting/extra/tsp/src/tsp.c:73: erreur: expected ‘=’,
‘,’, ‘;’, ‘asm’ or ‘attribute’ before ‘tsp’
/home/sekedoua/pgrouting/extra/tsp/src/tsp.c:98: erreur: expected ‘)’
before ‘’ token /home/sekedoua/pgrouting/extra/tsp/src/tsp.c: In
function ‘finish’: /home/sekedoua/pgrouting/extra/tsp/src/tsp.c:111:
erreur: ‘SPI_OK_FINISH’ undeclared (first use in this function)
/home/sekedoua/pgrouting/extra/tsp/src/tsp.c:111: erreur: (Each
undeclared identifier is reported only once
/home/sekedoua/pgrouting/extra/tsp/src/tsp.c:111: erreur: for each
function it appears in.)
/home/sekedoua/pgrouting/extra/tsp/src/tsp.c:113: erreur: ‘ERROR’
undeclared (first use in this function)
/home/sekedoua/pgrouting/extra/tsp/src/tsp.c: Hors de toute fonction :
/home/sekedoua/pgrouting/extra/tsp/src/tsp.c:123: erreur: expected
specifier-qualifier-list before ‘float8’
/home/sekedoua/pgrouting/extra/tsp/src/tsp.c:129: erreur: expected ‘)’
before ‘
’ token /home/sekedoua/pgrouting/extra/tsp/src/tsp.c:152:
erreur: expected ‘)’ before ‘*’ token
/home/sekedoua/pgrouting/extra/tsp/src/tsp.c: In function ‘solve_tsp’:
/home/sekedoua/pgrouting/extra/tsp/src/tsp.c:194: erreur: ‘Portal’
undeclared (first use in this function)
/home/sekedoua/pgrouting/extra/tsp/src/tsp.c:194: erreur: expected ‘;’
before ‘SPIportal’ /home/sekedoua/pgrouting/extra/tsp/src/tsp.c:195:
erreur: ‘bool’ undeclared (first use in this function)
/home/sekedoua/pgrouting/extra/tsp/src/tsp.c:195: erreur: expected ‘;’
before ‘moredata’ /home/sekedoua/pgrouting/extra/tsp/src/tsp.c:202:
erreur: unknown field ‘x’ specified in initializer
/home/sekedoua/pgrouting/extra/tsp/src/tsp.c:202: attention : éléments
en excès dans l’initialisation de la structure
/home/sekedoua/pgrouting/extra/tsp/src/tsp.c:202: attention : (near
initialization for ‘point_columns’)
/home/sekedoua/pgrouting/extra/tsp/src/tsp.c:202: erreur: unknown
field ‘y’ specified in initializer
/home/sekedoua/pgrouting/extra/tsp/src/tsp.c:202: attention : éléments
en excès dans l’initialisation de la structure
/home/sekedoua/pgrouting/extra/tsp/src/tsp.c:202: attention : (near
initialization for ‘point_columns’)
/home/sekedoua/pgrouting/extra/tsp/src/tsp.c:228: erreur: ‘ERROR’
undeclared (first use in this function)
/home/sekedoua/pgrouting/extra/tsp/src/tsp.c:238: erreur:
‘SPI_OK_CONNECT’ undeclared (first use in this function)
/home/sekedoua/pgrouting/extra/tsp/src/tsp.c:244: attention :
assignment makes pointer from integer without a cast
/home/sekedoua/pgrouting/extra/tsp/src/tsp.c:252: erreur: ‘SPIportal’
undeclared (first use in this function)
/home/sekedoua/pgrouting/extra/tsp/src/tsp.c:252: erreur: ‘true’
undeclared (first use in this function)
/home/sekedoua/pgrouting/extra/tsp/src/tsp.c:261: erreur: ‘moredata’
undeclared (first use in this function)
/home/sekedoua/pgrouting/extra/tsp/src/tsp.c:261: erreur: ‘TRUE’
undeclared (first use in this function)
/home/sekedoua/pgrouting/extra/tsp/src/tsp.c:267: erreur:
‘SPI_tuptable’ undeclared (first use in this function)
/home/sekedoua/pgrouting/extra/tsp/src/tsp.c:271: erreur:
‘SPI_processed’ undeclared (first use in this function)
/home/sekedoua/pgrouting/extra/tsp/src/tsp.c:278: attention :
assignment makes pointer from integer without a cast
/home/sekedoua/pgrouting/extra/tsp/src/tsp.c:280: attention :
assignment makes pointer from integer without a cast
/home/sekedoua/pgrouting/extra/tsp/src/tsp.c:291: erreur:
‘SPITupleTable’ undeclared (first use in this function)
/home/sekedoua/pgrouting/extra/tsp/src/tsp.c:291: erreur: ‘tuptable’
undeclared (first use in this function)
/home/sekedoua/pgrouting/extra/tsp/src/tsp.c:292: erreur: ‘TupleDesc’
undeclared (first use in this function)
/home/sekedoua/pgrouting/extra/tsp/src/tsp.c:292: erreur: expected ‘;’
before ‘tupdesc’ /home/sekedoua/pgrouting/extra/tsp/src/tsp.c:298:
erreur: ‘HeapTuple’ undeclared (first use in this function)
/home/sekedoua/pgrouting/extra/tsp/src/tsp.c:298: erreur: expected ‘;’
before ‘tuple’ /home/sekedoua/pgrouting/extra/tsp/src/tsp.c:300:
erreur: ‘tuple’ undeclared (first use in this function)
/home/sekedoua/pgrouting/extra/tsp/src/tsp.c:300: erreur: ‘tupdesc’
undeclared (first use in this function)
/home/sekedoua/pgrouting/extra/tsp/src/tsp.c:309: erreur: ‘FALSE’
undeclared (first use in this function)
/home/sekedoua/pgrouting/extra/tsp/src/tsp.c:325: erreur: ‘point_t’
has no member named ‘x’
/home/sekedoua/pgrouting/extra/tsp/src/tsp.c:326: erreur: ‘point_t’
has no member named ‘y’
/home/sekedoua/pgrouting/extra/tsp/src/tsp.c:364: erreur:
‘ERRCODE_E_R_E_CONTAINING_SQL_NOT_PERMITTED’ undeclared (first use in
this function) /home/sekedoua/pgrouting/extra/tsp/src/tsp.c: Hors de
toute fonction : /home/sekedoua/pgrouting/extra/tsp/src/tsp.c:370:
attention : la définition de données n’a pas de type ni de classe de
stockage /home/sekedoua/pgrouting/extra/tsp/src/tsp.c:370: attention :
noms de paramètres (sans type) dans la déclaration de fonction
/home/sekedoua/pgrouting/extra/tsp/src/tsp.c:372: erreur: expected
‘=’, ‘,’, ‘;’, ‘asm’ or ‘attribute’ before ‘tsp’ make[2]: ***
[extra/tsp/src/CMakeFiles/routing_tsp.dir/tsp.o] Erreur 1 make[1]: ***
[extra/tsp/src/CMakeFiles/routing_tsp.dir/all] Erreur 2 make: ***

2011/7/29, Ricardo Bayley<ricardo.bayley@gmail.com>:

Hi folks,

On the pgRouting website, it says that the latest compiled windows binaries
are for pg8.4.2
Is this strictily for 8.4.2 or for all the 8.4.x series ?

best regards

Ricardo


Pgrouting-users mailing list
Pgrouting-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/pgrouting-users


Pgrouting-users mailing list
Pgrouting-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/pgrouting-users


Georepublic UG & Georepublic Japan
eMail: daniel.kastl@georepublic.de
Web: http://georepublic.de

hi

I am looking at a bug in part of the pgroute software, I like to be able to run the 'test software'

I found a perl script in pgrouting-develop/tools called test-runner.pl

Is there any documentation on how to run it?

I noticed that most of the pgroute software has a test directory, is there any information on how to add new a test case or the format of a test case/

regards

Dave.

Hi Dave,

You can see test-runner.pl usage by executing following command.

···

2013/7/23 Dave Potts <dave.potts@pinan.co.uk>

hi

I am looking at a bug in part of the pgroute software, I like to be able to run the ‘test software’

I found a perl script in pgrouting-develop/tools called test-runner.pl

Is there any documentation on how to run it?

I noticed that most of the pgroute software has a test directory, is there any information on how to add new a test case or the format of a test case/

regards

Dave.


Pgrouting-users mailing list
Pgrouting-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/pgrouting-users

Ko Nagase (sanak)
Georepublic Japan
mail: geosanak@gmail.com
nagase@georepublic.co.jp

On 23/07/13 12:46, sanak wrote:
Thanks Sanak, I think I known why the TSP fails, but I want to make sure, I would also like to test the TSP with a larger distance marix.

Dave.

Hi Dave,

You can see test-runner.pl <http://test-runner.pl> usage by executing following command.

$ cd /path/to/pgrouting-root
$ tools/test-runner.pl <http://test-runner.pl> -h
RUNNING: test-runner.pl <http://test-runner.pl> -h
Usage: test-runner.pl <http://test-runner.pl> -pgver vpg -pgisver vpgis -psql /path/to/psql
       -pgver vpg - postgresql version
       -pgport port - postgresql port to use (default: 5432)
       -pgisver vpgis - postgis version
       -pgrver vpgr - pgrouting version
       -psql /path/to/psql - optional path to psql
       -v - verbose messages for debuging(enter twice for more)
       -clean - dropdb pgr_test__db__test
       -ignorenotice - ignore NOTICE statements when reporting failures
       -h - help

And I use the following commands normally.

$ which psql
/path/to/psql
$ tools/test-runner.pl <http://test-runner.pl> -psql /path/to/psql -ignorenotice

* As Stephen mentioned, currently, tsp's last test fail.

The test file specification is here.
https://github.com/pgRouting/pgrouting/wiki/2.0-Development-Guidelines-and-Standards#test-standards

Thanks,

2013/7/23 Dave Potts <dave.potts@pinan.co.uk <mailto:dave.potts@pinan.co.uk>>

    hi

    I am looking at a bug in part of the pgroute software, I like to
    be able to run the 'test software'

    I found a perl script in pgrouting-develop/tools called
    test-runner.pl <http://test-runner.pl>

    Is there any documentation on how to run it?

    I noticed that most of the pgroute software has a test directory,
    is there any information on how to add new a test case or the
    format of a test case/

    regards

    Dave.
    _______________________________________________
    Pgrouting-users mailing list
    Pgrouting-users@lists.osgeo.org
    <mailto:Pgrouting-users@lists.osgeo.org>
    http://lists.osgeo.org/mailman/listinfo/pgrouting-users

--
Ko Nagase (sanak)
Georepublic Japan
mail: geosanak@gmail.com <mailto:geosanak@gmail.com>
nagase@georepublic.co.jp <mailto:nagase@georepublic.co.jp>

_______________________________________________
Pgrouting-users mailing list
Pgrouting-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/pgrouting-users

On 7/23/2013 5:13 AM, Dave Potts wrote:

hi

I am looking at a bug in part of the pgroute software, I like to be
able to run the 'test software'

I found a perl script in pgrouting-develop/tools called test-runner.pl

Is there any documentation on how to run it?

I noticed that most of the pgroute software has a test directory, is
there any information on how to add new a test case or the format of a
test case/

http://docs.pgrouting.org/dev/doc/src/developer/index.html

As the above thinly suggests, each test directory has test.conf file. the script looks for these and then runs the configured tests.

Usage: test-runner.pl -pgver vpg -pgisver vpgis -psql /path/to/psql
        -pgver vpg - postgresql version
        -pgport port - postgresql port to use (default: 5432)
        -pgisver vpgis - postgis version
        -pgrver vpgr - pgrouting version
        -psql /path/to/psql - optional path to psql
        -v - verbose messages for debuging(enter twice for more)
        -clean - dropdb pgr_test__db__test
        -ignorenotice - ignore NOTICE statements when reporting failures
        -h - help

The only options that might be useful to you are -clean and -ingnorenotice the reset are to support testing on winnie and travis systems where we have multiple versions of software installed.

Right now, I don't have an option to run just a single test case, but if needed I can probably add that.

I would love to get more test cases.

-Steve