Re: R: Linux kernel 2.6.11 and external module error

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Message from Perego Paolo Franco <p.perego@xxxxxxxx>:

> Does the magic string match your running kernel or are you compiling the
> module with a different kernel source ball?
>
Yes you were right!!. I set in my code:
MODULE_INFO(vermagic,VERMAGIC_STRING);
the VERMAGIC_STRING to the output of :
#strings ex0.ko|grep vermagic
and the result was:
insmod: error inserting './ex0.ko': -1 Invalid module format
with a dmesg message:
ex0: version magic '2.6.11 gcc-4.0' should be '2.6.11 gcc-3.3'

I then realised that I compiled my kernel with gcc-3.3 and later on
I installed gcc-4.0. Now the gcc link points at gcc-4.0. Is there
a flag for the Makefile CFLAGS to tell the compiler to choose the
gcc-3.3 version instead (CC=gcc-3.3)?


--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux