[postgis-tickets] [PostGIS] #2783: Getting compile error when compiling against json 0.10 in mingw64
PostGIS
trac at osgeo.org
Fri Jun 27 03:28:48 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 think the include path is somehow getting lost. The line before
the above error is:
{{{
gcc -O2 -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-
statement -Wendif-labels -Wmissing-format-attribute -Wformat-security
-fno-strict-aliasing -fwrapv -fexcess-precision=standard -g
-I../liblwgeom -I../libpgcommon
-I/projects/geos/rel-3.5.0devw32gcc481/include
-I/projects/proj/rel-4.8.0w32gcc481/include -I/projects/libxml/rel-
libxml2-2.7.8w32gcc481/include/libxml2
-I/projects/postgresql/rel/pg9.4w32gcc481/include -I/projects/rel-
libiconv-1.13.1w32gcc481/include -fPIC -I. -I./
-Ie:/jenkins/postgresql/rel/pg9.4w32gcc481/include/server
-Ie:/jenkins/postgresql/rel/pg9.4w32gcc481/include/internal
-I./src/include/port/win32 -DEXEC_BACKEND
"-Ie:/jenkins/postgresql/rel/pg9.4w32gcc481/lib/pgxs/src/makefiles/../../src/include/port/win32"
-Ie:/jenkins/postgresql/rel/pg9.4w32gcc481/include/server/port/win32 -c
-o lwgeom_in_geojson.o lwgeom_in_geojson.c
lwgeom_in_geojson.c:1:0: warning: -fPIC ignored for target (all code is
position independent) [enabled by default]
/**********************************************************************
}}}
note how there is absense of json-c include (maybe the JSON-CPP flags or
something is wrong).
However if I look at the libtool lines, they do have the include and lib
paths:
{{{
libtool: compile: i686-w64-mingw32-gcc -g -O2 -DDLL_EXPORT -DPIC -Wall
-Wmissing-prototypes -I/projects/geos/rel-3.5.0devw32gcc481/include
-I/projects/proj/rel-4.8.0w32gcc481/include
-I/projects/json-c/rel-0.10w32gcc481/include -ffloat-store -c lwspheroid.c
-o lwspheroid.o >/dev/null 2>&1
/bin/sh ../libtool --tag=CC --mode=link i686-w64-mingw32-gcc -rpath
/usr/local/lib stringbuffer.lo measures.lo measures3d.lo box2d.lo
ptarray.lo lwgeom_api.lo lwgeom.lo lwpoint.lo lwline.lo lwpoly.lo
lwtriangle.lo lwmpoint.lo lwmline.lo lwmpoly.lo lwcollection.lo
lwcircstring.lo lwcompound.lo lwcurvepoly.lo lwmcurve.lo lwmsurface.lo
lwpsurface.lo lwtin.lo lwout_wkb.lo lwin_geojson.lo lwin_wkb.lo
lwout_wkt.lo lwout_twkb.lo lwin_wkt_parse.lo lwin_wkt_lex.lo lwin_wkt.lo
lwutil.lo lwhomogenize.lo lwalgorithm.lo lwsegmentize.lo
lwlinearreferencing.lo lwprint.lo vsprintf.lo g_box.lo g_serialized.lo
g_util.lo lwgeodetic.lo lwgeodetic_tree.lo lwtree.lo lwout_gml.lo
lwout_kml.lo lwout_geojson.lo lwout_svg.lo lwout_x3d.lo lwgeom_debug.lo
lwgeom_geos.lo lwgeom_geos_clean.lo lwgeom_geos_node.lo
lwgeom_geos_split.lo lwgeom_transform.lo lwspheroid.lo -release 2.2.0dev
-L/projects/postgresql/rel/pg9.4w32gcc481/lib
-L/projects/gdal/rel-1.11.0w32gcc481/lib -L/projects/rel-
libiconv-1.13.1w32gcc481/lib -L/projects/geos/rel-3.5.0devw32gcc481/lib
-lgeos_c -L/projects/proj/rel-4.8.0w32gcc481/lib -lproj
-L/projects/json-c/rel-0.10w32gcc481/lib -ljson -o liblwgeom.la
}}}
--
Ticket URL: <http://trac.osgeo.org/postgis/ticket/2783#comment:1>
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