Subject: kern/8241: NetBSD 1.4.x ALPHA kernel doesn't compile (LFS problems)
To: None <gnats-bugs@gnats.netbsd.org>
From: None <cgd@netbsd.org>
List: netbsd-bugs
Date: 08/19/1999 17:36:45
>Number:         8241
>Category:       kern
>Synopsis:       LFS printf format problems prevent NetBSD 1.4.x ALPHA compile
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    kern-bug-people (Kernel Bug People)
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Aug 19 17:35:01 1999
>Last-Modified:
>Originator:     Chris G. Demetriou
>Organization:
Kernel Hackers 'r' Us
>Release:        NetBSD 1.4.1 (cvs netbsd-1-4-PATCH001 tag) / 1.4 branch
>Environment:
System: NetBSD alpha.int.demetriou.com 1.4.1 NetBSD 1.4.1 (CGD) #14: Fri Aug 6 22:00:10 PDT 1999 cgd@alpha.int.demetriou.com:/a/src/src-1-4-branch/sys/arch/alpha/compile/CGD alpha


>Description:
	[ this bug filed as 'kern' because though it showed itself to me
	on alpha, the problem is a bug in the generic kernel. ]

	NetBSD 1.4-branch ALPHA kernel doesn't compile, because lfs uses
	some incorrect printf formats:

cc  -O2 -Werror -Wall -Wstrict-prototypes -Wmissing-prototypes  -Wpointer-arith -Wno-main -mno-fp-regs -I. -I../../../../arch -I../../../.. -nostdinc -DDIAGNOSTIC -DDEBUG -DNS -DLKM -DMAXUSERS=32 -D_KERNEL -Dalpha  -c ../../../../ufs/lfs/lfs_alloc.c
cc1: warnings being treated as errors
../../../../ufs/lfs/lfs_alloc.c: In function `lfs_vfree':
../../../../ufs/lfs/lfs_alloc.c:355: warning: int format, different type arg (arg 3)
*** Error code 1 (continuing)
cc  -O2 -Werror -Wall -Wstrict-prototypes -Wmissing-prototypes  -Wpointer-arith -Wno-main -mno-fp-regs -I. -I../../../../arch -I../../../.. -nostdinc -DDIAGNOSTIC -DDEBUG -DNS -DLKM -DMAXUSERS=32 -D_KERNEL -Dalpha  -c ../../../../ufs/lfs/lfs_segment.c
cc1: warnings being treated as errors
../../../../ufs/lfs/lfs_segment.c: In function `lfs_writeinode':
../../../../ufs/lfs/lfs_segment.c:738: warning: int format, different type arg (arg 3)
*** Error code 1 (continuing)

>How-To-Repeat:
	Compile NetBSD/alpha 1.4-branch ALPHA kernel.

>Fix:
	Fix the printf formats.  This seems to have been done in -current.

	Perhaps a good idea for the future: build more sample kernels
	so that they're known to compile at least...
>Audit-Trail:
>Unformatted: