From vman@fx.homeunix.org  Fri Nov 12 13:18:04 2004
Return-Path: <vman@fx.homeunix.org>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 1DAC716A4CE
	for <FreeBSD-gnats-submit@freebsd.org>; Fri, 12 Nov 2004 13:18:04 +0000 (GMT)
Received: from fx.homeunix.org (194.105.96.29.cablesurf.de [194.105.96.29])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 0073A43D1D
	for <FreeBSD-gnats-submit@freebsd.org>; Fri, 12 Nov 2004 13:18:01 +0000 (GMT)
	(envelope-from vman@fx.homeunix.org)
Received: from fx.homeunix.org (localhost [127.0.0.1])
	by fx.homeunix.org (8.13.1/8.13.1) with ESMTP id iACDHog9000539
	for <FreeBSD-gnats-submit@freebsd.org>; Fri, 12 Nov 2004 14:17:56 +0100 (CET)
	(envelope-from vman@fx.homeunix.org)
Received: (from vman@localhost)
	by fx.homeunix.org (8.13.1/8.13.1/Submit) id iABNKSEj001057;
	Fri, 12 Nov 2004 00:20:28 +0100 (CET)
	(envelope-from vman)
Message-Id: <200411112320.iABNKSEj001057@fx.homeunix.org>
Date: Fri, 12 Nov 2004 00:20:28 +0100 (CET)
From: Vlad Manilici <vman@fx.homeunix.org>
Reply-To: Vlad Manilici <vman@tmok.com>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: NOINET6=yes in /etc/make.conf ignored
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         73865
>Category:       kern
>Synopsis:       [rpcbind] [patch] NOINET6=yes in /etc/make.conf ignored
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    matteo
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Nov 12 13:20:09 GMT 2004
>Closed-Date:    Wed Mar 15 07:45:40 GMT 2006
>Last-Modified:  Wed Mar 15 07:45:40 GMT 2006
>Originator:     Vlad Manilici
>Release:        FreeBSD 6.0-CURRENT i386
>Organization:
private
>Environment:
System: FreeBSD fx.homeunix.org 6.0-CURRENT FreeBSD 6.0-CURRENT #4: Thu Nov 11 14:55:59 CET 2004 root@fx.homeunix.org:/usr/obj/usr/src/sys/FX i386

>Description:
the "NOINET6" flag in /etc/make.conf (see make.conf(5)) is ignored.
following messages are thrown at startup:

% cat /etc/make.conf
CFLAGS=-O2 -pipe
CVS_UPDATE=yes
KERNCONF=FX GENERIC
NOINET6=yes
NOPERL=yes
NO_PERL=yes
NO_PERL_WRAPPER=yes

% grep IPv6 /var/log/messages
Nov 11 21:34:15 fx ntpd[490]: no IPv6 interfaces found

from the console:

Starting rpcbind.
Nov 12 00:02:59 fx rpcbind: cannot create socket for udp6
Nov 12 00:02:59 rpcbind: cannot create socket for udp6
Nov 12 00:02:59 rpcbind: cannot create socket for tcp6

>How-To-Repeat:
make world with NOINET6

>Fix:
none

>Release-Note:
>Audit-Trail:

From: Jeremy Chadwick <freebsd@jdc.parodius.com>
To: freebsd-gnats-submit@FreeBSD.org, vman@tmok.com
Cc:  
Subject: Re: i386/73865: NOINET6=yes in /etc/make.conf ignored
Date: Sun, 6 Feb 2005 17:50:36 -0800

 I can confirm this bug in 5.3-STABLE as of 2005/02/06 @ 17:30 PST.
 
 The rpcbind source code needs appropriate '#ifdef NOINET6' framework.
 As it stands now, it just blindly tries to bind to a IPv6 UDP socket.
 
 If this is something the FreeBSD folks can't do due to limited time, I
 can probably come up with the framework myself.  Please let me know if
 this is the case, and I'll do my best to submit a patch.
 
 This should really be reassigned to medium priority, not low.
 
 -- 
 | Jeremy Chadwick                                 jdc at parodius.com |
 | Parodius Networking                        http://www.parodius.com/ |
 | UNIX Systems Administrator                   Mountain View, CA, USA |
 | Making life hard for others since 1977.                             |
 

