The signature of dm_get_device from device-mapper.h changed between 2.6.32 and 2.6.34 (didn't try 2.6.33). app-crypt/truecrypt-4.3a fails to compile (too many arguments in Linux/Kernel/DM-Target.c:213) Reproducible: Always Steps to Reproduce: 1. emerge -1 =sys-kernel/gentoo-sources-2.6.34-r1 2. eselect kernel set <set to 2.6.34-r1> 3. emerge -1 =app-crypt/truecrypt-4.3a Actual Results: * ERROR: app-crypt/truecrypt-4.3a failed: * Unable to emake HOSTCC=x86_64-pc-linux-gnu-gcc CROSS_COMPILE=x86_64-pc-linux-gnu- LDFLAGS= KERNEL_SRC=/usr/src/linux NO_WARNINGS=1 truecrypt * * Call stack: * ebuild.sh, line 54: Called src_compile * environment, line 3572: Called linux-mod_src_compile * environment, line 2751: Called die Expected Results: truecrypt should build and install
Created attachment 240797 [details] complete build.log
(In reply to comment #1) > Created an attachment (id=240797) [details] > complete build.log > Interface changed: http://osdir.com/ml/dm-devel/2010-02/msg00065.html Here is the patch: --- truecrypt-4.3a-source-code.org/Linux/Kernel/Dm-target.c 2010-08-03 08:20:14.000000000 +0200 +++ truecrypt-4.3a-source-code/Linux/Kernel/Dm-target.c 2010-08-03 08:21:07.000000000 +0200 @@ -210,7 +210,7 @@ static int truecrypt_ctr (struct dm_targ } tc->start = sector; - if (dm_get_device (ti, argv[TC_ARG_DEV], tc->start, ti->len, dm_table_get_mode (ti->table), &tc->dev)) + if (dm_get_device (ti, argv[TC_ARG_DEV], dm_table_get_mode (ti->table), &tc->dev)) { ti->error = "truecrypt: Device lookup failed"; goto err; truecrypt builds fine. Now when I 'modprobe truecrypt', I get # dmesg|tail -n1 truecrypt: Unknown symbol kmalloc
Created attachment 242927 [details, diff] Patch for truecrypt-4.3a with kernel 2.6.34 Kernel devs have hidden kmalloc in <linux/slab.h>. Taken and modified from here: http://www.mizrahi.com.ve/crux/pkgs//truecrypt/truecrypt-kernel-2.6.34.patch Warning: The patch is not kernel-version-dependent like the other gentoo patches in ${FILESDIR}. It will not compile with kernel <2.6.34. With this patch, truecrypt-4.3a works for me.
No longer in tree. Hasn't been available for some time. Closing.