<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <p>Hello,</p>
    <p>ahh, I missed you installed jansson library from sources, which I
      don't know if it deploys the resource file for pkg-config. That is
      done when installed from package.<br>
    </p>
    <p>I guess that the Makefile needs to be updated to test if
      'pkg-config --exists jansson' is try instead of just checking for
      pkg-config...</p>
    <p>Cheers,<br>
      Daniel<br>
    </p>
    <br>
    <div class="moz-cite-prefix">On 01/09/16 13:53, Jonathan Hunter
      wrote:<br>
    </div>
    <blockquote cite="mid:DUB130-W16756C4AAECBD7FF88915DBDE20@phx.gbl"
      type="cite">
      <style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style>
      <div dir="ltr">Hi Daniel,
        <div><br>
        </div>
        <div>I now have the problem fixed, but had a few issues.</div>
        <div><br>
        </div>
        <div>Initially jansson module didnt load correctly due to this;</div>
        <div><br>
        </div>
        <div>
          <div>No package 'jansson' found</div>
          <div>Package jansson was not found in the pkg-config search
            path.</div>
          <div>Perhaps you should add the directory containing
            `jansson.pc'</div>
          <div>to the PKG_CONFIG_PATH environment variable</div>
          <div><br>
          </div>
          <div><br>
          </div>
          <div>So I ran the following which fixed it;</div>
          <div><br>
          </div>
          <div><br>
          </div>
          <div>export
            PKG_CONFIG_PATH=/usr/local/lib/pkgconfig:$PKG_CONFIG_PATH</div>
          <div><br>
          </div>
          <div><br>
          </div>
          <div>Then I had the error;</div>
          <div><br>
          </div>
          <div><br>
          </div>
          <div>Sep  1 11:05:33 sip1 kamailio: ERROR: <core>
            [sr_module.c:582]: load_module(): could not open module </div>
          <div><br>
          </div>
          <div></usr/local/kamailio-4.4/lib64/kamailio/modules/jansson.so>:
            libjansson.so.4: cannot open shared </div>
          <div><br>
          </div>
          <div>object file: No such file or directory</div>
          <div><br>
          </div>
          <div>So I ran;</div>
          <div><br>
          </div>
          <div><br>
          </div>
          <div>export LD_LIBRARY_PATH=/usr/local/lib/:$LD_LIBRARY_PATH</div>
          <div><br>
          </div>
          <div>And now ldd returns;</div>
          <div><br>
          </div>
          <div>
            <div> ldd
              /usr/local/kamailio-4.4/lib64/kamailio/modules/jansson.so</div>
            <div>        linux-vdso.so.1 =>  (0x00007ffc8e586000)</div>
            <div>        libjansson.so.4 =>
              /usr/local/lib/libjansson.so.4 (0x00007fcfcfcbb000)</div>
            <div>        libc.so.6 => /lib64/libc.so.6
              (0x00007fcfcf920000)</div>
            <div>        /lib64/ld-linux-x86-64.so.2
              (0x0000563164e34000)</div>
          </div>
          <div><br>
          </div>
          <div><br>
          </div>
          <div>And kamailio is running!</div>
          <div><br>
          </div>
          <div>Thanks</div>
          <div><br>
          </div>
          <div>Jon</div>
          <div><br>
          </div>
          <div><br>
          </div>
          <br>
          <div>
            <hr id="stopSpelling">To: <a class="moz-txt-link-abbreviated" href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a><br>
            From: <a class="moz-txt-link-abbreviated" href="mailto:miconda@gmail.com">miconda@gmail.com</a><br>
            Date: Thu, 1 Sep 2016 12:27:47 +0200<br>
            Subject: Re: [SR-Users] Centos, kamailio 4.4 and jansson
            module load issue.<br>
            <br>
            Hello,<br>
            do you have the jansson devel library installed?<br>
            Cheers,<br>
            Daniel<br>
            <br>
            <br>
            <div class="ecxmoz-cite-prefix">On 30/08/16 22:22, Jonathan
              Hunter wrote:<br>
            </div>
            <blockquote
              cite="mid:DUB130-W636278F321AA7A349BDDAEBDE00@phx.gbl">
              <style><!--
.ExternalClass .ecxhmmessage P {
padding:0px;
}

.ExternalClass body.ecxhmmessage {
font-size:12pt;
font-family:Calibri;
}

--></style>
              <div dir="ltr">Hi Alex,
                <div><br>
                </div>
                <div>Sure;</div>
                <div><br>
                </div>
                <div>
                  <div> ldd
                    /usr/local/kamailio-4.4/lib64/kamailio/modules/jansson.so</div>
                  <div>        linux-vdso.so.1 =>
                     (0x00007fffa3d0d000)</div>
                  <div>        libc.so.6 => /lib64/libc.so.6
                    (0x00007f5563f4b000)</div>
                  <div>        /lib64/ld-linux-x86-64.so.2
                    (0x000055f10acaa000)</div>
                  <div><br>
                  </div>
                  <div><br>
                  </div>
                  <div>Thanks</div>
                  <div><br>
                  </div>
                  <div>Jon</div>
                  <br>
                  <div>> To: <a moz-do-not-send="true"
                      class="ecxmoz-txt-link-abbreviated"
                      href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a><br>
                    > From: <a moz-do-not-send="true"
                      class="ecxmoz-txt-link-abbreviated"
                      href="mailto:abalashov@evaristesys.com">abalashov@evaristesys.com</a><br>
                    > Date: Tue, 30 Aug 2016 16:13:43 -0400<br>
                    > Subject: Re: [SR-Users] Centos, kamailio 4.4
                    and jansson module load issue.<br>
                    > <br>
                    > Can you paste the output of:<br>
                    > <br>
                    > ldd
                    /usr/local/kamailio-4.4/lib64/kamailio/modules/jansson.so<br>
                    > <br>
                    > ?<br>
                    > <br>
                    > -- Alex<br>
                    > <br>
                    > On 08/30/2016 04:12 PM, Jonathan Hunter wrote:<br>
                    > <br>
                    > > Hi Guys,<br>
                    > ><br>
                    > > I am running Centos 6.5 and have installed
                    kamailio 4.4 from Git.<br>
                    > ><br>
                    > > All is running well until I try and load
                    the jansson module.<br>
                    > ><br>
                    > > I have installed jansson-2.7 from src, but
                    when loading the module in<br>
                    > > kamailio I get;<br>
                    > ><br>
                    > ><br>
                    > > Aug 30 20:06:24 sip1 kamailio: ERROR:
                    <core> [sr_module.c:582]:<br>
                    > > load_module(): could not open module<br>
                    > >
                    </usr/local/kamailio-4.4/lib64/kamailio/modules/jansson.so>:<br>
                    > >
                    /usr/local/kamailio-4.4/lib64/kamailio/modules/jansson.so:
                    undefined<br>
                    > > symbol: json_array_set_new<br>
                    > ><br>
                    > ><br>
                    > > Anyone else had this issue?<br>
                    > ><br>
                    > > Thanks<br>
                    > ><br>
                    > > Jon<br>
                    > ><br>
                    > ><br>
                    > >
                    _______________________________________________<br>
                    > > SIP Express Router (SER) and Kamailio
                    (OpenSER) - sr-users mailing list<br>
                    > > <a moz-do-not-send="true"
                      class="ecxmoz-txt-link-abbreviated"
                      href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a><br>
                    > > <a moz-do-not-send="true"
                      class="ecxmoz-txt-link-freetext"
                      href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users"
                      target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a><br>
                    > ><br>
                    > <br>
                    > <br>
                    > -- <br>
                    > Alex Balashov | Principal | Evariste Systems
                    LLC<br>
                    > <br>
                    > Tel: +1-706-510-6800 (direct) / +1-800-250-5920
                    (toll-free)<br>
                    > Web: <a moz-do-not-send="true"
                      class="ecxmoz-txt-link-freetext"
                      href="http://www.evaristesys.com/" target="_blank">http://www.evaristesys.com/</a>,
                    <a moz-do-not-send="true"
                      class="ecxmoz-txt-link-freetext"
                      href="http://www.csrpswitch.com/" target="_blank">http://www.csrpswitch.com/</a><br>
                    > <br>
                    > _______________________________________________<br>
                    > SIP Express Router (SER) and Kamailio (OpenSER)
                    - sr-users mailing list<br>
                    > <a moz-do-not-send="true"
                      class="ecxmoz-txt-link-abbreviated"
                      href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a><br>
                    > <a moz-do-not-send="true"
                      class="ecxmoz-txt-link-freetext"
                      href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users"
                      target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a><br>
                  </div>
                </div>
              </div>
              <br>
              <fieldset class="ecxmimeAttachmentHeader"></fieldset>
              <br>
              <pre>_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
<a moz-do-not-send="true" class="ecxmoz-txt-link-abbreviated" href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a>
<a moz-do-not-send="true" class="ecxmoz-txt-link-freetext" href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a>
</pre>
            </blockquote>
            <br>
            <pre class="ecxmoz-signature">-- 
Daniel-Constantin Mierla
<a moz-do-not-send="true" class="ecxmoz-txt-link-freetext" href="http://www.asipto.com" target="_blank">http://www.asipto.com</a> - <a moz-do-not-send="true" class="ecxmoz-txt-link-freetext" href="http://www.kamailio.org" target="_blank">http://www.kamailio.org</a>
<a moz-do-not-send="true" class="ecxmoz-txt-link-freetext" href="http://twitter.com/#%21/miconda" target="_blank">http://twitter.com/#!/miconda</a> - <a moz-do-not-send="true" class="ecxmoz-txt-link-freetext" href="http://www.linkedin.com/in/miconda" target="_blank">http://www.linkedin.com/in/miconda</a></pre>
            <br>
            _______________________________________________
            SIP Express Router (SER) and Kamailio (OpenSER) - sr-users
            mailing list
            <a class="moz-txt-link-abbreviated" href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a>
<a class="moz-txt-link-freetext" href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a></div>
        </div>
      </div>
    </blockquote>
    <br>
    <pre class="moz-signature" cols="72">-- 
Daniel-Constantin Mierla
<a class="moz-txt-link-freetext" href="http://www.asipto.com">http://www.asipto.com</a> - <a class="moz-txt-link-freetext" href="http://www.kamailio.org">http://www.kamailio.org</a>
<a class="moz-txt-link-freetext" href="http://twitter.com/#!/miconda">http://twitter.com/#!/miconda</a> - <a class="moz-txt-link-freetext" href="http://www.linkedin.com/in/miconda">http://www.linkedin.com/in/miconda</a></pre>
  </body>
</html>