Subject: kern/28994: build of release fails on -current w/o IPV6
To: None <,,>
From: None <>
List: netbsd-bugs
Date: 01/18/2005 02:42:00
>Number:         28994
>Category:       kern
>Synopsis:       Building -current fails with MKINET6/USE_INET6 disabled
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Jan 18 02:42:00 +0000 2005
>Originator:     Scott Ellis
>Release:        NetBSD 2.99.10
System: NetBSD intrepid 2.99.10 NetBSD 2.99.10 (INTREPID.AMD64) #0: Sat Nov 20 14:22:28 PST 2004 scotte@intrepid:/usr/src/sys/arch/amd64/compile/INTREPID.AMD64 amd64
Architecture: x86_64
Machine: amd64
Attempting to build with

in /etc/mk.conf causes a build failure when building the boot floppies, at
least on amd64 and i386.

Using a build command of:
===> command: ./ -m i386 -D /misc/netbsd_build_i386/destdir -R
/misc/netbsd_build_i386/releasedir -T /misc/netbsd_build_i386/tooldir -u release

(with or without the -u) yields an error:

#      link  obj.i386/ramdiskbin
/misc/netbsd_build_i386/tooldir/bin/i386--netbsdelf-gcc -Wl,-nostdlib    -static
 -o ramdiskbin  -Wl,-rpath-link,/misc/netbsd_build_i386/destdir/lib:/misc/netbsd
_build_i386/destdir/usr/lib  -L/misc/netbsd_build_i386/destdir/lib  -B/misc/netb
sd_build_i386/destdir/usr/lib/ -B/misc/netbsd_build_i386/destdir/usr/lib/   ramd
iskbin.o cat.cro chio.cro chmod.cro cp.cro dd.cro df.cro ed.cro ln.cro ls.cro mk
dir.cro mt.cro mv.cro pax.cro pwd.cro rcmd.cro rm.cro sh.cro stty.cro sync.cro d
hclient.cro disklabel.cro fdisk.cro fsck.cro fsck_ffs.cro ifconfig.cro init.cro
mbrlabel.cro mknod.cro mount.cro mount_cd9660.cro mount_ext2fs.cro mount_ffs.cro
 mount_kernfs.cro mount_msdos.cro mount_nfs.cro mount_ntfs.cro newfs.cro
o ping6.cro raidctl.cro reboot.cro restore.cro route.cro rtsol.cro scsictl.cro s
hutdown.cro slattach.cro swapctl.cro sysctl.cro umount.cro ftp.cro gzip.cro less
.cro sed.cro tip.cro installboot.cro bad144.cro chown.cro chroot.cro
o sysinst.cro progress.cro  libhack.o -lbz2 -ledit -lutil -lcurses -ltermcap -lr
mt -lcrypt -ll -lm -lz   -L/misc/netbsd_build_i386/destdir/usr/lib -L/misc/netbs
/misc/netbsd_build_i386/destdir/usr/lib/libc.a(getmntinfo.o)(.text+0x70): In fun
ction `_getmntinfo':
: warning: warning: reference to obsolete getfsstat(); use getvfsstat()
ifconfig.cro(.text+0x1141): In function `setia6eui64$$from$$ifconfig':
: undefined reference to `in6addr_any'
ping6.cro(.text+0x5ff): In function `_crunched_ping6_stub':
: undefined reference to `inet6_rthdr_space'
ping6.cro(.text+0xd2e): In function `_crunched_ping6_stub':
: undefined reference to `inet6_rthdr_init'
ping6.cro(.text+0xdb0): In function `_crunched_ping6_stub':
: undefined reference to `inet6_rthdr_add'
ping6.cro(.text+0xde4): In function `_crunched_ping6_stub':
: undefined reference to `inet6_rthdr_lasthop'
collect2: ld returned 1 exit status

Build -current using with MKINET6/USE_INET6 set to "no" in mk.conf
It looks like the build of ping6 in the ramdisk should be conditional on 
MKINET6 being set to 'yes'.