From owner-freebsd-questions@FreeBSD.ORG Mon Oct 3 01:57:09 2005 Return-Path: X-Original-To: questions@freebsd.org Delivered-To: freebsd-questions@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2E94E16A41F for ; Mon, 3 Oct 2005 01:57:09 +0000 (GMT) (envelope-from matt@gsicomp.on.ca) Received: from skippyii.compar.com (test.compar.com [216.208.38.130]) by mx1.FreeBSD.org (Postfix) with ESMTP id B43A743D45 for ; Mon, 3 Oct 2005 01:57:08 +0000 (GMT) (envelope-from matt@gsicomp.on.ca) Received: from hermes (CPE00062566c7bb-CM000039c69a66.cpe.net.cable.rogers.com [70.28.254.189]) by skippyii.compar.com (8.13.1/8.13.1) with ESMTP id j931w7Mt018798; Sun, 2 Oct 2005 21:58:11 -0400 (EDT) (envelope-from matt@gsicomp.on.ca) Message-ID: <005a01c60f48$4bc19e80$1200a8c0@gsicomp.on.ca> From: "Matt Emmerton" To: "Robert Huff" , References: <17216.33459.260615.437036@jerusalem.litteratus.org> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1506 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1506 Cc: Subject: Re: problem compiling lsof X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Date: Mon, 03 Oct 2005 01:57:09 -0000 X-Original-Date: Sun, 1 Jan 2006 21:57:36 -0500 X-List-Received-Date: Mon, 03 Oct 2005 01:57:09 -0000 > 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