Bug 14423

Summary: Build of lsof fails since 'struct namecache' moved from /sys/sys/namei.h to /sys/kern/vfs_cache.c
Product: Ports & Packages Reporter: ghelmer <ghelmer>
Component: Individual Port(s)Assignee: David E. O'Brien <obrien>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Latest   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
file.diff none

Description ghelmer 1999-10-19 19:30:01 UTC
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.

Fix: One possible fix is to replace patches/patch-aa with this patch to disable
lsof's use of the name cache:
How-To-Repeat: 
cd /usr/ports/sysutils/lsof && make
Comment 1 Michael Haro freebsd_committer freebsd_triage 1999-10-27 10:07:38 UTC
Responsible Changed
From-To: freebsd-ports->obrien

over to maintainer 
Comment 2 David E. O'Brien freebsd_committer freebsd_triage 2000-01-16 02:33:11 UTC
State Changed
From-To: open->closed

The LSOF author has worked around our brain-dead changes.