From owner-freebsd-hackers@FreeBSD.ORG Fri Oct 3 10:28:48 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B9B7E16A4B3; Fri, 3 Oct 2003 10:28:48 -0700 (PDT) Received: from gw.celabo.org (gw.celabo.org [208.42.49.153]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9607143FE1; Fri, 3 Oct 2003 10:28:43 -0700 (PDT) (envelope-from nectar@celabo.org) Received: from madman.celabo.org (madman.celabo.org [10.0.1.111]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "madman.celabo.org", Issuer "celabo.org CA" (verified OK)) by gw.celabo.org (Postfix) with ESMTP id 426A954887; Fri, 3 Oct 2003 12:28:43 -0500 (CDT) Received: by madman.celabo.org (Postfix, from userid 1001) id D49CB6D476; Fri, 3 Oct 2003 12:28:42 -0500 (CDT) Date: Fri, 3 Oct 2003 12:28:42 -0500 From: "Jacques A. Vidrine" To: Clau Message-ID: <20031003172842.GA62106@madman.celabo.org> Mail-Followup-To: "Jacques A. Vidrine" , Clau , freebsd-hackers@freebsd.org, freebsd-current@freebsd.org, ru@freeBSD.org References: <3F7DAA8F.9050600@reversedhell.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3F7DAA8F.9050600@reversedhell.net> X-Url: http://www.celabo.org/ User-Agent: Mutt/1.5.4i-ja.1 cc: freebsd-hackers@freebsd.org cc: freebsd-current@freebsd.org cc: ru@freeBSD.org Subject: Re: "can't find kernel source tree" error when building the kernel. X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 03 Oct 2003 17:28:48 -0000 On Fri, Oct 03, 2003 at 07:57:51PM +0300, Clau wrote: > hello, > > i just downloaded via cvsup the latest kernel for freebsd 5.1. > i had a problem with it, more exactly when i did a "make depend" > it stopped at some place, and gave me this error: > "can't find kernel source tree" > i fixed this by modifying this piece of code from /usr/src/sys/conf/kmod.mk > (it starts with line 167 in the file) > > .for _dir in ${.CURDIR}/../.. ${.CURDIR}/../../.. /sys /usr/src/sys > .if !defined(SYSDIR) && exists(${_dir}/kern/) > SYSDIR= ${_dir} > .endif > .endfor > .if !defined(SYSDIR) || !exists(${SYSDIR}/kern/) > .error "can't find kernel source tree" > .endif > > i removed the last "/" from "/kern/" and now it seems it can find the > directory. > i don't know if this is a general problem, or it is just in the case of > my system. How are you building the kernel? Are you using `make buildworld' first and then `make buildkernel' (or `make kernel')? Cheers, -- Jacques Vidrine . NTT/Verio SME . FreeBSD UNIX . Heimdal nectar@celabo.org . jvidrine@verio.net . nectar@freebsd.org . nectar@kth.se