NetBSD Problem Report #42856

From www@NetBSD.org  Sun Feb 21 00:39:11 2010
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11])
	by www.NetBSD.org (Postfix) with ESMTP id A050063C597
	for <gnats-bugs@gnats.NetBSD.org>; Sun, 21 Feb 2010 00:39:11 +0000 (UTC)
Message-Id: <20100221003911.1D9FB63C596@www.NetBSD.org>
Date: Sun, 21 Feb 2010 00:39:11 +0000 (UTC)
From: scotte@warped.com
Reply-To: scotte@warped.com
To: gnats-bugs@NetBSD.org
Subject: Cannot build xfs w/o INET6
X-Send-Pr-Version: www-1.0

>Number:         42856
>Category:       xsrc
>Synopsis:       Cannot build xfs w/o INET6
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    mrg
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Feb 21 00:40:01 +0000 2010
>Closed-Date:    Sun Jun 20 06:56:51 +0000 2010
>Last-Modified:  Sun Jun 20 07:05:02 +0000 2010
>Originator:     Scott Ellis
>Release:        amd64-current (5.99.24)
>Organization:
>Environment:
NetBSD intrepid 5.99.24 NetBSD 5.99.24 (INTREPID.P5W) #1: Sun Jan 31 08:12:17 PST 2010  scotte@intrepid:/nbu/source/netbsd/src/obj.amd64/nbu/source/netbsd/src/sys/arch/amd64/compile/INTREPID.P5W amd64

>Description:
Building with MKINET6=no fails in xfstrans.c with:

#      link  xfs/xfs
/nbu/data/scotte/netbsd_build/amd64/tooldir/bin/x86_64--netbsd-gcc  -B/nbu/data/
scotte/netbsd_build/amd64/destdir/usr/lib/ -B/nbu/data/scotte/netbsd_build/amd64
/destdir/usr/lib/  -Wl,-nostdlib   -Wl,-rpath-link,/nbu/data/scotte/netbsd_build
/amd64/destdir/usr/X11R7/lib  -R/usr/X11R7/lib  -L/nbu/data/scotte/netbsd_build/
amd64/destdir/usr/X11R7/lib     -o xfs  atom.o cache.o charinfo.o difsutils.o di
spatch.o events.o extensions.o fontinfo.o fonts.o globals.o initfonts.o main.o r
esource.o swaprep.o swapreq.o tables.o access.o config.o connection.o daemon.o e
rror.o io.o osglue.o osinit.o utils.o waitfor.o xfstrans.o -lXfont -lfontenc -lX
fontcache -lXext -lX11 -lfreetype -lm -lz      -L/nbu/data/scotte/netbsd_build/a
md64/destdir/usr/lib   -Wl,-rpath-link,/nbu/data/scotte/netbsd_build/amd64/destd
ir/lib  -L/nbu/data/scotte/netbsd_build/amd64/destdir/lib -Wl,-rpath-link,/nbu/d
ata/scotte/netbsd_build/amd64/destdir/usr/lib  -L/nbu/data/scotte/netbsd_build/a
md64/destdir/usr/lib
xfstrans.o: In function `_FontTransSocketINETCreateListener':
xfstrans.c:(.text+0x2ddc): undefined reference to `in6addr_any'
xfstrans.c:(.text+0x2de8): undefined reference to `in6addr_any'
collect2: ld returned 1 exit status
*** [xfs] Error code 1

I don't pretend to understand the function name munging that goes, and don't see anything obvious where INET6 is being used without an ifdef.
>How-To-Repeat:
Build -current with MKINET6=no
>Fix:

>Release-Note:

>Audit-Trail:

Responsible-Changed-From-To: xsrc-manager->mrg
Responsible-Changed-By: mrg@NetBSD.org
Responsible-Changed-When: Tue, 01 Jun 2010 06:38:08 +0000
Responsible-Changed-Why:
i'll take care of fixing this; i have a patch in progress.


State-Changed-From-To: open->analyzed
State-Changed-By: mrg@NetBSD.org
State-Changed-When: Tue, 01 Jun 2010 06:38:08 +0000
State-Changed-Why:
this is due to xfs-config.h #define'ing IPv6 always.


State-Changed-From-To: analyzed->closed
State-Changed-By: mrg@NetBSD.org
State-Changed-When: Sun, 20 Jun 2010 06:56:51 +0000
State-Changed-Why:
making src/external/mit/xorg build without INET6 is a non trivial project
that involves patching dozens of generated files and more.  i do not believe
the effort involved justifies the benefit.  i *may* be willing to entertain
a complete set of patches should they appear...


From: matthew green <mrg@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/42856 CVS commit: src/share/mk
Date: Sun, 20 Jun 2010 06:54:24 +0000

 Module Name:	src
 Committed By:	mrg
 Date:		Sun Jun 20 06:54:24 UTC 2010

 Modified Files:
 	src/share/mk: bsd.README bsd.own.mk

 Log Message:
 - note that if MKINET6 is "no", MK11 must also be "no".  we don't support
   building X11 without inet6 support.  the support to maintain patches to
   generated files and other files is too great.  PR#42856
 - add TOOL_PIGZ, which defaults to the (not yet default) built tools/pigz.


 To generate a diff of this commit:
 cvs rdiff -u -r1.272 -r1.273 src/share/mk/bsd.README
 cvs rdiff -u -r1.631 -r1.632 src/share/mk/bsd.own.mk

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

>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2007 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.