NetBSD Problem Report #30092

From jukka+moray@salmi.ch  Fri Apr 29 11:29:37 2005
Return-Path: <jukka+moray@salmi.ch>
Received: from mx1.salmi.ch (mx1.salmi.ch [212.254.26.68])
	by narn.netbsd.org (Postfix) with ESMTP id 845C263B117
	for <gnats-bugs@gnats.NetBSD.org>; Fri, 29 Apr 2005 11:29:36 +0000 (UTC)
Message-Id: <20050429112920.21B18FDC0@moray.salmi.ch>
Date: Fri, 29 Apr 2005 13:29:20 +0200 (CEST)
From: j+nbsd@2005.salmi.ch
Reply-To: j+nbsd@2005.salmi.ch
To: gnats-bugs@netbsd.org
Subject: building with USE_INET6=no fails
X-Send-Pr-Version: 3.95

>Number:         30092
>Category:       misc
>Synopsis:       building with USE_INET6=no fails
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    lukem
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Apr 29 11:30:00 +0000 2005
>Closed-Date:    Sun May 01 07:37:42 +0000 2005
>Last-Modified:  Sun May 01 07:37:42 +0000 2005
>Originator:     Jukka Salmi
>Release:        NetBSD 3.99.3
>Organization:

>Environment:
System: NetBSD moray.salmi.ch 3.99.3 NetBSD 3.99.3 (GENERIC.NOEHCI.APM) #0: Tue Apr 26 18:54:44 CEST 2005 build@moray.salmi.ch:/build/nbsd/i386/sys/arch/i386/compile/GENERIC.NOEHCI.APM i386
Architecture: i386
Machine: i386
>Description:
Building e.g. a distribution fails if USE_INET6 is set to `no' (and MKINET6
is not changed from its default which is `yes'), because libc only contains
IPv6 functions if built with USE_INET6=yes, but several IPv6-specific tools
like sbin/ping6 and usr.sbin/mld6query are built if MKINET6 is set to `yes',
no matter what USE_INET6 is set to.
>How-To-Repeat:
Build e.g. a distribution with USE_INET6=no see the linker fail in sbin/ping6
with undefined reference to `inet6_rthdr_init', `inet6_rthdr_add', etc.
>Fix:
Don't try to build IPv6-specific tools at all if they can't be linked anyway;
i.e. for both src/sbin/Makefile and src/usr.sbin/Makefile, replace
	.if (${MKINET6} != "no")
with
	.if (${USE_INET6} != "no")

>Release-Note:

>Audit-Trail:
From: Luke Mewburn <lukem@netbsd.org>
To: gnats-bugs@netbsd.org
Cc: 
Subject: PR/30092 CVS commit: src
Date: Sun,  1 May 2005 07:26:29 +0000 (UTC)

 Module Name:	src
 Committed By:	lukem
 Date:		Sun May  1 07:26:29 UTC 2005

 Modified Files:
 	src/sbin: Makefile
 	src/usr.sbin: Makefile

 Log Message:
 Test USE_INET6 instead of MKINET6 for various apps.
 Part of PR 30092 from Jukka Salmi.


 To generate a diff of this commit:
 cvs rdiff -r1.92 -r1.93 src/sbin/Makefile
 cvs rdiff -r1.200 -r1.201 src/usr.sbin/Makefile

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

From: Luke Mewburn <lukem@netbsd.org>
To: gnats-bugs@netbsd.org
Cc: 
Subject: PR/30092 CVS commit: src/distrib/sets/lists
Date: Sun,  1 May 2005 07:28:14 +0000 (UTC)

 Module Name:	src
 Committed By:	lukem
 Date:		Sun May  1 07:28:14 UTC 2005

 Modified Files:
 	src/distrib/sets/lists/base: mi rescue.mi
 	src/distrib/sets/lists/man: mi
 	src/distrib/sets/lists/misc: mi

 Log Message:
 Update for various USE_* options.
 Rest of PR 30092 from Jukka Salmi.


 To generate a diff of this commit:
 cvs rdiff -r1.550 -r1.551 src/distrib/sets/lists/base/mi
 cvs rdiff -r1.10 -r1.11 src/distrib/sets/lists/base/rescue.mi
 cvs rdiff -r1.786 -r1.787 src/distrib/sets/lists/man/mi
 cvs rdiff -r1.116 -r1.117 src/distrib/sets/lists/misc/mi

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

Responsible-Changed-From-To: misc-bug-people->lukem
Responsible-Changed-By: lukem@netbsd.org
Responsible-Changed-When: Sun, 01 May 2005 07:37:42 +0000
Responsible-Changed-Why:
I fixed it


State-Changed-From-To: open->closed
State-Changed-By: lukem@netbsd.org
State-Changed-When: Sun, 01 May 2005 07:37:42 +0000
State-Changed-Why:
I've fixed this; thanks for the PR.


>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.