[sr-dev] SIPit 30 summary

Joel Vandal joel at scopserv.com
Sat Feb 23 17:58:26 CET 2013


Hi Marius,

Thanks ! Sorry for wrong thread subject, do a reply and miss to change 
subject.

-- 
Joel Vandal

> Hello Joel,
>
> Fixed in commit 402e44.
>
> Marius
>
>
> On Sat, Feb 23, 2013 at 2:38 PM, Marius Zbihlei <mariuszbi at gmail.com 
> <mailto:mariuszbi at gmail.com>> wrote:
>
>     Hello Joel,
>
>     First, this should be in a new thread.
>
>     Strnstr() is a BSD only exception so I presume you are buiding on
>     Linux agains Glibc. Because the scarcity of the implementation I
>     will add a own implementation based on the BSD one.
>     Will commit soon.
>     Marius
>
>
>     On Fri, Feb 22, 2013 at 8:41 PM, Joel Vandal <joel at scopserv.com
>     <mailto:joel at scopserv.com>> wrote:
>
>         Hi all,
>
>         Issue on recent Kamailio 4.0 GIT
>
>         On a recent changes, you add this on modules/tm/t_msgbuilder.c
>
>         +       if(headers==NULL || headers->len<15
>         +                       || strnstr(headers->s,
>         "Max-Forwards:", headers->len)==NULL)
>         +               memapp(w, MAXFWD_HEADER, MAXFWD_HEADER_LEN);  
>            /* Max-forwards */
>         +
>
>         This cause the following error on build :
>
>         CC (gcc) [M tm.so]              t_msgbuilder.o
>         t_msgbuilder.c: In function 'build_uac_req':
>         t_msgbuilder.c:1545: warning: implicit declaration of function
>         'strnstr'
>         t_msgbuilder.c:1545: warning: comparison between pointer and
>         integer
>
>         And Kamailio refuse to load the tm.so module
>
>         ERROR: <core> [sr_module.c:572]: ERROR: load_module: could not
>         open module </usr/lib64/kamailio/modules/tm.so>:
>         /usr/lib64/kamailio/modules/tm.so: undefined symbol: strnstr
>
>         -- 
>         Joel Vandal, CTO
>         ScopServ International Inc.
>         http://www.scopserv.com/
>
>
>
>         _______________________________________________
>         sr-dev mailing list
>         sr-dev at lists.sip-router.org <mailto:sr-dev at lists.sip-router.org>
>         http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-dev
>
>
>
>
>
> _______________________________________________
> sr-dev mailing list
> sr-dev at lists.sip-router.org
> http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-dev

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-dev/attachments/20130223/dfe94047/attachment.htm>


More information about the sr-dev mailing list