[Asterisk-bsd] need help

Andrew A. Kochetkoff andrews at mtelecom.chita.ru
Mon May 23 22:39:13 CDT 2005


Richard E. Neese wrote:
> I need help port chan_sccp to fbsd. 
> 
> Now compiling .... chan_sccp.c               742 lines
> In file included from chan_sccp.h:8,
>                  from chan_sccp.c:2:
> /usr/include/netinet/ip.h:67: error: field `ip_src' has incomplete type
> /usr/include/netinet/ip.h:67: error: field `ip_dst' has incomplete type
> /usr/include/netinet/ip.h:160: error: syntax error before "n_long"
> /usr/include/netinet/ip.h:162: error: field `ipt_addr' has incomplete type
> /usr/include/netinet/ip.h:163: error: syntax error before "n_long"
> /usr/include/netinet/ip.h:198: error: field `ippseudo_src' has incomplete type
> /usr/include/netinet/ip.h:199: error: field `ippseudo_dst' has incomplete type
> chan_sccp.c: In function `restart_monitor':
> chan_sccp.c:638: warning: comparison between pointer and integer
> chan_sccp.c: In function `unload_module':
> chan_sccp.c:720: warning: assignment makes pointer from integer without a cast
> gmake: *** [.tmp/chan_sccp.o] Error 1
> 
> I have very small c skill. Here is the link to cvs for it.
> 
> http://sourceforge.net/cvs/?group_id=106208 I need this for a bunch of 7920.
> 
Use this patch:

--- chan_sccp.h.orig    Sun May  1 15:43:47 2005
+++ chan_sccp.h Tue May 24 13:37:33 2005
@@ -5,7 +5,15 @@
  #include <sys/types.h>
  #include <sys/socket.h>
  #include <netdb.h>
+
+#ifdef linux
  #include <netinet/ip.h>
+#endif /* linux */
+
+#ifdef __FreeBSD__
+#include <netinet/in.h>
+#endif /* FreeBSD */
+
  #include <netinet/tcp.h>
  #include <arpa/inet.h>
  #include <stdlib.h>

-------------- next part --------------
A non-text attachment was scrubbed...
Name: andrews.vcf
Type: text/x-vcard
Size: 258 bytes
Desc: not available
Url : http://lists.digium.com/pipermail/asterisk-bsd/attachments/20050524/2fc6885f/andrews.vcf


More information about the Asterisk-BSD mailing list