From owner-freebsd-bugs Fri Aug 4 14:40:14 2000 Delivered-To: freebsd-bugs@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (Postfix) with ESMTP id 35CE237BB4D for ; Fri, 4 Aug 2000 14:40:01 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.9.3/8.9.2) id OAA29076; Fri, 4 Aug 2000 14:40:00 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: from modemcable127.61-201-24.mtl.mc.videotron.net (modemcable136.200-201-24.mtl.mc.videotron.net [24.201.200.136]) by hub.freebsd.org (Postfix) with SMTP id 91BBF37BA25 for ; Fri, 4 Aug 2000 14:31:10 -0700 (PDT) (envelope-from patrick@mindstep.com) Received: (qmail 9747 invoked by alias); 4 Aug 2000 21:31:07 -0000 Received: (qmail 9743 invoked from network); 4 Aug 2000 21:31:07 -0000 Received: from nitro.local.mindstep.com (qmailr@192.168.10.2) by jacuzzi.local.mindstep.com with SMTP; 4 Aug 2000 21:31:07 -0000 Received: (qmail 47906 invoked by uid 1002); 4 Aug 2000 21:34:10 -0000 Message-Id: <20000804213410.47896.qmail@nitro.local.mindstep.com> Date: 4 Aug 2000 21:34:10 -0000 From: patrick@mindstep.com Reply-To: patrick@mindstep.com To: freefall-gnats@mindstep.com X-Send-Pr-Version: 3.2 Subject: bin/20407: netstat cannot be compiled without IPv6 support Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >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 #include #include @@ -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 #include #include @@ -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