[SR-Users] FreeBSD build broken (with patch)

Victor V. Kustov coyote at bks.tv
Mon Apr 22 17:21:39 CEST 2013


Hi all!

# gmake group_include="standard mysql debug radius"        
CC (gcc) [kamailio]		proxy.o
CC (gcc) [kamailio]		dns_func.o
In file included from dns_func.c:31:
/usr/include/resolv.h:157: error: array type has incomplete element type
/usr/include/resolv.h:171: error: field 'addr' has incomplete type
/usr/include/resolv.h:195: error: field 'sin' has incomplete type
gmake: *** [dns_func.o] Error 1

It's because incomplete headers for FreeBSD. 


diff --git a/dns_func.c b/dns_func.c
index 6eedf0d..5a9bf7e 100644
--- a/dns_func.c
+++ b/dns_func.c
@@ -28,6 +28,7 @@
 #include "dns_func.h"
 
 
+#include <netinet/in.h>
 #include <resolv.h>
 #include <sys/types.h>
 #include <netdb.h>

I write patch in message body 'cause think need patch to config
scripts, not dns_func.c.

#include <netinet/in.h> - need before #include <resolv.h>


-- 
 SY,
	Victor
  JID: coyote at bks.tv
  JID: coyote at bryansktel.ru
  I use FREE operation system: 3.8.4-calculate GNU/Linux



More information about the sr-users mailing list