[postgis-users] PostGIS 2.0.1 build results in ".../postgis-2.0.so: undefined symbol: json_tokener_errors"
robert
robert at urban4m.com
Tue Oct 2 19:32:26 PDT 2012
Hi,
This error was seen earlier in the year but it seems it was never resolved. Now i'm experiencing it on "Amazon Linux AMI release 2012.03" and I'm stumped so far.
"make install" succeeds yet:
$ psql -d yourdatabase -f postgis.sql
...
psql:postgis.sql:47: ERROR: could not load library "/usr/lib64/pgsql/postgis-2.0.so": /usr/lib64/pgsql/postgis-2.0.so: undefined symbol: json_tokener_errors
Additionally, "make check" results in the same:
$ cat /tmp/pgis_reg/regress_log
SET
BEGIN
psql:/home/ec2-user/postgis-2.0.1/regress/00-regress-install/share/contrib/postgis/postgis.sql:47: ERROR: could not load library "/home/ec2-user/postgis-2.0.1/regress/00-regress-install/lib/postgis-2.0.so": /home/ec2-user/postgis-2.0.1/regress/00-regress-install/lib/postgis-2.0.so: undefined symbol: json_tokener_errors
I'm building on a free, Micro Amazon Linux EC2 instance and it should be reproducible using this Gist (it takes several hours to build everything on a Micro instance):
https://gist.github.com/3824423
I have the "./configure", "make", and "make check" output in this Gist:
https://gist.github.com/3824387
I also have a test file to verify that linking against libjson-c does indeed work:
https://gist.github.com/3824400
Does this imply something still misconfigured for this distribution or my environment causing the build's configure or link commands to generate incomplete/incorrect statements?
Lastly, some useful configuration info:
$ cat /etc/ld.so.conf
include ld.so.conf.d/*.conf
/usr/local/lib
$ ldconfig -p | grep json
libjson.so.0 (libc6,x86-64) => /usr/local/lib/libjson.so.0
libjson.so (libc6,x86-64) => /usr/local/lib/libjson.so
libjson-c.so.2 (libc6,x86-64) => /usr/local/lib/libjson-c.so.2
libjson-c.so (libc6,x86-64) => /usr/local/lib/libjson-c.so
It'll be much appreciated if someone can help me resolve this.
Thanks,
Robert
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/postgis-users/attachments/20121002/c03e4e17/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 1437 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/postgis-users/attachments/20121002/c03e4e17/attachment.bin>
More information about the postgis-users
mailing list