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 [EMAIL PROTECTED]
with "unsubscribe freebsd-stable" in the body of the message

Reply via email to