LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 11-13-2005, 04:01 PM   #1
hamstereater
LQ Newbie
 
Registered: Aug 2003
Location: Horndean, Hants.
Distribution: OSX Tiger, XP SP2, Vista SP1
Posts: 16

Rep: Reputation: 0
Question Errors Installing Truecrypt


Hi,

Has anyone had any success installing Truecrypt on Linux? I'm running CENTOS/RHEL4 and there is no rpm so I'm building from source. I think that I have the dependencies sorted, but when I run build.sh I get the following:

Code:
[root@localhost Linux]# sh build.sh
Checking build requirements...
Linux kernel (2.6.9-22.0.1.EL) source directory [/usr/src/linux]: /usr/src/kernels/2.6.9-22.0.1.EL-i686
Building kernel module... /home/leightonsj/truecrypt-4.0/Linux/Kernel/Dm-target.c:16:16: dm.h: No such file or directory
/home/leightonsj/truecrypt-4.0/Linux/Kernel/Dm-target.c: In function `truecrypt_ctr':
/home/leightonsj/truecrypt-4.0/Linux/Kernel/Dm-target.c:119: error: dereferencing pointer to incomplete type
/home/leightonsj/truecrypt-4.0/Linux/Kernel/Dm-target.c:126: error: dereferencing pointer to incomplete type
/home/leightonsj/truecrypt-4.0/Linux/Kernel/Dm-target.c:135: error: dereferencing pointer to incomplete type
/home/leightonsj/truecrypt-4.0/Linux/Kernel/Dm-target.c:143: error: dereferencing pointer to incomplete type
/home/leightonsj/truecrypt-4.0/Linux/Kernel/Dm-target.c:148: error: `SECTOR_FORMAT' undeclared (first use in this function)
/home/leightonsj/truecrypt-4.0/Linux/Kernel/Dm-target.c:148: error: (Each undeclared identifier is reported only once
/home/leightonsj/truecrypt-4.0/Linux/Kernel/Dm-target.c:148: error: for each function it appears in.)
/home/leightonsj/truecrypt-4.0/Linux/Kernel/Dm-target.c:150: error: dereferencing pointer to incomplete type
/home/leightonsj/truecrypt-4.0/Linux/Kernel/Dm-target.c:154: error: dereferencing pointer to incomplete type
/home/leightonsj/truecrypt-4.0/Linux/Kernel/Dm-target.c:154: error: dereferencing pointer to incomplete type
/home/leightonsj/truecrypt-4.0/Linux/Kernel/Dm-target.c:156: error: dereferencing pointer to incomplete type
/home/leightonsj/truecrypt-4.0/Linux/Kernel/Dm-target.c:166: error: dereferencing pointer to incomplete type
/home/leightonsj/truecrypt-4.0/Linux/Kernel/Dm-target.c:175: error: dereferencing pointer to incomplete type
/home/leightonsj/truecrypt-4.0/Linux/Kernel/Dm-target.c:182: error: dereferencing pointer to incomplete type
/home/leightonsj/truecrypt-4.0/Linux/Kernel/Dm-target.c:190: error: dereferencing pointer to incomplete type
/home/leightonsj/truecrypt-4.0/Linux/Kernel/Dm-target.c:203: error: dereferencing pointer to incomplete type
/home/leightonsj/truecrypt-4.0/Linux/Kernel/Dm-target.c:210: error: dereferencing pointer to incomplete type
/home/leightonsj/truecrypt-4.0/Linux/Kernel/Dm-target.c:217: error: dereferencing pointer to incomplete type
/home/leightonsj/truecrypt-4.0/Linux/Kernel/Dm-target.c:224: error: dereferencing pointer to incomplete type
/home/leightonsj/truecrypt-4.0/Linux/Kernel/Dm-target.c:231: error: dereferencing pointer to incomplete type
/home/leightonsj/truecrypt-4.0/Linux/Kernel/Dm-target.c:238: error: dereferencing pointer to incomplete type
/home/leightonsj/truecrypt-4.0/Linux/Kernel/Dm-target.c:246: error: dereferencing pointer to incomplete type
/home/leightonsj/truecrypt-4.0/Linux/Kernel/Dm-target.c:252: error: dereferencing pointer to incomplete type
/home/leightonsj/truecrypt-4.0/Linux/Kernel/Dm-target.c: In function `truecrypt_dtr':
/home/leightonsj/truecrypt-4.0/Linux/Kernel/Dm-target.c:279: error: dereferencing pointer to incomplete type
/home/leightonsj/truecrypt-4.0/Linux/Kernel/Dm-target.c: In function `dereference_bio_ctx':
/home/leightonsj/truecrypt-4.0/Linux/Kernel/Dm-target.c:301: error: dereferencing pointer to incomplete type
/home/leightonsj/truecrypt-4.0/Linux/Kernel/Dm-target.c: In function `work_process':
/home/leightonsj/truecrypt-4.0/Linux/Kernel/Dm-target.c:316: error: dereferencing pointer to incomplete type
/home/leightonsj/truecrypt-4.0/Linux/Kernel/Dm-target.c: In function `truecrypt_endio':
/home/leightonsj/truecrypt-4.0/Linux/Kernel/Dm-target.c:346: error: dereferencing pointer to incomplete type
/home/leightonsj/truecrypt-4.0/Linux/Kernel/Dm-target.c:351: error: syntax error before "SECTOR_FORMAT"
/home/leightonsj/truecrypt-4.0/Linux/Kernel/Dm-target.c: In function `truecrypt_map':
/home/leightonsj/truecrypt-4.0/Linux/Kernel/Dm-target.c:389: error: dereferencing pointer to incomplete type
/home/leightonsj/truecrypt-4.0/Linux/Kernel/Dm-target.c:396: error: syntax error before "SECTOR_FORMAT"
/home/leightonsj/truecrypt-4.0/Linux/Kernel/Dm-target.c:427: error: dereferencing pointer to incomplete type
/home/leightonsj/truecrypt-4.0/Linux/Kernel/Dm-target.c:440: error: dereferencing pointer to incomplete type
/home/leightonsj/truecrypt-4.0/Linux/Kernel/Dm-target.c:523: error: syntax error before "SECTOR_FORMAT"
/home/leightonsj/truecrypt-4.0/Linux/Kernel/Dm-target.c: At top level:
/home/leightonsj/truecrypt-4.0/Linux/Kernel/Dm-target.c:531: error: syntax error before "status_type_t"
/home/leightonsj/truecrypt-4.0/Linux/Kernel/Dm-target.c: In function `truecrypt_status':
/home/leightonsj/truecrypt-4.0/Linux/Kernel/Dm-target.c:533: error: `ti' undeclared (first use in this function)
/home/leightonsj/truecrypt-4.0/Linux/Kernel/Dm-target.c:535: error: `type' undeclared (first use in this function)
/home/leightonsj/truecrypt-4.0/Linux/Kernel/Dm-target.c:537: error: `STATUSTYPE_INFO' undeclared (first use in this function)
/home/leightonsj/truecrypt-4.0/Linux/Kernel/Dm-target.c:538: error: `result' undeclared (first use in this function)
/home/leightonsj/truecrypt-4.0/Linux/Kernel/Dm-target.c:541: error: `STATUSTYPE_TABLE' undeclared (first use in this function)
/home/leightonsj/truecrypt-4.0/Linux/Kernel/Dm-target.c:544: error: dereferencing pointer to incomplete type
/home/leightonsj/truecrypt-4.0/Linux/Kernel/Dm-target.c:544: error: dereferencing pointer to incomplete type
/home/leightonsj/truecrypt-4.0/Linux/Kernel/Dm-target.c:545: error: `maxlen' undeclared (first use in this function)
/home/leightonsj/truecrypt-4.0/Linux/Kernel/Dm-target.c:545: error: syntax error before "SECTOR_FORMAT"
/home/leightonsj/truecrypt-4.0/Linux/Kernel/Dm-target.c: At top level:
/home/leightonsj/truecrypt-4.0/Linux/Kernel/Dm-target.c:563: error: variable `truecrypt_target' has initializer but incomplete type
/home/leightonsj/truecrypt-4.0/Linux/Kernel/Dm-target.c:564: error: unknown field `name' specified in initializer
/home/leightonsj/truecrypt-4.0/Linux/Kernel/Dm-target.c:565: error: unknown field `version' specified in initializer
/home/leightonsj/truecrypt-4.0/Linux/Kernel/Dm-target.c:565: error: extra bracegroup at end of initializer
/home/leightonsj/truecrypt-4.0/Linux/Kernel/Dm-target.c:565: error: (near initialization for `truecrypt_target')
/home/leightonsj/truecrypt-4.0/Linux/Kernel/Dm-target.c:566: error: unknown field `module' specified in initializer
/home/leightonsj/truecrypt-4.0/Linux/Kernel/Dm-target.c:567: error: unknown field `ctr' specified in initializer
/home/leightonsj/truecrypt-4.0/Linux/Kernel/Dm-target.c:568: error: unknown field `dtr' specified in initializer
/home/leightonsj/truecrypt-4.0/Linux/Kernel/Dm-target.c:569: error: unknown field `map' specified in initializer
/home/leightonsj/truecrypt-4.0/Linux/Kernel/Dm-target.c:570: error: unknown field `status' specified in initializer
/home/leightonsj/truecrypt-4.0/Linux/Kernel/Dm-target.c:639: error: syntax error before "DM_NAME"
/home/leightonsj/truecrypt-4.0/Linux/Kernel/Dm-target.c:563: error: storage size of `truecrypt_target' isn't known
make[2]: *** [/home/leightonsj/truecrypt-4.0/Linux/Kernel/Dm-target.o] Error 1
make[1]: *** [_module_/home/leightonsj/truecrypt-4.0/Linux/Kernel] Error 2
make: *** [truecrypt] Error 2
Error: Failed to build kernel module
If anyone has had more success or can help identify the problem I would be most grateful.

