[860] in arla-drinkers
Re: FreeBSD 4.0
daemon@ATHENA.MIT.EDU (assar@stacken.kth.se)
Wed Jun 2 16:01:46 1999
From owner-arla-drinkers@stacken.kth.se Wed Jun 02 20:01:46 1999
Return-Path: <owner-arla-drinkers@stacken.kth.se>
Delivered-To: arla-drinkers-mtg@bloom-picayune.mit.edu
Received: (qmail 13768 invoked from network); 2 Jun 1999 20:01:45 -0000
Received: from unknown (HELO sundance.stacken.kth.se) (130.237.234.41)
by bloom-picayune.mit.edu with SMTP; 2 Jun 1999 20:01:45 -0000
Received: (from majordom@localhost)
by sundance.stacken.kth.se (8.8.8/8.8.8) id VAA13610
for arla-drinkers-list; Wed, 2 Jun 1999 21:55:02 +0200 (MET DST)
Received: from ASSARIS.MIT.EDU (ASSARIS.MIT.EDU [18.187.0.228])
by sundance.stacken.kth.se (8.8.8/8.8.8) with ESMTP id VAA13606
for <arla-drinkers@stacken.kth.se>; Wed, 2 Jun 1999 21:54:58 +0200 (MET DST)
Received: (from assar@localhost) by ASSARIS.MIT.EDU (8.9.3/8.7.3) id VAA54201; Wed, 2 Jun 1999 21:54:56 +0200 (CEST)
From: assar@stacken.kth.se
To: Kenneth Wayne Culver <culverk@wam.umd.edu>
Cc: arla-drinkers@stacken.kth.se
Subject: Re: FreeBSD 4.0
References: <Pine.GSO.3.95q.990601114036.21381B-100000@rac1.wam.umd.edu>
Mime-Version: 1.0 (generated by tm-edit 7.68)
Content-Type: text/plain; charset=US-ASCII
Date: 02 Jun 1999 21:54:56 +0200
In-Reply-To: Kenneth Wayne Culver's message of "Tue, 1 Jun 1999 11:41:52 -0400 (EDT)"
Message-ID: <5lso8a5qen.fsf@assaris.sics.se>
Lines: 46
X-Mailer: Gnus v5.5/Emacs 19.34
Sender: owner-arla-drinkers@stacken.kth.se
Precedence: bulk
Kenneth Wayne Culver <culverk@wam.umd.edu> writes:
> I just got this error with FreeBSD 4.0 (current as of last night), and
[ keeping code that always works with -current is kind of a moving
target :-) ]
> arla-0.25:
>
> gcc -c -DHAVE_CONFIG_H -I. -I. -I../../include -I./../../include
> -I./../include -I/usr/athena/include -DXFS_DEBUG -g -Wall -I. -I. -I.
> -DKERNEL -D_KERNEL -DVFS_KLD -DKLD_MODULE -I/sys/arch -I/sys -I.
> -Wno-unused xfs_vfsops-common.c
> xfs_vfsops-common.c: In function `xfs_mount_common':
> xfs_vfsops-common.c:138: `nchrdev' undeclared (first use in this function)
> xfs_vfsops-common.c:138: (Each undeclared identifier is reported only once
> xfs_vfsops-common.c:138: for each function it appears in.)
> xfs_vfsops-common.c:152: `cdevsw' undeclared (first use in this function)
The following quick and untested work-around should solve it for you.
A proper fix is on the way but will take a little more time.
/assar
Index: xfs/bsd/xfs_vfsops-common.c
===================================================================
RCS file: /afs/stacken.kth.se/src/SourceRepository/arla/xfs/bsd/xfs_vfsops-common.c,v
retrieving revision 1.19
diff -u -w -u -w -r1.19 xfs_vfsops-common.c
--- xfs_vfsops-common.c 1999/05/19 09:10:02 1.19
+++ xfs_vfsops-common.c 1999/06/02 19:53:37
@@ -134,6 +134,7 @@
XFSDEB(XDEBVFOPS, ("dev = %d.%d\n", major(dev), minor(dev)));
+#if 0
/* Check that this device really is an xfs_dev */
if (major(dev) < 0 || major(dev) > nchrdev) {
XFSDEB(XDEBVFOPS, ("major out of range (0 < %d < %d)\n",
@@ -152,6 +153,7 @@
if (cdevsw[major(dev)] == NULL
|| !xfs_func_is_devopen(cdevsw[major(dev)]->d_open))
return ENXIO;
+#endif
#endif
if (xfs[minor(dev)].status & XFS_MOUNTED)