[postgis-users] compilation problem with postgresql7.4 + post gis 0.8

Darren Houston darren.houston at edu.sait.ca
Thu Dec 4 01:05:26 PST 2003


Hello Laurent.

Only us crazy programmers are awake at this time in Canada.

I see one problem. You say that you are compiling PostGIS to be used with
PostgreSQL 7.3.4, but PostGIS is compiling for PostgreSQL 7.4. One of the
PostGIS programmers will have to confirm this, but I believe that a PostGIS
compile for PostgreSQL 7.4 will not work with PostgreSQL 7.3.4 (which is the
7.3 version). If your PostgreSQL version is 7.3.4, you will have to have a
source directory called *7.3* or modify the PostGIS Makefile to
USE_VERSION=73.

The projects.h header file that the compile is complaining about is
associated with Proj4 support. Do you have the Proj4 libraries installed?
Are these libraries installed at /usr/local/include? Have you modified the
PostGIS Makefile to properly point to your GEOS and Proj4 install locations?
If Proj4 was installed without changing the install prefix with ./configure
--prefix=/usr/local/include then Proj4 will reside at /usr/local by default.
In /usr/local/lib /usr/local/include /usr/local/... you will find the Proj4
files.

Hope this helps some,

Darren H. 


-----Original Message-----
From: postgis-users-bounces at postgis.refractions.net
To: postgis-users at postgis.refractions.net
Sent: 12/3/03 5:25 AM
Subject: [postgis-users] compilation problem with postgresql7.4 + postgis
0.8

Hello

I am trying to install Postgis 0.8 with Postgresql7.3.4, on a linux
system 
(debian).

I followed the README.postgis instructions but I'm getting this error 
(sorry for length) :

msi:/usr/local/src/postgresql-7.4/contrib/postgis-0.8.0# make
gcc -O2 -fno-strict-aliasing -Wall -Wmissing-prototypes 
-Wmissing-declarations -g -fexceptions   -I. -DFRONTEND 
-DSYSCONFDIR='"/usr/local/pgsql74/etc"'  -DUSE_VERSION=74 
-I/usr/local/include/geos -DUSE_GEOS -I/usr/local/include 
-DUSE_PROJ  -DUSE_STATS -fpic -I../../src/include -D_GNU_SOURCE   -c -o 
postgis_debug.o postgis_debug.c
postgis_debug.c: In function `lockcheck':
postgis_debug.c:310: warning: control reaches end of non-void function
gcc -O2 -fno-strict-aliasing -Wall -Wmissing-prototypes 
-Wmissing-declarations -g -fexceptions   -I. -DFRONTEND 
-DSYSCONFDIR='"/usr/local/pgsql74/etc"'  -DUSE_VERSION=74 
-I/usr/local/include/geos -DUSE_GEOS -I/usr/local/include 
-DUSE_PROJ  -DUSE_STATS -fpic -I../../src/include -D_GNU_SOURCE   -c -o 
postgis_ops.o postgis_ops.c
gcc -O2 -fno-strict-aliasing -Wall -Wmissing-prototypes 
-Wmissing-declarations -g -fexceptions   -I. -DFRONTEND 
-DSYSCONFDIR='"/usr/local/pgsql74/etc"'  -DUSE_VERSION=74 
-I/usr/local/include/geos -DUSE_GEOS -I/usr/local/include 
-DUSE_PROJ  -DUSE_STATS -fpic -I../../src/include -D_GNU_SOURCE   -c -o 
postgis_fn.o postgis_fn.c
gcc -O2 -fno-strict-aliasing -Wall -Wmissing-prototypes 
-Wmissing-declarations -g -fexceptions   -I. -DFRONTEND 
-DSYSCONFDIR='"/usr/local/pgsql74/etc"'  -DUSE_VERSION=74 
-I/usr/local/include/geos -DUSE_GEOS -I/usr/local/include 
-DUSE_PROJ  -DUSE_STATS -fpic -I../../src/include -D_GNU_SOURCE   -c -o 
postgis_inout.o postgis_inout.c
gcc -O2 -fno-strict-aliasing -Wall -Wmissing-prototypes 
-Wmissing-declarations -g -fexceptions   -I. -DFRONTEND 
-DSYSCONFDIR='"/usr/local/pgsql74/etc"'  -DUSE_VERSION=74 
-I/usr/local/include/geos -DUSE_GEOS -I/usr/local/include 
-DUSE_PROJ  -DUSE_STATS -fpic -I../../src/include -D_GNU_SOURCE   -c -o 
postgis_proj.o postgis_proj.c
gcc -O2 -fno-strict-aliasing -Wall -Wmissing-prototypes 
-Wmissing-declarations -g -fexceptions   -I. -DFRONTEND 
-DSYSCONFDIR='"/usr/local/pgsql74/etc"'  -DUSE_VERSION=74 
-I/usr/local/include/geos -DUSE_GEOS -I/usr/local/include 
-DUSE_PROJ  -DUSE_STATS -fpic -I../../src/include -D_GNU_SOURCE   -c -o 
postgis_chip.o postgis_chip.c
gcc -O2 -fno-strict-aliasing -Wall -Wmissing-prototypes 
-Wmissing-declarations -g -fexceptions   -I. -DFRONTEND 
-DSYSCONFDIR='"/usr/local/pgsql74/etc"'  -DUSE_VERSION=74 
-I/usr/local/include/geos -DUSE_GEOS -I/usr/local/include 
-DUSE_PROJ  -DUSE_STATS -fpic -I../../src/include -D_GNU_SOURCE   -c -o 
postgis_transform.o postgis_transform.c
postgis_transform.c:52: projects.h: No such file or directory
make: *** [postgis_transform.o] Error 1

Is projects.h supposed to be bundled with 0.8 ?
Note : postgresql 7.3.4 is running and was compiled from the same 
/usr/local/src/postgresql-7.4 directory, before any postgis compilation 
attempt.

Thanks for any help

Laurent Perez
 <<ATT141234.txt>>  <<ATT141235.txt>> 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/postgis-users/attachments/20031204/2c7484a3/attachment.html>


More information about the postgis-users mailing list