Cheers, HE.
 
Old 11-16-2005, 01:16 PM   #2
stevious
LQ Newbie
 
Registered: Dec 2004
Posts: 3

Rep: Reputation: 0
I had the very problem with Redhat EL. This is the reason:

"truecrypt-4.0/Linux/Kernel/Dm-target.c:16:16: dm.h: No such file or directory"

The Redhat Enterprise Linux kernel sources do not include dm.h, so the build fails. I had jump through a bunch of hoops to get it to compile. Please note, I am no expert. This is what worked for me. If anyone can suggest any shortcuts, please do.

1. Obtain and install kernel-2.6.9-22.EL.src.rpm (puts it in /root/src/redhat/)
2. cd /root/src/redhat/SPECS
3. rpmbuild -bp --target=i686 kernel-2.6.spec
4. cd /root/src/redhat/BUILD/kernel-2.6.9/linux-2.6.9/drivers/md/
5. cp * /usr/src/kernels/2.6.9-22.0.1.EL-i686/drivers/md/

The build.sh then worked, once dm.h was found. I'm not sure what other files were necessary, which is the reason I copied md/* over. Hope this helps.
 
Old 11-16-2005, 01:56 PM   #3
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 8,559

Rep: Reputation: 8116Reputation: 8116Reputation: 8116Reputation: 8116Reputation: 8116Reputation: 8116Reputation: 8116Reputation: 8116Reputation: 8116Reputation: 8116Reputation: 8116
Well.. compiling on Slackware 10.2 was not difficult. Slackware 10.2 packages can be found here and my SlackBuild script is here.

