Click to See Complete Forum and Search --> : error loading a module
DimGR
06-13-2004, 01:00 PM
finally i managed to built the fglrx module for my ATI.
i was following this page : http://xoomer.virgilio.it/flavio.stanchina/debian/fglrx-installer.html#install
whem i did a modprobe fglrx i got these errors
modprobe fglrx
FATAL: Error inserting fglrx (/lib/modules/2.6.6/kernel/drivers/video/fglrx.ko): Invalid module format
and from dmesg this
fglrx: version magic '2.6.6-flavour PENTIUM4 gcc-3.3' should be '2.6.6 SMP preempt 386 gcc-2.95'
does this mean that i should have compiled with gcc version 2.95?
if yes i had tried to get 2.95 before i started anything but apt-get said this
apt-get install gcc/stable gcc-2.95/stable
Reading Package Lists... Done
Building Dependency Tree... Done
E: Release 'stable' for 'gcc' was not found
so how can i load the driver?
Icarus
06-13-2004, 04:33 PM
You need to compile modules with the same compiler used on the kernel. It looks like you are using a custom 2.6.6 kernel so I'd assume your default compiler is what you used in both cases
I had some trouble with the ATI drivers on a 2.6.6 kernel, but I think I got it work was completely exit from X, don't have it running. (init 2 is usually good)
then compile and load the module.
DimGR
06-13-2004, 09:33 PM
Originally posted by Icarus
You need to compile modules with the same compiler used on the kernel. It looks like you are using a custom 2.6.6 kernel so I'd assume your default compiler is what you used in both cases
I had some trouble with the ATI drivers on a 2.6.6 kernel, but I think I got it work was completely exit from X, don't have it running. (init 2 is usually good)
then compile and load the module.
i do not understand :( When you say custom kernel what do you mean? I use knoppix..
How can i know whith what compiler knoppix kernel was compiled?!?!
I am using the one that comes with knoppix which is version 3.3
SO what youa re saying is to exit from X and try to compile again there. I will try it and post back..
bwkaz
06-13-2004, 10:19 PM
Knoppix still compiles their kernels with gcc 2.95 (that's why when you build LFS NPTL from Knoppix, you get segfaults when you test glibc -- NPTL can't be built against a kernel that was compiled with gcc 2.95, otherwise NPTL tests will segfault all over the place).
You therefore need to use gcc 2.95 to compile any kernel modules. If you don't have it installed (and I find that highly unlikely... look around in /opt), you might consider trying Knoppix specific support for why it won't install.
Originally posted by DimGR
i do not understand :( When you say custom kernel what do you mean? I use knoppix..
How can i know whith what compiler knoppix kernel was compiled?!?!
I am using the one that comes with knoppix which is version 3.3
SO what youa re saying is to exit from X and try to compile again there. I will try it and post back..
hi!
i had a similar problem with fc2. i think they're right. maybe u should recompile the kernel then compile the module, that way u're gauranteed that everything is compiled with the same version. maybe a lot of work but it worked for me. :)