From yar@jujik.ramtel.ru  Tue Jul 25 12:00:36 2006
Return-Path: <yar@jujik.ramtel.ru>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id C6BD216A51E
	for <FreeBSD-gnats-submit@freebsd.org>; Tue, 25 Jul 2006 12:00:36 +0000 (UTC)
	(envelope-from yar@jujik.ramtel.ru)
Received: from jujik.ramtel.ru (jujik.ramtel.ru [81.19.64.112])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 1588F43D45
	for <FreeBSD-gnats-submit@freebsd.org>; Tue, 25 Jul 2006 12:00:35 +0000 (GMT)
	(envelope-from yar@jujik.ramtel.ru)
Received: from jujik.ramtel.ru (localhost [127.0.0.1])
	by jujik.ramtel.ru (8.13.7/8.13.7) with ESMTP id k6PC0YVM056078
	for <FreeBSD-gnats-submit@freebsd.org>; Tue, 25 Jul 2006 16:00:34 +0400 (MSD)
	(envelope-from yar@jujik.ramtel.ru)
Received: (from yar@localhost)
	by jujik.ramtel.ru (8.13.7/8.13.7/Submit) id k6PC0XpC056077;
	Tue, 25 Jul 2006 16:00:33 +0400 (MSD)
	(envelope-from yar)
Message-Id: <200607251200.k6PC0XpC056077@jujik.ramtel.ru>
Date: Tue, 25 Jul 2006 16:00:33 +0400 (MSD)
From: Yar Tikhiy <yar@comp.chem.msu.su>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: WITHOUT_INET6 is ignored by many src/ components
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         100805
>Category:       bin
>Synopsis:       WITHOUT_INET6 is ignored by many src/ components
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Jul 25 12:10:16 GMT 2006
>Closed-Date:    
>Last-Modified:  Tue Jul 10 03:35:39 UTC 2012
>Originator:     Yar Tikhiy
>Release:        FreeBSD 7.0-CURRENT i386
>Organization:
None
>Environment:
System: FreeBSD jujik.ramtel.ru 7.0-CURRENT FreeBSD 7.0-CURRENT #6: Tue Jun 27 14:45:05 MSD 2006 glebius@jujik.ramtel.ru:/usr/obj/usr/src/sys/JUJIK i386

>Description:
	The src.conf knob WITHOUT_INET6 should disable building IPv6-related
	tools and turn off IPv6 support in multi-protocol tools.  However,
	a lot of tools still ignore the knob and include IPv6 support nevertheless.
	This is indicated by the presence of "-DINET6" in the output from
	buildworld.

	The largest component ignoring WITHOUT_INET6 seems to be
	Heimdal/KerberosV, but it's by no means the only one.  E.g.,
	src/lib/libc/net/Makefile.inc adds -DINET6 to CFLAGS unconditionally,
	which is likely to conceal related bugs in utilities.

>How-To-Repeat:
# make buildworld SRC_CONF=/dev/null __MAKE_CONF=/dev/null WITHOUT_INET6=yes >& /tmp/w.out
# fgrep -e -DINET6 /tmp/w.out
    4302
# fgrep -e -DINET6 /tmp/w.out | grep -vE 'kerberos|heimdal' | wc -l
    3257
# fgrep -e -DINET6 /tmp/w.out | grep -vE 'kerberos|heimdal' | tail
cc -O2 -fno-strict-aliasing -pipe  -DINET6 -DHAVE_ARC4RANDOM -DHAVE_POLL_H  -c /usr/home/yar/src/usr.sbin/rtsold/if.c
cc -O2 -fno-strict-aliasing -pipe  -DINET6 -DHAVE_ARC4RANDOM -DHAVE_POLL_H  -c /usr/home/yar/src/usr.sbin/rtsold/probe.c
cc -O2 -fno-strict-aliasing -pipe  -DINET6 -DHAVE_ARC4RANDOM -DHAVE_POLL_H  -c /usr/home/yar/src/usr.sbin/rtsold/dump.c
cc -O2 -fno-strict-aliasing -pipe  -DINET6 -DHAVE_ARC4RANDOM -DHAVE_POLL_H  -c /usr/home/yar/src/usr.sbin/rtsold/rtsock.c
cc -O2 -fno-strict-aliasing -pipe  -DINET6 -DHAVE_ARC4RANDOM -DHAVE_POLL_H   -o rtsold rtsold.o rtsol.o if.o probe.o dump.o rtsock.o -lkvm
cc -O2 -fno-strict-aliasing -pipe  -DINET6 -I/usr/home/yar/src/usr.sbin/syslogd/../../usr.bin/wall -Wsystem-headers -Werror -c /usr/home/yar/src/usr.sbin/syslogd/syslogd.c
cc -O2 -fno-strict-aliasing -pipe  -DINET6 -I/usr/home/yar/src/usr.sbin/syslogd/../../usr.bin/wall -Wsystem-headers -Werror -c /usr/home/yar/src/usr.sbin/syslogd/../../usr.bin/wall/ttymsg.c
cc -O2 -fno-strict-aliasing -pipe  -DINET6 -I/usr/home/yar/src/usr.sbin/syslogd/../../usr.bin/wall -Wsystem-headers -Werror  -o syslogd syslogd.o ttymsg.o -lutil
cc -O2 -fno-strict-aliasing -pipe  -DINET6 -Wsystem-headers -Werror -Wall -Wno-format-y2k -W -Wno-unused-parameter -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wreturn-type -Wcast-qual -Wwrite-strings -Wswitch -Wshadow -Wcast-align -Wunused-parameter -Wno-uninitialized -c /usr/home/yar/src/usr.sbin/trpt/trpt.c
cc -O2 -fno-strict-aliasing -pipe  -DINET6 -Wsystem-headers -Werror -Wall -Wno-format-y2k -W -Wno-unused-parameter -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wreturn-type -Wcast-qual -Wwrite-strings -Wswitch -Wshadow -Wcast-align -Wunused-parameter -Wno-uninitialized  -o trpt trpt.o

>Fix:
	Revise such components' Makefiles.
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->analyzed 
State-Changed-By: yar 
State-Changed-When: Wed Jul 26 08:37:56 UTC 2006 
State-Changed-Why:  
I've started fixing this gradually. 


Responsible-Changed-From-To: freebsd-bugs->yar 
Responsible-Changed-By: yar 
Responsible-Changed-When: Wed Jul 26 08:37:56 UTC 2006 
Responsible-Changed-Why:  
I've started fixing this gradually. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=100805 

From: Yar Tikhiy <yar@comp.chem.msu.su>
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: bin/100805: WITHOUT_INET6 is ignored by many src/ components
Date: Wed, 26 Jul 2006 12:45:30 +0400

 Another large piece of code ignoring MK_INET6_SUPPORT was libc.
 With libc now respecting MK_INET6_SUPPORT, the results are:
 
 	yar@jujik:~$fgrep -e -DINET6 w.out | \
 			egrep -vi 'kerberos|heimdal' | wc -l
 	     206
 
 It's a clear progress when compared with the former 3257 lines.
 
 -- 
 Yar

From: Yar Tikhiy <yar@comp.chem.msu.su>
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: bin/100805: WITHOUT_INET6 is ignored by many src/ components
Date: Sat, 29 Jul 2006 14:36:44 +0400

 WITHOUT_INET6 support has been mostly fixed in CURRENT.
 At least, -DINET6 doesn't appear any more.  A few tools
 still require testing in an IPv6-disabled system.
 
 -- 
 Yar
State-Changed-From-To: analyzed->open 
State-Changed-By: yar 
State-Changed-When: Sun Aug 6 10:58:12 UTC 2006 
State-Changed-Why:  
There are likely to be parts of src/ that don't use "#ifdef INET6" 
although they should.  A way to spot at least some of them is to remove 
(comment out) the definitions of AF_INET and PF_INET, then build the world. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=100805 

From: Yar Tikhiy <yar@comp.chem.msu.su>
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: bin/100805: WITHOUT_INET6 is ignored by many src/ components
Date: Sun, 6 Aug 2006 14:57:36 +0400

 JFTR: See also PR kern/96242 for some discussion of this issue.
 
 -- 
 Yar

From: Yar Tikhiy <yar@comp.chem.msu.su>
To: bug-followup@freebsd.org
Cc:  
Subject: Re: bin/100805: WITHOUT_INET6 is ignored by many src/ components
Date: Sun, 6 Aug 2006 15:04:05 +0400

 On Sun, Aug 06, 2006 at 11:02:17AM +0000, Yar Tikhiy wrote:
 > Synopsis: WITHOUT_INET6 is ignored by many src/ components
 > 
 > State-Changed-From-To: analyzed->open
 > State-Changed-By: yar
 > State-Changed-When: Sun Aug 6 10:58:12 UTC 2006
 > State-Changed-Why: 
 > There are likely to be parts of src/ that don't use "#ifdef INET6"
 > although they should.  A way to spot at least some of them is to remove
 > (comment out) the definitions of AF_INET and PF_INET, then build the world.
                                       ^^^^        ^^^^ _INET6 of course.
 
 -- 
 Yar

