From owner-freebsd-questions@FreeBSD.ORG Tue Jun 1 00:44:05 2004 Return-Path: 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 894D616A565 for ; Tue, 1 Jun 2004 00:44:03 -0700 (PDT) Received: from smtp08.web.de (smtp08.web.de [217.72.192.226]) by mx1.FreeBSD.org (Postfix) with ESMTP id C653A43D1F for ; Tue, 1 Jun 2004 00:44:02 -0700 (PDT) (envelope-from platanthera@web.de) Received: from [217.85.232.80] (helo=liza.hacienda.herti) by smtp08.web.de with asmtp (TLSv1:RC4-MD5:128) (WEB.DE 4.101 #91) id 1BV3vs-0002ik-00; Tue, 01 Jun 2004 09:43:37 +0200 From: platanthera To: johnh@thebunker.net Date: Tue, 1 Jun 2004 09:43:45 +0200 User-Agent: KMail/1.6.2 References: <40BBEC5A.1020708@thebunker.net> In-Reply-To: <40BBEC5A.1020708@thebunker.net> MIME-Version: 1.0 Content-Disposition: inline Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <200406010943.45785.platanthera@web.de> Sender: platanthera@web.de cc: freebsd-questions@freebsd.org Subject: Re: make depend error X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 01 Jun 2004 07:44:06 -0000 On Tuesday 01 June 2004 04:39, john huss wrote: > Hello, > > Can any of you kind teeps help me out please? I'm trying to compile my > FreeBSD 4.9 kernel for the first time and am having problems. > > I am recompiling for several reasons; to learn about compiling the > kernel; to get sound support for my isa soundcard and (finally); to > compile in some firewall options mentioned in the handbook. hi john, I just don't know what the reasons for your problem might be, but would like to give some hints anyway. (1) There's no need to compile sound support and firewall options statically into the kernel. Of course you can do so, but you can use modules for this purpose too. It's your choice. (2) You can safely comment out support for hardware you don't have on your system. (3) It's quite some time ago that 4.9 came out and several security related bugs have been discovered and fixed since then. That's why you should update your sources using cvsup(1) and rebuild the entire base system, not only the kernel. After having updated the sources - cd /usr/src - read UPDATING and README - cp sys/i386/conf/GENERIC sys/i386/conf/CUSTOM_KERNEL - edit your custom kernel configuration - make buildworld - make buildkernel - make installkernel - reboot to single user mode, fsck and mount the file systems - mergemaster -p - cd /usr/src - make installworld - mergemaster these steps will leave you with an up to date system using the GENERIC kernel. To create and install a custom kernel just repeat the make build/install kernel steps in /usr/src but add KERNCONF=CUSTOM_KERNEL. reboot and enjoy