From owner-freebsd-questions@FreeBSD.ORG Thu Apr 29 02:41:45 2004 Return-Path: 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 7574416A4CE for ; Thu, 29 Apr 2004 02:41:45 -0700 (PDT) Received: from cs143072.pp.htv.fi (cs143072.pp.htv.fi [213.243.143.72]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4F78743D46 for ; Thu, 29 Apr 2004 02:41:44 -0700 (PDT) (envelope-from ekarkkai@pp.htv.fi) Received: from thunderbolt.my.domain (thunderbolt.my.domain [192.168.1.30]) by cs143072.pp.htv.fi (8.12.10/8.12.10) with ESMTP id i3T9fgDN042619; Thu, 29 Apr 2004 12:41:42 +0300 (EEST) (envelope-from ekarkkai@pp.htv.fi) Received: from thunderbolt.my.domain (localhost [127.0.0.1]) i3T9ff8u004657; Thu, 29 Apr 2004 12:41:41 +0300 (EEST) (envelope-from ejk@thunderbolt.my.domain) Received: (from ejk@localhost) by thunderbolt.my.domain (8.12.10/8.12.10/Submit) id i3T9ffJ8004656; Thu, 29 Apr 2004 12:41:41 +0300 (EEST) (envelope-from ejk) Date: Thu, 29 Apr 2004 12:41:36 +0300 From: Esa Karkkainen To: Victor Gregorio Message-ID: <20040429094136.GA2440@pp.htv.fi> Mail-Followup-To: Victor Gregorio , freebsd-questions@freebsd.org References: <408EF0E3.3040004@opsource.net> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="BOKacYhQ+x31HxR3" Content-Disposition: inline In-Reply-To: <408EF0E3.3040004@opsource.net> User-Agent: Mutt/1.5.6i cc: freebsd-questions@freebsd.org Subject: Re: LSOF Compile Problems From Ports X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 29 Apr 2004 09:41:45 -0000 --BOKacYhQ+x31HxR3 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Tue, Apr 27, 2004 at 04:46:43PM -0700, Victor Gregorio wrote: > Hello folks. I'm wondering if anyone is getting the same error I get > when I try to make /usr/ports/sysutils/lsof. I have a cvsup'd > /usr/ports tree on 5.2.1-RELEASE-p5. Output and error below... Yes, I have. The compilation problem can be fixed by replacing file "ports/sysutils/lsof/files/patch-aa" with the attached file. I don't have access to a computer running -CURRENT, so I don't know if my patch breaks compilation in -CURRENT. I'll submit a PR later this week. -- "In the beginning the Universe was created. This has made a lot of people very angry and been widely regarded as a bad move." -- Douglas Adams 1952 - 2001 --BOKacYhQ+x31HxR3 Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename=patch-aa --- dialects/freebsd/machine.h.orig Sat Apr 17 00:25:24 2004 +++ dialects/freebsd/machine.h Wed Apr 21 18:52:53 2004 @@ -41,9 +41,9 @@ #include -#if FREEBSDV>=520 +#if FREEBSDV>520 /* - * In FreeBSD >= 5.2 the cpumask_t typedef is only made in if + * In FreeBSD > 5.2 the cpumask_t typedef is only made in if * _KERNEL is predefined. However, predefining _KERNEL before #include'ing * causes redefinition errors for boolean_t and vm_page_t when * is #include'd with _KERNEL predefined. Since lsof must have @@ -405,7 +405,7 @@ * (the one that its user logged on with) of the lsof process. */ -/* #define HASSECURITY 1 */ +#define HASSECURITY 1 /* --BOKacYhQ+x31HxR3--