Date: Tue, 25 Jul 2006 16:00:33 +0400 (MSD) From: Yar Tikhiy <yar@comp.chem.msu.su> To: FreeBSD-gnats-submit@FreeBSD.org Subject: bin/100805: WITHOUT_INET6 is ignored by many src/ components Message-ID: <200607251200.k6PC0XpC056077@jujik.ramtel.ru> Resent-Message-ID: <200607251210.k6PCAH6V058514@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>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:
>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:
>Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200607251200.k6PC0XpC056077>
