[gobolinux-devel] building kernel modules

Jonatan Liljedahl lijon at kymatica.com
Wed Aug 23 19:35:03 GMT 2006


Jonas Karlsson wrote:
> On Wed, 23 Aug 2006 20:00:18 +0200, Jonatan Liljedahl
> <lijon at kymatica.com> wrote:
> 
>> 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...
>>
> It looks like it needs Default Linux Capabilities enabled. Have you
> enabled it (SECURITY_CAPABILITIES) under security options in your
> kernel? Or if you have it as module, maybe you have forgotten to load it.

I think they're loaded:

gobo at Kymatix ~/realtime-lsm-0.8.7]lsmod | grep cap
capability              5000  0
commoncap               7296  1 capability


-- 
/Jonatan    -=( http://kymatica.com )=-


More information about the gobolinux-devel mailing list