Kernel sources for SMP kernel??
I have tried to compile truecrypt. Installed package linux-source-2.6.15. Compilation seems to work OK, but the resulting module cannot be inserted. I get this:
FATAL: Error inserting truecrypt (/lib/modules/2.6.15-27-desktop-smp/extra/truecrypt.ko): Invalid module format
truecrypt: Failed to load TrueCrypt kernel module
Are the sources up to date?? Or could it be due to the fact I am using the SMP kernel??




Compiling Modules
The Linux headers should do the trick. The headers are configured for a specified flavor and release version. In this case you would need, linux-headers-2.6.15-27-desktop-smp which will also install linux-headers-2.6.15-27 The versions in the pool match the current kernels.
When you install the Linux source package it is not preconfigured for a particular flavor. It is assumed that you will compile the flavor of your choice from it with a customized config. The default config for an installed kernel is available in /boot
Watchout for source that is from third parties. Sometimes module source packages from third parties do not point to the correct headers or source. And some source makefiles assume you want to build for the current running kernel, even if you specify different kernel headers/source.
Thanks Warren for the reply
Thanks Warren for the reply (you've ben active lately
I think that is what I did... The installer indeed asked me if I wished to compile for the running kernel, so in theory it should work.... I just did a reinstall on a different partition (reiser instead of ext3 because of suspend issues), so I will have a go at it again.
Modprobing the module with the -f option allowed me to insert the module, so compilation was OK. Maybe the installer inserted a wrong version number into the module....
Cheers
Newbie or not Newbie, there's always a question