[postgis-tickets] [PostGIS] #2783: Getting compile error when compiling json with custom json-dir

PostGIS trac at osgeo.org
Fri Jun 27 14:27:58 PDT 2014


#2783: Getting compile error when compiling json with custom json-dir
----------------------+-----------------------------------------------------
  Reporter:  robe     |       Owner:  pramsey      
      Type:  defect   |      Status:  reopened     
  Priority:  blocker  |   Milestone:  PostGIS 2.2.0
 Component:  postgis  |     Version:  trunk        
Resolution:           |    Keywords:               
----------------------+-----------------------------------------------------

Comment(by robe):

 Oh boy fix one thing break another, now winnie's json 0.9 (PostgreSQL 9.1)
 is no longer happy.  I was planning to upgrade it anyway but it's kinda
 annoying it works for one and not the other.


 {{{
 lwgeom_in_geojson.c:1:0: warning: -fPIC ignored for target (all code is
 position independent)

 In file included from
 e:/jenkins/json-c/rel-0.9w64/include/json/json_util.h:15:0,
                  from e:/jenkins/json-c/rel-0.9w64/include/json/json.h:23,
                  from lwgeom_in_geojson.c:24:
 e:/jenkins/json-c/rel-0.9w64/include/json/json_object.h:32:13: error:
 conflicting types for 'boolean'
 c:\ming64\mingw64\bin\../lib/gcc/x86_64-w64-mingw32/4.5.4/../../../../x86_64-w64-mingw32/include/rpcndr.h:52:25:
 note: previous declaration of 'boolean' was here
 make[1]: *** [lwgeom_in_geojson.o] Error 1
 make[1]: Leaving directory `/projects/postgis/branches/2.2/postgis'
 make: *** [all] Error 1
 }}}

 I think I got this error earlier on with 0.9 and just started compiling
 with -w option or something.  Have to look at my notes.

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