[postgis-tickets] [PostGIS] #4443: Building with --without-raster drops CPPFLAGS

PostGIS trac at osgeo.org
Fri Jun 28 08:32:14 PDT 2019


#4443: Building with --without-raster drops CPPFLAGS
-----------------------------------+---------------------------
 Reporter:  Algunenano             |      Owner:  strk
     Type:  defect                 |     Status:  new
 Priority:  blocker                |  Milestone:  PostGIS 3.0.0
Component:  build/upgrade/install  |    Version:  trunk
 Keywords:                         |
-----------------------------------+---------------------------
 When I do `./configure` I get:
 {{{
 CPPFLAGS:              -I/usr/include   -I/usr/include/libxml2
 -I/usr/include/json-c
 }}}


 If I do `./configure --without-raster` I get:
 {{{
   CPPFLAGS:
 }}}

 Which later on breaks the build as it can't find json-c headers:
 {{{
 /bin/sh ../libtool --mode=compile gcc  -Wall -Wmissing-prototypes
 -std=gnu99 -g -O2 -fno-math-errno -fno-signed-zeros  -fPIC -DPIC -c -o
 lwgeom_median.lo lwgeom_median.c
 lwin_geojson.c:36:10: fatal error: json.h: No such file or directory
    36 | #include <json.h>
       |          ^~~~~~~~
 compilation terminated.
 }}}

-- 
Ticket URL: <https://trac.osgeo.org/postgis/ticket/4443>
PostGIS <http://trac.osgeo.org/postgis/>
The PostGIS Trac is used for bug, enhancement & task tracking, a user and developer wiki, and a view into the subversion code repository of PostGIS project.


More information about the postgis-tickets mailing list