Subject: kern/25288: statvfs lossage in /sys/compat/osf1/osf1_mount.c
To: None <gnats-bugs@gnats.NetBSD.org>
From: None <fair@netbsd.org>
List: netbsd-bugs
Date: 04/22/2004 21:21:49
>Number:         25288
>Category:       kern
>Synopsis:       statvfs lossage in /sys/compat/osf1/osf1_mount.c
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Apr 23 04:29:00 UTC 2004
>Closed-Date:
>Last-Modified:
>Originator:     Erik E. Fair
>Release:        NetBSD 2.0C
>Organization:
International Organization of Internet Clock Watchers
>Environment:
System: NetBSD timex.clock.org 2.0C NetBSD 2.0C (MIATA-GL) #10: Mon Apr 19 01:41:21 PDT 2004 root@timex.clock.org:/usr/obj/sys/arch/alpha/compile/MIATA-GL alpha
Architecture: alpha
Machine: alpha

>Description:
	Can't compile a -current alpha kernel with COMPAT_OSF1

>How-To-Repeat:
	make a kernel
	#   compile  PC164/osf1_mount.o
	cc -mno-fp-regs -mcpu=21164a -mtune=21164a -ffreestanding -O2 -pipe -mcpu=21164a -Wa,-m21164a -Werro
	r -Wall -Wno-main -Wno-format-zero-length -Wpointer-arith -Wmissing-prototypes -Wstrict-prototypes -
	Wno-sign-compare -Dalpha -I. -I/sys/arch -I/sys -nostdinc -DDIAGNOSTIC -DMAXUSERS=32 -D_KERNEL -D_KE
	RNEL_OPT -c /sys/compat/osf1/osf1_mount.c
	/sys/compat/osf1/osf1_mount.c: In function `osf1_sys_fstatfs':
	/sys/compat/osf1/osf1_mount.c:132: warning: assignment from incompatible pointer type
	/sys/compat/osf1/osf1_mount.c:133: warning: implicit declaration of function `VFS_STATFS'
	/sys/compat/osf1/osf1_mount.c:135: error: dereferencing pointer to incomplete type
	/sys/compat/osf1/osf1_mount.c:136: warning: passing arg 1 of `osf1_cvt_statfs_from_native' from inco
	mpatible pointer type
	/sys/compat/osf1/osf1_mount.c: In function `osf1_sys_getfsstat':
	/sys/compat/osf1/osf1_mount.c:167: warning: assignment from incompatible pointer type
	/sys/compat/osf1/osf1_mount.c:177: error: dereferencing pointer to incomplete type
	/sys/compat/osf1/osf1_mount.c:178: warning: passing arg 1 of `osf1_cvt_statfs_from_native' from inco
	mpatible pointer type
	/sys/compat/osf1/osf1_mount.c: In function `osf1_sys_statfs':
	/sys/compat/osf1/osf1_mount.c:245: warning: assignment from incompatible pointer type
	/sys/compat/osf1/osf1_mount.c:249: error: dereferencing pointer to incomplete type
	/sys/compat/osf1/osf1_mount.c:250: warning: passing arg 1 of `osf1_cvt_statfs_from_native' from inco
	mpatible pointer type
	*** Error code 1

	Stop.
>Fix:
	
>Release-Note:
>Audit-Trail:
>Unformatted: