From owner-freebsd-hackers@FreeBSD.ORG Wed Jan 21 13:52:55 2009 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0ECCE10658EA for ; Wed, 21 Jan 2009 13:52:55 +0000 (UTC) (envelope-from rwatson@FreeBSD.org) Received: from cyrus.watson.org (cyrus.watson.org [65.122.17.42]) by mx1.freebsd.org (Postfix) with ESMTP id D97FC8FC12 for ; Wed, 21 Jan 2009 13:52:54 +0000 (UTC) (envelope-from rwatson@FreeBSD.org) Received: from fledge.watson.org (fledge.watson.org [65.122.17.41]) by cyrus.watson.org (Postfix) with ESMTPS id 664AC46B03; Wed, 21 Jan 2009 08:52:54 -0500 (EST) Date: Wed, 21 Jan 2009 13:52:54 +0000 (GMT) From: Robert Watson X-X-Sender: robert@fledge.watson.org To: "M. Warner Losh" In-Reply-To: <20090120.131627.-1717264382.imp@bsdimp.com> Message-ID: References: <20090120.131627.-1717264382.imp@bsdimp.com> User-Agent: Alpine 2.00 (BSF 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: freebsd-hackers@freebsd.org, assaulter0x80@gmail.com Subject: Re: KLD: program.ko: depends of kernel - no avaiable X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 21 Jan 2009 13:52:57 -0000 On Tue, 20 Jan 2009, M. Warner Losh wrote: > In message: > "Jacky Oh" writes: > : Hi, > : > : I'm writing a syscall module and he compiles well but at load time, kldload > : shows: > : > : KLD: program.ko: depends of kernel - no avaiable > : > : anyone know something about this? > > Yes. rebuild the kernel and modules to have the same __FreeBSD_version It would be nice if the kernel linker included version numbers, both expected and found, in these messages. Unfortunately, this code is rather well-abstracted, and the specific version numbers are rather inaccessible at the point where the error message is printed. Robert N M Watson Computer Laboratory University of Cambridge