Re: lsof won't build

2009-09-20 Thread Lowell Gilbert
Robert Huff roberth...@rcn.com writes: 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

Re: lsof won't build

2009-09-20 Thread Erik Trulsson
On Sun, Sep 20, 2009 at 03:15:32PM -0400, Robert Huff wrote: Lowell Gilbert writes: It seems to me (fairly short investigation) that it uses kernel structures that aren't in /usr/include. That means it must be looking in /usr/src/sys. If those sources don't match the installed

lsof won't build

2009-09-19 Thread Paul Schmehl
I'm getting this error when trying to install sysutils/lsof: /usr/src/sys/vm/vm.h:64:24: error: machine/vm.h: No such file or directory Shouldn't machine be some sort of macro that points at the ARCH of the system lsof is being installed on? Paul Schmehl, If it isn't already obvious, my

lsof won't build

2009-09-19 Thread Robert Huff
Paul Schmehl writes: I'm getting this error when trying to install sysutils/lsof: /usr/src/sys/vm/vm.h:64:24: error: machine/vm.h: No such file or directory Shouldn't machine be some sort of macro that points at the ARCH of the system lsof is being installed on? Having

Re: lsof won't build

2009-09-19 Thread Paul Schmehl
--On September 19, 2009 1:58:32 PM -0400 Robert Huff roberth...@rcn.com wrote: Paul Schmehl writes: I'm getting this error when trying to install sysutils/lsof: /usr/src/sys/vm/vm.h:64:24: error: machine/vm.h: No such file or directory Shouldn't machine be some sort of macro that

Re: lsof won't build

2009-09-19 Thread Robert Huff
Paul Schmehl writes: The usual casue of this is the installed kernel(+world ??) being out of sync with the contents of /usr/src. That doesn't make sense to me. vm.h is a src file. I have not read the code ... but as I understnd it, the build process draws on header files

Re: lsof won't build

2009-09-19 Thread Lowell Gilbert
Robert Huff roberth...@rcn.com writes: Paul Schmehl writes: The usual casue of this is the installed kernel(+world ??) being out of sync with the contents of /usr/src. That doesn't make sense to me. vm.h is a src file. I have not read the code ... but as I understnd it,

Re: lsof won't build

2009-09-19 Thread Paul Schmehl
--On September 19, 2009 6:16:22 PM -0400 Lowell Gilbert freebsd-ports-lo...@be-well.ilk.org wrote: Robert Huff roberth...@rcn.com writes: Paul Schmehl writes: The usual casue of this is the installed kernel(+world ??) being out of sync with the contents of /usr/src. That doesn't

Re: lsof won't build

2009-09-19 Thread Robert Huff
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

RE: lsof won't build

2009-09-19 Thread Larry Rosenman
(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