[postgis-users] PostGIS 2.0.1 build results in ".../postgis-2.0.so: undefined symbol: json_tokener_errors"

Bborie Park bkpark at ucdavis.edu
Tue Oct 2 22:02:43 PDT 2012


Try running...

ldd postgis-2.0.so

That'll tell you if postgis can't find the json lib.  If it can't, try...

nm libjson.so | grep json_tokener_errors

You may need to try libjson-c.so instead.  If the grep doesn't find
json_tokener_errors, something is up...

-bborie

On Tue, Oct 2, 2012 at 7:32 PM, robert <robert at urban4m.com> wrote:
> 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
>
> _______________________________________________
> postgis-users mailing list
> postgis-users at postgis.refractions.net
> http://postgis.refractions.net/mailman/listinfo/postgis-users
>



-- 
Bborie Park
Programmer
Center for Vectorborne Diseases
UC Davis
530-752-8380
bkpark at ucdavis.edu



More information about the postgis-users mailing list