From: Tremulant <umb...@gm...> - 2005-10-30 00:47:47
|
Hi, There's a couple of issues that should be handled, when using FreeBSD, before successfully build gaim2 CVS. This has been tested on FreeBSD 5.4-STABLE. =3D=3D=3D src/dnssrv.c:24 =3D=3D=3D /usr/include/resolv.h:106: error: field `nsaddr_list' has incomplete type ... /usr/include/resolv.h:132: error: field `in6a' has incomplete type dnssrv.c: In function `resolve': dnssrv.c:107: error: implicit declaration of function `ntohs' Here's the patch that solves this problem: --- src/dnssrv.c.orig Sat Oct 29 19:04:50 2005 +++ src/dnssrv.c Sat Oct 29 19:06:17 2005 @@ -21,6 +21,7 @@ */ #include <glib.h> #ifndef _WIN32 +#include <netinet/in.h> #include <resolv.h> #include <stdlib.h> #include <arpa/nameser.h> =3D=3D=3D src/stun.c:30 =3D=3D=3D /usr/include/net/if.h:235: error: field `ifru_addr' has incomplete type ... /usr/include/net/if.h:323: error: field `dstaddr' has incomplete type Including sys/socket.h before including net/if.h solves the problem, however, some kind guy in #gaim told me about sys/socket.h is being already included in internal.h. And, yeah, that's right. Actually, at line 104. So, this is the patch that solves this problem: --- src/stun.c.orig Sat Oct 29 19:14:08 2005 +++ src/stun.c Sat Oct 29 19:14:59 2005 @@ -26,14 +26,14 @@ * */ +#include "internal.h" + #ifndef _WIN32 #include <net/if.h> #include <sys/ioctl.h> #else #include "libc_interface.h" #endif - -#include "internal.h" #include "debug.h" #include "account.h" I don't know whether this patches affect negatively on platforms other than FreeBSD, but I'd like to hear about it :) Greets, --T |