[postgis-devel] PostgreSQL 7.5 and PostGIS 0.8.1 or cvs
strk at keybit.net
Fri May 7 03:50:59 PDT 2004
On Thu, May 06, 2004 at 02:10:52PM -0700, Craig Miller wrote:
> I am trying to compile the unsupported combination of PostgreSQL 7.5
> (snapshot) and PostGIS 0.8.1 (or CVS). I know this question has come up
> before, but has anyone looked at the problem with the call to
> canonicalize_qual and determined how the call should be made to the version
> of this method included in pgsql 7.5?
> The code:
> * If the index is partial, AND the index predicate with the
> * explicitly given indexquals to produce a more accurate idea of
> * index restriction. This may produce redundant clauses, which we
> * hope that cnfify and clauselist_selectivity will deal with
> * intelligently.
> * Note that index->indpred and indexQuals are both in implicit-AND
> * to start with, which we have to make explicit to hand to
> * canonicalize_qual, and then we get back implicit-AND form again.
> if (index->indpred != NIL)
> Expr *andedQuals;
> andedQuals =
> selectivityQuals = canonicalize_qual(andedQuals, true);
> The error:
> gcc -O2 -fno-strict-aliasing -Wall -Wmissing-prototypes -Wmissing-declaratio
> ns -g -fexceptions -I. -DFRONTEND -DSYSCONFDIR='"/pgSpatial/etc/postgresql
> "' -DUSE_VERSION=74 -I../../src/include -I./src/include/port/win32 -DEXEC_
> BACKEND "-I../../src/include/port/win32" -c -o postgis_estimate.o
> postgis_estimate.c: In function `genericcostestimate2':
> postgis_estimate.c:751: too many arguments to function `canonicalize_qual'
> postgis_estimate.c:751: warning: assignment from incompatible pointer type
> make: *** [postgis_estimate.o] Error 1
You are compiling against pg74, not 75 (-DUSE_VERSION=74).
To detect pgsql version, postgis Makefile goes:
ifneq ($(findstring 7.4,$(VERSION)),)
What does your postgres snapshot's global Makefile use as $(VERSION) ?
> Thanks for the help,
> postgis-devel mailing list
> postgis-devel at postgis.refractions.net
More information about the postgis-devel