[postgis-users] JSONC compilation issues

Regina Obe lr at pcorp.us
Thu Sep 21 07:53:47 PDT 2023

Have you tried using pkg config instead.

I don’t have mine in lib64 issue but I think using pkg-config should fix it


export PKG_CONFIG_PATH=/usr/local/json-c-0.15//lib64/pkgconfig:${PKG_CONFIG_PATH}


From: postgis-users <postgis-users-bounces at lists.osgeo.org> On Behalf Of Light
Sent: Thursday, September 21, 2023 5:24 AM
To: postgis-users at lists.osgeo.org
Subject: [postgis-users] JSONC compilation issues



postgis 3.3.4
json-c 0.15

When I compiled 334, jsonc did not use environment variables. I used --with-jsondir=/usr/local/json-c-0.15. I confirmed that json-c-0.15 is installed.
configure record:
Check "/usr/local/json-c-0.15/include/json-c/json.h"...yes
Check json_object_get... in -ljson-c no
JSON-C support: no

Check line 985 of configure.ac <http://configure.ac> , `JSON_LDFLAGS="-L$JSONDIR/lib"`. The reason here is that json_object_get cannot be found in jsonc later.
My json-c-0.15 folder is not called "lib", but "lib64".

Is it necessary to make a judgment here, for 32-bit and 64-bit?

When I modify `JSON_LDFLAGS="-L$JSONDIR/lib"`==>`JSON_LDFLAGS="-L$JSONDIR/lib64"` everything works fine.



Wang Dapeng

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/postgis-users/attachments/20230921/a9da9e19/attachment.htm>

More information about the postgis-users mailing list