bin/100805: WITHOUT_INET6 is ignored by many src/ components

Yar Tikhiy yar at
Tue Jul 25 12:10:28 UTC 2006

>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
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Jul 25 12:10:16 GMT 2006
>Originator:     Yar Tikhiy
>Release:        FreeBSD 7.0-CURRENT i386
System: FreeBSD 7.0-CURRENT FreeBSD 7.0-CURRENT #6: Tue Jun 27 14:45:05 MSD 2006 glebius at i386

	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

	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/ adds -DINET6 to CFLAGS unconditionally,
	which is likely to conceal related bugs in utilities.

# make buildworld SRC_CONF=/dev/null __MAKE_CONF=/dev/null WITHOUT_INET6=yes >& /tmp/w.out
# fgrep -e -DINET6 /tmp/w.out
# fgrep -e -DINET6 /tmp/w.out | grep -vE 'kerberos|heimdal' | wc -l
# 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

	Revise such components' Makefiles.

More information about the freebsd-bugs mailing list