[SR-Users] Kamailio 3.2 compile error on Solaris 10

Nathaniel L Keeling keeling at akan-tech.com
Fri Oct 21 08:29:11 CEST 2011


Thanks. That worked. I have another question. I had install bison 
because I was getting an error using yacc. Is there a way to pick up 
bison instead of yacc?

Thanks

Nathaniel

On 10/20/2011 11:37 PM, Daniel-Constantine Mierla wrote:
> Hello,
>
> This looks like an include order issue, due to the fact xmlrpc.c needs to define some flags for strptime function.
>
> Can you try to move
>
> #include "../../sr_module.h"
>
> Before the line
>
> #define _XOPEN_SOURCE 4
>
> Then recompile the module.
>
> Cheers,
> Daniel
>
> On Oct 21, 2011, at 4:23 AM, Nathaniel L Keeling<nkeeling at akan.net>  wrote:
>
>> I am trying to compile the new version of Kamailio, 3.2 on Solaris in a 64bit environment and I am getting this error. I have been searching the internet but have not been able to find any solutions. Any help would be appreciated.
>>
>> CC (gcc) [M xmlrpc.so]          xmlrpc.o
>> In file included from ../../parser/msg_parser.h:63:0,
>>                  from ../../sr_module.h:62,
>>                  from xmlrpc.c:41:
>> ../../parser/../ip_addr.h:86:23: error: field 'sin6' has incomplete type
>> ../../parser/../ip_addr.h: In function 'ip_addr_loopback':
>> ../../parser/../ip_addr.h:283:3: warning: implicit declaration of function 'htonl' [-Wimplicit-function-declaration]
>> ../../parser/../ip_addr.h:286:3: warning: implicit declaration of function 'IN6_IS_ADDR_LOOPBACK' [-Wimplicit-function-declaration]
>> ../../parser/../ip_addr.h: In function 'sockaddr2ip_addr':
>> ../../parser/../ip_addr.h:353:50: error: dereferencing pointer to incomplete type
>> ../../parser/../ip_addr.h: In function 'su_getport':
>> ../../parser/../ip_addr.h:399:4: warning: implicit declaration of function 'ntohs' [-Wimplicit-function-declaration]
>> ../../parser/../ip_addr.h: In function 'su_setport':
>> ../../parser/../ip_addr.h:418:4: warning: implicit declaration of function 'htons' [-Wimplicit-function-declaration]
>> xmlrpc.c: In function 'rpc_scan':
>> xmlrpc.c:1454:6: warning: variable 'fmt_len' set but not used [-Wunused-but-set-variable]
>> gmake[1]: *** [xmlrpc.o] Error 1
>> gmake: *** [modules] Error 1
>>
>>
>> Thanks
>>
>> Nathaniel
>>
>> _______________________________________________
>> SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
>> sr-users at lists.sip-router.org
>> http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
> _______________________________________________
> SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
> sr-users at lists.sip-router.org
> http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
>
>
>
> -----
> No virus found in this message.
> Checked by AVG - www.avg.com
> Version: 2012.0.1831 / Virus Database: 2092/4563 - Release Date: 10/20/11
>
>



More information about the sr-users mailing list