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

Daniel-Constantine Mierla miconda at gmail.com
Fri Oct 21 06:37:29 CEST 2011


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



More information about the sr-users mailing list