[sr-dev] SIPit 30 summary
Marius Zbihlei
mariuszbi at gmail.com
Sat Feb 23 15:38:41 CET 2013
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> 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
> http://lists.sip-router.org/**cgi-bin/mailman/listinfo/sr-**dev<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/1e1b188f/attachment.htm>
More information about the sr-dev
mailing list