[postgis-devel] trunk build failure due to bad search path for liblwgeom includes

Regina Obe lr at pcorp.us
Sat Jul 30 10:48:08 PDT 2016


I don't think we have a ticket in place for this and I can't replicate the issue on my end or any of the PostGIS bots. Yikes 521 open tickets.  
I guess we've got a lot of spring cleaning to do.

If you can put in a ticket and preferably with a patch, that would be swell.


-----Original Message-----
From: postgis-devel [mailto:postgis-devel-bounces at lists.osgeo.org] On Behalf Of Greg Troxel
Sent: Saturday, July 30, 2016 10:18 AM
To: postgis-devel at lists.osgeo.org
Subject: [postgis-devel] trunk build failure due to bad search path for liblwgeom includes

Since I'm hearing about the possibility of 2.3.0, I tried to build trunk.  It failed with the following, in which one can clearly see that the order of includes is wrong, picking up the installed directories before the local liblwgeom (and the installed older version was read).

Before I file a ticket, does anyone think one is open (I couldn't find it, but there are 521 open tickets so I could well have missed it).

gmake[1]: Entering directory '/usr/home/gdt/SOFTWARE/GEO/postgis/postgis'
gcc -O2 -I/usr/include -I/usr/pkg/include -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Wendif-labels -Wmissing-format-attribute -Wformat-security -fno-strict-aliasing -fwrapv -fexcess-precision=standard -fpic -DPIC -I../liblwgeom -I../libpgcommon  -I/usr/pkg/include -I/usr/pkg/include -I/usr/pkg/include/libxml2     -fPIC -I. -I. -I/usr/pkg/include/postgresql/server -I/usr/pkg/include/postgresql/internal -I/usr/include -I/usr/pkg/include   -c -o lwgeom_functions_analytic.o lwgeom_functions_analytic.c
lwgeom_functions_analytic.c: In function  ST_MinimumBoundingRadius :
lwgeom_functions_analytic.c:1088:2: error:  LWBOUNDINGCIRCLE  undeclared (first use in this function)
lwgeom_functions_analytic.c:1088:2: note: each undeclared identifier is reported only once for each function it appears in
lwgeom_functions_analytic.c:1088:20: error:  mbc  undeclared (first use in this function)
lwgeom_functions_analytic.c:1089:2: warning: ISO C90 forbids mixed declarations and code
lwgeom_functions_analytic.c:1111:3: warning: implicit declaration of function  lwgeom_calculate_mbc 
lwgeom_functions_analytic.c:1123:3: warning: implicit declaration of function  lwboundingcircle_destroy 
lwgeom_functions_analytic.c: In function  ST_GeometricMedian :
lwgeom_functions_analytic.c:1215:2: warning: implicit declaration of function  lwgeom_median 
lwgeom_functions_analytic.c:1215:11: warning: assignment makes pointer from integer without a cast
gmake[1]: *** [<builtin>: lwgeom_functions_analytic.o] Error 1

and configure output:

  PostGIS is now configured for x86_64-unknown-netbsd6.1.

 -------------- Compiler Info ------------- 
  C compiler:           gcc -g -O2
  SQL preprocessor:     /usr/bin/cpp -traditional-cpp -w -P

 -------------- Dependencies -------------- 
  GEOS config:          /usr/pkg/bin/geos-config
  GEOS version:         3.5.0
  GDAL config:          /usr/pkg/bin/gdal-config
  GDAL version:         1.11.3
  PostgreSQL config:    /usr/pkg/bin/pg_config
  PostgreSQL version:   PostgreSQL 9.3.13
  PROJ4 version:        49
  Libxml2 config:       /usr/pkg/bin/xml2-config
  Libxml2 version:      2.9.4
  JSON-C support:       no
  PCRE support:         no
  PostGIS debug level:  0
  Perl:                 /usr/pkg/bin/perl

 --------------- Extensions --------------- 
  PostGIS Raster:       enabled
  PostGIS Topology:     enabled
  SFCGAL support:       disabled
  Address Standardizer support:       disabled

 -------- Documentation Generation -------- 
  xsltproc:             /usr/pkg/bin/xsltproc
  xsl style sheets:     
  convert:              /usr/pkg/bin/convert
  mathml2.dtd:          http://www.w3.org/Math/DTD/mathml2/mathml2.dtd

More information about the postgis-devel mailing list