error inserting module.

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

 



Hi!

I'm doing some tests with a kernel module. I was compiling and inserting the module without problems.
After an upgrade of part of my system (Anjuta C/C++ IDE and related things like gcc etc...) I get this problem when trying to insert my module:

module: version magic '2.6.15.6 preempt PENTIUM4 REGPARM gcc-4.1' should be '2.6.15.6 preempt PENTIUM4 REGPARM gcc-4.0'
insmod: error inserting 'module.ko ': -1 invalid module format.

I guess that this is because the module was compiled with a more recent version of gcc than the kernel was... am I right?

And now... how can I fix this? Should I recompile my kernel with gcc-4.1? should I downgrade to gcc-4.0 again? Is there any macro that I can use to avoid this checking?

Thanks in advance.

[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