From: Alex Kozlov <spam@rm-rf.kiev.ua>
To: bug-followup@FreeBSD.org, yar@comp.chem.msu.su
Cc:  
Subject: Re: bin/100805: WITHOUT_INET6 is ignored by many src/ components
Date: Sun, 12 Nov 2006 04:51:11 +0200

 On Tue, 25 Jul 2006 16:00:33 +0400 (MSD) Yar Tikhiy wrote:
 
 >The src.conf knob WITHOUT_INET6 should disable building IPv6-related
 >tools and turn off IPv6 support in multi-protocol tools. However,
 >a lot of tools still ignore the knob and include IPv6 support
 >nevertheless.
 >This is indicated by the presence of "-DINET6" in the output from
 >buildworld.
 You forget to add /usr/sbin/faithd. Or this is intentionally?
 
 
 --
 Adios

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: bin/100805: commit references a PR
Date: Wed, 15 Nov 2006 14:58:26 +0000 (UTC)

 yar         2006-11-15 14:57:05 UTC
 
   FreeBSD src repository
 
   Modified files:
     usr.sbin             Makefile 
   Log:
   Building faithd(8) has no sense if WITHOUT_INET6 is set.
   
   PR:             bin/100805 (audit-trail)
   Noticed by:     Alex Kozlov
   
   Revision  Changes    Path
   1.364     +2 -1      src/usr.sbin/Makefile
 _______________________________________________
 cvs-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/cvs-all
 To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
 

From: Yar Tikhiy <yar@comp.chem.msu.su>
To: Alex Kozlov <spam@rm-rf.kiev.ua>
Cc: bug-followup@FreeBSD.org
Subject: Re: bin/100805: WITHOUT_INET6 is ignored by many src/ components
Date: Wed, 15 Nov 2006 17:58:07 +0300

 On Sun, Nov 12, 2006 at 04:51:11AM +0200, Alex Kozlov wrote:
 > On Tue, 25 Jul 2006 16:00:33 +0400 (MSD) Yar Tikhiy wrote:
 > 
 > >The src.conf knob WITHOUT_INET6 should disable building IPv6-related
 > >tools and turn off IPv6 support in multi-protocol tools. However,
 > >a lot of tools still ignore the knob and include IPv6 support
 > >nevertheless.
 > >This is indicated by the presence of "-DINET6" in the output from
 > >buildworld.
 > You forget to add /usr/sbin/faithd. Or this is intentionally?
 
 Looks like my oversight.  Fixed, thanks!
 
 -- 
 Yar

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: bin/100805: commit references a PR
Date: Mon, 27 Nov 2006 13:34:22 +0000 (UTC)

 yar         2006-11-27 13:33:31 UTC
 
   FreeBSD src repository
 
   Modified files:
     tools/build/mk       OptionalObsoleteFiles.inc 
   Log:
   /usr/sbin/faithd is an INET6-specific tool, and now it won't be built
   if MK_INET6 is "no", so add it to the MK_INET6 block.
   
   PR:             bin/100805 (audit-trail)
   
   Revision  Changes    Path
   1.6       +1 -0      src/tools/build/mk/OptionalObsoleteFiles.inc
 _______________________________________________
 cvs-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/cvs-all
 To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
 
State-Changed-From-To: open->feedback 
State-Changed-By: linimon 
State-Changed-When: Fri Apr 27 09:19:47 UTC 2007 
State-Changed-Why:  
yar, what's the status of this PR? 

http://www.freebsd.org/cgi/query-pr.cgi?pr=100805 

From: Yar Tikhiy <yar@FreeBSD.org>
To: Mark Linimon <linimon@FreeBSD.org>
Cc: bug-followup@FreeBSD.org
Subject: Re: bin/100805: WITHOUT_INET6 is ignored by many src/ components
Date: Fri, 27 Apr 2007 18:12:04 +0400

 On Fri, Apr 27, 2007 at 09:21:02AM +0000, Mark Linimon wrote:
 > 
 > yar, what's the status of this PR?
 
 World still contains active references to [AP]F_INET6 and include
 files from netinet6 when WITHOUT_INET6 is in effect.  Many of them
 are in the contributed sources, so fixing all of them would take a
 considerable effort.  Perhaps this PR should be suspended.
 
 -- 
 Yar
State-Changed-From-To: feedback->suspended 
State-Changed-By: yar 
State-Changed-When: Sat Apr 28 13:42:08 UTC 2007 
State-Changed-Why:  
There still are active references to [AP]F_INET6 and <netinet6/*> 
in the tree when WITHOUT_INET6 is in effect, but many of them reside 
in the contributed sources. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=100805 
State-Changed-From-To: suspended->open 
State-Changed-By: eadler 
State-Changed-When: Tue Jul 10 03:35:33 UTC 2012 
State-Changed-Why:  
over to the pool (with bugmeister approval). I have not verified this 
still a problem 


Responsible-Changed-From-To: yar->freebsd-bugs 
Responsible-Changed-By: eadler 
Responsible-Changed-When: Tue Jul 10 03:35:33 UTC 2012 
Responsible-Changed-Why:  
over to the pool (with bugmeister approval). I have not verified this 
still a problem 

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