[SR-Users] Sipcapture and Siptrace Compile Error

Alexandr Dubovikov aduvoip at googlemail.com
Fri Jun 15 23:46:27 CEST 2012


Hallo Akan,

oops, sorry :-(

please add  new typedef after u_int16_t;

#ifdef __OS_solaris
typedef uint8_t u_int8_t;
typedef uint16_t u_int16_t;
*typedef uint16_t u_int32_t;*
#define IPPROTO_IPIP IPPROTO_ENCAP /* Solaris IPIP protocol has name 
ENCAP */
#endif

Wbr,
Alexandr

6/15/2012 9:11 PM, Akan wrote:
> I added the define and recompiled. still got the same error. Here is 
> the change that I've made:
>
> #define __OS_solaris 1       //* this is the line that i've added
>
> #ifdef __OS_solaris
> typedef uint8_t u_int8_t;
> typedef uint16_t u_int16_t;
> #define IPPROTO_IPIP IPPROTO_ENCAP /* Solaris IPIP protocol has name 
> ENCAP */
> #endif
>
>
> Thanks
>
> Nathaniel
>
>
> On 6/15/2012 9:15 AM, Alexandr Dubovikov wrote:
>> Hi Akan,
>>
>> looks like in your system has not defined __OS_solaris
>>
>> open sipcapture.h and add this string on top:
>>
>> #define __OS_solaris 1
>>
>> and recompile modules again.
>>
>> Wbr,
>> Alexandr
>>
>> On 06/15/2012 06:53 AM, Akan wrote:
>>> When compiling kamailio v3.3, I am getting this error from 
>>> sipcapture and siptrace. I am compiling on solaris 10, 64bit  Sun 
>>> server with gnu tools.
>>>
>>> CC (gcc) [M sipcapture.so]              sipcapture.o
>>> In file included from sipcapture.c:76:0:
>>> sipcapture.h:48:4: error: unknown type name 'u_int32_t'
>>> sipcapture.h:49:4: error: unknown type name 'u_int32_t'
>>> gmake[1]: *** [sipcapture.o] Error 1
>>>
>>> In file included from siptrace.c:54:0:
>>> ../../modules/sipcapture/sipcapture.h:48:4: error: unknown type name 
>>> 'u_int32_t'
>>> ../../modules/sipcapture/sipcapture.h:49:4: error: unknown type name 
>>> 'u_int32_t'
>>> gmake[1]: *** [siptrace.o] 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
>>
>>
>>
>>
>> -----
>> No virus found in this message.
>> Checked by AVG - www.avg.com
>> Version: 2012.0.2180 / Virus Database: 2433/5070 - Release Date: 
>> 06/14/12
>>
>>
>
>
>
> _______________________________________________
> 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

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20120615/f1867ade/attachment.htm>


More information about the sr-users mailing list