public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* Old compiled module
@ 2004-03-10 20:23 Ole Turvoll
  0 siblings, 0 replies; 2+ messages in thread
From: Ole Turvoll @ 2004-03-10 20:23 UTC (permalink / raw)
  To: gcc-help

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

* RE: Old compiled module
@ 2004-03-10 23:49 lrtaylor
  0 siblings, 0 replies; 2+ messages in thread
From: lrtaylor @ 2004-03-10 23:49 UTC (permalink / raw)
  To: ole.turvoll, gcc-help

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@gcc.gnu.org [mailto:gcc-help-owner@gcc.gnu.org] On
Behalf Of Ole Turvoll
Sent: Wednesday, March 10, 2004 11:34 AM
To: gcc-help@gcc.gnu.org
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
----------------------------------

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2004-03-10 20:30 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-03-10 20:23 Old compiled module Ole Turvoll
2004-03-10 23:49 lrtaylor

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).