[OpenSIPS-Users] MenuConfig Compile Fail on Solaris Sparc
Nathaniel L. Keeling III
keeling at akan-tech.com
Fri Jan 15 01:51:56 CET 2016
Liviu,
No problem, but it looks like the same patch. Also, do I need to
un-apply the previous patch first or can I just apply the updated version?
Thanks
Nathaniel L Keeling
On 1/14/16 3:40 AM, Liviu Chircu wrote:
> Updated the patch [1]. My bad!
>
> [1]: https://gist.github.com/liviuchircu/00bdc9bad3b750e8a265
>
> Liviu Chircu
> OpenSIPS Developer
> http://www.opensips-solutions.com
>
> On 14.01.2016 08:45, Nathaniel L. Keeling III wrote:
>> 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
>>
>>
>> _______________________________________________
>> Users mailing list
>> Users at lists.opensips.org
>> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
>
More information about the Users
mailing list