<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<div class="moz-cite-prefix">On 19.11.2020 18:36, Alain Bieuzent
wrote:<br>
</div>
<blockquote type="cite"
cite="mid:5075244C-2F8C-4F14-A334-ED3D0710AFF9@free.fr">
<p class="MsoNormal"><span style="font-size:11.0pt">Trying to
migrate from 3.0.3 to 3.0.4, but it failed :<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">Compiling
net/tcp_common.c<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">In file
included from net/tcp_common.c:24:0:<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">net/tcp_common.h:25:5:
warning: redundant redeclaration of âtcp_connect_blockingâ
[-Wredundant-decls]<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"> int
tcp_connect_blocking(int s, const struct sockaddr *servaddr,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">
^~~~~~~~~~~~~~~~~~~~<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">In file
included from net/tcp_common.c:23:0:<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">net/net_tcp.h:83:5:
note: previous declaration of âtcp_connect_blockingâ was
here<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"> int
tcp_connect_blocking(int s, const struct sockaddr *servaddr,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">
^~~~~~~~~~~~~~~~~~~~</span></p>
</blockquote>
<p><tt>Hi, Alain!</tt></p>
<p><tt>Thank you for the hints - we understand the issue now.</tt></p>
<p><tt>To move on with your work, simply delete the files which
upset the compiler [*], then OpenSIPS should build fine:</tt></p>
<p><tt> rm -fr net/tcp_common.[ch]</tt></p>
<p><tt>[*]: this is a special situation, since these files seem to
have been erroneously included in the tarball. Do not make a
habit out of solving compilation problems using this technique!</tt></p>
<p><tt>Cheers,</tt></p>
<pre class="moz-signature" cols="72">--
Liviu Chircu
<a class="moz-txt-link-abbreviated" href="http://www.twitter.com/liviuchircu">www.twitter.com/liviuchircu</a> | <a class="moz-txt-link-abbreviated" href="http://www.opensips-solutions.com">www.opensips-solutions.com</a></pre>
</body>
</html>