Date: 4 Aug 2000 21:34:10 -0000 From: patrick@mindstep.com To: freefall-gnats@mindstep.com Subject: bin/20407: netstat cannot be compiled without IPv6 support Message-ID: <20000804213410.47896.qmail@nitro.local.mindstep.com>
next in thread | raw e-mail | index | archive | help
>Number: 20407 >Category: bin >Synopsis: netstat cannot be compiled without IPv6 support >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Fri Aug 04 14:40:00 PDT 2000 >Closed-Date: >Last-Modified: >Originator: Patrick Bihan-Faou >Release: FreeBSD 4.0-STABLE i386 >Organization: MindStep Corporation >Environment: FreeBSD 4.1-STABLE checked out as of August 2, 2000 >Description: the files inet6.c and mroute6.c do not honour the INET6 compile option. This means that even if INET6 is not enabled in the makefile, it tries to compile IPv6 support. >How-To-Repeat: Remove -DINET6 from the makefile, make. >Fix: This is a crude patch to not compile IPv6 related files if INET6 is not defined. --- inet6.c.orig Fri Aug 4 17:25:16 2000 +++ inet6.c Fri Aug 4 17:24:57 2000 @@ -40,6 +40,7 @@ */ #endif /* not lint */ +#ifdef INET6 #include <sys/param.h> #include <sys/socket.h> #include <sys/socketvar.h> @@ -1045,3 +1046,5 @@ sizeof(ntop_buf))); return (line); } +#endif /* INET6 */ + --- mroute6.c.orig Fri Aug 4 17:25:45 2000 +++ mroute6.c Fri Aug 4 17:26:13 2000 @@ -67,6 +67,7 @@ * $FreeBSD$ */ +#ifdef INET6 #include <sys/param.h> #include <sys/queue.h> #include <sys/socket.h> @@ -247,3 +248,5 @@ (unsigned long long)mrtstat.mrt6s_pkt2large, plural(mrtstat.mrt6s_pkt2large)); } + +#endif /* INET6 */ >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20000804213410.47896.qmail>