From patrick@mindstep.com  Fri Aug  4 14:31:12 2000
Return-Path: <patrick@mindstep.com>
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 <FreeBSD-gnats-submit@freebsd.org>; 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
Subject: netstat cannot be compiled without IPv6 support
X-Send-Pr-Version: 3.2

>Number:         20407
>Category:       bin
>Synopsis:       netstat cannot be compiled without IPv6 support
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    ume
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Aug 04 14:40:00 PDT 2000
>Closed-Date:    Mon Aug 7 09:46:18 PDT 2000
>Last-Modified:  Mon Aug 07 09:48:31 PDT 2000
>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:
Responsible-Changed-From-To: freebsd-bugs->itojun 
Responsible-Changed-By: sheldonh 
Responsible-Changed-When: Mon Aug 7 02:32:10 PDT 2000 
Responsible-Changed-Why:  
IPv6 problem. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=20407 
State-Changed-From-To: open->closed 
State-Changed-By: ume 
State-Changed-When: Mon Aug 7 09:46:18 PDT 2000 
State-Changed-Why:  
Thanks!  Committed. 


Responsible-Changed-From-To: itojun->ume 
Responsible-Changed-By: ume 
Responsible-Changed-When: Mon Aug 7 09:46:18 PDT 2000 
Responsible-Changed-Why:  
I had commited this. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=20407 
>Unformatted:
