<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<font face="Times New Roman, Times, serif">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.<br>
<br>
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.<br>
<br>
Cheers,<br>
<br>
Jan <br>
</font>
</body>
</html>