RE: Old compiled module

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

 



Hi,

Basically, it boils down to that you need to compile this module with
the same compiler used to build your kernel.  If this is a third party
module, then you'll need to either get one built with the right
compiler, or you'll need to recompile it yourself if you can get the
source.  If you've recompiled your kernel since you install the OS, you
may not have recompiled this module as well.  In that case, you should
reconfigure your kernel to include this module in the build (modules are
only built if you tell the configuration program to include them) and
rebuild.

Good luck,
Lyle


-----Original Message-----
From: gcc-help-owner@xxxxxxxxxxx [mailto:gcc-help-owner@xxxxxxxxxxx] On
Behalf Of Ole Turvoll
Sent: Wednesday, March 10, 2004 11:34 AM
To: gcc-help@xxxxxxxxxxx
Subject: Old compiled module 

When trying to insert a module into the kernel the following error
message 
appears:


ld -m elf_i386 -r au_audio.o au_midi.o au_core.o au_sndstat.o au_mixer.o

au_utils.o au_vortex.o asp10.o -o au8810.o
mv -f /etc/modules.conf /etc/modules.conf.old
gawk -f mod_conf /etc/modules.conf.old > /etc/modules.conf
echo "alias sound au8810" >> /etc/modules.conf
echo "alias midi au8810" >> /etc/modules.conf
mkdir -p /lib/modules/2.4.21-192-default/misc
cp -f au8810.o /lib/modules/2.4.21-192-default/misc
/sbin/depmod -a
/sbin/rmmod au8810
rmmod: module au8810 is not loaded
make[1]: [install] Error 1 (ignored)
/sbin/modprobe au8810
/lib/modules/2.4.21-192-default/misc/au8810.o: The module you are trying

to load (/lib/modules/2.4.21-192-default/misc/au8810.o) is compiled with
a 
gcc
version 2 compiler, while the kernel you are running is compiled with
a gcc version 3 compiler. This is known to not work.
/lib/modules/2.4.21-192-default/misc/au8810.o: insmod 
/lib/modules/2.4.21-192-default/misc/au8810.o failed
/lib/modules/2.4.21-192-default/misc/au8810.o: insmod au8810 failed
make[1]: [install] Error 255 (ignored)
make[1]: Leaving directory `/home/ole/sound/aureal'

How can this be solved?

I am running gcc 3.3 on a Suse 9.0 install

Cheers


Ole Turvoll
LDAP/Intranet Developer
Deutsche Bank AG [/] London
----------------------------------
Office - +4420 754 59480
Mobile - +447967 468 772
----------------------------------



[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux