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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
11-13-2005, 04:01 PM
|
#1
|
LQ Newbie
Registered: Aug 2003
Location: Horndean, Hants.
Distribution: OSX Tiger, XP SP2, Vista SP1
Posts: 16
Rep:
|
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.
|
|
|
11-16-2005, 01:16 PM
|
#2
|
LQ Newbie
Registered: Dec 2004
Posts: 3
Rep:
|
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.
|
|
|
11-16-2005, 01:56 PM
|
#3
|
Slackware Contributor
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 8,559
|
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
|
|
|
11-16-2005, 03:17 PM
|
#4
|
LQ Newbie
Registered: Dec 2004
Posts: 3
Rep:
|
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.
|
|
|
12-02-2008, 02:59 AM
|
#5
|
Member
Registered: May 2006
Location: China
Distribution: Debian
Posts: 198
Rep:
|
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!
|
|
|
All times are GMT -5. The time now is 06:56 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|