From owner-freebsd-questions@FreeBSD.ORG Tue May 25 04:55:05 2010 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 25BA7106566B for ; Tue, 25 May 2010 04:55:05 +0000 (UTC) (envelope-from corky1951@comcast.net) Received: from qmta03.westchester.pa.mail.comcast.net (qmta03.westchester.pa.mail.comcast.net [76.96.62.32]) by mx1.freebsd.org (Postfix) with ESMTP id BDC748FC1A for ; Tue, 25 May 2010 04:55:04 +0000 (UTC) Received: from omta03.westchester.pa.mail.comcast.net ([76.96.62.27]) by qmta03.westchester.pa.mail.comcast.net with comcast id MguC1e0030bG4ec53gv51G; Tue, 25 May 2010 04:55:05 +0000 Received: from comcast.net ([98.203.142.76]) by omta03.westchester.pa.mail.comcast.net with comcast id Mgv21e0081f6R9u3Pgv3Pm; Tue, 25 May 2010 04:55:04 +0000 Received: by comcast.net (sSMTP sendmail emulation); Mon, 24 May 2010 21:55:01 -0700 Date: Mon, 24 May 2010 21:55:01 -0700 From: Charlie Kester To: freebsd-questions@freebsd.org Message-ID: <20100525045500.GH216@comcast.net> Mail-Followup-To: freebsd-questions@freebsd.org References: <08B0FF27-1FEE-4784-9662-5FE99E55D6F8@mac.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline In-Reply-To: X-Mailer: Mutt 1.5.20 X-Composer: Vim 7.2 User-Agent: Mutt/1.5.20 (2009-06-14) 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: , X-List-Received-Date: Tue, 25 May 2010 04:55:05 -0000 On Mon 24 May 2010 at 20:24:49 PDT Arthur Barlow wrote: >[root@uranus /usr/ports/sysutils/lsof]# HASPSEUDOFS -DHASNULLFS >-DHASIPv6 -DHAS_STRFTIME -DLSOF_VSTR=\"8.0-STABLE\"") >> cc -pipe -march=athlon -fno-strict-aliasing -march=athlon >-DHASEFFNLINK=i_effnlink -DHASF_VNODE -DHASSBSTATE -DHAS_KVM_VNODE >-DHAS_UFS1_2 -DHAS_CDEV2PRIV -DHAS_NO_SI_UDEV -DHAS_SYS_SX_H -DHAS_ZFS >-DHAS_V_LOCKF -DHAS_LOCKF_ENTRY -DHAS_NO_6PORT -DHAS_NO_6PPCB >-DFREEBSDV=8000 -DHASFDESCFS=2 -DHASPSEUDOFS -DHASNULLFS -DHASIPv6 >-DHAS_STRFTIME -DLSOF_VSTR="8.0-STABLE" -I/usr/src/sys -O2 -c ckkv.c >> In file included from ../dlsof.h:81, >> from ../lsof.h:195, >> from ckkv.c:43: >> /usr/src/sys/sys/conf.h:141: error: expected declaration specifiers or >'...' before 'vm_memattr_t' OK, now we know that the immediate cause of the error is that -DHAS_VM_MEMATTR_T is not included on the cc commandline, so sys/conf.h doesn't recognize vm_memattr_t as a valid type. In other words, something's gone wrong in the configure step. The Configure script grep's for vm_memattr_t in ${LSOF_INCLUDE}/sys/conf.h and sets HAS_VM_MEMATTR_T if the grep succeeds. The build failure tells us that your /usr/src/sys/conf.h uses vm_memattr_t, so it seems the Configure is testing some other copy of conf.h -- because LSOF_INCLUDE is set to something other than /usr/src? The default for LSOF_INCLUDE is /usr/include. What do you get from the following command? grep vm_memattr_t /usr/include/sys/conf.h