TrueCrypt su 2.6.20 (Feisty)

EDIT: è stata rilasciata proprio oggi una nuova release di TrueCrypt, rendendo di fatto inutile il pacchetto patchato :P Che gli abbian fischiato le orecchie ai programmatori?

E’ ormai da diverso tempo che uso TrueCrypt come soluzione per l’uso di partizioni criptate in quanto disponibile sia per windows che per linux. Normalmente sono disponibili i precompilati per ubuntu, ma non è ancora il caso di Feisty in quanto ancora beta. Provvedendo alla compilazione da sorgenti si incorre in diversi errori:

root@guinness:~/Desktop/truecrypt-4.2a/Linux# ./build.sh
Checking build requirements...
Building kernel module... /home/scorp/Desktop/truecrypt-4.2a/Linux/Kernel/Dm-target.c:434:41: error: macro "INIT_WORK" passed 3 arguments, but takes just 2
/home/scorp/Desktop/truecrypt-4.2a/Linux/Kernel/Dm-target.c: In function truecrypt_endio :
/home/scorp/Desktop/truecrypt-4.2a/Linux/Kernel/Dm-target.c:434: error: INIT_WORK  undeclared (first use in this function)
/home/scorp/Desktop/truecrypt-4.2a/Linux/Kernel/Dm-target.c:434: error: (Each undeclared identifier is reported only once
/home/scorp/Desktop/truecrypt-4.2a/Linux/Kernel/Dm-target.c:434: error: for each function it appears in.)
/home/scorp/Desktop/truecrypt-4.2a/Linux/Kernel/Dm-target.c: In function dm_truecrypt_init :
/home/scorp/Desktop/truecrypt-4.2a/Linux/Kernel/Dm-target.c:644: error: expected )  before DM_MSG_PREFIX 
/home/scorp/Desktop/truecrypt-4.2a/Linux/Kernel/Dm-target.c:652: error: expected )  before DM_MSG_PREFIX 
/home/scorp/Desktop/truecrypt-4.2a/Linux/Kernel/Dm-target.c:659: error: expected )  before DM_MSG_PREFIX 
/home/scorp/Desktop/truecrypt-4.2a/Linux/Kernel/Dm-target.c:666: error: expected )  before DM_MSG_PREFIX 
/home/scorp/Desktop/truecrypt-4.2a/Linux/Kernel/Dm-target.c: In function dm_truecrypt_exit :
/home/scorp/Desktop/truecrypt-4.2a/Linux/Kernel/Dm-target.c:690: error: expected )  before DM_MSG_PREFIX 
make[2]: *** [/home/scorp/Desktop/truecrypt-4.2a/Linux/Kernel/Dm-target.o] Fel 1
make[1]: *** [_module_/home/scorp/Desktop/truecrypt-4.2a/Linux/Kernel] Fel 2
make: *** [truecrypt] Fel 2
Error: Failed to build kernel module

Infatti con il nuovo kernel 2.6.20 sono state apportate modifiche alla signature della funzione INIT_WORK, facendo fallire irrimedibilmente la compilazione.

Download truecrypt-4.2a-patched.tar.gz

Ecco la procedura on-the-fly:

sudo su
apt-get install wget gawk linux-source-2.6.20
cd /usr/src/
sudo tar xjf linux-source-2.6.20.tar.bz2
sudo ln -s linux-source-2.6.20 linux
cd /tmp
wget http://downloads.php-fusion.it/index.php?dir=blog/ubuntu/&file=truecrypt-4.2a-patched.tar.gz
tar xfz truecrypt-4.2a-patched.tar.gz
cd truecrypt-4.2a/Linux
./build.sh
./install.sh

Per l’installazione personalmente ho preferito spostare tutto in /usr/local cosଠda tenere da parte il software compilato a manina e quello installato tramite apt-get.

About gionn

IRC: gionn @ irc.freenode.com
This entry was posted in null and tagged , . Bookmark the permalink.

2 Responses to TrueCrypt su 2.6.20 (Feisty)

  1. Nick says:

    Sorry, I’m afraid I only speak English and a little French…
    Thank you very much! I found your post after weeks of searching. Its the only thing that I’ve found that works!

    Thanks again!
    -N

  2. Scorp says:

    Don’t worry, i also speak english :p
    Thank you for the reply.