Subject: Re: is lsof broken for anyone else?
To: Hisashi T Fujinaka <htodd@twofifty.com>
From: D'Arcy J.M. Cain <darcy@NetBSD.org>
List: tech-pkg
Date: 10/04/2003 05:37:05
On Thursday 02 October 2003 17:20, Hisashi T Fujinaka wrote:
> Or is it no longer used? It looks like there's a process struct error.
>
> cc -O2  -DNETBSDV=1060 -DHASGETBOOTFILE -DHASNFSPROTO -DHASIPv6
> -DHASFDESCFS=1 -DHASFDLINK -DHASNULLFS -DHASPROCFS -DHASKERNFS -DHASI_FFS1
> -DHASEXT2FS -DHASI_E2FS_PTR -DHASNFSVATTRP -DUVM
> -I/disk/0/obj/pkg/sysutils/lsof/work.i386/lsof_4.68/lsof_4.68_src/dialects/
>n+obsd/include -DHAS_UVM_INCL -DHAS_ADVLOCK_ARGS -DHAS_LF_LWP -DHAS_LWP_H
> -DHASCWDINFO -DHAS_SYS_PIPEH -DLSOF_VSTR=\"1.6ZC\" -I/usr/include -I/sys -O
> -DLSOF_MORE_SECURE=0  -DLSOF_LESS_SECURE_SOCKETS=0  -c dnode.c dnode.c: In
> function `process_node':
> dnode.c:255: error: storage size of `p' isn't known
> dnode.c:415:14: warning: extra tokens at end of #undef directive
> dnode.c:868: error: `Proot' undeclared (first use in this function)
> dnode.c:868: error: (Each undeclared identifier is reported only once
> dnode.c:868: error: for each function it appears in.)
> dnode.c:869: error: `Pproc' undeclared (first use in this function)
> dnode.c:873: error: `Pcurproc' undeclared (first use in this function)
> dnode.c:877: error: `Pmem' undeclared (first use in this function)
> dnode.c:880: error: `Pregs' undeclared (first use in this function)
> dnode.c:1156: error: `Pfile' undeclared (first use in this function)
> dnode.c:1171: error: `Pfpregs' undeclared (first use in this function)
> dnode.c:1176: error: `Pctl' undeclared (first use in this function)
> dnode.c:1181: error: `Pstatus' undeclared (first use in this function)
> dnode.c:1186: error: `Pnote' undeclared (first use in this function)
> dnode.c:1191: error: `Pnotepg' undeclared (first use in this function)
> *** Error code 1

I will try to get to it this weekend.  In the meantime if you want to get your 
hands dirty, just change all of the Pxxx tokens to PFSxxx.

-- 
D'Arcy J.M. Cain <darcy@netbsd.org>
http://www.NetBSD.org/