Compiling PostGIS 2.0.0 will break down when the file "liblwgeom.h" is not included from the PostGIS distribution, but from the installed GEOS includes. This happens when the include path to the gcc compiler first explicitly specifies the standard include directories (/usr/include etc), and only afterwards the specific PostGIS include directories, like "-I/usr/local/include -I../libwgeom". The problem is that the file "liblwgeom.h" exists both in the GEOS distribution and in the PostGIS source. Things are defined differently im both versions, i.e. a "struct BOX3D" with and without a "srid" member.

I solved the problem by changing #include "liblwgeom.h" into #include "../liblwgeom.h" in all C-files in the postgis subdirectory. Another way would be to change the compile setup in configure. Best would be, of course, to either synchronize both liblwgeom.h files, or rename the PostGIS version. The way it now is organised is asking for trouble.

Cheers,

Jan
_______________________________________________
postgis-users mailing list
postgis-users@postgis.refractions.net
http://postgis.refractions.net/mailman/listinfo/postgis-users

Reply via email to