Date: Thu, 4 Jan 2001 16:28:22 +1100 (EST) From: Warren Toomey <wkt@henry.cs.adfa.edu.au> To: "Daniel O'Connor" <doconnor@gsoft.com.au> Cc: wkt@cs.adfa.edu.au, stable@FreeBSD.ORG Subject: Re: kldload: Exec format error, is 4.2 problem? Message-ID: <200101040528.f045SOI05021@henry.cs.adfa.edu.au> In-Reply-To: <XFMail.010104113927.doconnor@gsoft.com.au> from "Daniel O'Connor" at "Jan 4, 2001 11:39:27 am"
next in thread | previous in thread | raw e-mail | index | archive | help
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. Hope this helps someone else! Cheers, Warren To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200101040528.f045SOI05021>