<div dir="ltr">Hello Joel, <div><br></div><div>Fixed in commit 402e44. </div><div><br></div><div style>Marius</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Sat, Feb 23, 2013 at 2:38 PM, Marius Zbihlei <span dir="ltr">&lt;<a href="mailto:mariuszbi@gmail.com" target="_blank">mariuszbi@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hello Joel, <div><br></div><div>First, this should be in a new thread. </div><div><br></div><div>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.</div>

<div>Will commit soon.</div><span class="HOEnZb"><font color="#888888"><div>Marius</div></font></span></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, Feb 22, 2013 at 8:41 PM, Joel Vandal <span dir="ltr">&lt;<a href="mailto:joel@scopserv.com" target="_blank">joel@scopserv.com</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi all,<br>
<br>
Issue on recent Kamailio 4.0 GIT<br>
<br>
On a recent changes, you add this on modules/tm/t_msgbuilder.c<br>
<br>
+       if(headers==NULL || headers-&gt;len&lt;15<br>
+                       || strnstr(headers-&gt;s, &quot;Max-Forwards:&quot;, headers-&gt;len)==NULL)<br>
+               memapp(w, MAXFWD_HEADER, MAXFWD_HEADER_LEN);      /* Max-forwards */<br>
+<br>
<br>
This cause the following error on build :<br>
<br>
CC (gcc) [M tm.so]              t_msgbuilder.o<br>
t_msgbuilder.c: In function &#39;build_uac_req&#39;:<br>
t_msgbuilder.c:1545: warning: implicit declaration of function &#39;strnstr&#39;<br>
t_msgbuilder.c:1545: warning: comparison between pointer and integer<br>
<br>
And Kamailio refuse to load the tm.so module<br>
<br>
ERROR: &lt;core&gt; [sr_module.c:572]: ERROR: load_module: could not open module &lt;/usr/lib64/kamailio/modules/<u></u>tm.so&gt;: /usr/lib64/kamailio/modules/<u></u>tm.so: undefined symbol: strnstr<span><font color="#888888"><br>


<br>
-- <br>
Joel Vandal, CTO<br>
ScopServ International Inc.<br>
<a href="http://www.scopserv.com/" target="_blank">http://www.scopserv.com/</a></font></span><div><div><br>
<br>
<br>
______________________________<u></u>_________________<br>
sr-dev mailing list<br>
<a href="mailto:sr-dev@lists.sip-router.org" target="_blank">sr-dev@lists.sip-router.org</a><br>
<a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-dev" target="_blank">http://lists.sip-router.org/<u></u>cgi-bin/mailman/listinfo/sr-<u></u>dev</a><br>
</div></div></blockquote></div><br></div>
</div></div></blockquote></div><br></div>