[pgrouting-users] Complilation Errors on Tps and Disjkstra
Jules Kouadio
sekedoua at gmail.com
Wed Aug 3 12:28:51 EDT 2011
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 at 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 at 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 at gmail.**com<ricardo.bayley at 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 at lists.osgeo.**org <Pgrouting-users at lists.osgeo.org>
> http://lists.osgeo.org/**mailman/listinfo/pgrouting-**users<http://lists.osgeo.org/mailman/listinfo/pgrouting-users>
>
--
*
*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/pgrouting-users/attachments/20110803/7b695530/attachment-0001.html
More information about the Pgrouting-users
mailing list