Hi,

I've just installed Debian 3.0 on a PC, using the option to install the 2.4 kernel 'bf24', and I want to build some driver modules.

When I try to install a newly built module, I get the following error :-

    modulename.o: kernel-module version mismatch
        modulename.o was compiled for kernel version 2.4.18
        while this kernel is version 2.4.18-bf2.4


The build of the module looks like :-
 
    gcc -D__KERNEL__ -DMODULE -DMODVERSIONS -include /usr/src/kernel-headers-2.4.18-bf2.4/include/linux/modversions.h -Wall -Wstrict-prototypes -O2 -m486 -c modulename.c -I/usr/src/kernel-source-2.4.18/include

The seemingly obvious would be to change this to :-
 
    gcc -D__KERNEL__ -DMODULE -DMODVERSIONS -include /usr/src/kernel-headers-2.4.18-bf2.4/include/linux/modversions.h -Wall -Wstrict-prototypes -O2 -m486 -c modulename.c -I/usr/src/kernel-source-2.4.18-bf2.4/include

...only there isn't any kernel-source-2.4.18-bf2.4 on the issue DVD.  How am I supposed to proceed?
BTW It seems from my experiences that Linux release systems are generally buggy! I had a very similar experience with Red Hat 9 a couple of months ago, and in that instance the recommendation was to install the latest version of the kernel, plus the latest version of the kernel source, and that would clear things up.  In the event it caused a build error which I had to find my way around by creating links in the /usr source and include trees, specifically for a 'linux' directory to be a link to a specific linux directory and for an 'asm' directory to be a link to a specific asm includes directory. Am i likely to need to do something similar here?  And can I use the RH9 RPMs to achieve it on Debian, or is that sacrilege/doomed to failure?
 
Cheers,
 
Mike
 
 
 
 

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.530 / Virus Database: 325 - Release Date: 22/10/03

Reply via email to