NetBSD Problem Report #40483
From scotte@intrepid.warped.com Mon Jan 26 17:27:39 2009
Return-Path: <scotte@intrepid.warped.com>
Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11])
by narn.NetBSD.org (Postfix) with ESMTP id 9B61F63B99A
for <gnats-bugs@gnats.NetBSD.org>; Mon, 26 Jan 2009 17:27:39 +0000 (UTC)
Message-Id: <E1LRVFH-0001YB-UH@intrepid.warped.com>
Date: Mon, 26 Jan 2009 09:27:35 -0800
From: scotte@warped.com
Sender: "Scott Ellis,,," <scotte@intrepid.warped.com>
Reply-To: scotte@warped.com
To: gnats-bugs@gnats.NetBSD.org
Subject: Missing nuidhash_max definition in NFSSERVER only case
X-Send-Pr-Version: 3.95
>Number: 40483
>Category: kern
>Synopsis: Kernels with NFSSERVER but not NFS filesystem do not build because nuidhash_max is not defined
>Confidential: no
>Severity: serious
>Priority: high
>Responsible: pgoyette
>State: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Mon Jan 26 17:30:00 +0000 2009
>Closed-Date: Tue Jul 12 02:04:01 +0000 2016
>Last-Modified: Tue Jul 12 02:04:01 +0000 2016
>Originator: Scott Ellis
>Release: NetBSD 5.99.6
>Organization:
>Environment:
System: NetBSD intrepid 5.99.6 NetBSD 5.99.6 (INTREPID.P5W) #0: Thu Jan 8 16:04:32 PST 2009 scotte@intrepid:/nbu/source/netbsd/src/obj.amd64/nbu/source/netbsd/src/sys/arch/amd64/compile/INTREPID.P5W amd64
Architecture: x86_64
Machine: amd64
>Description:
nfs_syscalls.c contains "extern int nuidhash_max;", but nuidhash_max only
resides in nfs_iod.c, which is a client-only NFS file. So, kernels that
have NFSSERVER but not the NFS filesystem, fail to build.
>How-To-Repeat:
Try and build a kernel with NFSSERVER but not NFS. Enjoy.
>Fix:
Replace "extern int nuidhash_max;" with the definition from nfs_iod.c, which
is "int nuidhash_max = NFS_MAXUIDHASH;". This should probably go to some
common header file, but...this fix makes the kernel build. :-)
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: kern-bug-people->pgoyette
Responsible-Changed-By: pgoyette@NetBSD.org
Responsible-Changed-When: Mon, 27 Jun 2016 11:28:32 +0000
Responsible-Changed-Why:
I'll take a stab at it. I suspect it's already been fixed, but I will
confirm before closing.
State-Changed-From-To: open->closed
State-Changed-By: pgoyette@NetBSD.org
State-Changed-When: Tue, 12 Jul 2016 02:04:01 +0000
State-Changed-Why:
I have confirmed that a build which includes NFSSERVER but without NFS
will build successfully.
>Unformatted:
(Contact us)
$NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2007
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.