[postgis-tickets] [PostGIS] #2538: False detection of json support

PostGIS trac at osgeo.org
Fri Nov 8 16:33:21 PST 2013


#2538: False detection of json support
---------------------+------------------------------------------------------
 Reporter:  mwtoews  |       Owner:  pramsey      
     Type:  defect   |      Status:  new          
 Priority:  medium   |   Milestone:  PostGIS 2.1.2
Component:  postgis  |     Version:  2.1.x        
 Keywords:           |  
---------------------+------------------------------------------------------
 With the latest Ubuntu release (13.10), I noticed that
 [http://packages.ubuntu.com/saucy/libjson0-dev libjson0-dev] is now a
 transitional package to [http://packages.ubuntu.com/saucy/libjson-c-dev
 libjson-c-dev]. Using only the later package installed with ./configure:
 {{{
 ...
 checking json/json.h usability... no
 checking json/json.h presence... no
 checking for json/json.h... no
 checking for json_object_get in -ljson-c... yes
 ...
  -------------- Dependencies --------------
 ...
   JSON-C support:       yes
 ...
 }}}
 However, there are errors with {{{#include <json/json.h>}}} in both
 conf.log:
 {{{
 ...
 configure:19223: result: no
 configure:19223: checking json/json.h presence
 configure:19223: gcc -E  conftest.c
 conftest.c:46:23: fatal error: json/json.h: No such file or directory
  #include <json/json.h>
                        ^
 compilation terminated.
 configure:19223: $? = 1
 ...
 configure:19223: result: no
 configure:19223: checking for json/json.h
 configure:19223: result: no
 configure:19233: checking for json_object_get in -ljson-c
 configure:19258: gcc -o conftest -g -O2   conftest.c -ljson-c   >&5
 configure:19258: $? = 0
 configure:19267: result: yes
 ...
 }}}
 and with make:
 {{{
 ...
 /bin/bash ../libtool --mode=compile gcc -g -O2  -fPIC -DPIC  -Wall
 -Wmissing-prototypes -I/usr/local/include   -c -o lwin_geojson.lo
 lwin_geojson.c
 libtool: compile:  gcc -g -O2 -fPIC -DPIC -Wall -Wmissing-prototypes
 -I/usr/local/include -c lwin_geojson.c  -fPIC -DPIC -o
 .libs/lwin_geojson.o
 lwin_geojson.c:20:23: fatal error: json/json.h: No such file or directory
  #include <json/json.h>
                        ^
 compilation terminated.
 make[1]: *** [lwin_geojson.lo] Error 1
 make[1]: Leaving directory `/home/mwtoews/postgis-2.1.1/liblwgeom'
 make: *** [all] Error 1
 }}}

-- 
Ticket URL: <http://trac.osgeo.org/postgis/ticket/2538>
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