<div dir="ltr">Thanks Razvan that worked.</div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Dec 5, 2017 at 6:08 AM, Răzvan Crainea <span dir="ltr"><<a href="mailto:razvan@opensips.org" target="_blank">razvan@opensips.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
  
    
  
  <div 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="m_-6785065872071564058moz-signature" cols="72">Răzvan Crainea
OpenSIPS Developer
<a class="m_-6785065872071564058moz-txt-link-abbreviated" href="http://www.opensips-solutions.com" target="_blank">www.opensips-solutions.com</a></pre><div><div class="h5">
    <div class="m_-6785065872071564058moz-cite-prefix">On 12/01/2017 10:17 AM, Tito Cumpen
      wrote:<br>
    </div>
    </div></div><blockquote type="cite"><div><div class="h5">
      <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="m_-6785065872071564058gmail-p1"><span class="m_-6785065872071564058gmail-s1">Compiling
              array_del.c</span></p>
          <p class="m_-6785065872071564058gmail-p1"><span class="m_-6785065872071564058gmail-s1">Compiling json.c</span></p>
          <p class="m_-6785065872071564058gmail-p1"><span class="m_-6785065872071564058gmail-s1"><b>json.c:</b> In
              function ‘<b>get_object</b>’:</span></p>
          <p class="m_-6785065872071564058gmail-p1"><span class="m_-6785065872071564058gmail-s1"><b>json.c:301:4:</b>
            </span><span class="m_-6785065872071564058gmail-s2"><b>warning: </b></span><span class="m_-6785065872071564058gmail-s1">‘<b>json_object_object_get</b>’ is
              deprecated [</span><span class="m_-6785065872071564058gmail-s2"><b>-Wdeprecated-declarations</b></span><span class="m_-6785065872071564058gmail-s1">]</span></p>
          <p class="m_-6785065872071564058gmail-p1"><span class="m_-6785065872071564058gmail-s1">    </span><span class="m_-6785065872071564058gmail-s2"><b>cur_obj</b></span><span class="m_-6785065872071564058gmail-s1"> = json_object_object_get( cur_obj, buff
              );</span></p>
          <p class="m_-6785065872071564058gmail-p2"><span class="m_-6785065872071564058gmail-s3">    </span><span class="m_-6785065872071564058gmail-s1"><b>^~~~~~~</b></span></p>
          <p class="m_-6785065872071564058gmail-p1"><span class="m_-6785065872071564058gmail-s1">In file included
              from <b>/usr/include/json-c/linkhash.<wbr>h:16:0</b>,</span></p>
          <p class="m_-6785065872071564058gmail-p1"><span class="m_-6785065872071564058gmail-s1"><span class="m_-6785065872071564058gmail-Apple-converted-space">                 </span>from
              <b>/usr/include/json-c/json.h:22</b>,</span></p>
          <p class="m_-6785065872071564058gmail-p1"><span class="m_-6785065872071564058gmail-s1"><span class="m_-6785065872071564058gmail-Apple-converted-space">                 </span>from
              <b>json.c:48</b>:</span></p>
          <p class="m_-6785065872071564058gmail-p1"><span class="m_-6785065872071564058gmail-s1"><b>/usr/include/json-c/json_<wbr>object.h:290:56:</b>
            </span><span class="m_-6785065872071564058gmail-s4"><b>note: </b></span><span class="m_-6785065872071564058gmail-s1">declared here</span></p>
          <p class="m_-6785065872071564058gmail-p1"><span class="m_-6785065872071564058gmail-s1"><span class="m_-6785065872071564058gmail-Apple-converted-space"> </span>THIS_FUNCTION_IS_DEPRECATED(<wbr>extern
              struct json_object* </span><span class="m_-6785065872071564058gmail-s4"><b>j</b></span><span class="m_-6785065872071564058gmail-s1">son_object_object_get(struct json_object*
              obj,</span></p>
          <p class="m_-6785065872071564058gmail-p1"><span class="m_-6785065872071564058gmail-s1">                   
                                                  </span><span class="m_-6785065872071564058gmail-s4"><b>^</b></span></p>
          <p class="m_-6785065872071564058gmail-p1"><span class="m_-6785065872071564058gmail-s1"><b>/usr/include/json-c/json_<wbr>object.h:17:43:</b>
            </span><span class="m_-6785065872071564058gmail-s4"><b>note: </b></span><span class="m_-6785065872071564058gmail-s1">in definition of macro ‘<b>THIS_FUNCTION_IS_DEPRECATED</b>’</span></p>
          <p class="m_-6785065872071564058gmail-p1"><span class="m_-6785065872071564058gmail-s1"><span class="m_-6785065872071564058gmail-Apple-converted-space"> </span>#define
              THIS_FUNCTION_IS_DEPRECATED(<wbr>func) </span><span class="m_-6785065872071564058gmail-s4"><b>func</b></span><span class="m_-6785065872071564058gmail-s1">
              __attribute__ ((deprecated))</span></p>
          <p class="m_-6785065872071564058gmail-p1"><span class="m_-6785065872071564058gmail-s1">                  
                                      </span><span class="m_-6785065872071564058gmail-s4"><b>^~~~</b></span></p>
          <p class="m_-6785065872071564058gmail-p1"><span class="m_-6785065872071564058gmail-s1">In file included
              from <b>../../parser/../ip_addr.h:46:0</b><wbr>,</span></p>
          <p class="m_-6785065872071564058gmail-p1"><span class="m_-6785065872071564058gmail-s1"><span class="m_-6785065872071564058gmail-Apple-converted-space">                 </span>from
              <b>../../parser/msg_parser.h:48</b>,</span></p>
          <p class="m_-6785065872071564058gmail-p1"><span class="m_-6785065872071564058gmail-s1"><span class="m_-6785065872071564058gmail-Apple-converted-space">                 </span>from
              <b>../../sr_module.h:48</b>,</span></p>
          <p class="m_-6785065872071564058gmail-p1"><span class="m_-6785065872071564058gmail-s1"><span class="m_-6785065872071564058gmail-Apple-converted-space">                 </span>from
              <b>json.c:33</b>:</span></p>
          <p class="m_-6785065872071564058gmail-p1"><span class="m_-6785065872071564058gmail-s1"><b>json.c:</b> In
              function ‘<b>pv_set_json</b>’:</span></p>
          <p class="m_-6785065872071564058gmail-p1"><span class="m_-6785065872071564058gmail-s1"><b>json.c:595:5:</b>
            </span><span class="m_-6785065872071564058gmail-s5"><b>error: </b></span><span class="m_-6785065872071564058gmail-s1">‘<b>json_tokener_errors</b>’ undeclared
              (first use in this function)</span></p>
          <p class="m_-6785065872071564058gmail-p1"><span class="m_-6785065872071564058gmail-s1">     </span><span class="m_-6785065872071564058gmail-s5"><b>j</b></span><span class="m_-6785065872071564058gmail-s1">son_tokener_errors[(unsigned
              long)obj]</span></p>
          <p class="m_-6785065872071564058gmail-p1"><span class="m_-6785065872071564058gmail-s1">     </span><span class="m_-6785065872071564058gmail-s5"><b>^</b></span></p>
          <p class="m_-6785065872071564058gmail-p1"><span class="m_-6785065872071564058gmail-s1"><b>../../parser/../dprint.h:340:<wbr>33:</b>
            </span><span class="m_-6785065872071564058gmail-s4"><b>note: </b></span><span class="m_-6785065872071564058gmail-s1">in definition of macro ‘<b>MY_DPRINT</b>’</span></p>
          <p class="m_-6785065872071564058gmail-p1"><span class="m_-6785065872071564058gmail-s1"><span class="m_-6785065872071564058gmail-Apple-converted-space">      </span>dp_my_pid(),
              __DP_FUNC, ## </span><span class="m_-6785065872071564058gmail-s4"><b>args</b></span><span class="m_-6785065872071564058gmail-s1">) \</span></p>
          <p class="m_-6785065872071564058gmail-p1"><span class="m_-6785065872071564058gmail-s1">                  
                            </span><span class="m_-6785065872071564058gmail-s4"><b>^~~~</b></span></p>
          <p class="m_-6785065872071564058gmail-p1"><span class="m_-6785065872071564058gmail-s1"><b>json.c:591:4:</b>
            </span><span class="m_-6785065872071564058gmail-s4"><b>note: </b></span><span class="m_-6785065872071564058gmail-s1">in expansion of macro ‘<b>LM_ERR</b>’</span></p>
          <p class="m_-6785065872071564058gmail-p1"><span class="m_-6785065872071564058gmail-s1">    </span><span class="m_-6785065872071564058gmail-s4"><b>LM_ERR</b></span><span class="m_-6785065872071564058gmail-s1">("Error parsing json: %s\n",</span></p>
          <p class="m_-6785065872071564058gmail-p3"><span class="m_-6785065872071564058gmail-s3">    </span><span class="m_-6785065872071564058gmail-s1"><b>^~~~~~</b></span></p>
          <p class="m_-6785065872071564058gmail-p1"><span class="m_-6785065872071564058gmail-s1"><b>json.c:595:5:</b>
            </span><span class="m_-6785065872071564058gmail-s4"><b>note: </b></span><span class="m_-6785065872071564058gmail-s1">each undeclared identifier is reported
              only once for each function it appears in</span></p>
          <p class="m_-6785065872071564058gmail-p1"><span class="m_-6785065872071564058gmail-s1">     </span><span class="m_-6785065872071564058gmail-s4"><b>j</b></span><span class="m_-6785065872071564058gmail-s1">son_tokener_errors[(unsigned
              long)obj]</span></p>
          <p class="m_-6785065872071564058gmail-p1"><span class="m_-6785065872071564058gmail-s1">     </span><span class="m_-6785065872071564058gmail-s4"><b>^</b></span></p>
          <p class="m_-6785065872071564058gmail-p1"><span class="m_-6785065872071564058gmail-s1"><b>../../parser/../dprint.h:340:<wbr>33:</b>
            </span><span class="m_-6785065872071564058gmail-s4"><b>note: </b></span><span class="m_-6785065872071564058gmail-s1">in definition of macro ‘<b>MY_DPRINT</b>’</span></p>
          <p class="m_-6785065872071564058gmail-p1"><span class="m_-6785065872071564058gmail-s1"><span class="m_-6785065872071564058gmail-Apple-converted-space">      </span>dp_my_pid(),
              __DP_FUNC, ## </span><span class="m_-6785065872071564058gmail-s4"><b>args</b></span><span class="m_-6785065872071564058gmail-s1">) \</span></p>
          <p class="m_-6785065872071564058gmail-p1"><span class="m_-6785065872071564058gmail-s1">                  
                            </span><span class="m_-6785065872071564058gmail-s4"><b>^~~~</b></span></p>
          <p class="m_-6785065872071564058gmail-p1"><span class="m_-6785065872071564058gmail-s1"><b>json.c:591:4:</b>
            </span><span class="m_-6785065872071564058gmail-s4"><b>note: </b></span><span class="m_-6785065872071564058gmail-s1">in expansion of macro ‘<b>LM_ERR</b>’</span></p>
          <p class="m_-6785065872071564058gmail-p1"><span class="m_-6785065872071564058gmail-s1">    </span><span class="m_-6785065872071564058gmail-s4"><b>LM_ERR</b></span><span class="m_-6785065872071564058gmail-s1">("Error parsing json: %s\n",</span></p>
          <p class="m_-6785065872071564058gmail-p3"><span class="m_-6785065872071564058gmail-s3">    </span><span class="m_-6785065872071564058gmail-s1"><b>^~~~~~</b></span></p>
          <p class="m_-6785065872071564058gmail-p1"><span class="m_-6785065872071564058gmail-s1">../../Makefile.rules:25:
              recipe for target 'json.o' failed</span></p>
          <p class="m_-6785065872071564058gmail-p1"><span class="m_-6785065872071564058gmail-s1"><br>
            </span></p>
          <p class="m_-6785065872071564058gmail-p1"><span class="m_-6785065872071564058gmail-s1"><br>
            </span></p>
          <p class="m_-6785065872071564058gmail-p1"><span class="m_-6785065872071564058gmail-s1"><br>
            </span></p>
          <p class="m_-6785065872071564058gmail-p1"><span class="m_-6785065872071564058gmail-s1">I am using the
              latest pull of opensips 2.3 and have the following deps
              installed.</span></p>
          <p class="m_-6785065872071564058gmail-p1"><span class="m_-6785065872071564058gmail-s1"><br>
            </span></p>
          <p class="m_-6785065872071564058gmail-p1"><span class="m_-6785065872071564058gmail-s1">libjson-c-dev is
              already the newest version (0.12.1-1.1).</span></p>
          <p class="m_-6785065872071564058gmail-p1"><span class="m_-6785065872071564058gmail-s1">libjson-c-doc is
              already the newest version (0.12.1-1.1).</span></p>
          <p class="m_-6785065872071564058gmail-p1"><span class="m_-6785065872071564058gmail-s1">
            </span></p>
          <p class="m_-6785065872071564058gmail-p1"><span class="m_-6785065872071564058gmail-s1">libjson-c3 is
              already the newest version (0.12.1-1.1).</span></p>
          <p class="m_-6785065872071564058gmail-p1"><span class="m_-6785065872071564058gmail-s1"><br>
            </span></p>
          <p class="m_-6785065872071564058gmail-p1"><span class="m_-6785065872071564058gmail-s1"><br>
            </span></p>
          <p class="m_-6785065872071564058gmail-p1"><span class="m_-6785065872071564058gmail-s1"><br>
            </span></p>
        </div>
      </div>
      <br>
      <fieldset class="m_-6785065872071564058mimeAttachmentHeader"></fieldset>
      <br>
      </div></div><pre>______________________________<wbr>_________________
Users mailing list
<a class="m_-6785065872071564058moz-txt-link-abbreviated" href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a>
<a class="m_-6785065872071564058moz-txt-link-freetext" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-<wbr>bin/mailman/listinfo/users</a>
</pre>
    </blockquote>
    <br>
  </div>

<br>______________________________<wbr>_________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a><br>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" rel="noreferrer" target="_blank">http://lists.opensips.org/cgi-<wbr>bin/mailman/listinfo/users</a><br>
<br></blockquote></div><br></div>