Click to See Complete Forum and Search --> : Kernel Heaers problem


Janet
10-08-2001, 08:58 PM
Im trying to install Bestcrypt 8.0 on Mandrake 8 and have the following errors. I am told that Im missing kernel and module devel rpms but this was a guess. I cant find any module or kernel rpms on my CD and there arent any installed either. Any suggestions welcome, here are the errors:

[root@localhost bcrypt-0.8-6]# make
set -e; for i in kgsha src mod; do make -C $i ; done
make[1]: Entering directory `/usr/src/RPM/SOURCES/bcrypt-0.8-6/kgsha'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/usr/src/RPM/SOURCES/bcrypt-0.8-6/kgsha'
make[1]: Entering directory `/usr/src/RPM/SOURCES/bcrypt-0.8-6/src'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/usr/src/RPM/SOURCES/bcrypt-0.8-6/src'
make[1]: Entering directory `/usr/src/RPM/SOURCES/bcrypt-0.8-6/mod-0.8-6'
gcc -O6 -Wall -fno-strength-reduce -D__KERNEL__ -DMODULE -I../include -I/usr/src/linux/include -c -o bc_dev.o bc_dev.c
In file included from bc_cfg.h:43,
from bc_dev.c:1:
/usr/include/linux/modversions.h:1:2: #error Modules should never use kernel-headers system headers,
/usr/include/linux/modversions.h:2:2: #error but headers from an appropriate kernel-source
make[1]: *** [bc_dev.o] Error 1
make[1]: Leaving directory `/usr/src/RPM/SOURCES/bcrypt-0.8-6/mod-0.8-6'
make: *** [subdirs] Error 2
[root@localhost bcrypt-0.8-6]#

LittleGreenGecko
10-08-2001, 11:22 PM
To be honest, I have not a clue, but I am into cryptography. When you get this thing solved, let me know what this software does.

:eek: :D :p

bdg1983
10-09-2001, 05:41 AM
Could the kernel source and headers be on the 2nd Mandrake cd? I'm not familiar with Mandrake, but that does ring a bell from other posts I've read here.

Any of the Mandrake users here know what the filenames are for them?

Janet
10-09-2001, 08:28 AM
OK sorry. I found this on the Bestcrypt site which seems to cover it. But as a Newbie I have to admit Im not sure where to start. I started with make mrproper and got a :

[root@localhost /root]# make mrproper
make: *** No rule to make target `mrproper'. Stop.
[root@localhost /root]#

I really want to get this prog working so if anyone could explain in newbie english what to do Id really appreciated it.

Thanks


Some Linux distributions contain kernel headers/sources configured in different
way than its kernel binaries. In that case installation procedure described
above will fail or there will be errors while loading BestCrypt drivers.
In order to compile BestCrypt for Linux correctly and to prevent errors caused
by version conflict do following steps:

1. Get kernel sources. Moreover, make sure that versions of your kernel
binaries and sources are the same.

2. Install kernel sources properly. In order to check it, issue

# make mrproper

from the root of kernel source.

3. Configure kernel sources accordingly to your kernel binary, typing

# make config

or

# make nenuconfig

If you run *smp kernel make sure that Symmetric Multiprocessing is checked.

4. Issue

# make dep

from the root of kernel source

5. Install BestCrypt for Linux.

bdg1983
10-09-2001, 04:47 PM
Are you in the kernel source directory?

It's usually /usr/src/linux

So cd /usr/src/linux

make mrproper