problem compiling lsof

Matt Emmerton matt at gsicomp.on.ca
Sun Oct 2 18:57:09 PDT 2005


> I'm trying to (re)install lsof (under -CURRENT, details below),
> and am running into:
>
> (cd lib; make DEBUG="-O"
CFGF="-pipe -march=pentium4 -DHASEFFNLINK=i_effnlink -D
>
HASF_VNODE -DHASCPUMASK_T -DHASSBSTATE -DHAS_KVM_VNODE -DHAS_UFS1_2 -DHAS_NO
_SI_
>
UDEV -DFREEBSDV=7000 -DHASFDESCFS=2 -DHASPSEUDOFS -DHASNULLFS -DHAS9660FS -D
HAS_
> NO_ISO_DEV -DHASIPv6 -DLSOF_VSTR=\"7.0-CURRENT\"")
>
cc  -pipe -march=pentium4 -DHASEFFNLINK=i_effnlink -DHASF_VNODE -DHASCPUMASK
_T -
>
DHASSBSTATE -DHAS_KVM_VNODE -DHAS_UFS1_2 -DHAS_NO_SI_UDEV -DFREEBSDV=7000 -D
HASF
>
DESCFS=2 -DHASPSEUDOFS -DHASNULLFS -DHAS9660FS -DHAS_NO_ISO_DEV -DHASIPv6 -D
LSOF
> _VSTR="7.0-CURRENT" -I/usr/src/sys -O -c ckkv.c
> In file included from ../dlsof.h:300,
>                  from ../lsof.h:190,
>                  from ckkv.c:43:
> /usr/src/sys/fs/devfs/devfs.h:153: error: field `dm_lock' has incomplete
type
> *** Error code 1
>
> Stop in /usr/ports/sysutils/lsof/work/lsof_4.76/lsof_4.76_src/lib.
> *** Error code 1
>
> Stop in /usr/ports/sysutils/lsof/work/lsof_4.76/lsof_4.76_src.
> *** Error code 1
>
> So I deketed /usr/src/sys/fs/devfs/devfs.h, ran cvsup, and no
> joy.  Is this broken, am I looking at the wrong thing, or have I
> bungled something?

It looks like phk changed a lot of the internals of devfs around in early
September; the lsof port has likely not kept pace.

Line 153 of devfs.h appears to be "struct sx dm_lock;" -- perhaps pulling in
the proper header to define "struct sx" might make things work again?

--
Matt Emmerton



More information about the freebsd-questions mailing list