Subject: toolchain/27221: tools/makefs doesn't build
To: None <gnats-bugs@gnats.NetBSD.org>
From: None <simonb@wasabisystems.com>
List: netbsd-bugs
Date: 10/11/2004 11:10:05
>Number:         27221
>Category:       toolchain
>Synopsis:       tools/makefs doesn't build
>Confidential:   no
>Severity:       serious
>Priority:       low
>Responsible:    toolchain-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Oct 11 01:11:00 UTC 2004
>Closed-Date:
>Last-Modified:
>Originator:     Simon Burge
>Release:        NetBSD 2.99.9, userland from 8th April 2004.
>Organization:
Wasabi Systems
>Environment:
System: NetBSD euclid 2.99.9 NetBSD 2.99.9 (EUCLID)
	#489: Sat Oct 9 15:25:20 EST 2004
	simonb@euclid:/home/netbsd/obj/sys/arch/i386/compile/EUCLID i386
Architecture: i386
Machine: i386
>Description:
	tools/makefs fails to build because it expects fstatvfs() to
	be available, but isn't.

cc -O -I. -I/home/netbsd/i386/obj/home/netbsd/src/tools/compat -I/home/netbsd/i386/obj/home/netbsd/src/tools/compat/include  -I/home/netbsd/src/tools/makefs/../compat -DHAVE_NBTOOL_CONFIG_H=1  -D_FILE_OFFSET_BITS=64  -I/home/netbsd/src/tools/makefs/../../usr.sbin/makefs  -I/home/netbsd/src/bin/ls -I/home/netbsd/src/sbin/mknod -I/home/netbsd/src/usr.sbin/mtree   -o makefs makefs.lo walk.lo ffs.lo mkfs.lo buf.lo getid.lo misc.lo spec.lo pack_dev.lo stat_flags.lo ffs_alloc.lo ffs_balloc.lo ffs_bswap.lo ffs_subr.lo ffs_tables.lo ufs_bmap.lo -L/home/netbsd/i386/obj/home/netbsd/src/tools/compat -lnbcompat -lz
ffs.lo(.text+0xee6): In function `ffs_create_image':
: undefined reference to `fstatvfs'

euclid 93> nm -n /lib/libc.so | grep fstat
00047834 T fstat
0007a998 T fstatfs
0008daac T __fstat13

>How-To-Repeat:
	./build.sh release

>Fix:
	None given.  Add fstatfs() to libnbcompat?
>Release-Note:
>Audit-Trail:
>Unformatted: