Hi Kevin,
>> Using printer.o
>> insmod: kernel-module version mismatch
>> printer.o was compiled for kernel version
>> while this kernel is version 2.4.26-ts11.
>
> Thanks to those of you who replied. A couple of the replies indicated either
> that I didn't explain my situation clearly, or that they may have missed some
> information. At any rate I managed to solve my problem.
>
> As I was having trouble compiling 2.4.26-ts11 using the gcc 4.0.1 cross
> compiler I took another look at the CD and realized it had a cross compiler
> for the 3.3.4 version of gcc. Using it I was able to successfully compile the
> kernel source and get a printer.o module which doesn't taint the kernel when
> installed.
>
> It is good to know I can easily build other kernel modules if I need them. I
> may need to support writing data to a USB memory stick in the future which
> may
> need another module or three.
>
Since a module is being dynamically loaded into a kernel,
the kernel enforces the rule that it be built with the
same compiler it was built against, and against the
same kernel version.
So you can have problems when you have the right compiler,
but wrong kernel source, or wrong compiler and right kernel
source :)
Its always a good sanity check to build things yourself;
kernel, compiler, and modules.
As far as user-space goes, you can build the user-space apps
with different compiler versions. The only issue you then
might run into is versioning with glibc, i.e., the compiler
looks for the libraries it was built against.
Lots of opportunities for problems!
Cheers
Dave
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/ts-7000/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/ts-7000/join
(Yahoo! ID required)
<*> To change settings via email:
<*> To unsubscribe from this group, send an email to:
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
|