When trying to rebuild BestCrypt with
rpmbuild --rebuild BestCrypt-1.5-5.src.rpm
on SuSE 9.1 I'm getting the following errors:
gcc -c -D__KERNEL__ -DMODULE -I/lib/modules/2.6.5-7.75-default/build/include/asm/mach-default/ -DKBUILD_BASENAME=BestCrypt -I/usr/src/packages/BUILD/bcrypt/mod/../include/ -I/lib/modules/2.6.5-7.75-default/build/include/ -O6 -fno-strength-reduce -fno-strict-aliasing -c -o bc_dev26.o bc_dev26.c
In file included from bc_dev26.c:26:
bc_cfg.h:30:4: #error You must have kernel with loadable modules support
In file included from /usr/include/linux/module.h:20,
/usr/include/asm/module.h:56:2: #error unknown processor family
In file included from bc_dev26.c:28:
/usr/include/linux/module.h:488: error: variable `__this_module' has initializer but incomplete type
/usr/include/linux/module.h:489: error: unknown field `name' specified in initializer
/usr/include/linux/module.h:490: error: unknown field `init' specified in initializer
In file included from /usr/include/linux/mm.h:206,
/usr/include/linux/page-flags.h:119: error: `CONFIG_X86_L1_CACHE_SHIFT' undeclared here (not in a function)
/usr/include/linux/page-flags.h:119: error: requested alignment is not a constant
bc_dev26.c:1215: error: parse error before "MODULE_PROC_FAMILY"
/usr/include/linux/module.h:488: error: storage size of `__this_module' isn't known
make: *** [bc_dev26.o] Error 1
make: Leaving directory `/usr/src/packages/BUILD/bcrypt/mod'
make: *** [subdirs] Error 2
error: Bad exit status from /var/tmp/rpm-tmp.17023 (%build)
RPM build errors:
Bad exit status from /var/tmp/rpm-tmp.17023 (%build)
OK, so I suppose it fails because my kernel doesn't have loadable modules support.
But I'm quite sure that the standard SuSE 9.1 kernel _has_ support for that, so what am I supposed to do to get this working?
As the Jetico site proposes, I tried to run
make mrproper && make dep in /usr/src/linux; I also tried it with make cloneconfig && make dep, but this didn't change a thing.
As I have no experience with kernel compiling, I'd be grateful for some hints!
Thanks a lot in advance!