[postgis-users] Compile errors with the latest SVN

Michael Fuhr mike at fuhr.org
Sun Sep 10 19:59:32 PDT 2006


[Please copy the mailing list on replies so others can contribute
to and learn from the discussion.]

On Sun, Sep 10, 2006 at 07:18:24PM -0600, Bruce Rindahl wrote:
> I have an operating install of PostgreSQL that is version 8.1.4.  For
> testing, I have a CVS version to compile.  The path variables point to the
> CVS version.  From the MINGW window the result of pg_config --version is:
> PostgreSQL 8.2devel

Your compile command was:

> gcc -DUSE_VERSION=82 -DPOSTGIS_LIB_VERSION='"1.1.4CVS"'
> -DPOSTGIS_VERSION='"1.1 USE_GEOS=1 USE_PROJ=1 USE_STATS=1"'
> -DPOSTGIS_SCRIPTS_VERSION='"1.1.4CVS"' -DPOSTGIS_BUILD_DATE='"2006-09-09
> 18:17:30"' -I/usr/local/include -DUSE_PROJ
> -IC:/msys/1.0/local/pgsql/include/server
> -IC:/msys/1.0/local/pgsql/include/server/port/win32 -DAUTOCACHE_BBOX=1
> -DUSE_STATS -Wall -g -O2 -fPIC -fexceptions -DUSE_GEOS -I/usr/local/include
> -c -o lwgeom_gist.o lwgeom_gist.c

I'm guessing that the 8.1.4 headers are under /usr/local/include
and the 8.2devel headers are under C:/msys/1.0/local/pgsql/include.
Is that right?  If so then the order of the -I options is causing
the build to find the 8.1.4 headers first, which results in errors
because USE_VERSION=82 tells the code to expect 8.2devel headers.
Try editing lwgeom/Makefile and moving the following line (line 69
or thereabouts) up a few lines to above the PROJ section:

override CFLAGS += $(PGBEINCLUDES) -DAUTOCACHE_BBOX=$(AUTOCACHE_BBOX)

Putting that line earlier should cause the 8.2devel headers to be
found first.

-- 
Michael Fuhr



More information about the postgis-users mailing list