NetBSD Problem Report #8714

Received: (qmail 19374 invoked from network); 31 Oct 1999 05:17:47 -0000
Message-Id: <199910310517.OAA18556@rerun.tenjin.org>
Date: Sun, 31 Oct 1999 14:17:46 +0900 (JST)
From: kawamoto@tenjin.org
Reply-To: kawamoto@tenjin.org
To: gnats-bugs@gnats.netbsd.org
Subject: kernel compile error with file-system CODA
X-Send-Pr-Version: 3.95

>Number:         8714
>Category:       kern
>Synopsis:       kernel compile error with file-system CODA
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    kern-bug-people
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Oct 30 22:18:00 +0000 1999
>Closed-Date:    Sun Oct 31 15:50:30 +0000 1999
>Last-Modified:  Sun Oct 31 15:51:01 +0000 1999
>Originator:     Kawamoto Yosihisa
>Release:        1999-10-30
>Organization:
	Osaka University
	and tenjin.org
>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);
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: chs 
State-Changed-When: Sun Oct 31 07:50:30 PST 1999 
State-Changed-Why:  
fix committed, thanks! 
>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.