Linux Help
guides forums blogs
Home Desktops Distributions ISO Images Logos Newbies Reviews Software Support & Resources Linuxhelp Wiki

Welcome Guest ( Log In | Register )



Advanced DNS Management
New ZoneEdit. New Managment.

FREE DNS Is Back

Sign Up Now
 
Reply to this topicStart new topic
> Compiling Bestcrypt On 2.6.9
WhatsUp
post Dec 28 2004, 06:15 AM
Post #1


Whats this Lie-nix Thing?
*

Group: Members
Posts: 2
Joined: 28-December 04
Member No.: 4,399



Hello, Im trying to compile BestCrypt on my debian box (sarge) with kernel 2.6.9.
Im getting some include errors when compiling. Have done it before serveral times on various 2.4.# versions.

/usr/include/asm/mpspec.h:5:24: mpspec_def.h: No such file or directory

In this case I found mpspec_def.h in /usr/src/linux-2.6.9/include/asm-i386/mpspec_def.h and copied it to /usr/include/asm and changed mpspec.h to include that copy.

But I still get other errors and Im really not sure what to do about it (or what Im doing, like if the copy was correct or not...)
So if anyone knows how to solve it, I will be very happy. smile.gif

CODE
                from /usr/include/linux/module.h:10,
                from bc_dev26.c:28:
/usr/include/asm/mpspec.h:8: error: `MAX_MP_BUSSES' undeclared here (not in a function)
/usr/include/asm/mpspec.h:9: error: `MAX_MP_BUSSES' undeclared here (not in a function)
/usr/include/asm/mpspec.h:10: error: `MAX_MP_BUSSES' undeclared here (not in a function)
/usr/include/asm/mpspec.h:12: error: `MAX_MP_BUSSES' undeclared here (not in a function)
/usr/include/asm/mpspec.h:20: error: `MAX_MP_BUSSES' undeclared here (not in a function)
/usr/include/asm/mpspec.h:20: error: conflicting types for `mp_bus_id_to_type'
/usr/include/asm/mpspec.h:8: error: previous declaration of `mp_bus_id_to_type'
/usr/include/asm/mpspec.h:22: error: `MAX_IRQ_SOURCES' undeclared here (not in a function)
/usr/include/asm/mpspec.h:24: error: `MAX_MP_BUSSES' undeclared here (not in a function)
/usr/include/asm/mpspec.h:24: error: conflicting types for `mp_bus_id_to_pci_bus'
/usr/include/asm/mpspec.h:12: error: previous declaration of `mp_bus_id_to_pci_bus'
In file included from /usr/include/asm/smp.h:20,
                from /usr/include/linux/smp.h:17,
                from /usr/include/linux/sched.h:23,
                from /usr/include/linux/module.h:10,
                from bc_dev26.c:28:
/usr/include/asm/io_apic.h:120: error: `MAX_IRQ_SOURCES' undeclared here (not in a function)
/usr/include/asm/io_apic.h:120: error: conflicting types for `mp_irqs'
/usr/include/asm/mpspec.h:22: error: previous declaration of `mp_irqs'
In file included from /usr/include/linux/smp.h:17,
                from /usr/include/linux/sched.h:23,
                from /usr/include/linux/module.h:10,
                from bc_dev26.c:28:
/usr/include/asm/smp.h:73:26: mach_apicdef.h: No such file or directory
In file included from /usr/include/linux/irq.h:20,
                from /usr/include/asm/hardirq.h:6,
                from bc_dev26.c:34:
/usr/include/asm/irq.h:16:25: irq_vectors.h: No such file or directory
In file included from /usr/include/asm/hardirq.h:6,
                from bc_dev26.c:34:
