[postgis-tickets] [PostGIS] #2218: json broken on windows

PostGIS trac at osgeo.org
Sun Mar 3 09:38:19 PST 2013


#2218: json broken on windows
---------------------+------------------------------------------------------
 Reporter:  robe     |       Owner:  strk         
     Type:  defect   |      Status:  new          
 Priority:  blocker  |   Milestone:  PostGIS 2.1.0
Component:  postgis  |     Version:  trunk        
 Keywords:           |  
---------------------+------------------------------------------------------

Comment(by robe):

 strk: sorry really bogged down this weekend so won't have time to do this.
 If you do, winnie will complain or not.

 Anyrate I can tell you that json does include a boolean and I have had to
 remark it out and unremark it to have it work on windows.

 Here are relevant notes from -
 http://trac.osgeo.org/postgis/wiki/DevWikiWinMingW64

 about this issue.


 {{{ Open up /c/projects/json-c/rel-0.9/include/json/json_object.h
     remark out line 32 that reads

         typedef int boolean

     so it should now read

         /** typedef int boolean; **/

     During the PostGIS configure process, you have to put this back the
 way it was otherwise configure complains json.h or something is not usable
 and refuses to configure with JSON-C support. Then you remark the line out
 again during compile. Crazy I know, but json-c won't compile without that
 line so can't take it out before json-c compile.
 }}}

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