[postgis-users] postgis installation on current Postgresql (8.1) database (on Debian)

alex bodnaru alexbodn at 012.net.il
Fri Jan 13 09:40:10 PST 2006


what debian version do you have?

Assad Jarrahian wrote:
> I took a closer look. The directory /usr/include/postgresql/ exists
> and postgres.h is in that directory.
> 
> There is no 8.1 directory.
> How do I mend the problem (tell pg-config that the directory is somewhere else)
> 
> much thanks and sorry for the initial lookover of the file existing.
> -assad
> 
> 
> On 1/13/06, strk at refractions.net <strk at refractions.net> wrote:
> 
>>This is your problem:
>>
>> gcc -DUSE_VERSION=81 -DPOSTGIS_LIB_VERSION='"1.1.0"'
>> -DPOSTGIS_VERSION='"1.1 USE_GEOS=1 USE_PROJ=1 USE_STATS=1"'
>> -DPOSTGIS_SCRIPTS_VERSION='"1.1.0"' -DPOSTGIS_BUILD_DATE='"2006-01-12
>> 16:30:40"' -I/usr/local/include -DUSE_PROJ
>> -I/usr/include/postgresql/8.1/server -DAUTOCACHE_BBOX=1  -DUSE_STATS
>> -Wall -g -O2 -fPIC -fexceptions -DUSE_GEOS -I/usr/local/include     -c
>> -o liblwgeom.o liblwgeom.c
>> In file included from liblwgeom.c:26:
>> lwgeom_pg.h:4:22: error: postgres.h: No such file or directory
>>
>>Do you stil confirm that this file exist:
>>
>>        /usr/include/postgresql/8.1/server/postgres.h
>>
>>?
>>
>>--strk;
>>
>>On Fri, Jan 13, 2006 at 01:15:45AM -0700, Assad Jarrahian wrote:
>>
>>>strk, stefano, david .... please help. Am stuck.
>>>Thanks.
>>>-assad
>>>
>>>On 1/12/06, Assad Jarrahian <jarraa at gmail.com> wrote:
>>>
>>>>I pasted the complete output below. Thanks for your help.
>>>>
>>>>make -C lwgeom
>>>>make[1]: Entering directory `/packages/postgis-1.1.0/lwgeom'
>>>>cpp -P -traditional-cpp -DUSE_VERSION=81 lwpostgis.sql.in | sed -e
>>>>'s:@MODULE_FILENAME@:\$libdir/liblwgeom.so.1.1:g;s:@POSTGIS_VERSION@:1.1
>>>>USE_GEOS=1 USE_PROJ=1
>>>>USE_STATS=1:g;s:@POSTGIS_SCRIPTS_VERSION@:1.1.0:g;s/@POSTGIS_BUILD_DATE@/2006-01-12
>>>>16:30:40/g' | grep -v '^#' > ../lwpostgis.sql
>>>>/usr/bin/perl ../utils/postgis_proc_upgrade.pl ../lwpostgis.sql >
>>>>../lwpostgis_upgrade.sql
>>>>gcc -DUSE_VERSION=81 -DPOSTGIS_LIB_VERSION='"1.1.0"'
>>>>-DPOSTGIS_VERSION='"1.1 USE_GEOS=1 USE_PROJ=1 USE_STATS=1"'
>>>>-DPOSTGIS_SCRIPTS_VERSION='"1.1.0"' -DPOSTGIS_BUILD_DATE='"2006-01-12
>>>>16:30:40"' -I/usr/local/include -DUSE_PROJ
>>>>-I/usr/include/postgresql/8.1/server -DAUTOCACHE_BBOX=1  -DUSE_STATS
>>>>-Wall -g -O2 -fPIC -fexceptions -DUSE_GEOS -I/usr/local/include     -c
>>>>-o measures.o measures.c
>>>>gcc -DUSE_VERSION=81 -DPOSTGIS_LIB_VERSION='"1.1.0"'
>>>>-DPOSTGIS_VERSION='"1.1 USE_GEOS=1 USE_PROJ=1 USE_STATS=1"'
>>>>-DPOSTGIS_SCRIPTS_VERSION='"1.1.0"' -DPOSTGIS_BUILD_DATE='"2006-01-12
>>>>16:30:40"' -I/usr/local/include -DUSE_PROJ
>>>>-I/usr/include/postgresql/8.1/server -DAUTOCACHE_BBOX=1  -DUSE_STATS
>>>>-Wall -g -O2 -fPIC -fexceptions -DUSE_GEOS -I/usr/local/include     -c
>>>>-o box2d.o box2d.c
>>>>gcc -DUSE_VERSION=81 -DPOSTGIS_LIB_VERSION='"1.1.0"'
>>>>-DPOSTGIS_VERSION='"1.1 USE_GEOS=1 USE_PROJ=1 USE_STATS=1"'
>>>>-DPOSTGIS_SCRIPTS_VERSION='"1.1.0"' -DPOSTGIS_BUILD_DATE='"2006-01-12
>>>>16:30:40"' -I/usr/local/include -DUSE_PROJ
>>>>-I/usr/include/postgresql/8.1/server -DAUTOCACHE_BBOX=1  -DUSE_STATS
>>>>-Wall -g -O2 -fPIC -fexceptions -DUSE_GEOS -I/usr/local/include     -c
>>>>-o ptarray.o ptarray.c
>>>>ptarray.c: In function 'ptarray_segmentize2d':
>>>>ptarray.c:223: warning: dereferencing type-punned pointer will break
>>>>strict-aliasing rules
>>>>ptarray.c:223: warning: dereferencing type-punned pointer will break
>>>>strict-aliasing rules
>>>>gcc -DUSE_VERSION=81 -DPOSTGIS_LIB_VERSION='"1.1.0"'
>>>>-DPOSTGIS_VERSION='"1.1 USE_GEOS=1 USE_PROJ=1 USE_STATS=1"'
>>>>-DPOSTGIS_SCRIPTS_VERSION='"1.1.0"' -DPOSTGIS_BUILD_DATE='"2006-01-12
>>>>16:30:40"' -I/usr/local/include -DUSE_PROJ
>>>>-I/usr/include/postgresql/8.1/server -DAUTOCACHE_BBOX=1  -DUSE_STATS
>>>>-Wall -g -O2 -fPIC -fexceptions -DUSE_GEOS -I/usr/local/include     -c
>>>>-o lwgeom_api.o lwgeom_api.c
>>>>lwgeom_api.c: In function 'lwgeom_getpoint_inspected':
>>>>lwgeom_api.c:974: warning: pointer targets in assignment differ in signedness
>>>>lwgeom_api.c:981: warning: pointer targets in passing argument 1 of
>>>>'lwpoint_deserialize' differ in signedness
>>>>lwgeom_api.c: In function 'lwgeom_getpoly':
>>>>lwgeom_api.c:1051: warning: pointer targets in assignment differ in signedness
>>>>lwgeom_api.c:1057: warning: pointer targets in passing argument 1 of
>>>>'lwpoly_deserialize' differ in signedness
>>>>lwgeom_api.c: In function 'lwgeom_getpoly_inspected':
>>>>lwgeom_api.c:1069: warning: pointer targets in assignment differ in signedness
>>>>lwgeom_api.c:1076: warning: pointer targets in passing argument 1 of
>>>>'lwpoly_deserialize' differ in signedness
>>>>lwgeom_api.c: In function 'lwgeom_getsubgeometry':
>>>>lwgeom_api.c:1097: warning: pointer targets in assignment differ in signedness
>>>>lwgeom_api.c:1099: warning: pointer targets in return differ in signedness
>>>>lwgeom_api.c: In function 'printPA':
>>>>lwgeom_api.c:1636: warning: pointer targets in assignment differ in signedness
>>>>lwgeom_api.c:1637: warning: pointer targets in assignment differ in signedness
>>>>lwgeom_api.c: In function 'printBYTES':
>>>>lwgeom_api.c:1674: warning: pointer targets in passing argument 2 of
>>>>'deparse_hex' differ in signedness
>>>>lwgeom_api.c: In function 'pglwgeom_from_ewkb':
>>>>lwgeom_api.c:1775: warning: pointer targets in passing argument 2 of
>>>>'deparse_hex' differ in signedness
>>>>lwgeom_api.c: In function 'lwgeom_typeflags':
>>>>lwgeom_api.c:2000: warning: pointer targets in return differ in signedness
>>>>lwgeom_api.c: In function 'parse_lwgeom_wkt':
>>>>lwgeom_api.c:2242: warning: pointer targets in passing argument 1 of
>>>>'parse_lwg' differ in signedness
>>>>lwgeom_api.c: In function 'box2df_to_box3d':
>>>>lwgeom_api.c:220: warning: 'result.zmin' is used uninitialized in this function
>>>>lwgeom_api.c:220: warning: 'result.zmax' is used uninitialized in this function
>>>>lwgeom_api.c:220: warning: 'result.ymax' is used uninitialized in this function
>>>>lwgeom_api.c:220: warning: 'result.xmax' is used uninitialized in this function
>>>>lwgeom_api.c:220: warning: 'result.ymin' is used uninitialized in this function
>>>>lwgeom_api.c:220: warning: 'result.xmin' is used uninitialized in this function
>>>>gcc -DUSE_VERSION=81 -DPOSTGIS_LIB_VERSION='"1.1.0"'
>>>>-DPOSTGIS_VERSION='"1.1 USE_GEOS=1 USE_PROJ=1 USE_STATS=1"'
>>>>-DPOSTGIS_SCRIPTS_VERSION='"1.1.0"' -DPOSTGIS_BUILD_DATE='"2006-01-12
>>>>16:30:40"' -I/usr/local/include -DUSE_PROJ
>>>>-I/usr/include/postgresql/8.1/server -DAUTOCACHE_BBOX=1  -DUSE_STATS
>>>>-Wall -g -O2 -fPIC -fexceptions -DUSE_GEOS -I/usr/local/include     -c
>>>>-o lwgeom.o lwgeom.c
>>>>lwgeom.c: In function 'lwgeom_to_ewkb':
>>>>lwgeom.c:409: warning: pointer targets in return differ in signedness
>>>>gcc -DUSE_VERSION=81 -DPOSTGIS_LIB_VERSION='"1.1.0"'
>>>>-DPOSTGIS_VERSION='"1.1 USE_GEOS=1 USE_PROJ=1 USE_STATS=1"'
>>>>-DPOSTGIS_SCRIPTS_VERSION='"1.1.0"' -DPOSTGIS_BUILD_DATE='"2006-01-12
>>>>16:30:40"' -I/usr/local/include -DUSE_PROJ
>>>>-I/usr/include/postgresql/8.1/server -DAUTOCACHE_BBOX=1  -DUSE_STATS
>>>>-Wall -g -O2 -fPIC -fexceptions -DUSE_GEOS -I/usr/local/include     -c
>>>>-o lwpoint.o lwpoint.c
>>>>gcc -DUSE_VERSION=81 -DPOSTGIS_LIB_VERSION='"1.1.0"'
>>>>-DPOSTGIS_VERSION='"1.1 USE_GEOS=1 USE_PROJ=1 USE_STATS=1"'
>>>>-DPOSTGIS_SCRIPTS_VERSION='"1.1.0"' -DPOSTGIS_BUILD_DATE='"2006-01-12
>>>>16:30:40"' -I/usr/local/include -DUSE_PROJ
>>>>-I/usr/include/postgresql/8.1/server -DAUTOCACHE_BBOX=1  -DUSE_STATS
>>>>-Wall -g -O2 -fPIC -fexceptions -DUSE_GEOS -I/usr/local/include     -c
>>>>-o lwline.o lwline.c
>>>>gcc -DUSE_VERSION=81 -DPOSTGIS_LIB_VERSION='"1.1.0"'
>>>>-DPOSTGIS_VERSION='"1.1 USE_GEOS=1 USE_PROJ=1 USE_STATS=1"'
>>>>-DPOSTGIS_SCRIPTS_VERSION='"1.1.0"' -DPOSTGIS_BUILD_DATE='"2006-01-12
>>>>16:30:40"' -I/usr/local/include -DUSE_PROJ
>>>>-I/usr/include/postgresql/8.1/server -DAUTOCACHE_BBOX=1  -DUSE_STATS
>>>>-Wall -g -O2 -fPIC -fexceptions -DUSE_GEOS -I/usr/local/include     -c
>>>>-o lwpoly.o lwpoly.c
>>>>lwpoly.c: In function 'lwpoly_deserialize':
>>>>lwpoly.c:80: warning: pointer targets in assignment differ in signedness
>>>>lwpoly.c:90: warning: pointer targets in assignment differ in signedness
>>>>lwpoly.c:105: warning: pointer targets in passing argument 1 of
>>>>'get_int32' differ in signedness
>>>>lwpoly.c:113: warning: pointer targets in passing argument 1 of
>>>>'get_uint32' differ in signedness
>>>>lwpoly.c:121: warning: pointer targets in passing argument 1 of
>>>>'get_uint32' differ in signedness
>>>>lwpoly.c:124: warning: pointer targets in passing argument 1 of
>>>>'pointArray_construct' differ in signedness
>>>>gcc -DUSE_VERSION=81 -DPOSTGIS_LIB_VERSION='"1.1.0"'
>>>>-DPOSTGIS_VERSION='"1.1 USE_GEOS=1 USE_PROJ=1 USE_STATS=1"'
>>>>-DPOSTGIS_SCRIPTS_VERSION='"1.1.0"' -DPOSTGIS_BUILD_DATE='"2006-01-12
>>>>16:30:40"' -I/usr/local/include -DUSE_PROJ
>>>>-I/usr/include/postgresql/8.1/server -DAUTOCACHE_BBOX=1  -DUSE_STATS
>>>>-Wall -g -O2 -fPIC -fexceptions -DUSE_GEOS -I/usr/local/include     -c
>>>>-o lwmpoint.o lwmpoint.c
>>>>gcc -DUSE_VERSION=81 -DPOSTGIS_LIB_VERSION='"1.1.0"'
>>>>-DPOSTGIS_VERSION='"1.1 USE_GEOS=1 USE_PROJ=1 USE_STATS=1"'
>>>>-DPOSTGIS_SCRIPTS_VERSION='"1.1.0"' -DPOSTGIS_BUILD_DATE='"2006-01-12
>>>>16:30:40"' -I/usr/local/include -DUSE_PROJ
>>>>-I/usr/include/postgresql/8.1/server -DAUTOCACHE_BBOX=1  -DUSE_STATS
>>>>-Wall -g -O2 -fPIC -fexceptions -DUSE_GEOS -I/usr/local/include     -c
>>>>-o lwmline.o lwmline.c
>>>>gcc -DUSE_VERSION=81 -DPOSTGIS_LIB_VERSION='"1.1.0"'
>>>>-DPOSTGIS_VERSION='"1.1 USE_GEOS=1 USE_PROJ=1 USE_STATS=1"'
>>>>-DPOSTGIS_SCRIPTS_VERSION='"1.1.0"' -DPOSTGIS_BUILD_DATE='"2006-01-12
>>>>16:30:40"' -I/usr/local/include -DUSE_PROJ
>>>>-I/usr/include/postgresql/8.1/server -DAUTOCACHE_BBOX=1  -DUSE_STATS
>>>>-Wall -g -O2 -fPIC -fexceptions -DUSE_GEOS -I/usr/local/include     -c
>>>>-o lwmpoly.o lwmpoly.c
>>>>gcc -DUSE_VERSION=81 -DPOSTGIS_LIB_VERSION='"1.1.0"'
>>>>-DPOSTGIS_VERSION='"1.1 USE_GEOS=1 USE_PROJ=1 USE_STATS=1"'
>>>>-DPOSTGIS_SCRIPTS_VERSION='"1.1.0"' -DPOSTGIS_BUILD_DATE='"2006-01-12
>>>>16:30:40"' -I/usr/local/include -DUSE_PROJ
>>>>-I/usr/include/postgresql/8.1/server -DAUTOCACHE_BBOX=1  -DUSE_STATS
>>>>-Wall -g -O2 -fPIC -fexceptions -DUSE_GEOS -I/usr/local/include     -c
>>>>-o lwcollection.o lwcollection.c
>>>>gcc -DUSE_VERSION=81 -DPOSTGIS_LIB_VERSION='"1.1.0"'
>>>>-DPOSTGIS_VERSION='"1.1 USE_GEOS=1 USE_PROJ=1 USE_STATS=1"'
>>>>-DPOSTGIS_SCRIPTS_VERSION='"1.1.0"' -DPOSTGIS_BUILD_DATE='"2006-01-12
>>>>16:30:40"' -I/usr/local/include -DUSE_PROJ
>>>>-I/usr/include/postgresql/8.1/server -DAUTOCACHE_BBOX=1  -DUSE_STATS
>>>>-Wall -g -O2 -fPIC -fexceptions -DUSE_GEOS -I/usr/local/include     -c
>>>>-o wktunparse.o wktunparse.c
>>>>gcc -DUSE_VERSION=81 -DPOSTGIS_LIB_VERSION='"1.1.0"'
>>>>-DPOSTGIS_VERSION='"1.1 USE_GEOS=1 USE_PROJ=1 USE_STATS=1"'
>>>>-DPOSTGIS_SCRIPTS_VERSION='"1.1.0"' -DPOSTGIS_BUILD_DATE='"2006-01-12
>>>>16:30:40"' -I/usr/local/include -DUSE_PROJ
>>>>-I/usr/include/postgresql/8.1/server -DAUTOCACHE_BBOX=1  -DUSE_STATS
>>>>-Wall -g -O2 -fPIC -fexceptions -DUSE_GEOS -I/usr/local/include     -c
>>>>-o lwgparse.o lwgparse.c
>>>>gcc -DUSE_VERSION=81 -DPOSTGIS_LIB_VERSION='"1.1.0"'
>>>>-DPOSTGIS_VERSION='"1.1 USE_GEOS=1 USE_PROJ=1 USE_STATS=1"'
>>>>-DPOSTGIS_SCRIPTS_VERSION='"1.1.0"' -DPOSTGIS_BUILD_DATE='"2006-01-12
>>>>16:30:40"' -I/usr/local/include -DUSE_PROJ
>>>>-I/usr/include/postgresql/8.1/server -DAUTOCACHE_BBOX=1  -DUSE_STATS
>>>>-Wall -g -O2 -fPIC -fexceptions -DUSE_GEOS -I/usr/local/include     -c
>>>>-o wktparse.tab.o wktparse.tab.c
>>>>wktparse.y: In function 'lwg_parse_yyparse':
>>>>wktparse.y:43: warning: pointer targets in passing argument 1 of
>>>>'alloc_wkb' differ in signedness
>>>>gcc -DUSE_VERSION=81 -DPOSTGIS_LIB_VERSION='"1.1.0"'
>>>>-DPOSTGIS_VERSION='"1.1 USE_GEOS=1 USE_PROJ=1 USE_STATS=1"'
>>>>-DPOSTGIS_SCRIPTS_VERSION='"1.1.0"' -DPOSTGIS_BUILD_DATE='"2006-01-12
>>>>16:30:40"' -I/usr/local/include -DUSE_PROJ
>>>>-I/usr/include/postgresql/8.1/server -DAUTOCACHE_BBOX=1  -DUSE_STATS
>>>>-Wall -g -O2 -fPIC -fexceptions -DUSE_GEOS -I/usr/local/include     -c
>>>>-o lex.yy.o lex.yy.c
>>>>lex.yy.c:3044: warning: 'yyunput' defined but not used
>>>>gcc -DUSE_VERSION=81 -DPOSTGIS_LIB_VERSION='"1.1.0"'
>>>>-DPOSTGIS_VERSION='"1.1 USE_GEOS=1 USE_PROJ=1 USE_STATS=1"'
>>>>-DPOSTGIS_SCRIPTS_VERSION='"1.1.0"' -DPOSTGIS_BUILD_DATE='"2006-01-12
>>>>16:30:40"' -I/usr/local/include -DUSE_PROJ
>>>>-I/usr/include/postgresql/8.1/server -DAUTOCACHE_BBOX=1  -DUSE_STATS
>>>>-Wall -g -O2 -fPIC -fexceptions -DUSE_GEOS -I/usr/local/include     -c
>>>>-o vsprintf.o vsprintf.c
>>>>gcc -DUSE_VERSION=81 -DPOSTGIS_LIB_VERSION='"1.1.0"'
>>>>-DPOSTGIS_VERSION='"1.1 USE_GEOS=1 USE_PROJ=1 USE_STATS=1"'
>>>>-DPOSTGIS_SCRIPTS_VERSION='"1.1.0"' -DPOSTGIS_BUILD_DATE='"2006-01-12
>>>>16:30:40"' -I/usr/local/include -DUSE_PROJ
>>>>-I/usr/include/postgresql/8.1/server -DAUTOCACHE_BBOX=1  -DUSE_STATS
>>>>-Wall -g -O2 -fPIC -fexceptions -DUSE_GEOS -I/usr/local/include     -c
>>>>-o liblwgeom.o liblwgeom.c
>>>>In file included from liblwgeom.c:26:
>>>>lwgeom_pg.h:4:22: error: postgres.h: No such file or directory
>>>>lwgeom_pg.h:5:29: error: utils/geo_decls.h: No such file or directory
>>>>lwgeom_pg.h:6:18: error: fmgr.h: No such file or directory
>>>>In file included from liblwgeom.c:26:
>>>>lwgeom_pg.h:28: error: syntax error before 'getGeometryOID'
>>>>lwgeom_pg.h:28: warning: type defaults to 'int' in declaration of
>>>>'getGeometryOID'
>>>>lwgeom_pg.h:28: warning: data definition has no type or storage class
>>>>lwgeom_pg.h:35: error: syntax error before '*' token
>>>>lwgeom_pg.h:36: error: syntax error before 'box2df_to_box'
>>>>lwgeom_pg.h:36: warning: type defaults to 'int' in declaration of
>>>>'box2df_to_box'
>>>>lwgeom_pg.h:36: warning: data definition has no type or storage class
>>>>lwgeom_pg.h:37: error: syntax error before 'BOX'
>>>>lwgeom_pg.h:40: error: syntax error before 'BOX2D_same'
>>>>lwgeom_pg.h:40: warning: type defaults to 'int' in declaration of 'BOX2D_same'
>>>>lwgeom_pg.h:40: warning: parameter names (without types) in function declaration
>>>>lwgeom_pg.h:40: warning: data definition has no type or storage class
>>>>lwgeom_pg.h:41: error: syntax error before 'BOX2D_overlap'
>>>>lwgeom_pg.h:41: warning: type defaults to 'int' in declaration of
>>>>'BOX2D_overlap'
>>>>lwgeom_pg.h:41: warning: parameter names (without types) in function declaration
>>>>lwgeom_pg.h:41: warning: data definition has no type or storage class
>>>>lwgeom_pg.h:42: error: syntax error before 'BOX2D_overleft'
>>>>lwgeom_pg.h:42: warning: type defaults to 'int' in declaration of
>>>>'BOX2D_overleft'
>>>>lwgeom_pg.h:42: warning: parameter names (without types) in function declaration
>>>>lwgeom_pg.h:42: warning: data definition has no type or storage class
>>>>lwgeom_pg.h:43: error: syntax error before 'BOX2D_left'
>>>>lwgeom_pg.h:43: warning: type defaults to 'int' in declaration of 'BOX2D_left'
>>>>lwgeom_pg.h:43: warning: parameter names (without types) in function declaration
>>>>lwgeom_pg.h:43: warning: data definition has no type or storage class
>>>>lwgeom_pg.h:44: warning: type defaults to 'int' in declaration of 'BOX2D_right'
>>>>lwgeom_pg.h:44: warning: parameter names (without types) in function declaration
>>>>lwgeom_pg.h:44: warning: data definition has no type or storage class
>>>>lwgeom_pg.h:45: error: syntax error before 'BOX2D_overright'
>>>>lwgeom_pg.h:45: warning: type defaults to 'int' in declaration of
>>>>'BOX2D_overright'
>>>>lwgeom_pg.h:45: warning: parameter names (without types) in function declaration
>>>>lwgeom_pg.h:45: warning: data definition has no type or storage class
>>>>lwgeom_pg.h:46: error: syntax error before 'BOX2D_overbelow'
>>>>lwgeom_pg.h:46: warning: type defaults to 'int' in declaration of
>>>>'BOX2D_overbelow'
>>>>lwgeom_pg.h:46: warning: parameter names (without types) in function declaration
>>>>lwgeom_pg.h:46: warning: data definition has no type or storage class
>>>>lwgeom_pg.h:47: error: syntax error before 'BOX2D_below'
>>>>lwgeom_pg.h:47: warning: type defaults to 'int' in declaration of 'BOX2D_below'
>>>>lwgeom_pg.h:47: warning: parameter names (without types) in function declaration
>>>>lwgeom_pg.h:47: warning: data definition has no type or storage class
>>>>lwgeom_pg.h:48: error: syntax error before 'BOX2D_above'
>>>>lwgeom_pg.h:48: warning: type defaults to 'int' in declaration of 'BOX2D_above'
>>>>lwgeom_pg.h:48: warning: parameter names (without types) in function declaration
>>>>lwgeom_pg.h:48: warning: data definition has no type or storage class
>>>>lwgeom_pg.h:49: error: syntax error before 'BOX2D_overabove'
>>>>lwgeom_pg.h:49: warning: type defaults to 'int' in declaration of
>>>>'BOX2D_overabove'
>>>>lwgeom_pg.h:49: warning: parameter names (without types) in function declaration
>>>>lwgeom_pg.h:49: warning: data definition has no type or storage class
>>>>lwgeom_pg.h:50: error: syntax error before 'BOX2D_contained'
>>>>lwgeom_pg.h:50: warning: type defaults to 'int' in declaration of
>>>>'BOX2D_contained'
>>>>lwgeom_pg.h:50: warning: parameter names (without types) in function declaration
>>>>lwgeom_pg.h:50: warning: data definition has no type or storage class
>>>>lwgeom_pg.h:51: error: syntax error before 'BOX2D_contain'
>>>>lwgeom_pg.h:51: warning: type defaults to 'int' in declaration of
>>>>'BOX2D_contain'
>>>>lwgeom_pg.h:51: warning: parameter names (without types) in function declaration
>>>>lwgeom_pg.h:51: warning: data definition has no type or storage class
>>>>lwgeom_pg.h:52: error: syntax error before 'BOX2D_intersects'
>>>>lwgeom_pg.h:52: warning: type defaults to 'int' in declaration of
>>>>'BOX2D_intersects'
>>>>lwgeom_pg.h:52: warning: parameter names (without types) in function declaration
>>>>lwgeom_pg.h:52: warning: data definition has no type or storage class
>>>>lwgeom_pg.h:53: error: syntax error before 'BOX2D_union'
>>>>lwgeom_pg.h:53: warning: type defaults to 'int' in declaration of 'BOX2D_union'
>>>>lwgeom_pg.h:53: warning: parameter names (without types) in function declaration
>>>>lwgeom_pg.h:53: warning: data definition has no type or storage class
>>>>lwgeom_pg.h:55: error: syntax error before 'LWGEOM_same'
>>>>lwgeom_pg.h:55: warning: type defaults to 'int' in declaration of 'LWGEOM_same'
>>>>lwgeom_pg.h:55: warning: parameter names (without types) in function declaration
>>>>lwgeom_pg.h:55: warning: data definition has no type or storage class
>>>>lwgeom_pg.h:56: error: syntax error before 'BOX3D_construct'
>>>>lwgeom_pg.h:56: warning: type defaults to 'int' in declaration of
>>>>'BOX3D_construct'
>>>>lwgeom_pg.h:56: warning: parameter names (without types) in function declaration
>>>>lwgeom_pg.h:56: warning: data definition has no type or storage class
>>>>lwgeom_pg.h:57: error: syntax error before 'BOX2DFLOAT4_ymin'
>>>>lwgeom_pg.h:57: warning: type defaults to 'int' in declaration of
>>>>'BOX2DFLOAT4_ymin'
>>>>lwgeom_pg.h:57: warning: parameter names (without types) in function declaration
>>>>lwgeom_pg.h:57: warning: data definition has no type or storage class
>>>>lwgeom_pg.h:59: error: syntax error before 'LWGEOM_force_2d'
>>>>lwgeom_pg.h:59: warning: type defaults to 'int' in declaration of
>>>>'LWGEOM_force_2d'
>>>>lwgeom_pg.h:59: warning: parameter names (without types) in function declaration
>>>>lwgeom_pg.h:59: warning: data definition has no type or storage class
>>>>lwgeom_pg.h:60: error: syntax error before 'LWGEOM_force_3dm'
>>>>lwgeom_pg.h:60: warning: type defaults to 'int' in declaration of
>>>>'LWGEOM_force_3dm'
>>>>lwgeom_pg.h:60: warning: parameter names (without types) in function declaration
>>>>lwgeom_pg.h:60: warning: data definition has no type or storage class
>>>>lwgeom_pg.h:61: error: syntax error before 'LWGEOM_force_3dz'
>>>>lwgeom_pg.h:61: warning: type defaults to 'int' in declaration of
>>>>'LWGEOM_force_3dz'
>>>>lwgeom_pg.h:61: warning: parameter names (without types) in function declaration
>>>>lwgeom_pg.h:61: warning: data definition has no type or storage class
>>>>lwgeom_pg.h:62: error: syntax error before 'LWGEOM_force_4d'
>>>>lwgeom_pg.h:62: warning: data definition has no type or storage class
>>>>lwgeom_pg.h:63: error: syntax error before 'LWGEOM_force_collection'
>>>>lwgeom_pg.h:63: warning: type defaults to 'int' in declaration of
>>>>'LWGEOM_force_collection'
>>>>lwgeom_pg.h:63: warning: parameter names (without types) in function declaration
>>>>lwgeom_pg.h:63: warning: data definition has no type or storage class
>>>>lwgeom_pg.h:64: error: syntax error before 'LWGEOM_force_multi'
>>>>lwgeom_pg.h:64: warning: type defaults to 'int' in declaration of
>>>>'LWGEOM_force_multi'
>>>>lwgeom_pg.h:64: warning: parameter names (without types) in function declaration
>>>>lwgeom_pg.h:64: warning: data definition has no type or storage class
>>>>lwgeom_pg.h:66: error: syntax error before 'LWGEOMFromWKB'
>>>>lwgeom_pg.h:66: warning: type defaults to 'int' in declaration of
>>>>'LWGEOMFromWKB'
>>>>lwgeom_pg.h:66: warning: parameter names (without types) in function declaration
>>>>lwgeom_pg.h:66: warning: data definition has no type or storage class
>>>>lwgeom_pg.h:67: error: syntax error before 'WKBFromLWGEOM'
>>>>lwgeom_pg.h:67: warning: type defaults to 'int' in declaration of
>>>>'WKBFromLWGEOM'
>>>>lwgeom_pg.h:67: warning: parameter names (without types) in function declaration
>>>>lwgeom_pg.h:67: warning: data definition has no type or storage class
>>>>lwgeom_pg.h:69: error: syntax error before 'LWGEOM_getBBOX'
>>>>lwgeom_pg.h:69: warning: type defaults to 'int' in declaration of
>>>>'LWGEOM_getBBOX'
>>>>lwgeom_pg.h:69: warning: parameter names (without types) in function declaration
>>>>lwgeom_pg.h:69: warning: data definition has no type or storage class
>>>>lwgeom_pg.h:70: error: syntax error before 'LWGEOM_addBBOX'
>>>>lwgeom_pg.h:70: warning: type defaults to 'int' in declaration of
>>>>'LWGEOM_addBBOX'
>>>>lwgeom_pg.h:70: warning: parameter names (without types) in function declaration
>>>>lwgeom_pg.h:70: warning: data definition has no type or storage class
>>>>lwgeom_pg.h:71: error: syntax error before 'LWGEOM_dropBBOX'
>>>>lwgeom_pg.h:71: warning: type defaults to 'int' in declaration of
>>>>'LWGEOM_dropBBOX'
>>>>lwgeom_pg.h:71: warning: parameter names (without types) in function declaration
>>>>lwgeom_pg.h:71: warning: data definition has no type or storage class
>>>>liblwgeom.c: In function 'trim_trailing_zeros':
>>>>liblwgeom.c:158: warning: implicit declaration of function 'strchr'
>>>>liblwgeom.c:158: warning: incompatible implicit declaration of
>>>>built-in function 'strchr'
>>>>liblwgeom.c:163: warning: implicit declaration of function 'strlen'
>>>>liblwgeom.c:163: warning: incompatible implicit declaration of
>>>>built-in function 'strlen'
>>>>make[1]: *** [liblwgeom.o] Error 1
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>On 1/12/06, strk at refractions.net <strk at refractions.net> wrote:
>>>>
>>>>>Please show some more lines - starting right before the *first*
>>>>>warning during make - after a make clean.
>>>>>
>>>>>--strk;
>>>>>
>>>>>On Thu, Jan 12, 2006 at 08:39:25AM -0700, Assad Jarrahian wrote:
>>>>>
>>>>>>I am talking about the latest release 1.10
>>>>>>Yes it seems that I can find postgres.h
>>>>>> pg_config --includedir-server
>>>>>>/usr/include/postgresql/8.1/server
>>>>>>
>>>>>>
>>>>>>What should I do with it?
>>>>>>thanks.
>>>>>>-assad
>>>>>>
>>>>>>On 1/12/06, strk at refractions.net <strk at refractions.net> wrote:
>>>>>>
>>>>>>>You're talking about postgis version ?
>>>>>>>Can you find postgres.h under `/usr/bin/pg_config --includedir-server` ?
>>>>>>>--strk;
>>>>>>>
>>>>>>>On Thu, Jan 12, 2006 at 01:46:17AM -0700, Assad Jarrahian wrote:
>>>>>>>
>>>>>>>>David and all,
>>>>>>>>  Thanks. I got everything installed, but when installing postgis I
>>>>>>>>got errors (see below).
>>>>>>>>The configure summary:
>>>>>>>> SUMMARY
>>>>>>>> -------------------------------------------------------
>>>>>>>>
>>>>>>>> HOST_OS: linux-gnu
>>>>>>>>
>>>>>>>>   PGSQL: /usr/bin/pg_config
>>>>>>>>    GEOS: /usr/local/bin/geos-config (with C-API)
>>>>>>>>    PROJ: dir=/usr/local
>>>>>>>>   ICONV: 1
>>>>>>>>
>>>>>>>> PORTNAME: linux
>>>>>>>>   PREFIX: /usr
>>>>>>>>  EPREFIX: ${prefix}
>>>>>>>>      DOC: /usr/share/doc/postgresql-doc-8.1
>>>>>>>>     DATA: /usr/share/postgresql/8.1/postgresql/contrib
>>>>>>>>      MAN: /usr/share/postgresql/8.1/man
>>>>>>>>      BIN: /usr/lib/postgresql/8.1/bin
>>>>>>>>      EXT: /usr/lib/postgresql/8.1/lib (\$$libdir)
>>>>>>>> -------------------------------------------------------
>>>>>>>>
>>>>>>>>
>>>>>>>>and the errors:
>>>>>>>>
>>>>>>>>lwgeom_pg.h:28: warning: type defaults to 'int' in declaration of
>>>>>>>>'getGeometryOID'
>>>>>>>>lwgeom_pg.h:28: warning: data definition has no type or storage class
>>>>>>>>lwgeom_pg.h:35: error: syntax error before '*' token
>>>>>>>>lwgeom_pg.h:36: error: syntax error before 'box2df_to_box'
>>>>>>>>lwgeom_pg.h:36: warning: type defaults to 'int' in declaration of
>>>>>>>>'box2df_to_box'
>>>>>>>>lwgeom_pg.h:36: warning: data definition has no type or storage class
>>>>>>>>lwgeom_pg.h:37: error: syntax error before 'BOX'
>>>>>>>>lwgeom_pg.h:40: error: syntax error before 'BOX2D_same'
>>>>>>>>lwgeom_pg.h:40: warning: type defaults to 'int' in declaration of 'BOX2D_same'
>>>>>>>>lwgeom_pg.h:40: warning: parameter names (without types) in function declaration
>>>>>>>>lwgeom_pg.h:40: warning: data definition has no type or storage class
>>>>>>>>lwgeom_pg.h:41: error: syntax error before 'BOX2D_overlap'
>>>>>>>>lwgeom_pg.h:41: warning: type defaults to 'int' in declaration of
>>>>>>>>'BOX2D_overlap'
>>>>>>>>lwgeom_pg.h:41: warning: parameter names (without types) in function declaration
>>>>>>>>lwgeom_pg.h:41: warning: data definition has no type or storage class
>>>>>>>>lwgeom_pg.h:42: error: syntax error before 'BOX2D_overleft'
>>>>>>>>lwgeom_pg.h:42: warning: type defaults to 'int' in declaration of
>>>>>>>>'BOX2D_overleft'
>>>>>>>>lwgeom_pg.h:42: warning: parameter names (without types) in function declaration
>>>>>>>>lwgeom_pg.h:42: warning: data definition has no type or storage class
>>>>>>>>lwgeom_pg.h:43: error: syntax error before 'BOX2D_left'
>>>>>>>>lwgeom_pg.h:43: warning: type defaults to 'int' in declaration of 'BOX2D_left'
>>>>>>>>lwgeom_pg.h:43: warning: parameter names (without types) in function declaration
>>>>>>>>lwgeom_pg.h:43: warning: data definition has no type or storage class
>>>>>>>>lwgeom_pg.h:44: error: syntax error before 'BOX2D_right'
>>>>>>>>lwgeom_pg.h:44: warning: type defaults to 'int' in declaration of 'BOX2D_right'
>>>>>>>>lwgeom_pg.h:44: warning: parameter names (without types) in function declaration
>>>>>>>>lwgeom_pg.h:44: warning: data definition has no type or storage class
>>>>>>>>lwgeom_pg.h:45: error: syntax error before 'BOX2D_overright'
>>>>>>>>lwgeom_pg.h:45: warning: type defaults to 'int' in declaration of
>>>>>>>>'BOX2D_overright'
>>>>>>>>lwgeom_pg.h:45: warning: parameter names (without types) in function declaration
>>>>>>>>lwgeom_pg.h:45: warning: data definition has no type or storage class
>>>>>>>>lwgeom_pg.h:46: error: syntax error before 'BOX2D_overbelow'
>>>>>>>>lwgeom_pg.h:46: warning: type defaults to 'int' in declaration of
>>>>>>>>'BOX2D_overbelow'
>>>>>>>>lwgeom_pg.h:46: warning: parameter names (without types) in function declaration
>>>>>>>>lwgeom_pg.h:46: warning: data definition has no type or storage class
>>>>>>>>lwgeom_pg.h:47: error: syntax error before 'BOX2D_below'
>>>>>>>>lwgeom_pg.h:47: warning: type defaults to 'int' in declaration of 'BOX2D_below'
>>>>>>>>lwgeom_pg.h:47: warning: parameter names (without types) in function declaration
>>>>>>>>lwgeom_pg.h:47: warning: data definition has no type or storage class
>>>>>>>>lwgeom_pg.h:48: error: syntax error before 'BOX2D_above'
>>>>>>>>lwgeom_pg.h:48: warning: type defaults to 'int' in declaration of 'BOX2D_above'
>>>>>>>>lwgeom_pg.h:48: warning: parameter names (without types) in function declaration
>>>>>>>>lwgeom_pg.h:48: warning: data definition has no type or storage class
>>>>>>>>lwgeom_pg.h:49: error: syntax error before 'BOX2D_overabove'
>>>>>>>>lwgeom_pg.h:49: warning: type defaults to 'int' in declaration of
>>>>>>>>'BOX2D_overabove'
>>>>>>>>lwgeom_pg.h:49: warning: parameter names (without types) in function declaration
>>>>>>>>lwgeom_pg.h:49: warning: data definition has no type or storage class
>>>>>>>>lwgeom_pg.h:50: error: syntax error before 'BOX2D_contained'
>>>>>>>>lwgeom_pg.h:50: warning: type defaults to 'int' in declaration of
>>>>>>>>'BOX2D_contained'
>>>>>>>>lwgeom_pg.h:50: warning: parameter names (without types) in function declaration
>>>>>>>>lwgeom_pg.h:50: warning: data definition has no type or storage class
>>>>>>>>lwgeom_pg.h:51: error: syntax error before 'BOX2D_contain'
>>>>>>>>lwgeom_pg.h:51: warning: type defaults to 'int' in declaration of
>>>>>>>>'BOX2D_contain'
>>>>>>>>lwgeom_pg.h:51: warning: parameter names (without types) in function declaration
>>>>>>>>lwgeom_pg.h:51: warning: data definition has no type or storage class
>>>>>>>>lwgeom_pg.h:52: error: syntax error before 'BOX2D_intersects'
>>>>>>>>lwgeom_pg.h:52: warning: type defaults to 'int' in
>>>>>>>>.......
>>>>>>>>
>>>>>>>>lwgeom_pg.h:69: error: syntax error before 'LWGEOM_getBBOX'
>>>>>>>>lwgeom_pg.h:69: warning: type defaults to 'int' in declaration of
>>>>>>>>'LWGEOM_getBBOX'
>>>>>>>>lwgeom_pg.h:69: warning: parameter names (without types) in function declaration
>>>>>>>>lwgeom_pg.h:69: warning: data definition has no type or storage class
>>>>>>>>lwgeom_pg.h:70: error: syntax error before 'LWGEOM_addBBOX'
>>>>>>>>lwgeom_pg.h:70: warning: type defaults to 'int' in declaration of
>>>>>>>>'LWGEOM_addBBOX'
>>>>>>>>lwgeom_pg.h:70: warning: parameter names (without types) in function declaration
>>>>>>>>lwgeom_pg.h:70: warning: data definition has no type or storage class
>>>>>>>>lwgeom_pg.h:71: error: syntax error before 'LWGEOM_dropBBOX'
>>>>>>>>lwgeom_pg.h:71: warning: type defaults to 'int' in declaration of
>>>>>>>>'LWGEOM_dropBBOX'
>>>>>>>>lwgeom_pg.h:71: warning: parameter names (without types) in function declaration
>>>>>>>>lwgeom_pg.h:71: warning: data definition has no type or storage class
>>>>>>>>liblwgeom.c: In function 'trim_trailing_zeros':
>>>>>>>>liblwgeom.c:158: warning: implicit declaration of function 'strchr'
>>>>>>>>liblwgeom.c:158: warning: incompatible implicit declaration of
>>>>>>>>built-in function 'strchr'
>>>>>>>>liblwgeom.c:163: warning: implicit declaration of function 'strlen'
>>>>>>>>liblwgeom.c:163: warning: incompatible implicit declaration of
>>>>>>>>built-in function 'strlen'
>>>>>>>>make[1]: *** [liblwgeom.o] Error 1
>>>>>>>>make: *** [liblwgeom] Error 2
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>On 1/12/06, Stefano Costa <steko at iosa.it> wrote:
>>>>>>>>
>>>>>>>>>Il giorno gio, 12/01/2006 alle 00.28 -0700, Assad Jarrahian ha scritto:
>>>>>>>>>
>>>>>>>>>>hey david and all,
>>>>>>>>>>   thanks for replying.
>>>>>>>>>>I tried the first step and it raised an exception
>>>>>>>>>>
>>>>>>>>>>sudo apt-get postgresql-dev
>>>>>>>>>>E: Invalid operation postgresql-dev
>>>>>>>>>
>>>>>>>>>You should add an "install" just like this:
>>>>>>>>>sudo apt-get install postgresql-dev
>>>>>>>>>
>>>>>>>>>Regards,
>>>>>>>>>
>>>>>>>>>Stefano
>>>>>>>>>--
>>>>>>>>>Stefano Costa
>>>>>>>>>http://www.iosa.it Software Open Source per l'Archeologia
>>>>>>>>>Jabber: steko at jabber.linux.it
>>>>>>>>>GnuPG Key ID 1024D/0xD0D30245
>>>>>>>>>Linux Registered User #385969 counter.li.org
>>>>>>>>>
>>>>>>>>>_______________________________________________
>>>>>>>>>postgis-users mailing list
>>>>>>>>>postgis-users at postgis.refractions.net
>>>>>>>>>http://postgis.refractions.net/mailman/listinfo/postgis-users
>>>>>>>>>
>>>>>>>>
>>>>>>>>_______________________________________________
>>>>>>>>postgis-users mailing list
>>>>>>>>postgis-users at postgis.refractions.net
>>>>>>>>http://postgis.refractions.net/mailman/listinfo/postgis-users
>>>>>>>
>>>>>>>--
>>>>>>>
>>>>>>> /"\    ASCII Ribbon Campaign
>>>>>>> \ /    Respect for low technology.
>>>>>>>  X     Keep e-mail messages readable by any computer system.
>>>>>>> / \    Keep it ASCII.
>>>>>>>
>>>>>>>_______________________________________________
>>>>>>>postgis-users mailing list
>>>>>>>postgis-users at postgis.refractions.net
>>>>>>>http://postgis.refractions.net/mailman/listinfo/postgis-users
>>>>>>>
>>>>>>
>>>>>>_______________________________________________
>>>>>>postgis-users mailing list
>>>>>>postgis-users at postgis.refractions.net
>>>>>>http://postgis.refractions.net/mailman/listinfo/postgis-users
>>>>>
>>>>>--
>>>>>
>>>>> /"\    ASCII Ribbon Campaign
>>>>> \ /    Respect for low technology.
>>>>>  X     Keep e-mail messages readable by any computer system.
>>>>> / \    Keep it ASCII.
>>>>>
>>>>>_______________________________________________
>>>>>postgis-users mailing list
>>>>>postgis-users at postgis.refractions.net
>>>>>http://postgis.refractions.net/mailman/listinfo/postgis-users
>>>>>
>>>>
>>>_______________________________________________
>>>postgis-users mailing list
>>>postgis-users at postgis.refractions.net
>>>http://postgis.refractions.net/mailman/listinfo/postgis-users
>>
>>--
>>
>> /"\    ASCII Ribbon Campaign
>> \ /    Respect for low technology.
>>  X     Keep e-mail messages readable by any computer system.
>> / \    Keep it ASCII.
>>
>>_______________________________________________
>>postgis-users mailing list
>>postgis-users at postgis.refractions.net
>>http://postgis.refractions.net/mailman/listinfo/postgis-users
>>
> 
> _______________________________________________
> postgis-users mailing list
> postgis-users at postgis.refractions.net
> http://postgis.refractions.net/mailman/listinfo/postgis-users
> 



More information about the postgis-users mailing list