Subject: kern/8714: kernel compile error with file-system CODA
To: None <gnats-bugs@gnats.netbsd.org>
From: None <kawamoto@tenjin.org>
List: netbsd-bugs
Date: 10/30/1999 22:18:44
>Number: 8714
>Category: kern
>Synopsis: kernel compile error with file-system CODA
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: kern-bug-people (Kernel Bug People)
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Sat Oct 30 22:18:00 1999
>Last-Modified:
>Originator: Kawamoto Yosihisa
>Organization:
Osaka University
and tenjin.org
>Release: 1999-10-30
>Environment:
note pc (SONY VAIO 505RX)
System: NetBSD rerun.tenjin.org 1.4L NetBSD 1.4L (RERUN) #243: Tue Oct 19 22:17:04 JST 1999 root@:/usr/src/sys/arch/i386/compile/RERUN i386
>Description:
(This is a same report as kern/8581.)
With following config options, kernel making failed.
options DEBUG
file-system CODA
The error messages are like this:
cc -g -O2 -Werror -Wall -Wmissing-prototypes -Wstrict-prototypes -Wpointer-arith -Wno-main -I. -I../../../../arch -I../../../.. -nostdinc -DLKM -DDIAGNOSTIC -DDEBUG -DMSGBUFSIZE="0x2000" -DEXT2FS_SYSTEM_FLAGS -DMAXUSERS=64 -D_KERNEL -Di386 -c ../../../../coda/coda_vnops.c
cc1: warnings being treated as errors
../../../../coda/coda_vnops.c: In function `coda_inactive':
../../../../coda/coda_vnops.c:1107: warning: int format, long int arg (arg 2)
../../../../coda/coda_vnops.c:1110: warning: int format, long int arg (arg 2)
*** Error code 1
Stop.
>How-To-Repeat:
do 'make netbsd' with avobe options.
>Fix:
Apply this patch.
Index: coda_vnops.c
===================================================================
RCS file: /cvs/cvsroot/syssrc/sys/coda/coda_vnops.c,v
retrieving revision 1.15
diff -u -r1.15 coda_vnops.c
--- coda_vnops.c 1999/10/17 23:39:16 1.15
+++ coda_vnops.c 1999/10/31 05:15:03
@@ -872,9 +872,9 @@
if (IS_UNMOUNTING(cp)) {
#ifdef DEBUG
- printf("coda_inactive: IS_UNMOUNTING use %d: vp %p, cp %p\n", vp->v_usecount, vp, cp);
+ printf("coda_inactive: IS_UNMOUNTING use %ld: vp %p, cp %p\n", vp->v_usecount, vp, cp);
if (cp->c_ovp != NULL)
- printf("coda_inactive: cp->ovp != NULL use %d: vp %p, cp %p\n",
+ printf("coda_inactive: cp->ovp != NULL use %ld: vp %p, cp %p\n",
vp->v_usecount, vp, cp);
#endif
lockmgr(&vp->v_lock, LK_RELEASE, &vp->v_interlock);
>Audit-Trail:
>Unformatted: