Date: Thu, 27 May 2010 23:20:59 -0700 From: Cy Schubert <Cy.Schubert@komquats.com> To: thorsten@ext2fs.de, cy@FreeBSD.org, freebsd-ports-bugs@FreeBSD.org, ler@lerctr.org Subject: Re: ports/144812: sysutils/lsof: lsof-4.84A, 5 does not compile on FreeBSD 8.0 Stable Message-ID: <201005280620.o4S6KxJE048199@cwsys.cwsent.com>
next in thread | raw e-mail | index | archive | help
I'm awaiting maintainer approval to commit a patch for this problem. If folks want to fix this in the mean time, here is the patch I plan on committing. Index: Makefile =================================================================== RCS file: /home/pcvs/ports/sysutils/lsof/Makefile,v retrieving revision 1.183 diff -u -r1.183 Makefile --- Makefile 22 Feb 2010 20:58:57 -0000 1.183 +++ Makefile 28 May 2010 06:08:20 -0000 @@ -8,6 +8,7 @@ PORTNAME= lsof PORTVERSION= 4.84A +PORTREVISION= 1 PORTEPOCH= 5 CATEGORIES= sysutils MASTER_SITES= http://www.SpringDaemons.com/stas/ \ Index: files/patch-dialects-freebsd-dlsof.h =================================================================== RCS file: files/patch-dialects-freebsd-dlsof.h diff -N files/patch-dialects-freebsd-dlsof.h --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ files/patch-dialects-freebsd-dlsof.h 28 May 2010 06:08:20 -0000 @@ -0,0 +1,34 @@ +--- dialects/freebsd/dlsof.h.orig 2010-02-12 12:41:20.000000000 -0800 ++++ dialects/freebsd/dlsof.h 2010-05-27 23:03:19.000000000 -0700 +@@ -38,6 +38,31 @@ + #if !defined(FREEBSD_LSOF_H) + #define FREEBSD_LSOF_H 1 + ++#include <sys/param.h> ++#if defined(__FreeBSD_version) && __FreeBSD_version >= 800504 ++#ifdef __amd64__ ++#include <amd64/include/proc.h> ++#endif ++#ifdef __arm__ ++#include <arm/include/proc.h> ++#endif ++#ifdef __ia64__ ++#include <ia64/include/proc.h> ++#endif ++#ifdef __i386__ ++#include <i386/include/proc.h> ++#endif ++#ifdef __powerpc__ ++#include <powerpc/include/proc.h> ++#endif ++#ifdef __sparc64__ ++#include <sparc64/include/proc.h> ++#endif ++#ifndef KINFO_PROC_SIZE ++#error "Unknown architecture" ++#endif ++#endif /* __FreeBSD_version */ ++ + #include <stdlib.h> + #include <dirent.h> + #include <nlist.h> -- Cheers, Cy Schubert <Cy.Schubert@komquats.com> FreeBSD UNIX: <cy@FreeBSD.org> Web: http://www.FreeBSD.org e**(i*pi)+1=0
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201005280620.o4S6KxJE048199>