<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="Generator" CONTENT="MS Exchange Server version 5.5.2657.73">
<TITLE>RE: [postgis-users] compilation problem with postgresql7.4 + postgis 0.8</TITLE>
</HEAD>
<BODY>

<P><FONT SIZE=2>Hello Laurent.</FONT>
</P>

<P><FONT SIZE=2>Only us crazy programmers are awake at this time in Canada.</FONT>
</P>

<P><FONT SIZE=2>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.</FONT></P>

<P><FONT SIZE=2>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.</FONT></P>

<P><FONT SIZE=2>Hope this helps some,</FONT>
</P>

<P><FONT SIZE=2>Darren H. </FONT>
</P>
<BR>

<P><FONT SIZE=2>-----Original Message-----</FONT>
<BR><FONT SIZE=2>From: postgis-users-bounces@postgis.refractions.net</FONT>
<BR><FONT SIZE=2>To: postgis-users@postgis.refractions.net</FONT>
<BR><FONT SIZE=2>Sent: 12/3/03 5:25 AM</FONT>
<BR><FONT SIZE=2>Subject: [postgis-users] compilation problem with postgresql7.4 + postgis 0.8</FONT>
</P>

<P><FONT SIZE=2>Hello</FONT>
</P>

<P><FONT SIZE=2>I am trying to install Postgis 0.8 with Postgresql7.3.4, on a linux</FONT>
<BR><FONT SIZE=2>system </FONT>
<BR><FONT SIZE=2>(debian).</FONT>
</P>

<P><FONT SIZE=2>I followed the README.postgis instructions but I'm getting this error </FONT>
<BR><FONT SIZE=2>(sorry for length) :</FONT>
</P>

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

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

<P><FONT SIZE=2>Thanks for any help</FONT>
</P>

<P><FONT SIZE=2>Laurent Perez</FONT>
<BR><FONT SIZE=2> <<ATT141234.txt>>  <<ATT141235.txt>> </FONT>
</P>

</BODY>
</HTML>