[postgis-tickets] [PostGIS] #2783: Getting compile error when compiling against json 0.10 in mingw64

PostGIS trac at osgeo.org
Fri Jun 27 07:55:05 PDT 2014


#2783: Getting compile error when compiling against json 0.10 in mingw64
---------------------+------------------------------------------------------
 Reporter:  robe     |       Owner:  pramsey      
     Type:  defect   |      Status:  new          
 Priority:  blocker  |   Milestone:  PostGIS 2.2.0
Component:  postgis  |     Version:  trunk        
 Keywords:           |  
---------------------+------------------------------------------------------

Comment(by robe):

 Okay i compared the configure.ac scripts, and that is not what changed
 between 2.1 and 2.2.  Only difference between them is the  a line got
 commented out.

 In 2.1 it's

 {{{
 AC_MSG_RESULT([CPPFLAGS: $CPPFLAGS])
 }}}
  In 2.2 it's

 {{{
 dnl AC_MSG_RESULT([CPPFLAGS: $CPPFLAGS])
 }}}

 Not sure why someone did that as I would think seeing that variable would
 be useful


 I did find the smoking gun -- it's exactly where the error says.

 These lines were added in 2.2:

 {{{
 #ifdef HAVE_LIBJSON
 # ifdef HAVE_LIBJSON_C
 #  include <json-c/json.h>
 # else
 #  include <json/json.h>
 # endif
 #endif
 }}}

 If I remove them my code compiles again.  I'm still puzzled why my json
 0.9 works with these lines and my 0.10 doesn't.  Unless if its something
 to do with the fact that it is static vs. 0.10 being dynamic.

 why did we add these line here?  they don't seem to be needed as far as I
 can tell.

-- 
Ticket URL: <http://trac.osgeo.org/postgis/ticket/2783#comment:2>
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