08.07.2018 7:33, Warner Losh wrote:

>     >     We already have all headers in /usr/include, don't we?
>     > Not really. We have a subset of the kernel headers that might not match 
> the running kernel, nor be enough to build modules.
>     They should match running kernel definitely as we do not support not 
> syncronized kernel/world
>     and installworld populates /usr/include.
> Nice theory. Lots and lots of people run this way. And it has worked well, so 
> long as the kernel is newer... so, no, they don't have to match.

It could work. It can also easily break things with newer kernel too, I can 
remember many cases.
/sbin/ipfw, ps, ifconfig, netstat, top, killall and some important others are 
not guaranteed to run with newer kernel.
I still run FreeBSD 4.11-STABLE inside 11.2-STABLE jail and that's why I know 
this.

>     And why a subset? Don'we support old-style kernel re-build "config; make 
> depend; make"
>     that does not require full /usr/src tree but /usr/src/sys only?
> /usr/include is never, ever used to build the kernel (except for things like 
> aicasm).

OO. We could still add the whole bunch of needed .h files from /usr/src/sys/ 
there.

_______________________________________________
svn-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to