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 > > inst

Re: lsof won't build

2009-09-20 Thread Robert Huff
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 kernel exactly, that typically won't be a problem, > because kerne

Re: lsof won't build

2009-09-20 Thread Lowell Gilbert
Robert Huff 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 data it

RE: lsof won't build

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

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 f

Re: lsof won't build

2009-09-19 Thread Paul Schmehl
--On September 19, 2009 6:16:22 PM -0400 Lowell Gilbert wrote: Robert Huff 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 hav

Re: lsof won't build

2009-09-19 Thread Lowell Gilbert
Robert Huff 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, the bui

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 f

Re: lsof won't build

2009-09-19 Thread Paul Schmehl
--On September 19, 2009 1:58:32 PM -0400 Robert Huff 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 points at the ARCH of