From owner-freebsd-questions Thu Mar 21 12:22:59 2002 Delivered-To: freebsd-questions@freebsd.org Received: from bmyster.com (dsl-006.sacoriver.net [65.162.190.7]) by hub.freebsd.org (Postfix) with ESMTP id 8D22E37B417 for ; Thu, 21 Mar 2002 12:22:54 -0800 (PST) Received: from loqtis.bmyster.com (mrb@localhost.bmyster.com [127.0.0.1]) by bmyster.com (8.12.2/8.12.2) with ESMTP id g2LKS4MG041151; Thu, 21 Mar 2002 15:28:04 -0500 (EST) Received: from localhost (mrb@localhost) by loqtis.bmyster.com (8.12.2/8.12.2/Submit) with ESMTP id g2LKS3SI041148; Thu, 21 Mar 2002 15:28:04 -0500 (EST) Date: Thu, 21 Mar 2002 15:28:03 -0500 (EST) From: bmyster To: Toomas Aas Cc: "freebsd-questions@freebsd.org" Subject: Re: kernel build procedure does not update kernel In-Reply-To: <200203212015.g2LKFj705253@lv.raad.tartu.ee> Message-ID: <20020321152355.T39966-100000@loqtis.bmyster.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG if you have built a kernel prior to this ...you have to do "make clean" befor you do "make depend". this will clean out all the old dependancies..and rebuild to the config you just edited in /sys/i386/conf so if youve already built a kernel.. you do the following everytime you build from there on out. # cd /usr/src/sys/i386/conf # /usr/sbin/config YOURKERNEL # cd ../../compile/YOURKERNEL # make clean # make depend # make # make install hope this helps Brent On Thu, 21 Mar 2002, Toomas Aas wrote: > Hello! > > I'm in a process of patching some 4.4-RELEASE machines for recent zlib > security advisory. I downloaded and applied the patch, rebuilt the > /usr/src/lib/libz part and then went through the usual procedure of: > > cd /usr/src/sys/i386/conf > /usr/sbin/config MYKERNEL > cd ../../compile/MYKERNEL > make depend > make > make install > > > The procedure runs through looking quite normal and gives no errors, so > I issue 'shutdown -r now'. > > However, the uname -a output still contains the following: > FreeBSD 4.4-RELEASE #4: Fri Feb 8 20:01:16 EET 2002 > > (Feb 8th is when I applied previous patch that required kernel > rebuild). > > Also, the file /usr/src/sys/compile/MYKERNEL/kernel is dated Feb > 8th. > > /kernel and /kernel.old are exactly the same size. > > On one machine I did 'rm -Rf /usr/src/sys/compile/MYKERNEL' and rebuilt > the kernel once more, and there uname -a says the "right" thing: > FreeBSD 4.4-RELEASE #0: Thu Mar 21 22:04:04 EET 2002 > > Maybe I'm making much ado about nothing, but I'm still curious why the > kernel build date isn't updated and why the size of the kernel doesn't > change. Is it possible to have a kernel config that "doesn't include > zlib" and thus the build procedure decides that rebuilding the kernel > isn't really necessary? My kernel config is pretty minimal on these > machines. > -- > Toomas Aas | toomas.aas@raad.tartu.ee | http://www.raad.tartu.ee/~toomas/ > * Windws is ine for bckgroun comunicaions - Bll Gats, 192 > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message