From owner-freebsd-questions Thu Jan 9 12:28:47 2003 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A8EBC37B401 for ; Thu, 9 Jan 2003 12:28:45 -0800 (PST) Received: from mailsrv.otenet.gr (mailsrv.otenet.gr [195.170.0.5]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4D9B743EB2 for ; Thu, 9 Jan 2003 12:28:43 -0800 (PST) (envelope-from keramida@ceid.upatras.gr) Received: from gothmog.gr (patr530-b060.otenet.gr [195.167.121.188]) by mailsrv.otenet.gr (8.12.6/8.12.6) with ESMTP id h09KSUDW001959; Thu, 9 Jan 2003 22:28:30 +0200 (EET) Received: from gothmog.gr (gothmog [127.0.0.1]) by gothmog.gr (8.12.6/8.12.6) with ESMTP id h09KSTtD002570; Thu, 9 Jan 2003 22:28:29 +0200 (EET) (envelope-from keramida@ceid.upatras.gr) Received: (from giorgos@localhost) by gothmog.gr (8.12.6/8.12.6/Submit) id h09KSTQt002569; Thu, 9 Jan 2003 22:28:29 +0200 (EET) (envelope-from keramida@ceid.upatras.gr) Date: Thu, 9 Jan 2003 22:28:29 +0200 From: Giorgos Keramidas To: Darren Cc: freebsd-questions@FreeBSD.org Subject: Re: kernel won't compile Message-ID: <20030109202829.GB2021@gothmog.gr> References: <05fc01c2b804$b2b9dba0$6601a8c0@crotchett.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <05fc01c2b804$b2b9dba0$6601a8c0@crotchett.com> 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 On 2003-01-09 11:29, Darren wrote: > I have successfully compiled a new kernel once already on a new > install of FreeBSD 4.7-RELEASE. Since then, I have run cvsup and > portupgrade. Now, I need to recompile the kernel again. But, I'm > running into errors. I have been following the handbook. But, > apparently, I'm missing something. The way I understand the manual, > you use the first method of "config CUSTOM_KERNEL" and if you have > updated the kernel sources, you have to use the second method of > "make buildkernel KERNCONF=MYKERNEL". Don't use the "config .. make depend" method. The buildkernel method should work fine, but you need to follow the instructions of UPDATING very carefully. For instance, did you successfully finish running "make buildworld" *before* trying to run "make buildkernel" ? > > > >>> Kernel build for CUSTOM.01 completed on Thu Jan 9 00:22:57 CST 2003 > -------------------------------------------------------------- > cd /usr/obj/usr/src/sys/CUSTOM.01; MAKEOBJDIRPREFIX=/usr/obj > MACHINE_ARCH=i386 MACHINE=i386 > OBJFORMAT_PATH=/usr/obj/usr/src/i386/usr/libexec > PERL5LIB=/usr/obj/usr/src/i386/usr/libdata/perl/5.00503 > GROFF_BIN_PATH=/usr/obj/usr/src/i386/usr/bin > GROFF_FONT_PATH=/usr/obj/usr/src/i386/usr/share/groff_font > GROFF_TMAC_PATH=/usr/obj/usr/src/i386/usr/share/tmac make KERNEL=kernel > install > chflags noschg /kernel > chflags: /kernel: Operation not permitted > *** Error code 1 (ignored) > mv /kernel /kernel.old > mv: rename /kernel to /kernel.old: Operation not permitted > *** Error code 1 This is most likely a result of running with kern.securelevel set too high. Try lowering your securelevel before running the installation of kernel (make installkernel). - Giorgos To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message