Help - Search - Members - Calendar
Full Version: Compiling Bestcrypt On 2.6.9
Linuxhelp > Support > Technical Support
WhatsUp
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'
Hemant
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.
WhatsUp
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.
permaGrin
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.
permaGrin
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?
Robert83
Hello

found something

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

Sincerely
Robert B
permaGrin
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
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2017 Invision Power Services, Inc.