From owner-freebsd-ports@FreeBSD.ORG Sat Mar 1 07:05:25 2014 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 982B0C29 for ; Sat, 1 Mar 2014 07:05:25 +0000 (UTC) Received: from mail-pb0-x22a.google.com (mail-pb0-x22a.google.com [IPv6:2607:f8b0:400e:c01::22a]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 6898E1FE6 for ; Sat, 1 Mar 2014 07:05:25 +0000 (UTC) Received: by mail-pb0-f42.google.com with SMTP id rr13so1722183pbb.1 for ; Fri, 28 Feb 2014 23:05:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc:content-type; bh=n5CJvzdsTSD9uVSj3oaSdPDAv4YRpsbwYKX9h3/q/ws=; b=d6zQYgzs7tzOSnA5Spql9rsIzIG+yZmUpV0Gc6KXIlOjNa2OHsSW0hxP8AxUgTzq7Q Slsn8x0cT/onKWbVxJydkWTeCArPWtuLw+o5rUXXWhro+ruXzwLCfBogV4tMSkIT0S+e CUhSiyey5IP3dB93rNwxc2femorNJ+gFgbeH2BXKAjtLy2GzgsVcCYtrZUq3L/NCFmDH +etqTkyShvvruj8h/dAnUHPhRGXYBPHzeRBdPX0JAh55S2d4vgBD78ePftIJ6ScTMBCz 4jGvkVVvnDVbQODHVkdmsF9pM9cufzhOaiwVgDwnqq3hhJAwXrBIOitQrARWdxCgd3v1 pe6w== MIME-Version: 1.0 X-Received: by 10.67.1.202 with SMTP id bi10mr8338295pad.68.1393657521479; Fri, 28 Feb 2014 23:05:21 -0800 (PST) Sender: kob6558@gmail.com Received: by 10.66.144.137 with HTTP; Fri, 28 Feb 2014 23:05:21 -0800 (PST) In-Reply-To: References: <44k3cfrn7k.fsf@lowell-desk.lan> <84de99b878ccde0e9d397559287f10a5@webmail.lerctr.org> <44fvn3rmjp.fsf@lowell-desk.lan> <448usvrm3u.fsf@lowell-desk.lan> Date: Fri, 28 Feb 2014 23:05:21 -0800 X-Google-Sender-Auth: Gh6VtyNeZd9xVI_et794GHEF-cA Message-ID: Subject: Re: sysutils/lsof and defining _KERNEL From: Kevin Oberman To: Larry Rosenman Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.17 Cc: Lowell Gilbert , FreeBSD Ports ML X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 01 Mar 2014 07:05:25 -0000 On Fri, Feb 28, 2014 at 1:00 PM, Larry Rosenman wrote: > On 2014-02-28 14:57, Lowell Gilbert wrote: > >> Larry Rosenman writes: >> >> On 2014-02-28 14:48, Lowell Gilbert wrote: >>> >>>> Larry Rosenman writes: >>>> >>>> On 2014-02-28 14:34, Lowell Gilbert wrote: >>>>> >>>>>> I'm having trouble building lsof, because it's defining _KERNEL to >>>>>> pull >>>>>> in ZFS structures, and then tries to find opt_kdtrace.h, which isn't >>>>>> really relevant. I suspect I've messed up something in my system >>>>>> somehow, but I've been banging my head against this for hours over >>>>>> the >>>>>> last few days, and I can't figure out what's going on. >>>>>> >>>>>> Any clues? >>>>>> >>>>> what release of FreeBSD? What svn rev of the Ports Tree? >>>>> >>>>> and have you done a buildworld/buildkernel, >>>>> installworld/installkernel? >>>>> >>>>> I've successfully built lsof on 10 and 11 recently from current >>>>> sources. >>>>> >>>> >>>> RELENG_9. Latest for both OS and ports system. >>>> >>> >>> Hrm. can you send me the config log? I'll take a look -- likely >>> tomorrow, as I'm traveling >>> when I get off work today. >>> >> >> Okay; as soon as I finish another buildworld cycle; I still think it's >> likely to be something screwed up on my system, given that lsof is a >> dependency for some widely-used ports. >> >> Also, have you done a make clean for sysutils/lsof? >>> >> >> Certainly. Even removed the whole sysutils subtree and re-checked it >> out. I don't actually *have* ZFS on this system, so I could hack around >> the problem easily enough, but I'd rather get to the bottom of it. >> >> Be well. >> > Ok. If that doesn't jump out at me, can I get a login on your system to > look around? > > FWIW, I am also unable ot build lsof sine the last update. I am running 10-Stable ( r262619) and get this failure: --- dnode2.o --- In file included from dnode2.c:55: In file included from /usr/src/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/sys/zfs_znode.h:33: In file included from /usr/src/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/sys/zfs_vfsops.h:31: In file included from /usr/src/sys/cddl/compat/opensolaris/sys/vfs.h:37: In file included from /usr/src/sys/cddl/compat/opensolaris/sys/vnode.h:49: In file included from /usr/src/sys/cddl/compat/opensolaris/sys/file.h:32: In file included from /usr/include/sys/file.h:42: In file included from /usr/src/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/sys/refcount.h:33: In file included from /usr/src/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/sys/zfs_context.h:71: /usr/src/sys/cddl/compat/opensolaris/sys/sdt.h:33:10: fatal error: 'opt_kdtrace.h' file not found #include ^ --- lib/liblsof.a --- ranlib liblsof.a Looks like the exact same issue. -- R. Kevin Oberman, Network Engineer, Retired E-mail: rkoberman@gmail.com