Problems compiling bind-9.3.0rc1 on suse linux

Florian Piekert floppy at floppy.org
Fri Jun 18 12:25:59 UTC 2004


On Fri, 18 Jun 2004 20:42:15 +1000, Mark Andrews wrote:

Hi Mark & bind community,

>
>	Apply the following patch.
>
>Index: lib/isc/unix/ifiter_ioctl.c
>===================================================================
>RCS file: /proj/cvs/prod/bind9/lib/isc/unix/ifiter_ioctl.c,v
>retrieving revision 1.19.2.5.2.11
>diff -u -r1.19.2.5.2.11 ifiter_ioctl.c
>--- lib/isc/unix/ifiter_ioctl.c	6 May 2004 03:19:40 -0000	1.19.2.5.2.11
>+++ lib/isc/unix/ifiter_ioctl.c	18 Jun 2004 10:41:16 -0000
>@@ -100,6 +100,15 @@
> #define IFCONF_BUFSIZE_INITIAL	4096
> #define IFCONF_BUFSIZE_MAX	1048576
> 
>+#ifdef __linux
>+#ifndef IF_NAMESIZE
>+# ifdef IFNAMSIZ
>+#  define IF_NAMESIZE  IFNAMSIZ  
>+# else
>+#  define IF_NAMESIZE 16
>+# endif
>+#endif
>+
> static isc_result_t
> getbuf4(isc_interfaceiter_t *iter) {
> 	char strbuf[ISC_STRERRORSIZE];

After applying the patch I get

interfaceiter.c: In function `get_addr':
interfaceiter.c:64: warning: unused parameter `ifname'
In file included from interfaceiter.c:149:
ifiter_ioctl.c:103:1: unterminated #ifdef

So another #endif in the patch should do the trick...

JFYI. With the patch I was able to compile it.

Thanks a bunch folks and happy week-end.

Floppy.


Florian Piekert                          floppy at floppy.org

Reichenbergstraße 7              Tel+Fax: +49-700-00floppy
38114 Braunschweig                        +49-179- 3928582
Germany




More information about the bind-users mailing list