/usr/include/linux/irq.h:70: error: `NR_IRQS' undeclared here (not in a function)
In file included from /usr/include/linux/irq.h:72,
                from /usr/include/asm/hardirq.h:6,
                from bc_dev26.c:34:
/usr/include/asm/hw_irq.h:28: error: `NR_IRQS' undeclared here (not in a function)
/usr/include/asm/hw_irq.h:31: error: `NR_IRQS' undeclared here (not in a function)
bc_dev26.c: In function `bc_clr_fd':
bc_dev26.c:651: error: too few arguments to function `blkdev_put'
Go to the top of the page
 
+Quote Post
Hemant
post Dec 28 2004, 07:49 AM
Post #2


RMS is my Hero
******

Group: Support Specialist
Posts: 782
Joined: 6-October 02
From: Trichy,INDIA
Member No.: 29



Sorry,but i dont know what is this Bestcrypt,but as it seems..it needs kernel headers for compilation,you should be aware that there have been major changes in the Kernel architecture with 2.6.

So if your program is some kind of Module or Device driver....i doubt it will compile with 2.6,unless you upgrade the program itself.


--------------------
Hemant Kumar
user posted image
hemant@linuxhelp.net
Go to the top of the page
 
+Quote Post
WhatsUp
post Dec 30 2004, 07:04 AM
Post #3


Whats this Lie-nix Thing?
*

Group: Members
Posts: 2
Joined: 28-December 04
Member No.: 4,399



Got it solved. It was my fault...I was setting up two boxes at the same time with different CPU's. So after change in the kernel config to correct CPU (PIII instead of P4) and recompile of the kernel BestCrypt compiled fine.

BestCrypt is a nice and easy way to have encrypted partitions. You create a encrypted file which you then can format and mount as normal hd. You can even create hidden encrypted partitions in the encrypted partition.
Go to the top of the page
 
+Quote Post
permaGrin
post Jan 5 2005, 12:53 AM
Post #4


Whats this Lie-nix Thing?
*

Group: Members
Posts: 3
Joined: 5-January 05
Member No.: 4,435



I'm having the same exact problem with the same exact output as you pasted above.

Unfortunately, I'm new to kernel configuring and compiling. Does this mean I will have to recompile my kernel in order to install bestcrypt? If it's not too much trouble, could you specify the details of what I need to do? (or how you resolved it) I'm a windows programmer and a long-time unix user, so not a total newbie, but I just haven't spent much time tweaking my very own linux box before.

Any help is very much appreciated.
Go to the top of the page
 
+Quote Post
permaGrin
post Jan 7 2005, 02:14 PM
Post #5


Whats this Lie-nix Thing?
*

Group: Members
Posts: 3
Joined: 5-January 05
Member No.: 4,435



Anyone?

<crosses fingers>

More info if it helps: I am using a 2.6x kernel, but the bestcrypt package I'm trying to compile is made for the 2.6x kernel, so that shouldn't be the problem. I do have the appropriate kernel headers and even kernel source installed.

Someone must have some suggestions at least?
Go to the top of the page
 
+Quote Post
Robert83
post Jan 7 2005, 05:04 PM
Post #6


Its GNU/Linuxhelp.net
*******

Group: Support Specialist
Posts: 1,439
Joined: 3-January 04
From: Germany
Member No.: 2,069



Hello

found something

http://www.frech.ch/howto/HOWTO/html_singl...yptoloop-HOWTO/

Sincerely
Robert B


--------------------
Robert Becskei
robert83@linuxhelp.net
--------------------
May the source be with us!
--------------------
AMD X2-3800 @ 2400Mhz
2048MB DDR 400Mhz
DFI Lanparty UT4 NF4 ULTRA-D
GeForce 7800GT
250GB+250GB
Pioneer DVD-RW
17inch Samsung Syncmaster 757NF
WinXP Pro (SP2)/ CentOS 4.3
--------------------
Go to the top of the page
 
+Quote Post
permaGrin
post Jan 8 2005, 11:37 AM
Post #7


Whats this Lie-nix Thing?
*

Group: Members
Posts: 3
Joined: 5-January 05
Member No.: 4,435



Thanks for the reply. Cryptoloop sounds worth looking into and is of interest to me so I do appreciate the link. Unfortunately, I do still have a need for BestCrypt, though. I have a mixed environment of Windows and Linux machines that need access to the encrypted containers, and as the page you linked to states: "I don't know of a way to access the Cryptoloop-encrypted files from other operating systems such as Windows. In this case, BestCrypt may be your only choice."

It would appear that the original poster of this thread made it work. It sounds to me like I'm going to need to compile the kernel with BestCrypt support then install the newly compiled kernel. Is this correct? Or does it sound like BestCrypt only needs some kernel settings file to reference for it to know how to interact with the existing kernel? Just knowing this would help me tremendously.

TIA
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 11th December 2017 - 08:06 AM