RE: How to update the compiler

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

 




      > I used "insmod" to install a modul which was compiled
      > with "gcc" under RH 8.0, and got the following
      > message:
      >
      > ./hello.o: kernel-module version mismatch
      >     ./hello.o was compiled for kernel version 2.4.9-9
      >     while this kernel is version 2.4.18-14
      >
      > So I think my compiler is for kernel version 2.4.9-9
      >
      > Ben

This seems nothing to do with the GCC version since you are trying to load
the module complied for 2.4.9-9 in to the kernel version 2.4.18-14,
If one module is complied for one kernel it cant be loaded for another
kernel, unless if you disable CONFIG_MODVERSIONS in the kernel.
So if it is troubling loading the module because of versioning errors,
better to compile the kernel with modversionsing turned off.

--Prasad


      > --- "Curran, Dominic" <dcurran@ti.com> wrote:
      > >
      > > Goto http://gcc.gnu.org/ and download the latest
      > > version of gcc.
      > >
      > > Are you sure the compiler version is 2.4.9 , that
      > > doesn't sound right for
      > > RH8...unless your not using gcc.
      > >
      > > dom
      > >
      > >
      > >
      > > -----Original Message-----
      > > From: Bluesesa [mailto:big_bluesea@yahoo.com]
      > > Sent: Wednesday, May 07, 2003 12:01 PM
      > > To: kernelnewbies@nl.linux.org
      > > Subject: How to update the compiler
      > >
      > >
      > > Hi there,
      > >
      > > I am using Linux 8.0. The kernel is 2.4.18-14, while
      > > the compiler is 2.4.9-9. How can I update my
      > > compiler?
      > >
      > > Thanks,
      > >
      > > Ben
      > >
      > > __________________________________
      > > Do you Yahoo!?
      > > The New Yahoo! Search - Faster. Easier. Bingo.
      > > http://search.yahoo.com
      > > --
      > > Kernelnewbies: Help each other learn about the Linux
      > > kernel.
      > > Archive:
      > > http://mail.nl.linux.org/kernelnewbies/
      > > FAQ:           http://kernelnewbies.org/faq/
      >
      >
      > __________________________________
      > Do you Yahoo!?
      > The New Yahoo! Search - Faster. Easier. Bingo.
      > http://search.yahoo.com
      > --
      > Kernelnewbies: Help each other learn about the Linux kernel.
      > Archive:       http://mail.nl.linux.org/kernelnewbies/
      > FAQ:           http://kernelnewbies.org/faq/
      >
      >

--
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