[postgis-devel] build break in lwgeom
Greg Troxel
gdt at ir.bbn.com
Tue Feb 7 07:00:15 PST 2012
It works for me with a very similar set-up. The error is consistent
with not finding the projects.h file, which in turn would be
consistent with failing to re-run ./configure and pick up a chance in
liblwgeom.h.in. However you say you're configuring each time, so I
dunno.
Thanks for the hint. I built the offending file with -E to study the
twisty maze of includes, and found that it was picking up
/usr/pkg/include/liblwgeom.h left over from an earlier install (of
2.0svn).
The problem is that libpgcommon puts PROJ_CPPFLAGS before
-I../liblwgeom, and thus if proj's prefix is the same as the prefix of
a previous installation of postgis will get the old liblwgeom.h. The
following fixes the issue for me. There is a similar issue in
postgis/Makefile.in where @CPPFLAGS@ precedes the ../ inclusions, and I
think that should be changed also.
Index: libpgcommon/Makefile.in
===================================================================
--- libpgcommon/Makefile.in (revision 9058)
+++ libpgcommon/Makefile.in (working copy)
@@ -11,7 +11,7 @@
# **********************************************************************
CC=@CC@
-CFLAGS=@CFLAGS@ @PGSQL_BE_CPPFLAGS@ @PROJ_CPPFLAGS@ -I../liblwgeom @PICFLAGS@ @WARNFLAGS@ @GETTEXT_CFLAGS@
+CFLAGS=@CFLAGS@ -I../liblwgeom @PGSQL_BE_CPPFLAGS@ @PROJ_CPPFLAGS@ @PICFLAGS@ @WARNFLAGS@ @GETTEXT_CFLAGS@
LDFLAGS=@GETTEXT_LDFLAGS@ @LIBINTL@
NUMERICFLAGS=@NUMERICFLAGS@
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 194 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/postgis-devel/attachments/20120207/d77d50b6/attachment.sig>
More information about the postgis-devel
mailing list