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

Daniel-Constantin Mierla miconda at gmail.com
Sat Oct 22 03:15:36 CEST 2011


Hello,

On 10/21/11 8:29 AM, Nathaniel L Keeling wrote:
> Thanks. That worked.

ok, I will commit the change once I get some time to see if it compiles 
ok on linux and bsd.

> 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?
If you mean how to use bison instead of yacc with the makefile, try to 
do like:

make YACC=bison ...

Looking quickly in the Makefile.defs, that might not work for solaris, 
as it looks it enforces yacc. Ultimately you can change in 
Makefile.defs, see where YACC variable is set.

Perhaps we should change the YACC=xyz to YACC:=xyz so that values set in 
the environment/command line have priority.

Cheers,
Daniel

>
> 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
>>
>>
>
> _______________________________________________
> 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

-- 
Daniel-Constantin Mierla -- http://www.asipto.com
Kamailio Advanced Training, Dec 5-8, Berlin: http://asipto.com/u/kat
http://linkedin.com/in/miconda -- http://twitter.com/miconda




More information about the sr-users mailing list