Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 330597 - app-crypt/truecrypt-4.3a fails to build against kernel 2.6.34
Summary: app-crypt/truecrypt-4.3a fails to build against kernel 2.6.34
Status: RESOLVED CANTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Crypto team [DISABLED]
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-07-31 12:04 UTC by Kai Damm
Modified: 2010-10-15 18:16 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
complete build.log (build.log,5.83 KB, text/plain)
2010-07-31 12:06 UTC, Kai Damm
Details
Patch for truecrypt-4.3a with kernel 2.6.34 (truecrypt-4.3a-2.6.34.patch,1.38 KB, patch)
2010-08-14 10:58 UTC, Kai Damm
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Kai Damm 2010-07-31 12:04:26 UTC
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
Comment 1 Kai Damm 2010-07-31 12:06:23 UTC
Created attachment 240797 [details]
complete build.log
Comment 2 Clemens Hlauschek 2010-08-03 06:43:50 UTC
(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

Comment 3 Kai Damm 2010-08-14 10:58:29 UTC
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.
Comment 4 Dane Smith (RETIRED) gentoo-dev 2010-10-15 18:16:20 UTC
No longer in tree. Hasn't been available for some time. Closing.