Now, if anyone can tell me how to create a TrueCrypt container in Linux? It looks like I have to create one with the Windows version of TrueCrypt :-( And the TrueCrypt forum has been down for a week, bummer.

Cheers, Eric
 
Old 11-16-2005, 03:17 PM   #4
stevious
LQ Newbie
 
Registered: Dec 2004
Posts: 3

Rep: Reputation: 0
Quote:
Originally posted by Alien Bob
Now, if anyone can tell me how to create a TrueCrypt container in Linux? It looks like I have to create one with the Windows version of TrueCrypt :-(
You are correct. It's not possible to create a TrueCrypt container in Linux. It must be created in Windows. Maybe that will change with the next version.
 
Old 12-02-2008, 02:59 AM   #5
edenCC
Member
 
Registered: May 2006
Location: China
Distribution: Debian
Posts: 198
Blog Entries: 1

Rep: Reputation: 32
Wink

I got the same problem while installing truecrypt on a rhel-as4.
But I just feel lucky because I found some pre-compiled rpm packages here:

http://rpmfind.net/linux/rpm2html/se...&system=&arch=

Good Luck!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
TrueCrypt for linux? rpz Linux - Software 14 05-19-2006 10:05 AM
Truecrypt: Kernel module not loaded Synatic Linux - Software 4 01-21-2006 03:43 PM
Truecrypt problem. No available loopback interface white scorpion Linux - Security 4 11-28-2005 08:33 AM
Errors when installing FC 4 minox1337 Fedora 8 07-27-2005 04:03 AM
Installing GD errors mandrakewanta Mandriva 1 05-22-2005 01:38 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:56 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration