[postgis-devel] postgis trunk fails to build with 2.2.1 installed

Greg Troxel gdt at ir.bbn.com
Sat Jan 9 17:35:23 PST 2016


Building postgis svn trunk on netbsd-6 i386 with prerequisites from
pkgsrc (as I did with 2.2 just fine), I got an undefined error about one
of the lwgeom types.  I am 95% sure this is because the compilation
found /usr/pkg/include/liblwgeom.h before $SVN/liblwgeom/liblgweom.h.
The following change let this particular file compile, but then others
had similar issues.

Index: postgis/lwgeom_functions_analytic.c
===================================================================
--- postgis/lwgeom_functions_analytic.c	(revision 14584)
+++ postgis/lwgeom_functions_analytic.c	(working copy)
@@ -26,7 +26,7 @@
 #include "postgres.h"
 #include "funcapi.h"
 #include "fmgr.h"
-#include "liblwgeom.h"
+#include "../liblwgeom/liblwgeom.h"
 #include "liblwgeom_internal.h"  /* For FP comparators. */
 #include "lwgeom_pg.h"
 #include "math.h"

I'm not sure what the group wants to do about this.  liblwgeom.h is an
internal library, and installed versions should not be looked at.  So I
would recommend the ../liblwgeom/ change above for all uses, including
_internal.h, but I am not 100% confident this is right.


PS: I'll reply about release process later.

PPS: I can also report that 2.2.1 builds and tests fine on netbsd-6
under pkgsrc with pgsql 9.3 and also builds fine under pkgsrc on osx
10.7.  testing has an issue with gdal-lib not finding proj, but I think
that's a pkgsrc bug in the gdal package.  But vast amounts of tests pass
before it gets to the failing one, so it's at least mostly ok, perhaps
entirely ok except for raster.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 180 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/postgis-devel/attachments/20160109/79798f77/attachment.sig>


More information about the postgis-devel mailing list