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>
Hello,
thanks, patch applied on master. The stable branches are not affected, this file being a new one added along with dnssec module.
Cheers, Daniel
On 4/22/13 5:21 PM, Victor V. Kustov wrote:
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>