(pardon the top-post, lousy work email client) Also, some of the kernel structures lsof needs aren't exported to /usr/include.
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. Thanks, Larry Rosenman sysutils/lsof maintainer. -- Larry Rosenman http://www.lerctr.org/~ler Phone: +1 512-248-2683 E-Mail: l...@lerctr.org US Mail: 430 Valona Loop, Round Rock, TX 78681-3893 -----Original Message----- From: owner-freebsd-po...@freebsd.org [mailto:owner-freebsd-po...@freebsd.org] On Behalf Of Robert Huff Sent: Saturday, September 19, 2009 6:42 PM To: Lowell Gilbert Cc: freebsd-ports@freebsd.org 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@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org" _______________________________________________ freebsd-ports@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"