[SR-Users] Centos, kamailio 4.4 and jansson module load issue.

Daniel-Constantin Mierla miconda at gmail.com
Thu Sep 1 14:05:46 CEST 2016


Hello,

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.

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...

Cheers,
Daniel


On 01/09/16 13:53, Jonathan Hunter wrote:
> Hi Daniel,
>
> I now have the problem fixed, but had a few issues.
>
> Initially jansson module didnt load correctly due to this;
>
> No package 'jansson' found
> Package jansson was not found in the pkg-config search path.
> Perhaps you should add the directory containing `jansson.pc'
> to the PKG_CONFIG_PATH environment variable
>
>
> So I ran the following which fixed it;
>
>
> export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig:$PKG_CONFIG_PATH
>
>
> Then I had the error;
>
>
> Sep  1 11:05:33 sip1 kamailio: ERROR: <core> [sr_module.c:582]:
> load_module(): could not open module 
>
> </usr/local/kamailio-4.4/lib64/kamailio/modules/jansson.so>:
> libjansson.so.4: cannot open shared 
>
> object file: No such file or directory
>
> So I ran;
>
>
> export LD_LIBRARY_PATH=/usr/local/lib/:$LD_LIBRARY_PATH
>
> And now ldd returns;
>
>  ldd /usr/local/kamailio-4.4/lib64/kamailio/modules/jansson.so
>         linux-vdso.so.1 =>  (0x00007ffc8e586000)
>         libjansson.so.4 => /usr/local/lib/libjansson.so.4
> (0x00007fcfcfcbb000)
>         libc.so.6 => /lib64/libc.so.6 (0x00007fcfcf920000)
>         /lib64/ld-linux-x86-64.so.2 (0x0000563164e34000)
>
>
> And kamailio is running!
>
> Thanks
>
> Jon
>
>
>
> ------------------------------------------------------------------------
> To: sr-users at lists.sip-router.org
> From: miconda at gmail.com
> Date: Thu, 1 Sep 2016 12:27:47 +0200
> Subject: Re: [SR-Users] Centos, kamailio 4.4 and jansson module load
> issue.
>
> Hello,
> do you have the jansson devel library installed?
> Cheers,
> Daniel
>
>
> On 30/08/16 22:22, Jonathan Hunter wrote:
>
>     Hi Alex,
>
>     Sure;
>
>      ldd /usr/local/kamailio-4.4/lib64/kamailio/modules/jansson.so
>             linux-vdso.so.1 =>  (0x00007fffa3d0d000)
>             libc.so.6 => /lib64/libc.so.6 (0x00007f5563f4b000)
>             /lib64/ld-linux-x86-64.so.2 (0x000055f10acaa000)
>
>
>     Thanks
>
>     Jon
>
>     > To: sr-users at lists.sip-router.org
>     <mailto:sr-users at lists.sip-router.org>
>     > From: abalashov at evaristesys.com <mailto:abalashov at evaristesys.com>
>     > Date: Tue, 30 Aug 2016 16:13:43 -0400
>     > Subject: Re: [SR-Users] Centos, kamailio 4.4 and jansson module
>     load issue.
>     >
>     > Can you paste the output of:
>     >
>     > ldd /usr/local/kamailio-4.4/lib64/kamailio/modules/jansson.so
>     >
>     > ?
>     >
>     > -- Alex
>     >
>     > On 08/30/2016 04:12 PM, Jonathan Hunter wrote:
>     >
>     > > Hi Guys,
>     > >
>     > > I am running Centos 6.5 and have installed kamailio 4.4 from Git.
>     > >
>     > > All is running well until I try and load the jansson module.
>     > >
>     > > I have installed jansson-2.7 from src, but when loading the
>     module in
>     > > kamailio I get;
>     > >
>     > >
>     > > Aug 30 20:06:24 sip1 kamailio: ERROR: <core> [sr_module.c:582]:
>     > > load_module(): could not open module
>     > > </usr/local/kamailio-4.4/lib64/kamailio/modules/jansson.so>:
>     > > /usr/local/kamailio-4.4/lib64/kamailio/modules/jansson.so:
>     undefined
>     > > symbol: json_array_set_new
>     > >
>     > >
>     > > Anyone else had this issue?
>     > >
>     > > Thanks
>     > >
>     > > Jon
>     > >
>     > >
>     > > _______________________________________________
>     > > SIP Express Router (SER) and Kamailio (OpenSER) - sr-users
>     mailing list
>     > > sr-users at lists.sip-router.org
>     <mailto:sr-users at lists.sip-router.org>
>     > > http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
>     > >
>     >
>     >
>     > --
>     > Alex Balashov | Principal | Evariste Systems LLC
>     >
>     > Tel: +1-706-510-6800 (direct) / +1-800-250-5920 (toll-free)
>     > Web: http://www.evaristesys.com/, http://www.csrpswitch.com/
>     >
>     > _______________________________________________
>     > SIP Express Router (SER) and Kamailio (OpenSER) - sr-users
>     mailing list
>     > sr-users at lists.sip-router.org <mailto:sr-users at lists.sip-router.org>
>     > http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
>
>
>     _______________________________________________
>     SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
>     sr-users at lists.sip-router.org <mailto:sr-users at lists.sip-router.org>
>     http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
>
>
> -- 
> Daniel-Constantin Mierla
> http://www.asipto.com - http://www.kamailio.org
> http://twitter.com/#!/miconda <http://twitter.com/#%21/miconda> - http://www.linkedin.com/in/miconda
>
> _______________________________________________ SIP Express Router
> (SER) and Kamailio (OpenSER) - sr-users mailing list
> sr-users at lists.sip-router.org
> http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users

-- 
Daniel-Constantin Mierla
http://www.asipto.com - http://www.kamailio.org
http://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20160901/ee0fab6f/attachment.html>


More information about the sr-users mailing list