[OpenSIPS-Users] MenuConfig Compile Fail on Solaris Sparc

Nathaniel L. Keeling III keeling at akan-tech.com
Wed Jan 13 03:45:31 CET 2016


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

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20160112/009d94f9/attachment.htm>


More information about the Users mailing list