[sr-dev] SIPit 30 summary

Marius Zbihlei mariuszbi at gmail.com
Sat Feb 23 16:04:18 CET 2013


Hello Joel,

Fixed in commit 402e44.

Marius


On Sat, Feb 23, 2013 at 2:38 PM, Marius Zbihlei <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> 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/0d5a2ad6/attachment.htm>


More information about the sr-dev mailing list