Subject: Re: lsof won't build
To: Rui Paulo <rpaulo@fnop.net>
From: Steven M. Bellovin <smb@cs.columbia.edu>
List: tech-pkg
Date: 11/06/2005 11:47:23
In message <20051106145805.GA1653@neuron.fnop.net>, Rui Paulo writes:
>
>--yrj/dFKFPuw6o+aM
>Content-Type: text/plain; charset=us-ascii
>Content-Disposition: inline
>Content-Transfer-Encoding: quoted-printable
>
>On 2005.11.06 09:37:41 -0500, Steven M. Bellovin wrote:
>| On an up-to-date -current system with up-to-date pkgsrc, I can't build=20
>| lsof.  It complains:
>|=20
>| In file included from ../dlsof.h:73,
>|                  from ../lsof.h:190,
>|                  from dvch.c:43:
>| /usr/include/sys/buf.h:83:27: sys/workqueue.h: No such file or directory
>| In file included from ../dlsof.h:73,
>|                  from ../lsof.h:190,
>|                  from dvch.c:43:
>| /usr/include/sys/buf.h:122: error: field `u_work' has incomplete type
>|=20
>| I suspect this is due to some changes in buf.h 1.83, but I'm less clear=
>=20
>| on what to do about it, given that this is a pkgsrc problem.
>
>This is a known problem (see source-changes). yamt@ said that, in his
>opinion, lsof should be fixed.
>

I assume it's technically possible, in pkgsrc, to have a variant 
version just for -current newer than some date?  Or is the suggestion 
to change lsof to DTRT on all versions of NetBSD?

		--Steven M. Bellovin, http://www.cs.columbia.edu/~smb