From owner-freebsd-stable Wed Jan 3 21:29: 0 2001 From owner-freebsd-stable@FreeBSD.ORG Wed Jan 3 21:28:58 2001 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from cain.gsoft.com.au (genesi.lnk.telstra.net [139.130.136.161]) by hub.freebsd.org (Postfix) with ESMTP id 87EBA37B400 for ; Wed, 3 Jan 2001 21:28:56 -0800 (PST) Received: from cain.gsoft.com.au (doconnor@cain [203.38.152.97]) by cain.gsoft.com.au (8.8.8/8.8.8) with ESMTP id PAA20213; Thu, 4 Jan 2001 15:58:51 +1030 (CST) (envelope-from doconnor@gsoft.com.au) Message-ID: X-Mailer: XFMail 1.4.0 on FreeBSD X-Priority: 3 (Normal) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit MIME-Version: 1.0 In-Reply-To: <200101040528.f045SOI05021@henry.cs.adfa.edu.au> Date: Thu, 04 Jan 2001 15:58:51 +1030 (CST) Sender: doconnor@gsoft.com.au From: "Daniel O'Connor" To: wkt@cs.adfa.edu.au Subject: Re: kldload: Exec format error, is 4.2 problem? Cc: stable@FreeBSD.ORG Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On 04-Jan-01 Warren Toomey wrote: > In article by Daniel O'Connor: > > On 03-Jan-01 Warren Toomey wrote: > > > # kldload /usr/local/modules/rtc.ko > > > kldload: can't load /usr/local/modules/rtc.ko: Exec format error > > > > > > Is this a 4.2-thing, or have I just done something wrong? I've > > > searched the FreeBSD mail lists for clues, with no luck. > > Ok, I've found the answer. The rtc and vmware2 ports both turn this > flag on in the appropriate Makefiles: > > KMODDEPS= linux > > This creates a binary file called `linux' which is linked in (?) to the > the module at compile time, e.g: > > ld -Bshareable -o vmmon_up.ko setdef0.o vmmon_up.kld setdef1.o linux > > By commenting out this flag, the file `linux' isn't used, and the module > can then be loaded by kldload. Also, vmware appears to work fine. The reason it has the KMODDEPS line is to add a dependancy on the linux kld. This means that if the vmware kld is loaded the linux one will be loaded if necessary. I think you should send this directly to the vmware maintainer though :) --- Daniel O'Connor software and network engineer for Genesis Software - http://www.gsoft.com.au "The nice thing about standards is that there are so many of them to choose from." -- Andrew Tanenbaum To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message