sysutils/lsof and defining _KERNEL

Larry Rosenman ler at
Fri Feb 28 20:50:59 UTC 2014

On 2014-02-28 14:48, Lowell Gilbert wrote:
> Larry Rosenman <ler at> 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.

Also, have you done a make clean for sysutils/lsof?

Larry Rosenman           
Phone: +1 214-642-9640 (c)     E-Mail: ler at
US Mail: 108 Turvey Cove, Hutto, TX 78634-5688

More information about the freebsd-ports mailing list