From owner-freebsd-doc@FreeBSD.ORG Sat Mar 19 02:48:32 2005 Return-Path: Delivered-To: freebsd-doc@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id DBCA616A4CE for ; Sat, 19 Mar 2005 02:48:31 +0000 (GMT) Received: from kane.otenet.gr (kane.otenet.gr [195.170.0.27]) by mx1.FreeBSD.org (Postfix) with ESMTP id 03CE443D2F for ; Sat, 19 Mar 2005 02:48:31 +0000 (GMT) (envelope-from keramida@freebsd.org) Received: from gothmog.gr (patr530-a182.otenet.gr [212.205.215.182]) j2J2lvki031050; Sat, 19 Mar 2005 04:47:58 +0200 Received: from gothmog.gr (gothmog [127.0.0.1]) by gothmog.gr (8.13.3/8.13.3) with ESMTP id j2J2mRPP015397; Sat, 19 Mar 2005 04:48:27 +0200 (EET) (envelope-from keramida@freebsd.org) Received: (from giorgos@localhost) by gothmog.gr (8.13.3/8.13.3/Submit) id j2J2mQHF015396; Sat, 19 Mar 2005 04:48:26 +0200 (EET) (envelope-from keramida@freebsd.org) Date: Sat, 19 Mar 2005 04:48:26 +0200 From: Giorgos Keramidas To: mailinglists@mindrules.net Message-ID: <20050319024826.GA15200@gothmog.gr> References: <40097.62.234.135.76.1111184667.squirrel@62.234.135.76> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <40097.62.234.135.76.1111184667.squirrel@62.234.135.76> cc: freebsd-doc@freebsd.org Subject: Re: possible error in handbook on kernelcompiling X-BeenThere: freebsd-doc@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Documentation project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 19 Mar 2005 02:48:32 -0000 On 2005-03-18 23:24, mailinglists@mindrules.net wrote: > Anyway, yesterday I recompiled my kernel, I did that before, but as > always I kept the handbook open to check that I wouldn't forget some > important part. After making the altered kernel configuration file I > had to do some other things on the machine, something happened. What does `something happened' refer to? > Then I continued, using "Procedure 1. Building a Kernel the > ``Traditional'' Way". Why? The `buildkernel' process should work too. The traditional way is these days pretty much the `obsolete way', and is useful only in limited cases (i.e. a kernel developer who wants to do many builds of the kernel but hasn't touched anything in the userland sources). > When I issued # /usr/sbin/config MYKERNEL I received an error, but > after I navigated to the directory MYKERNEL was in, everything worked. It would be nice if you posted the exact error message too. I've used the `traditional way' of building kernels a lot of times, and it did work. The invocation of config(8) was a bit tricky, as I wanted to keep using the /usr/obj hierarchy for compiled files: # cd /usr/src/sys/i386/conf # config -g -d /usr/obj/usr/src/sys/MYKERNEL MYKERNEL # cd /usr/obj/usr/src/sys/MYKERNEL # make # make install > So, maybe there should be a sidenote that you either have to be in the > right directory or give the full path. This is pretty much implied if you use config(8). It would be nice if you could repeat the process, keep a log file with script(1) or something and post any errors you see. Then we would be able to tell you if this is indeed a bug in the Handbook instructions or something entirely different. Regards, Giorgos