From owner-freebsd-ports Tue Oct 19 11:30: 4 1999 Delivered-To: freebsd-ports@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (Postfix) with ESMTP id AC13C178A9 for ; Tue, 19 Oct 1999 11:30:01 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.9.3/8.9.2) id LAA94140; Tue, 19 Oct 1999 11:30:01 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: from guypc.scl.ameslab.gov (guypc.scl.ameslab.gov [147.155.137.145]) by hub.freebsd.org (Postfix) with ESMTP id 9826B1789C for ; Tue, 19 Oct 1999 11:27:31 -0700 (PDT) (envelope-from ghelmer@guypc.scl.ameslab.gov) Received: (from ghelmer@localhost) by guypc.scl.ameslab.gov (8.9.3/8.8.8) id NAA66408; Tue, 19 Oct 1999 13:27:30 -0500 (CDT) (envelope-from ghelmer) Message-Id: <199910191827.NAA66408@guypc.scl.ameslab.gov> Date: Tue, 19 Oct 1999 13:27:30 -0500 (CDT) From: ghelmer@scl.ameslab.gov Reply-To: ghelmer@scl.ameslab.gov To: FreeBSD-gnats-submit@freebsd.org X-Send-Pr-Version: 3.2 Subject: ports/14423: lsof fails since "struct namecache" moved in -current Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >Number: 14423 >Category: ports >Synopsis: Build of lsof fails since 'struct namecache' moved from /sys/sys/namei.h to /sys/kern/vfs_cache.c >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-ports >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Tue Oct 19 11:30:01 PDT 1999 >Closed-Date: >Last-Modified: >Originator: Guy Helmer >Release: FreeBSD 4.0-CURRENT i386 >Organization: Ames Laboratory >Environment: FreeBSD 4.0-CURRENT (GUYPC) #4: Tue Oct 12 13:37:45 CDT 1999 >Description: Build fails because 'struct namecache' is no longer defined in sys/namei.h: ===> Building for lsof-4.45 (cd lib; make DEBUG="-O") [...] cc -DFREEBSDV=400 -DHASFDESCFS -DHASPROCFS -DHAS9660FS -DLSOF_VSTR=\"4.0-CURRENT\" -I/usr/include -I/usr/src/sys -O -c rnmh.c rnmh.c: In function `ncache_load': rnmh.c:285: storage size of `c' isn't known rnmh.c:428: dereferencing pointer to incomplete type *** Error code 1 Stop in /usr/ports/sysutils/lsof/work/lsof_4.45/lib. >How-To-Repeat: cd /usr/ports/sysutils/lsof && make >Fix: One possible fix is to replace patches/patch-aa with this patch to disable lsof's use of the name cache: --- dialects/freebsd/machine.h.orig Thu Jul 8 14:50:16 1999 +++ dialects/freebsd/machine.h Tue Oct 19 13:24:56 1999 @@ -217,7 +217,7 @@ * cache whose cache and vnodes are linked by a capability ID. */ -#define HASNCACHE 1 +/* #define HASNCACHE 1 */ #define HASNCAPID 1 @@ -355,7 +355,7 @@ * (the one that its user logged on with) of the lsof process. */ -/* #define HASSECURITY 1 */ +#define HASSECURITY 1 /* >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message