Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 19 Oct 1999 13:27:30 -0500 (CDT)
From:      ghelmer@scl.ameslab.gov
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   ports/14423: lsof fails since "struct namecache" moved in -current
Message-ID:  <199910191827.NAA66408@guypc.scl.ameslab.gov>

next in thread | raw e-mail | index | archive | help

>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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199910191827.NAA66408>