[postgis-tickets] [PostGIS] #2213: postgis-2.1.so: undefined symbol: json_tokener_errors
PostGIS
trac at osgeo.org
Mon Feb 25 05:22:17 PST 2013
#2213: postgis-2.1.so: undefined symbol: json_tokener_errors
---------------------+------------------------------------------------------
Reporter: mloskot | Owner: pramsey
Type: defect | Status: new
Priority: medium | Milestone:
Component: postgis | Version: trunk
Keywords: json-c |
---------------------+------------------------------------------------------
Ubuntu 12.04 (32-bit) with json-c build and installed from its current
[https://github.com/json-c/json-c json-c Git master] (I couldn't find .deb
packages):
{{{
$ grep '\#define JSON_C_VERSION ' /usr/local/include/json/*
/usr/local/include/json/json_c_version.h:#define JSON_C_VERSION "0.10.99"
}}}
PostGIS built from SVN trunk:
{{{
...
config.status: executing libtool commands
config.status: executing po-directories commands
PostGIS is now configured for x86_64-unknown-linux-gnu
-------------- Compiler Info -------------
C compiler: gcc -g -O2
C++ compiler: g++ -g -O2
SQL preprocessor: /usr/bin/cpp -traditional-cpp -P
-------------- Dependencies --------------
GEOS config: /usr/local/bin/geos-config
GEOS version: 3.4.0dev
GDAL config: /usr/local/bin/gdal-config
GDAL version: 1.10.0
PostgreSQL config: /usr/bin/pg_config
PostgreSQL version: PostgreSQL 9.1.8
PROJ4 version: 47
Libxml2 config: /usr/bin/xml2-config
Libxml2 version: 2.7.8
JSON-C support: yes
PostGIS debug level: 0
Perl: /usr/bin/perl
--------------- Extensions ---------------
PostGIS Raster: enabled
PostGIS Topology: enabled
-------- Documentation Generation --------
xsltproc: /usr/bin/xsltproc
xsl style sheets: /usr/share/xml/docbook/stylesheet/nwalsh
dblatex:
convert:
mathml2.dtd: http://www.w3.org/Math/DTD/mathml2/mathml2.dtd
}}}
PostGIS library failes to load due to symbol missing form json-c:
{{{
$ psql -d rasters
psql (9.1.8)
Type "help" for help.
rasters=# select * from pg_available_extensions where name like
'postgis%';
name | default_version | installed_version |
comment
------------------------+-----------------+-------------------+---------------------------------------------------------------------
postgis_topology | 2.1.0SVN | | PostGIS
topology spatial types and functions
postgis_tiger_geocoder | 2.1.0SVN | | PostGIS
tiger geocoder and reverse geocoder
postgis | 2.1.0SVN | | PostGIS
geometry, geography, and raster spatial types and functions
(3 rows)
rasters=# create extension postgis;
ERROR: could not load library
"/usr/lib/postgresql/9.1/lib/postgis-2.1.so":
/usr/lib/postgresql/9.1/lib/postgis-2.1.so: undefined symbol:
json_tokener_errors
}}}
Possibly, json-c incompatibility issue.
--
Ticket URL: <http://trac.osgeo.org/postgis/ticket/2213>
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