<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Liviu,<br>
<br>
I got pass that error but it looks like the same type of error for
UDP instead of TCP. Here is the output from the compile:<br>
<br>
<small><font face="Courier New, Courier, monospace">Compiling
net/net_udp.c<br>
In file included from net/../mem/mem.h:38:0,<br>
from net/../lock_alloc.h:54,<br>
from net/../locking.h:66,<br>
from net/../statistics.h:143,<br>
from net/../pt.h:34,<br>
from net/net_udp.c:30:<br>
net/../mem/../dprint.h: In function '__set_proc_debug_level':<br>
net/../mem/../dprint.h:128:2: error: 'pt' undeclared (first use
in this function)<br>
pt[proc_idx].debug = level;<br>
^<br>
net/../mem/../dprint.h:128:2: note: each undeclared identifier
is reported only once for each function it appears in<br>
net/../mem/../dprint.h: In function '__set_proc_default_debug':<br>
net/../mem/../dprint.h:133:2: error: 'pt' undeclared (first use
in this function)<br>
pt[proc_idx].default_debug = level;<br>
^<br>
net/../mem/../dprint.h: In function 'set_global_debug_level':<br>
net/../mem/../dprint.h:141:18: error: 'counted_processes'
undeclared (first use in this function)<br>
for (i = 0; i < counted_processes; i++) {<br>
^<br>
net/../mem/../dprint.h: In function 'set_proc_debug_level':<br>
net/../mem/../dprint.h:150:25: error: 'process_no' undeclared
(first use in this function)<br>
__set_proc_debug_level(process_no, level);<br>
^<br>
In file included from net/../locking.h:66:0,<br>
from net/../statistics.h:143,<br>
from net/../pt.h:34,<br>
from net/net_udp.c:30:<br>
net/../lock_alloc.h: In function 'lock_set_alloc':<br>
net/../lock_alloc.h:70:13: warning: cast increases required
alignment of target type [-Wcast-align]<br>
ls->locks=(gen_lock_t*)((char*)ls+sizeof(gen_lock_set_t));<br>
^<br>
In file included from net/../reactor_defs.h:39:0,<br>
from net/../reactor.h:38,<br>
from net/net_udp.c:32:<br>
net/../ip_addr.h: In function 'sockaddr2ip_addr':<br>
net/../ip_addr.h:224:25: warning: cast increases required
alignment of target type [-Wcast-align]<br>
memcpy(ip->u.addr, &((struct
sockaddr_in*)sa)->sin_addr, 4);<br>
^<br>
net/../ip_addr.h:229:25: warning: cast increases required
alignment of target type [-Wcast-align]<br>
memcpy(ip->u.addr, &((struct
sockaddr_in6*)sa)->sin6_addr, 16);<br>
^<br>
Makefile.rules:25: recipe for target 'net/net_udp.o' failed<br>
make[1]: *** [net/net_udp.o] Error 1</font></small><br>
<br>
Thanks<br>
<br>
Nathaniel<br>
<br>
<br>
<div class="moz-cite-prefix">On 1/12/16 6:31 AM, Liviu Chircu wrote:<br>
</div>
<blockquote cite="mid:5694F220.2080800@opensips.org" type="cite"><tt>sed
-i 's/\(struct dvpoll dpoll;\)/\1\n\tstruct fd_map* e;/'
io_wait_loop.h</tt></blockquote>
<br>
</body>
</html>