lsof won't build

Larry Rosenman ler at
Sun Sep 20 04:14:01 UTC 2009

(pardon the top-post, lousy work email client)

Also, some of the kernel structures lsof needs aren't exported to

The best thing to do when lsof won't build is to make sure you have done a
make buildworld & make installworld
with the same sources that are in /usr/src, and match the running kernel.

Larry Rosenman
sysutils/lsof maintainer.

Larry Rosenman           
Phone: +1 512-248-2683                E-Mail: ler at
US Mail: 430 Valona Loop, Round Rock, TX 78681-3893

-----Original Message-----
From: owner-freebsd-ports at
[mailto:owner-freebsd-ports at] On Behalf Of Robert Huff
Sent: Saturday, September 19, 2009 6:42 PM
To: Lowell Gilbert
Cc: freebsd-ports at
Subject: Re: lsof won't build

Lowell Gilbert writes:

>  >>  Are you saying you rebuilt kernel and lsof built fine afterwards?
>  Right.  lsof needs to look at kernel structures, so it has to be
>  built from the same headers that the kernel was, or it won't know
>  how to interpret the data it retrieves.

	And it finds those not in /usr/include - which, as I understand
things, will in a correctly configured system definitionally match
what's in the running kernel - but in /usr/src, for which such an
expectation is wobbly?

					Robert Huff

freebsd-ports at mailing list
To unsubscribe, send any mail to "freebsd-ports-unsubscribe at"

More information about the freebsd-ports mailing list