[postgis-users] Compile errors with the latest SVN

Bruce Rindahl rindahl at lrcwe.com
Tue Sep 12 08:18:28 PDT 2006


Michael

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

I searched the entire hard drive for any file resembling pg_config.h and
found the following files:

pg_config.h        c:\msys\1.0\local\pgsql\include
pg_config.h        c:\msys\1.0\local\pgsql\include\server
pg_config.h        c:\msys\1.0\home\Bruce\pgsql\src\include
pg_config.h.in     c:\msys\1.0\home\Bruce\pgsql\src\include
pg_config.h.win32  c:\msys\1.0\home\Bruce\pgsql\src\include
ecpg_config.h      c:\msys\1.0\home\Bruce\pgsql\src\interfaces\ecpg\include
ecpg_config.h.in   c:\msys\1.0\home\Bruce\pgsql\src\interfaces\ecpg\include

The only version references are in the pg_config.h files and they all say
8.2devel.  Should I search for other files?

>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 $

Mine is:

$PostgreSQL: pgsql/src/include/access/gist.h,v 1.52 2006/03/05 15:58:53
momjian 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.

This might be the problem.  I have:

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

Note the seven parameters and version 1.52

I updated the source via CVS.  Should I just grab an archive and try again?

Thanks again for all your help.
Bruce Rindahl







More information about the postgis-users mailing list