Re: kernel modules wont load

From: John Baldwin <jhb_at_freebsd.org>
Date: Thu, 17 Jul 2008 09:23:52 -0400
On Saturday 05 July 2008 09:06:42 pm Chuck Robey wrote:
> Robert Watson wrote:
> >
> > On Sat, 5 Jul 2008, Chuck Robey wrote:
> >
> >> I can't get my oss sound to load, and the first error I get is this:
> >>
> >> osscore.ko: depends on kernel - not available
> >>
> >> That came from both the oss logging file and dmesg.  I don't
> >> understand what "depends on kernel" means, could I get a hint on
> >> that?  I think it's the reason that later oss modules don't load
> >> correctly.
> >>
> >> Thanks for any help on this, I'd like to get my sound working again.
> >
> > In HEAD, we're currently building all modules with an automatic version
> > dependency on the version of the kernel they are intended to run in.
> > The error message should be telling you need version X but it found
> > version Y, but doesn't, unfortunately.  Rebuilding the module should get
> > it working.  I seem to recall printing the error better is awkward
> > because the dependency failure is generated somewhere deep in the
> > linker, and the error is printed on the surface, but should be fixable.
> 
> Umm.  OK, I'm pleased to hear about it, but just a touch skeptical that's my
> problem, because I recompiled the osscore 2 hours ago, and the kernel is 
less
> than 2 weeks old.  It is possible, though,  and I really appreciate the 
answer
> (I'd never have tracked that one down, from your description).

It probably means your world is newer than your kernel somehow as the osscore 
module build will use the __FreeBSD_version from /usr/include/sys/param.h 
while the kernel will support 800000 - the version in it's build tree's 
<sys/param.h>

-- 
John Baldwin
Received on Thu Jul 17 2008 - 12:25:23 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:39:32 UTC