Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 04 Jan 2001 15:58:51 +1030 (CST)
From:      "Daniel O'Connor" <doconnor@gsoft.com.au>
To:        wkt@cs.adfa.edu.au
Cc:        stable@FreeBSD.ORG
Subject:   Re: kldload: Exec format error, is 4.2 problem?
Message-ID:  <XFMail.010104155851.doconnor@gsoft.com.au>
In-Reply-To: <200101040528.f045SOI05021@henry.cs.adfa.edu.au>

next in thread | previous in thread | raw e-mail | index | archive | help

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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?XFMail.010104155851.doconnor>