Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 16 Jul 2001 02:40:51 -0700
From:      "Crist J. Clark" <cristjc@earthlink.net>
To:        Ben Loyall <bloyall@palisade.loyall.org>
Cc:        freebsd-stable@FreeBSD.ORG
Subject:   Re: ipfilter module weirdness during kernel build
Message-ID:  <20010716024051.D301@blossom.cjclark.org>
In-Reply-To: <20010713174605.Q6602-100000@localhost>; from bloyall@palisade.loyall.org on Fri, Jul 13, 2001 at 06:04:40PM -0400
References:  <20010713174605.Q6602-100000@localhost>

next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, Jul 13, 2001 at 06:04:40PM -0400, Ben Loyall wrote:
> okay, this has me confused.
> 
> Today I did a minor kernel change and went to rebuild it.  I did:
> 
> `cd /usr/src/sys/i386/conf`
> `config HUMMER`
> `cd ../../compile/HUMMER`
> `make depend`
> `make`
> 
> The make died with:
> 
> make: don't know how to make
> /usr/local/src/sys/modules/ipfilter/../../netinet/mlfk_ipl.c Stop
> *** Error code 2
> Stop in /usr/local/src/sys/modules.
> *** Error code 1
> Stop in /usr/local/src/sys/compile/HUMMER
> 
> 
> Now, I remembered seeing this the other day, in which I did a re-csvup,
> remade world and all was well.
> 
> so, I did:
> 
> `cd /usr/src; make buildkernel KERNCONF=HUMMER`
> 
> and got
> 
> >>> Kernel build for HUMMER completed.......
> 
> at this point I assumed I got stupid and screwed up the last build install
> cycle, so, I did:
> 
> `make installkernel KERNCONF=HUMMER`
> `shutdown -r now`
> `cd /usr/src ; make installworld`
> `mergemaster`
> `shutdown -r now`
> 
> Then just to check:
> 
> `cd /usr/src/sys/i386/conf`
> `config HUMMER`
> `cd ../../compile/HUMMER`
> `make depend`
> `make`
> 
> and died with the same:
> 
> make: don't know how to make
> /usr/local/src/sys/modules/ipfilter/../../netinet/mlfk_ipl.c
> blah blah blah
> 
> How the heck did I manage to dork that?
>   And how do I un-dork it  :)

You are not cleaning up before building a new kernel. Do,

  # rm -rf /usr/src/sys/compile/HUMMER
  # cd /usr/src/sys/i386/conf
  # config HUMMER
  ..

And see what happens. Always nuke the compile/<KERNEL_NAME>
directory when you get new source (and you really should keep
world and kernel in sync too).
-- 
Crist J. Clark                           cjclark@alum.mit.edu

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-stable" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010716024051.D301>