<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<tt>Hi, Tito!<br>
<br>
Try to install pkg-config package - it will figure out the correct
library version and it will compile properly.<br>
In the meantime I will try to figure out a better way to check the
library version.<br>
<br>
Best regards,<br>
</tt>
<pre class="moz-signature" cols="72">Răzvan Crainea
OpenSIPS Developer
<a class="moz-txt-link-abbreviated" href="http://www.opensips-solutions.com">www.opensips-solutions.com</a></pre>
<div class="moz-cite-prefix">On 12/01/2017 10:17 AM, Tito Cumpen
wrote:<br>
</div>
<blockquote type="cite"
cite="mid:CANZPVB4AbTq=9dzsikwLV7tsNzbrunxwsNTQXagA3Q9qmjNY=w@mail.gmail.com">
<div dir="ltr">hello group,
<div><br>
</div>
<div><br>
</div>
<div>I am attempting to compile opensips 2.3 on debian stretch
but I am seeing the following errors.</div>
<div><br>
</div>
<div>
<p class="gmail-p1"><span class="gmail-s1">Compiling
array_del.c</span></p>
<p class="gmail-p1"><span class="gmail-s1">Compiling json.c</span></p>
<p class="gmail-p1"><span class="gmail-s1"><b>json.c:</b> In
function ‘<b>get_object</b>’:</span></p>
<p class="gmail-p1"><span class="gmail-s1"><b>json.c:301:4:</b>
</span><span class="gmail-s2"><b>warning: </b></span><span
class="gmail-s1">‘<b>json_object_object_get</b>’ is
deprecated [</span><span class="gmail-s2"><b>-Wdeprecated-declarations</b></span><span
class="gmail-s1">]</span></p>
<p class="gmail-p1"><span class="gmail-s1"> </span><span
class="gmail-s2"><b>cur_obj</b></span><span
class="gmail-s1"> = json_object_object_get( cur_obj, buff
);</span></p>
<p class="gmail-p2"><span class="gmail-s3"> </span><span
class="gmail-s1"><b>^~~~~~~</b></span></p>
<p class="gmail-p1"><span class="gmail-s1">In file included
from <b>/usr/include/json-c/linkhash.h:16:0</b>,</span></p>
<p class="gmail-p1"><span class="gmail-s1"><span
class="gmail-Apple-converted-space"> </span>from
<b>/usr/include/json-c/json.h:22</b>,</span></p>
<p class="gmail-p1"><span class="gmail-s1"><span
class="gmail-Apple-converted-space"> </span>from
<b>json.c:48</b>:</span></p>
<p class="gmail-p1"><span class="gmail-s1"><b>/usr/include/json-c/json_object.h:290:56:</b>
</span><span class="gmail-s4"><b>note: </b></span><span
class="gmail-s1">declared here</span></p>
<p class="gmail-p1"><span class="gmail-s1"><span
class="gmail-Apple-converted-space"> </span>THIS_FUNCTION_IS_DEPRECATED(extern
struct json_object* </span><span class="gmail-s4"><b>j</b></span><span
class="gmail-s1">son_object_object_get(struct json_object*
obj,</span></p>
<p class="gmail-p1"><span class="gmail-s1">
</span><span
class="gmail-s4"><b>^</b></span></p>
<p class="gmail-p1"><span class="gmail-s1"><b>/usr/include/json-c/json_object.h:17:43:</b>
</span><span class="gmail-s4"><b>note: </b></span><span
class="gmail-s1">in definition of macro ‘<b>THIS_FUNCTION_IS_DEPRECATED</b>’</span></p>
<p class="gmail-p1"><span class="gmail-s1"><span
class="gmail-Apple-converted-space"> </span>#define
THIS_FUNCTION_IS_DEPRECATED(func) </span><span
class="gmail-s4"><b>func</b></span><span class="gmail-s1">
__attribute__ ((deprecated))</span></p>
<p class="gmail-p1"><span class="gmail-s1">
</span><span class="gmail-s4"><b>^~~~</b></span></p>
<p class="gmail-p1"><span class="gmail-s1">In file included
from <b>../../parser/../ip_addr.h:46:0</b>,</span></p>
<p class="gmail-p1"><span class="gmail-s1"><span
class="gmail-Apple-converted-space"> </span>from
<b>../../parser/msg_parser.h:48</b>,</span></p>
<p class="gmail-p1"><span class="gmail-s1"><span
class="gmail-Apple-converted-space"> </span>from
<b>../../sr_module.h:48</b>,</span></p>
<p class="gmail-p1"><span class="gmail-s1"><span
class="gmail-Apple-converted-space"> </span>from
<b>json.c:33</b>:</span></p>
<p class="gmail-p1"><span class="gmail-s1"><b>json.c:</b> In
function ‘<b>pv_set_json</b>’:</span></p>
<p class="gmail-p1"><span class="gmail-s1"><b>json.c:595:5:</b>
</span><span class="gmail-s5"><b>error: </b></span><span
class="gmail-s1">‘<b>json_tokener_errors</b>’ undeclared
(first use in this function)</span></p>
<p class="gmail-p1"><span class="gmail-s1"> </span><span
class="gmail-s5"><b>j</b></span><span class="gmail-s1">son_tokener_errors[(unsigned
long)obj]</span></p>
<p class="gmail-p1"><span class="gmail-s1"> </span><span
class="gmail-s5"><b>^</b></span></p>
<p class="gmail-p1"><span class="gmail-s1"><b>../../parser/../dprint.h:340:33:</b>
</span><span class="gmail-s4"><b>note: </b></span><span
class="gmail-s1">in definition of macro ‘<b>MY_DPRINT</b>’</span></p>
<p class="gmail-p1"><span class="gmail-s1"><span
class="gmail-Apple-converted-space"> </span>dp_my_pid(),
__DP_FUNC, ## </span><span class="gmail-s4"><b>args</b></span><span
class="gmail-s1">) \</span></p>
<p class="gmail-p1"><span class="gmail-s1">
</span><span class="gmail-s4"><b>^~~~</b></span></p>
<p class="gmail-p1"><span class="gmail-s1"><b>json.c:591:4:</b>
</span><span class="gmail-s4"><b>note: </b></span><span
class="gmail-s1">in expansion of macro ‘<b>LM_ERR</b>’</span></p>
<p class="gmail-p1"><span class="gmail-s1"> </span><span
class="gmail-s4"><b>LM_ERR</b></span><span
class="gmail-s1">("Error parsing json: %s\n",</span></p>
<p class="gmail-p3"><span class="gmail-s3"> </span><span
class="gmail-s1"><b>^~~~~~</b></span></p>
<p class="gmail-p1"><span class="gmail-s1"><b>json.c:595:5:</b>
</span><span class="gmail-s4"><b>note: </b></span><span
class="gmail-s1">each undeclared identifier is reported
only once for each function it appears in</span></p>
<p class="gmail-p1"><span class="gmail-s1"> </span><span
class="gmail-s4"><b>j</b></span><span class="gmail-s1">son_tokener_errors[(unsigned
long)obj]</span></p>
<p class="gmail-p1"><span class="gmail-s1"> </span><span
class="gmail-s4"><b>^</b></span></p>
<p class="gmail-p1"><span class="gmail-s1"><b>../../parser/../dprint.h:340:33:</b>
</span><span class="gmail-s4"><b>note: </b></span><span
class="gmail-s1">in definition of macro ‘<b>MY_DPRINT</b>’</span></p>
<p class="gmail-p1"><span class="gmail-s1"><span
class="gmail-Apple-converted-space"> </span>dp_my_pid(),
__DP_FUNC, ## </span><span class="gmail-s4"><b>args</b></span><span
class="gmail-s1">) \</span></p>
<p class="gmail-p1"><span class="gmail-s1">
</span><span class="gmail-s4"><b>^~~~</b></span></p>
<p class="gmail-p1"><span class="gmail-s1"><b>json.c:591:4:</b>
</span><span class="gmail-s4"><b>note: </b></span><span
class="gmail-s1">in expansion of macro ‘<b>LM_ERR</b>’</span></p>
<p class="gmail-p1"><span class="gmail-s1"> </span><span
class="gmail-s4"><b>LM_ERR</b></span><span
class="gmail-s1">("Error parsing json: %s\n",</span></p>
<p class="gmail-p3"><span class="gmail-s3"> </span><span
class="gmail-s1"><b>^~~~~~</b></span></p>
<p class="gmail-p1"><span class="gmail-s1">../../Makefile.rules:25:
recipe for target 'json.o' failed</span></p>
<p class="gmail-p1"><span class="gmail-s1"><br>
</span></p>
<p class="gmail-p1"><span class="gmail-s1"><br>
</span></p>
<p class="gmail-p1"><span class="gmail-s1"><br>
</span></p>
<p class="gmail-p1"><span class="gmail-s1">I am using the
latest pull of opensips 2.3 and have the following deps
installed.</span></p>
<p class="gmail-p1"><span class="gmail-s1"><br>
</span></p>
<p class="gmail-p1"><span class="gmail-s1">libjson-c-dev is
already the newest version (0.12.1-1.1).</span></p>
<p class="gmail-p1"><span class="gmail-s1">libjson-c-doc is
already the newest version (0.12.1-1.1).</span></p>
<p class="gmail-p1"><span class="gmail-s1">
</span></p>
<p class="gmail-p1"><span class="gmail-s1">libjson-c3 is
already the newest version (0.12.1-1.1).</span></p>
<p class="gmail-p1"><span class="gmail-s1"><br>
</span></p>
<p class="gmail-p1"><span class="gmail-s1"><br>
</span></p>
<p class="gmail-p1"><span class="gmail-s1"><br>
</span></p>
</div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
Users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a>
<a class="moz-txt-link-freetext" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre>
</blockquote>
<br>
</body>
</html>