Yes, Alexandr - I changed the uints already. IPPROTO works! Maybe you can stick a define in for Solaris ;)<br><br>Cheers<br>Jason<br><br><div class="gmail_quote">2011/10/14 Alexandr Dubovikov <span dir="ltr">&lt;<a href="mailto:alexandr.dubovikov@gmail.com">alexandr.dubovikov@gmail.com</a>&gt;</span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Hi Jason,<br>
<br>
ok, Solaris has uint type, not u_int, and IPPROTO_IPIP can be fixed in this way:<br>
<br>
#ifndef IPPROTO_IPIP<br>
#define IPIPPROTO_IPIP 4<br>
#endif<br>
<br>
Can you check it please, i don&#39;t have any Solaris here….<br>
<div class="im"><br>
<br>
Wbr,<br>
Alexandr<br>
<br>
14.10.2011, в 08:01, Jason Penton написал(а):<br>
<br>
</div><div><div></div><div class="h5">&gt; Hey Guys,<br>
&gt;<br>
&gt; sipcapture is failing to build on Solaris. I am just dumping the trace here as I don&#39;t have time to look at it now. I will however take a look when I get a chance.<br>
&gt;<br>
&gt; CC (gcc) [M sipcapture.so]              sipcapture.o<br>
&gt; In file included from sipcapture.c:76:<br>
&gt; sipcapture.h:28: error: syntax error before &quot;u_int8_t&quot;<br>
&gt; sipcapture.h:28: warning: no semicolon at end of struct or union<br>
&gt; sipcapture.h:29: warning: type defaults to `int&#39; in declaration of `hp_l&#39;<br>
&gt; sipcapture.h:29: warning: data definition has no type or storage class<br>
&gt; sipcapture.h:30: error: syntax error before &quot;hp_f&quot;<br>
&gt; sipcapture.h:30: warning: type defaults to `int&#39; in declaration of `hp_f&#39;<br>
&gt; sipcapture.h:30: warning: data definition has no type or storage class<br>
&gt; sipcapture.h:31: error: syntax error before &quot;hp_p&quot;<br>
&gt; sipcapture.h:31: warning: type defaults to `int&#39; in declaration of `hp_p&#39;<br>
&gt; sipcapture.h:31: warning: data definition has no type or storage class<br>
&gt; sipcapture.h:32: error: syntax error before &quot;hp_sport&quot;<br>
&gt; sipcapture.h:32: warning: type defaults to `int&#39; in declaration of `hp_sport&#39;<br>
&gt; sipcapture.h:32: warning: data definition has no type or storage class<br>
&gt; sipcapture.h:33: error: syntax error before &quot;hp_dport&quot;<br>
&gt; sipcapture.h:33: warning: type defaults to `int&#39; in declaration of `hp_dport&#39;<br>
&gt; sipcapture.h:33: warning: data definition has no type or storage class<br>
&gt; sipcapture.c: In function `mod_init&#39;:<br>
&gt; sipcapture.c:469: error: `IPPROTO_IPIP&#39; undeclared (first use in this function)<br>
&gt; sipcapture.c:469: error: (Each undeclared identifier is reported only once<br>
&gt; sipcapture.c:469: error: for each function it appears in.)<br>
&gt; sipcapture.c: In function `hep_msg_received&#39;:<br>
&gt; sipcapture.c:638: error: invalid application of `sizeof&#39; to incomplete type `hep_hdr&#39;<br>
&gt; sipcapture.c:648: error: dereferencing pointer to incomplete type<br>
&gt; sipcapture.c:658: error: dereferencing pointer to incomplete type<br>
&gt; sipcapture.c:658: error: dereferencing pointer to incomplete type<br>
&gt; sipcapture.c:658: error: dereferencing pointer to incomplete type<br>
&gt; sipcapture.c:658: error: dereferencing pointer to incomplete type<br>
&gt; sipcapture.c:658: error: dereferencing pointer to incomplete type<br>
&gt; sipcapture.c:663: error: dereferencing pointer to incomplete type<br>
&gt; sipcapture.c:663: error: dereferencing pointer to incomplete type<br>
&gt; sipcapture.c:664: error: dereferencing pointer to incomplete type<br>
&gt; sipcapture.c:664: error: dereferencing pointer to incomplete type<br>
&gt; sipcapture.c:664: error: dereferencing pointer to incomplete type<br>
&gt; sipcapture.c:664: error: dereferencing pointer to incomplete type<br>
&gt; sipcapture.c:664: error: dereferencing pointer to incomplete type<br>
&gt; sipcapture.c:664: error: dereferencing pointer to incomplete type<br>
&gt; sipcapture.c:664: error: dereferencing pointer to incomplete type<br>
&gt; sipcapture.c:664: error: dereferencing pointer to incomplete type<br>
&gt; sipcapture.c:664: error: dereferencing pointer to incomplete type<br>
&gt; sipcapture.c:664: error: dereferencing pointer to incomplete type<br>
&gt; sipcapture.c:670: error: dereferencing pointer to incomplete type<br>
&gt; sipcapture.c:671: error: dereferencing pointer to incomplete type<br>
&gt; sipcapture.c:672: error: dereferencing pointer to incomplete type<br>
&gt; sipcapture.c:677: error: dereferencing pointer to incomplete type<br>
&gt; sipcapture.c:677: error: dereferencing pointer to incomplete type<br>
&gt; sipcapture.c:677: error: dereferencing pointer to incomplete type<br>
&gt; sipcapture.c:677: error: dereferencing pointer to incomplete type<br>
&gt; sipcapture.c:677: error: dereferencing pointer to incomplete type<br>
&gt; sipcapture.c:681: error: invalid application of `sizeof&#39; to incomplete type `hep_hdr&#39;<br>
&gt; sipcapture.c:688: error: dereferencing pointer to incomplete type<br>
&gt; sipcapture.c:712: error: dereferencing pointer to incomplete type<br>
&gt; sipcapture.c:733: error: dereferencing pointer to incomplete type<br>
&gt; sipcapture.c:736: error: dereferencing pointer to incomplete type<br>
&gt; sipcapture.c: In function `raw_capture_socket&#39;:<br>
&gt; sipcapture.c:1333: error: `IPPROTO_IPIP&#39; undeclared (first use in this function)<br>
&gt; make[1]: *** [sipcapture.o] Error 1<br>
&gt; make: *** [modules] Error 1<br>
&gt;<br>
&gt;<br>
&gt; Cheers<br>
&gt; Jason<br>
</div></div><div><div></div><div class="h5">&gt; _______________________________________________<br>
&gt; sr-dev mailing list<br>
&gt; <a href="mailto:sr-dev@lists.sip-router.org">sr-dev@lists.sip-router.org</a><br>
&gt; <a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-dev" target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-dev</a><br>
<br>
<br>
_______________________________________________<br>
sr-dev mailing list<br>
<a href="mailto:sr-dev@lists.sip-router.org">sr-dev@lists.sip-router.org</a><br>
<a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-dev" target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-dev</a><br>
</div></div></blockquote></div><br>