[postgis-users] Compile errors with the latest SVN

Michael Fuhr mike at fuhr.org
Mon Sep 11 18:11:55 PDT 2006


On Mon, Sep 11, 2006 at 10:28:35AM -0600, Bruce Rindahl wrote:
> >  And where are the 8.1.4 headers?  gcc appears to be finding
> >them first, resulting in a mismatch between the number of arguments
> >that gistentryinit() expects (defined in a header file) and the
> >number of arguments that PostGIS passes (conditional compilation
> >based on USE_VERSION).
> 
> I can't find any 8.1.4 headers. (??)
> Does the compliation use a registered .dll ?

You could use the Unix "find" command (or the equivalent on your
system) to look for PostgreSQL header files in additional locations.

How old is your 8.2devel installation?  Near the beginning of
C:/msys/1.0/local/pgsql/include/server/access/gist.h should be a
line like the following -- what version and date does yours show?

$PostgreSQL: pgsql/src/include/access/gist.h,v 1.55 2006/09/10 00:29:34 tgl Exp $

More importantly, near the end of that file is the following macro
definition:

#define gistentryinit(e, k, r, pg, o, l) \
    do { (e).key = (k); (e).rel = (r); (e).page = (pg); \
         (e).offset = (o); (e).leafkey = (l); } while (0)

Does yours have six parameters as shown above or does it have seven?
That macro was changed in file revision 1.54 on 28 Jun; if you have
an older version then that could explain the error.

-- 
Michael Fuhr



More information about the postgis-users mailing list