<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=utf-8"><meta name=Generator content="Microsoft Word 15 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
span.EmailStyle18
        {mso-style-type:personal-reply;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri",sans-serif;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=EN-US link=blue vlink=purple style='word-wrap:break-word'><div class=WordSection1><p class=MsoNormal>Have you tried using pkg config instead.<o:p></o:p></p><p class=MsoNormal>I don’t have mine in lib64 issue but I think using pkg-config should fix it<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>export PKG_CONFIG_PATH=/usr/local/json-c-0.15//lib64/pkgconfig:${PKG_CONFIG_PATH}<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><div style='border:none;border-left:solid blue 1.5pt;padding:0in 0in 0in 4.0pt'><div><div style='border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0in 0in 0in'><p class=MsoNormal><b>From:</b> postgis-users <postgis-users-bounces@lists.osgeo.org> <b>On Behalf Of </b>Light<br><b>Sent:</b> Thursday, September 21, 2023 5:24 AM<br><b>To:</b> postgis-users@lists.osgeo.org<br><b>Subject:</b> [postgis-users] JSONC compilation issues<o:p></o:p></p></div></div><p class=MsoNormal><o:p> </o:p></p><div><div><p class=MsoNormal>Hi,<br><br>postgis 3.3.4<br>json-c 0.15<br><br>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.<br>configure record:<br>---<br>...<br>Check "/usr/local/json-c-0.15/include/json-c/json.h"...yes<br>Check json_object_get... in -ljson-c no<br>...<br>JSON-C support: no<br>...<br>---<br><br><br>Check line 985 of <a href="http://configure.ac">configure.ac</a>, `JSON_LDFLAGS="-L$JSONDIR/lib"`. The reason here is that json_object_get cannot be found in jsonc later.<br>My json-c-0.15 folder is not called "lib", but "lib64".<br><br>Is it necessary to make a judgment here, for 32-bit and 64-bit?<br><br>When I modify `JSON_LDFLAGS="-L$JSONDIR/lib"`==>`JSON_LDFLAGS="-L$JSONDIR/lib64"` everything works fine.<o:p></o:p></p></div><div><p class=MsoNormal><o:p> </o:p></p></div><div><p class=MsoNormal>Thanks,<o:p></o:p></p></div><div><p class=MsoNormal>Wang Dapeng<o:p></o:p></p></div></div></div></div></body></html>