From: Jeremy Chadwick <freebsd@jdc.parodius.com>
To: freebsd-gnats-submit@FreeBSD.org, vman@tmok.com
Cc:  
Subject: Re: i386/73865: NOINET6=yes in /etc/make.conf ignored
Date: Sun, 6 Feb 2005 18:01:25 -0800

 Included here is the applicable patch.  Thankfully someone had already
 written the main framework in the .c and .h files (re: #ifdef INET6).
 
 This is patch applies to src/usr.sbin/rpcbind/Makefile.
 
 -- 
 | Jeremy Chadwick                                 jdc at parodius.com |
 | Parodius Networking                        http://www.parodius.com/ |
 | UNIX Systems Administrator                   Mountain View, CA, USA |
 | Making life hard for others since 1977.                             |
 
 ----- SNIP -----
 
 --- rpcbind/Makefile.orig	Fri Apr  4 09:49:18 2003
 +++ rpcbind/Makefile	Sun Feb  6 17:57:07 2005
 @@ -13,7 +13,11 @@
  	rpcb_svc.c rpcb_svc_com.c security.c warmstart.c util.c \
  	rpc_generic.c
  
 -CFLAGS+= -I${LIBCRPCDIR} -I${LIBCINCLUDE} -DPORTMAP -DINET6 -DLIBWRAP
 +CFLAGS+= -I${LIBCRPCDIR} -I${LIBCINCLUDE} -DPORTMAP -DLIBWRAP
 +
 +.if !defined(NOINET6)
 +CFLAGS+= -DINET6
 +.endif
  
  DPADD=	${LIBWRAP} ${LIBUTIL}
  LDADD=	-lwrap -lutil

From: Matteo Riondato <rionda@gufi.org>
To: bug-followup@freebsd.org
Cc:  
Subject: Re: i386/73865: NOINET6=yes in /etc/make.conf ignored
Date: Fri, 1 Apr 2005 20:52:36 +0200

 --MOeiELSuYwpLEKvX
 Content-Type: text/plain; charset=us-ascii
 Content-Disposition: inline
 Content-Transfer-Encoding: quoted-printable
 
 I applied the patch. It solves the problem and should be committed to
 fix the bug.
 Best Regards
 
 --=20
 Rionda aka Matteo Riondato
 Disinformato per default
 G.U.F.I. Staff Member (http://www.gufi.org)
 FreeSBIE Developer (http://www.freesbie.org)
 
 --MOeiELSuYwpLEKvX
 Content-Type: application/pgp-signature
 Content-Disposition: inline
 
 -----BEGIN PGP SIGNATURE-----
 Version: GnuPG v1.4.0 (FreeBSD)
 
 iD8DBQFCTZh02Mp4pR7Fa+wRAqJ8AKCRALXNAzJAWQOE7Xm+0IdcanM4eACfTAyq
 eT1LYMHQNuyFoZIEkkLGZVo=
 =HQae
 -----END PGP SIGNATURE-----
 
 --MOeiELSuYwpLEKvX--
Responsible-Changed-From-To: freebsd-i386->freebsd-bugs 
Responsible-Changed-By: linimon 
Responsible-Changed-When: Tue Apr 12 00:29:41 GMT 2005 
Responsible-Changed-Why:  
This is not i386-specific. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=73865 
Responsible-Changed-From-To: freebsd-bugs->matteo 
Responsible-Changed-By: matteo 
Responsible-Changed-When: Sat Mar 4 10:20:12 UTC 2006 
Responsible-Changed-Why:  
I'll handle this 

http://www.freebsd.org/cgi/query-pr.cgi?pr=73865 
State-Changed-From-To: open->patched 
State-Changed-By: matteo 
State-Changed-When: Mon Mar 6 10:10:23 UTC 2006 
State-Changed-Why:  
fixed in HEAD 

http://www.freebsd.org/cgi/query-pr.cgi?pr=73865 
State-Changed-From-To: patched->closed 
State-Changed-By: matteo 
State-Changed-When: Wed Mar 15 07:45:17 UTC 2006 
State-Changed-Why:  
Fixed thanks 

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