[gobolinux-devel] building kernel modules
Jonatan Liljedahl
lijon at kymatica.com
Wed Aug 23 18:00:18 GMT 2006
Lucas C. Villa Real wrote:
> On 8/23/06, Jonatan Liljedahl <lijon at kymatica.com> wrote:
>> Each time I try to build a kernel module, this happens:
>>
>> The compilation goes fine without any errors, but when trying to load
>> the module I get: "-1 Invalid module format" and the module doesn't load!
>>
>> Any ideas?
>
> Yes. Check for your GCC version -- you're probably running a different
> version than the one used to compile your kernel. 'dmesg | tail' will
> tell what version is being expected.
That was it! Running 'make CC=i686-pc-linux-gnu-gcc-3.3.2' worked.
But now I have other problems. What I'm trying is to build the
realtime-lsm module. It compiles fine now, but when trying to set
parameters I get:
] insmod ./realtime.ko gid=11
insmod: error inserting './realtime.ko': -1 Unknown symbol in module
] modinfo ./realtime.ko
description: Standard Linux Common Capabilities Security Module
license: GPL
vermagic: 2.6.14.3-Gobo preempt PENTIUMIII gcc-3.3
depends:
No parameters! I looked in the source (realtime.c) and there *is*
parameters there...
--
/Jonatan -=( http://kymatica.com )=-
More information about the gobolinux-devel
mailing list