Re: kernel-module version mismatch problem (smp Kernel)

On 11/05/06 11:11, Navneet Kataria wrote:
> I tried the following ::
> 
> 1. Edited /usr/src/linux/Makefile to change EXTRAVERSION to -4.ELsmp
> from -4.EL.
> 
> After this the problem of unresolved symbols started to come while
> inserting comedi module. the output is as follows::
> 
> -----------------------------------------------------------------
> [root_at_localhost comedi-0.7.70]# modprobe comedi
> /lib/modules/2.4.21-4.ELsmp/comedi/comedi.o: unresolved symbol
> fasync_helper_Rb65ea485
[snip]
> /lib/modules/2.4.21-4.ELsmp/comedi/comedi.o: unresolved symbol
> remap_page_range_R5a76d065
> /lib/modules/2.4.21-4.ELsmp/comedi/comedi.o: insmod
> /lib/modules/2.4.21-4.ELsmp/comedi/comedi.o failed
> /lib/modules/2.4.21-4.ELsmp/comedi/comedi.o: insmod comedi failed
> ---------------------------------------------------------------------
> 
> 2. I also tried to put .config file from /boot. But same problem comes.
> 
> Is there some other way to resolve this ? Thanks in advance.

Is there a /proc/config.gz file?  This is a 2.6.x kernel feature, but
maybe Red Hat included it in RHEL 3, If it exists, it will be a gzipped
.config file that matches the running kernel exactly, so you could then do:

  cd /usr/src/linux
  zcat /proc/config.gz > .config
  make oldconfig
  make dep

-- 
-=( Ian Abbott _at_ MEV Ltd.    E-mail: <abbotti_at_mev.co.uk>        )=-
-=( Tel: +44 (0)161 477 1898   FAX: +44 (0)161 718 3587         )=-

Received on 2006-05-11Z13:46:57