I've put together a patch for all Solaris-related issues [1], for the
latest 2.1 code.
Please revert the previous fix we did here, and apply this patch with:
git apply solaris_bad_compile.patch
if you're running off a git repository, or with:
patch -p1 < solaris_bad_compile.patch
if you're running off a 2.1 tarball.
[1]: https://gist.github.com/liviuchircu/00bdc9bad3b750e8a265
Liviu Chircu
OpenSIPS Developer
http://www.opensips-solutions.com
On 13.01.2016 04:45, Nathaniel L. Keeling III wrote:
Liviu,
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:
Compiling net/net_udp.c
In file included from net/../mem/mem.h:38:0,
from net/../lock_alloc.h:54,
from net/../locking.h:66,
from net/../statistics.h:143,
from net/../pt.h:34,
from net/net_udp.c:30:
net/../mem/../dprint.h: In function '__set_proc_debug_level':
net/../mem/../dprint.h:128:2: error: 'pt' undeclared (first use in
this function)
pt[proc_idx].debug = level;
^
net/../mem/../dprint.h:128:2: note: each undeclared identifier is
reported only once for each function it appears in
net/../mem/../dprint.h: In function '__set_proc_default_debug':
net/../mem/../dprint.h:133:2: error: 'pt' undeclared (first use in
this function)
pt[proc_idx].default_debug = level;
^
net/../mem/../dprint.h: In function 'set_global_debug_level':
net/../mem/../dprint.h:141:18: error: 'counted_processes' undeclared
(first use in this function)
for (i = 0; i < counted_processes; i++) {
^
net/../mem/../dprint.h: In function 'set_proc_debug_level':
net/../mem/../dprint.h:150:25: error: 'process_no' undeclared (first
use in this function)
__set_proc_debug_level(process_no, level);
^
In file included from net/../locking.h:66:0,
from net/../statistics.h:143,
from net/../pt.h:34,
from net/net_udp.c:30:
net/../lock_alloc.h: In function 'lock_set_alloc':
net/../lock_alloc.h:70:13: warning: cast increases required alignment
of target type [-Wcast-align]
ls->locks=(gen_lock_t*)((char*)ls+sizeof(gen_lock_set_t));
^
In file included from net/../reactor_defs.h:39:0,
from net/../reactor.h:38,
from net/net_udp.c:32:
net/../ip_addr.h: In function 'sockaddr2ip_addr':
net/../ip_addr.h:224:25: warning: cast increases required alignment of
target type [-Wcast-align]
memcpy(ip->u.addr, &((struct sockaddr_in*)sa)->sin_addr, 4);
^
net/../ip_addr.h:229:25: warning: cast increases required alignment of
target type [-Wcast-align]
memcpy(ip->u.addr, &((struct sockaddr_in6*)sa)->sin6_addr, 16);
^
Makefile.rules:25: recipe for target 'net/net_udp.o' failed
make[1]: *** [net/net_udp.o] Error 1
Thanks
Nathaniel
On 1/12/16 6:31 AM, Liviu Chircu wrote:
sed -i 's/\(struct dvpoll dpoll;\)/\1\n\tstruct fd_map* e;/'
io_wait_loop.h
_______________________________________________
Users mailing list
[email protected]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users
_______________________________________________
Users mailing list
[email protected]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users