[postgis-tickets] [PostGIS] #3167: Windows build broken, lwin_geojson.c undefined reference to json_..

PostGIS trac at osgeo.org
Tue Jun 16 06:08:30 PDT 2015


#3167: Windows build broken, lwin_geojson.c undefined reference to json_..
----------------------+---------------------------
  Reporter:  robe     |      Owner:  strk
      Type:  defect   |     Status:  new
  Priority:  blocker  |  Milestone:  PostGIS 2.2.0
 Component:  postgis  |    Version:  trunk
Resolution:           |   Keywords:
----------------------+---------------------------

Comment (by robe):

 okay it seems the main culprit is because I build json-c statically
 instead of dynamically
 and the


 {{{
 LDFLAGS += -no-undefined
 }}}

 causes it for some reason to try to build dynamically which it can't cause
 I have no dll.  I confirmed if I take that line out things work fine.
 With that line in, I get this message:


 {{{
 *** Warning: This system can not link to static lib archive
 /projects/json-c/rel-0.12w32gcc481/lib/libjson-c.la.
 *** I have the capability to make that library automatically link in when
 *** you link to this library.  But I can only do this if you have a
 *** shared version of the library, which you do not appear to have.
 }}}

 and the libjson-c.a no longer gets added to the link statement.

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