Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 2 Jan 2006 01:13:44 -0500
From:      "Matt Emmerton" <matt@gsicomp.on.ca>
To:        <freebsd-hackers@freebsd.org>
Subject:   Compiling kernel/modules without INET?
Message-ID:  <001801c60f63$b004ee90$1200a8c0@gsicomp.on.ca>

next in thread | raw e-mail | index | archive | help
Howdy,

One of my new years resolutions was to become a bit more masochistic, so I
set out to see if I could build a kernel (and modules) without "options
INET" on HEAD.

This works flawlessly for the kernel part, but there are tons of issues when
building modules -- various problems encountered during "make depend" and
"make".

So far there appear to be four different classes of errors:
1) Failures during "make depend" due to #error directives hit when INET is
not defined.
2) #includes which are always needed but are only pulled in (implicitly)
when INET is defined
3) Small blocks of code (variable declarations and tests) which are not
wrapped with #ifdef INET (or other #defines), or simply wrapped with the
wrong #ifdef
4) Larger messes such as GRE's hard-coded dependence on INET; SLIP/PPP's
dependence on packet compress code, etc.

I have what I think are valid fixes for the first 3 issues, but I know I'm
just making a mess of things to resolve the last issue.

Before I spit and polish these patches for public consumption, I want to
know if this is even a worthy project.  I know there are benefits simply
because we should "do the right thing", but I'm sure I'm wading into murky
waters.  Any guidance would be appreciated.

Regards,
--
Matt Emmerton




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?001801c60f63$b004ee90$1200a8c0>