From owner-freebsd-questions@FreeBSD.ORG Tue May 25 18:17:40 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 E178A106564A for ; Tue, 25 May 2010 18:17:39 +0000 (UTC) (envelope-from arthurbarlow@gmail.com) Received: from mail-gy0-f182.google.com (mail-gy0-f182.google.com [209.85.160.182]) by mx1.freebsd.org (Postfix) with ESMTP id 9E7D68FC0A for ; Tue, 25 May 2010 18:17:39 +0000 (UTC) Received: by gyh20 with SMTP id 20so2813869gyh.13 for ; Tue, 25 May 2010 11:17:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:date:message-id :subject:from:to:content-type; bh=iTQrRs/jpg3AFxVnRFWEPcXq+D333/FGJzMMHGSkPoY=; b=MCqKJplt82P59pu2KGKljeI08xMHHxl5x8ob1wBWNEG2bbUSUsT5L30duSrNk3noQH xeRlMB3S4qVp8xtw9DRyAAKFvT8Jlykye3daNzmI3xV6BaFyFpzDzuOp/WXxHTa38YEi JYqQsUe34/zvtFKDWJwiR9SStGfN7mhjVrskU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=bEQJt7KvxyVjZ7DiCJi+lrnnGkDF8ACfIBvvlyt52tguSAxF5fzlN+1RCKVBo/B7Hn VHrvzM1rc9B57xT9cxIA5Wb+vieEBhaUBBwkOMGrxDM7J8BWnHXbHTnxY4o8kyRIaxgE jm/oB7fBM8Qw8bJ45vSXlj8bPn2h3mkn/IpQ4= MIME-Version: 1.0 Received: by 10.91.147.7 with SMTP id z7mr3381524agn.2.1274811456764; Tue, 25 May 2010 11:17:36 -0700 (PDT) Received: by 10.90.72.17 with HTTP; Tue, 25 May 2010 11:17:36 -0700 (PDT) Date: Tue, 25 May 2010 11:17:36 -0700 Message-ID: From: Arthur Barlow To: corky1951@comcast.net, freebsd-questions@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 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: , X-List-Received-Date: Tue, 25 May 2010 18:17:40 -0000 Message: 29 Date: Mon, 24 May 2010 22:14:52 -0700 From: Charlie Kester Subject: Re: Problem compiling lsof To: freebsd-questions@freebsd.org Message-ID: <20100525051452.GI216@comcast.net> Content-Type: text/plain; charset=us-ascii; format=flowed On Mon 24 May 2010 at 21:55:01 PDT Charlie Kester wrote: > >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? Oops, some typos here. /usr/src should be /usr/src/sys throughout, and conf.h is in /usr/src/sys/sys. Makes no difference to the line of thought, however. If grep vm_memattr_t /usr/include/sys/conf.h comes back empty, we need to look at how you built your system. Charlie, I did this and sure enough "vm_memattr_t" is defined as a parameter in a typedef as follows: typedef int d_mmap2_t (struc cdev *dev, vm_offset_t offset, vm_paddr_t *paddr, int nprot, vm_memattr_t *memattr);