Subject: bin/33724: NTP build broken with MKINET6=no
To: None <gnats-admin@netbsd.org, netbsd-bugs@netbsd.org>
From: None <scotte@warped.com>
List: netbsd-bugs
Date: 06/13/2006 21:00:00
>Number:         33724
>Category:       bin
>Synopsis:       Building a release with MKINET6=no stops in libisc due to compiler warnings
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    bin-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Jun 13 21:00:00 +0000 2006
>Originator:     Scott Ellis
>Release:        NetBSD 3.99.21
>Organization:
	
>Environment:
	
	
System: NetBSD intrepid 3.99.21 NetBSD 3.99.21 (INTREPID.AMD64) #1: Thu Jun 8 18:30:31 PDT 2006 scotte@intrepid:/misc/netbsd_src/src/obj.amd64/misc/netbsd_src/src/sys/arch/amd64/compile/INTREPID.AMD64 amd64
Architecture: x86_64
Machine: amd64
>Description:
	
Attempting to build NTP via ./build.sh "release" target fails if mk.conf
includes MKINET6=no.  The compilation fails with:

#   compile  libisc/net.o
/misc/netbsd_build/amd64/tooldir/bin/x86_64--netbsd-gcc -O2 -pipe -Wall -Wstrict
-prototypes -Wmissing-prototypes -Wpointer-arith -Wno-sign-compare -Wno-traditio
nal  -Werror -march=k8   -I/misc/netbsd_src/src/usr.sbin/ntp/libisc/../include -
I/misc/netbsd_src/src/dist/ntp/include -DHAVE_CONFIG_H -DOPENSSL -DISC_PLATFORM_
NEEDIN6ADDRANY   -nostdinc -isystem /misc/netbsd_build/amd64/destdir/usr/include
 -c    /misc/netbsd_src/src/dist/ntp/libisc/net.c -o net.o
cc1: warnings being treated as errors
/misc/netbsd_src/src/dist/ntp/libisc/net.c:42: warning: 'once_ipv6only' defined
but not used
/misc/netbsd_src/src/dist/ntp/libisc/net.c:257: warning: 'initialize_ipv6pktinfo
' defined but not used


>How-To-Repeat:
	
Define MKINET6=no and then attempt to build NTP.

>Fix:
	
It looks like a few missing #ifdef WANT_IPV6 lines, but I'm not familiar
enough with NTP to know if that's the right define or not to switch on (there
are a number of IPV6 released #ifdef's in there!).

>Unformatted: