Mailing List
Home
Forum Home
Linux - General Red Hat Linux discussion list
Installation - Getting started with Red Hat Linux
Enterprise Linux 3 - Discussion of Red Hat Enterprise Linux 3 (Taroon)
Red Hat Linux 9 - Discussion of Red Hat Linux 9 (Shrike)
Red Hat Linux 7.2 - Discussion of Red Hat Linux 7.2 (Enigma)
Red Hat Linux 7.3 - Discussion of Red Hat Linux 7.3 (Valhalla)
Apache Web Server
Oracle database, Microsoft SQL server ...
Subjects
application/x mplayer2 plugin
RPM error: db4 error(16) from dbenv >remove: Device or resource
   busy
Command stream end of file while reading
X Windows problem (xauth)
Upgrading openoffice 1 1 rpm
FTP: connection refused
FTP: connection refused
mount: /dev/cdrom: is not a valid block device
Dell Precision 650, RedHat 9, no sound
how to trace the cause resulting in the crash of bind server
Virus on the list
UNINSTALL RPM MYSQL
usb pen drives: mounting as a user
broadcom network interface
make mrproper
sendmail configuration on redhat
Couldn 't open PID file /var/run/named/named pid Permission denied
Promise 378 controller
kernel 2 6 and /dev/sound/mixer not found
Problem using up2date
mrtg step by step howto/configuration for a newbie?
Compiling and Installing Kernel 2 6
Can 't locate module ppp0, can 't locate module ppp compress 21
HOW I CAN MAKE BOOTABLE FLOPPY DISKET
Lotus Notes under Wine
/etc/security/limits conf question
Intel E/1000 driver
Command stream end of file while reading
rpm database corrupt
qla2300 modules
 
kernel-module mismatch

kernel-module mismatch

2004-08-05       - By Mir Muzaffar Ali

 Back
Reply:     1     2  

Hi,

I'm relative new to linux and I've just started module programming following
the Alessandro Rubini and Jonathan Corbet "Linux Device Drivers" book for
kernel 2.4.  I have got Redhat 9.0 installed on my system.  I try to use
"insmod" to insert a module called hello.o, however the system returns a message


hello.o: kernel-module version mismatch.
hello.o was compiled for kernel version 2.4.20
while this kernel is 2.4.20-8custom

In the book it is mentioned that it would be better to recompile the kernel
without the version support for modules.  I believe I did the right thing by
simply changing the option of "loadable module support -> set version
information on all module symbols" from y to n.  I ran "make xconfig" and
followed the steps carefully listed in the Red Hat documentation CD plus the
steps listed on Alessandro's website and as you can see from the message I
booted the recompiled custom kernel without any problems.

I don't know if this information is pertinent as well but I typed the following

"gcc --version" and I got

"gcc (GCC) 3.2.2.20030222 (Reh Hat Linux 3.2.2-5)" followed by some text.  I
believe my compiler is ok.  Could someone please help me out?  Is what I did
the thing to do or was I suppose to do something else in order to remove
version support?

Mir


__ ____ ____ ____ ____ ____ ____ ____ ____ ____ __
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
<DIV>
<DIV>Hi,</DIV>
<DIV>&nbsp;</DIV>
<DIV>I'm relative new to linux and I've just started module programming
following the Alessandro Rubini and Jonathan Corbet "Linux Device Drivers" book
for kernel 2.4.&nbsp; I have got Redhat 9.0 installed on my system.&nbsp; I try
to use "insmod" to insert a module called hello.o, however the system returns a
message </DIV>
<DIV>&nbsp;</DIV>
<DIV>hello.o: kernel-module version&nbsp;mismatch.</DIV>
<DIV>hello.o was compiled for kernel version 2.4.20</DIV>
<DIV>while this kernel is 2.4.20-8custom</DIV>
<DIV>&nbsp;</DIV>
<DIV>In the book it is mentioned that it would be better to recompile the
kernel without the version support for modules.&nbsp; I believe I did the right
thing by simply changing the option of "loadable module support -&gt;&nbsp;set
version information on all module symbols" from y to n.&nbsp; I ran&nbsp;"make
xconfig" and followed the steps carefully listed in the Red Hat documentation
CD plus the steps listed&nbsp;on Alessandro's website and as you can see from
the message I booted the recompiled custom kernel without any problems.</DIV>
<DIV>&nbsp;</DIV>
<DIV>I don't know if this information is pertinent as well but I typed the
following</DIV>
<DIV>&nbsp;</DIV>
<DIV>"gcc --version" and I got</DIV>
<DIV>&nbsp;</DIV>
<DIV>"gcc (GCC) 3.2.2.20030222 (Reh Hat Linux 3.2.2-5)" followed by some text.
&nbsp; I believe my compiler is ok.&nbsp; Could someone please help me out?&nbsp
; Is what I did the thing to do or was I suppose to do something else in order
to remove version support?</DIV>
<DIV>&nbsp;</DIV>
<DIV>Mir</DIV></DIV><p>__ ____ ____ ____ ____ ____ ____ ____ ____ ____ __<br>Do
You Yahoo!?<br>Tired of spam?  Yahoo! Mail has the best spam protection around
<br>http://mail.yahoo.com
--
Shrike-list mailing list
Shrike-list@(protected)
https://www.redhat.com/mailman/listinfo/shrike-list