[OpenSIPS-Users] MenuConfig Compile Fail on Solaris Sparc

Nathaniel L. Keeling III keeling at akan-tech.com
Thu Jan 14 07:45:39 CET 2016


Liviu,

I removed the previous change and applied the patch and here is the 
error that I got:

Compiling net/net_udp.c
In file included from net/../locking.h:66:0,
                  from net/../statistics.h:143,
                  from net/../pt.h:70,
                  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);
                          ^
In file included from net/../reactor.h:41:0,
                  from net/net_udp.c:32:
net/../io_wait_loop.h: In function 'io_wait_loop_devpoll':
net/../io_wait_loop.h:403:17: error: redeclaration of 'e' with no linkage
   struct fd_map* e;
                  ^
net/../io_wait_loop.h:402:17: note: previous declaration of 'e' was here
   struct fd_map* e;
                  ^
Makefile.rules:25: recipe for target 'net/net_udp.o' failed
make[1]: *** [net/net_udp.o] Error 1

Thanks

Nathaniel

On 1/13/16 4:28 AM, Liviu Chircu wrote:
> sed -i 's/\(struct dvpoll dpoll;\)/\1\n\tstruct fd_map* e;/' 
> io_wait_loop.h




More information about the Users mailing list