BestCrypt installation problem (Rebuild fails)
I've been trying without success to install BestCrypt for Linux under SuSE 8.2.
This involves rebuilding from a .src.rpm file (BestCrypt-1.2-6.src.rpm). After ensuring that kernel-source is installed and running 'make mrproper' (+ 'make dep') in /usr/src/linux, I attempt to install but find that the required rebuild fails. Can anyone advise me re what might be wrong? The following shows the complete console text -- my apologies for length, but I thought it best to post the whole thing -- which appears when I execute the relevant rebuild command (in the directory containing the .src.rpm file):-- linux:~ # cd bestcrypt linux:~/bestcrypt # rpm --rebuild BestCrypt-1.2-6.src.rpm Installing BestCrypt-1.2-6.src.rpm Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.46414 + umask 022 + cd /usr/src/packages/BUILD + cd /usr/src/packages/BUILD + rm -rf bcrypt + /bin/gzip -dc /usr/src/packages/SOURCES/bcrypt-1.2-6.tar.gz + tar -xvvf - drwxr-xr-x root/root 0 2003-08-29 14:41:08 bcrypt/ drwxr-xr-x root/root 0 2003-08-29 14:41:07 bcrypt/bin/ -rw-r--r-- root/root 2 2002-01-14 12:57:07 bcrypt/bin/.cvsignore drwxr-xr-x root/root 0 2003-08-29 14:41:07 bcrypt/etc/ -rw-r--r-- root/root 333 2002-01-04 10:32:03 bcrypt/etc/bc.conf -rwxr-xr-x root/root 2790 2002-10-29 09:11:45 bcrypt/etc/bcrypt -rw-r--r-- root/root 22 2002-01-14 12:57:07 bcrypt/.cvsignore -rw-r--r-- root/root 7012 2002-01-17 07:50:46 bcrypt/HIDDEN_PART -rw-r--r-- root/root 4603 2002-01-15 08:07:44 bcrypt/LICENSE -rw-r--r-- root/root 2875 2002-11-18 08:15:38 bcrypt/Makefile -rw-r--r-- root/root 3768 2002-11-14 06:34:39 bcrypt/README -rw-r--r-- root/root 2273 2003-08-29 16:45:26 bcrypt/bcrypt.spec -rwxr-xr-x root/root 220 2002-11-10 14:29:04 bcrypt/init_path -rwxr-xr-x root/root 169 2002-10-29 09:11:45 bcrypt/man_path -rwxr-xr-x root/root 768 2002-10-29 09:11:45 bcrypt/mod_path -rwxr-xr-x root/root 156 2002-10-29 09:11:45 bcrypt/rc_path -rwxr-xr-x root/root 1655 2002-10-29 09:11:45 bcrypt/uninstall.sh drwxr-xr-x root/root 0 2003-08-29 14:41:07 bcrypt/include/ -rw-r--r-- root/root 42 2002-02-01 08:00:56 bcrypt/include/.cvsignore -rw-r--r-- root/root 4345 2002-10-29 09:11:45 bcrypt/include/bc_ioctl.h -rw-r--r-- root/root 1275 2002-10-29 09:11:45 bcrypt/include/bc_types.h drwxr-xr-x root/root 0 2003-08-29 14:41:07 bcrypt/kgsha/ -rw-r--r-- root/root 10 2002-01-14 12:57:07 bcrypt/kgsha/.cvsignore -rw-r--r-- root/root 997 2002-10-29 09:11:45 bcrypt/kgsha/Makefile -rw-r--r-- root/root 9052 2002-10-29 09:11:45 bcrypt/kgsha/alg.cpp -rw-r--r-- root/root 2395 2002-10-29 09:11:45 bcrypt/kgsha/alg.h -rw-r--r-- root/root 49833 2002-10-29 09:11:45 bcrypt/kgsha/kblock.cpp -rw-r--r-- root/root 7844 2002-10-29 09:11:46 bcrypt/kgsha/kblock.h -rw-r--r-- root/root 3365 2002-10-29 09:11:46 bcrypt/kgsha/kg_defs.h -rw-r--r-- root/root 1775 2002-10-29 09:11:46 bcrypt/kgsha/kg_misc.cpp -rw-r--r-- root/root 740 2002-10-29 09:11:46 bcrypt/kgsha/kg_misc.h -rw-r--r-- root/root 36446 2002-10-29 09:11:46 bcrypt/kgsha/kgsha.cpp -rw-r--r-- root/root 2076 2002-10-29 09:11:46 bcrypt/kgsha/kgsha.h -rw-r--r-- root/root 2345 2002-10-29 09:11:46 bcrypt/kgsha/pwldlg.cpp -rw-r--r-- root/root 1048 2002-10-29 09:11:46 bcrypt/kgsha/pwldlg.h -rw-r--r-- root/root 4324 2002-10-29 09:11:46 bcrypt/kgsha/random.cpp -rw-r--r-- root/root 4297 2002-10-29 09:11:46 bcrypt/kgsha/random.h -rw-r--r-- root/root 16551 2002-10-29 09:11:46 bcrypt/kgsha/sha1.cpp -rw-r--r-- root/root 1639 2002-10-29 09:11:46 bcrypt/kgsha/sha1.h -rw-r--r-- root/root 324 2002-10-29 09:11:46 bcrypt/kgsha/version.h drwxr-xr-x root/root 0 2003-08-29 14:41:07 bcrypt/lib/ -rw-r--r-- root/root 2 2002-01-15 08:01:19 bcrypt/lib/.cvsignore drwxr-xr-x root/root 0 2003-08-29 14:41:07 bcrypt/man/ -rw-r--r-- root/root 6900 2002-11-13 06:51:04 bcrypt/man/bctool.8 drwxr-xr-x root/root 0 2003-08-29 14:41:08 bcrypt/mod/ drwxr-xr-x root/root 0 2003-08-29 14:41:07 bcrypt/mod/3des/ -rw-r--r-- root/root 143 2002-01-10 10:40:15 bcrypt/mod/3des/Makefile -rw-r--r-- root/root 3198 2002-10-29 09:11:46 bcrypt/mod/3des/3des.c -rw-r--r-- root/root 1496 2002-01-10 10:40:15 bcrypt/mod/3des/bc_3des.h -rw-r--r-- root/root 11239 2002-10-29 09:11:46 bcrypt/mod/3des/bc_des.c -rw-r--r-- root/root 862 2002-01-10 10:40:15 bcrypt/mod/3des/bc_des.h -rw-r--r-- root/root 13071 2002-01-10 10:40:15 bcrypt/mod/3des/des_tbl.h drwxr-xr-x root/root 0 2003-08-29 14:41:07 bcrypt/mod/cast/ -rw-r--r-- root/root 117 2002-01-10 10:40:52 bcrypt/mod/cast/Makefile -rw-r--r-- root/root 2573 2002-01-10 10:40:52 bcrypt/mod/cast/bc_cast.h -rw-r--r-- root/root 25179 2002-01-10 10:40:52 bcrypt/mod/cast/bc_casti.h -rw-r--r-- root/root 15535 2003-05-22 07:39:07 bcrypt/mod/cast/cast.c -rw-r--r-- root/root 17 2002-01-14 12:57:07 bcrypt/mod/.cvsignore -rw-r--r-- root/root 2600 2003-05-22 07:39:07 bcrypt/mod/Makefile -rw-r--r-- root/root 1550 2002-10-17 13:13:29 bcrypt/mod/Makefile.alg -rw-r--r-- root/root 651 2002-01-10 10:36:27 bcrypt/mod/README -rw-r--r-- root/root 6084 2002-10-29 09:11:46 bcrypt/mod/bc_alg.c -rw-r--r-- root/root 1038 2002-10-17 14:04:01 bcrypt/mod/bc_cfg.h -rw-r--r-- root/root 1050 2002-10-29 09:11:46 bcrypt/mod/bc_dev.c -rw-r--r-- root/root 2368 2002-03-28 14:46:32 bcrypt/mod/bc_dev.h -rw-r--r-- root/root 34526 2003-04-08 14:43:56 bcrypt/mod/bc_dev22.c -rw-r--r-- root/root 36240 2003-04-23 08:55:05 bcrypt/mod/bc_dev24.c -rw-r--r-- root/root 3879 2002-10-29 09:11:46 bcrypt/mod/bc_mgr.c -rw-r--r-- root/root 1350 2002-01-10 10:36:27 bcrypt/mod/bc_mgr.h -rw-r--r-- root/root 440 2002-10-29 09:11:46 bcrypt/mod/mkver.c -rw-r--r-- root/root 146 2002-11-04 09:59:32 bcrypt/mod/test_nice.c drwxr-xr-x root/root 0 2003-08-29 14:41:07 bcrypt/mod/bf128/ -rw-r--r-- root/root 109 2002-01-10 10:41:07 bcrypt/mod/bf128/Makefile -rw-r--r-- root/root 1632 2002-01-10 10:41:07 bcrypt/mod/bf128/bc_bf128.h -rw-r--r-- root/root 18259 2002-10-29 09:11:46 bcrypt/mod/bf128/bf128.c drwxr-xr-x root/root 0 2003-08-29 14:41:07 bcrypt/mod/bf448/ -rw-r--r-- root/root 110 2002-01-10 10:41:18 bcrypt/mod/bf448/Makefile -rw-r--r-- root/root 1608 2002-01-10 10:41:18 bcrypt/mod/bf448/bc_bf448.h -rw-r--r-- root/root 18283 2002-10-29 09:11:46 bcrypt/mod/bf448/bf448.c drwxr-xr-x root/root 0 2003-08-29 14:41:07 bcrypt/mod/blowfish/ -rw-r--r-- root/root 116 2002-01-10 10:41:29 bcrypt/mod/blowfish/Makefile -rw-r--r-- root/root 1540 2002-01-10 10:41:29 bcrypt/mod/blowfish/bc_bfish. h -rw-r--r-- root/root 18566 2002-10-29 09:11:46 bcrypt/mod/blowfish/blowfish. c drwxr-xr-x root/root 0 2003-08-29 14:41:07 bcrypt/mod/des/ -rw-r--r-- root/root 111 2002-01-10 10:40:29 bcrypt/mod/des/Makefile -rw-r--r-- root/root 867 2002-01-10 10:40:29 bcrypt/mod/des/bc_des.h -rw-r--r-- root/root 12369 2002-10-29 09:11:46 bcrypt/mod/des/des.c -rw-r--r-- root/root 12788 2002-01-10 10:40:29 bcrypt/mod/des/des_tbl.h drwxr-xr-x root/root 0 2003-08-29 14:41:07 bcrypt/mod/dummy/ -rw-r--r-- root/root 0 2002-10-17 13:14:47 bcrypt/mod/dummy/BDK_EXAMPLE -rw-r--r-- root/root 362 2002-10-17 13:14:47 bcrypt/mod/dummy/Makefile -rw-r--r-- root/root 731 2002-10-17 13:14:47 bcrypt/mod/dummy/bc_dummy.h -rw-r--r-- root/root 1321 2002-10-17 13:14:47 bcrypt/mod/dummy/dummy.c -rw-r--r-- root/root 347 2002-10-17 13:14:47 bcrypt/mod/dummy/readme.txt drwxr-xr-x root/root 0 2003-08-29 14:41:08 bcrypt/mod/gost/ -rw-r--r-- root/root 104 2002-01-10 10:45:11 bcrypt/mod/gost/Makefile -rw-r--r-- root/root 800 2002-01-10 10:45:11 bcrypt/mod/gost/bc_gost.h -rw-r--r-- root/root 10726 2002-10-29 09:11:46 bcrypt/mod/gost/gost.c drwxr-xr-x root/root 0 2003-08-29 14:41:08 bcrypt/mod/idea/ -rw-r--r-- root/root 104 2002-01-10 10:45:25 bcrypt/mod/idea/Makefile -rw-r--r-- root/root 1791 2002-01-10 10:45:25 bcrypt/mod/idea/bc_idea.h -rw-r--r-- root/root 9377 2002-10-29 09:11:46 bcrypt/mod/idea/idea.c drwxr-xr-x root/root 0 2003-08-29 14:41:08 bcrypt/mod/rijn/ -rw-r--r-- root/root 132 2002-01-16 12:53:56 bcrypt/mod/rijn/Makefile -rw-r--r-- root/root 32738 2002-10-29 09:11:46 bcrypt/mod/rijn/aes.c -rw-r--r-- root/root 13059 2002-01-10 10:41:46 bcrypt/mod/rijn/aes.h -rw-r--r-- root/root 23040 2002-01-10 10:41:46 bcrypt/mod/rijn/aes_tab.h -rw-r--r-- root/root 2663 2002-01-10 10:41:46 bcrypt/mod/rijn/bc_rijn.h -rw-r--r-- root/root 4505 2002-10-29 09:11:46 bcrypt/mod/rijn/rijn.c drwxr-xr-x root/root 0 2003-08-29 14:41:08 bcrypt/mod/twofish/ -rw-r--r-- root/root 121 2002-01-10 10:41:58 bcrypt/mod/twofish/Makefile -rw-r--r-- root/root 2573 2002-01-10 10:41:58 bcrypt/mod/twofish/bc_tfish.h -rw-r--r-- root/root 9374 2002-01-10 10:41:58 bcrypt/mod/twofish/table.h -rw-r--r-- root/root 17501 2002-10-29 09:11:46 bcrypt/mod/twofish/twofish.c drwxr-xr-x root/root 0 2003-08-29 14:41:08 bcrypt/src/ -rw-r--r-- root/root 40 2002-01-14 12:57:07 bcrypt/src/.cvsignore -rw-r--r-- root/root 1088 2003-05-22 07:40:33 bcrypt/src/Makefile -rw-r--r-- root/root 10834 2002-10-29 09:11:31 bcrypt/src/alg.c -rw-r--r-- root/root 2395 2002-10-29 09:11:31 bcrypt/src/alg.h -rw-r--r-- root/root 12442 2003-05-22 07:39:07 bcrypt/src/bccreate.c -rw-r--r-- root/root 5226 2003-08-29 16:32:12 bcrypt/src/bcformat.c -rw-r--r-- root/root 4882 2002-10-29 09:11:31 bcrypt/src/bcfsck.c -rw-r--r-- root/root 1821 2002-10-29 09:11:31 bcrypt/src/bcinfo.c -rw-r--r-- root/root 7536 2002-10-29 09:11:31 bcrypt/src/bclink.c -rw-r--r-- root/root 15173 2003-08-29 16:21:29 bcrypt/src/bcmount.c -rw-r--r-- root/root 10261 2002-11-05 13:17:17 bcrypt/src/bcpasswd.c -rw-r--r-- root/root 19671 2003-05-22 07:39:07 bcrypt/src/bcreencrypt.c -rw-r--r-- root/root 7006 2003-04-08 06:48:22 bcrypt/src/bctool.c -rw-r--r-- root/root 1104 2003-04-10 06:30:47 bcrypt/src/bctool.h -rw-r--r-- root/root 1669 2002-10-29 09:11:31 bcrypt/src/bcunlock.c -rw-r--r-- root/root 4834 2002-10-29 09:11:31 bcrypt/src/config.c -rw-r--r-- root/root 1101 2002-10-29 09:11:31 bcrypt/src/config.h -rw-r--r-- root/root 3576 2002-10-29 09:11:31 bcrypt/src/error.c -rw-r--r-- root/root 496 2002-10-29 09:11:31 bcrypt/src/error.h -rw-r--r-- root/root 861 2003-05-14 11:13:25 bcrypt/src/fstypes.h -rw-r--r-- root/root 2108 2002-10-29 09:11:31 bcrypt/src/header.h -rw-r--r-- root/root 9802 2003-04-11 14:32:05 bcrypt/src/misc.c -rw-r--r-- root/root 1253 2003-04-10 06:32:26 bcrypt/src/misc.h -rw-r--r-- root/root 154 2002-11-13 06:50:20 bcrypt/src/version.h + STATUS=0 + '[' 0 -ne 0 ']' + cd bcrypt ++ /usr/bin/id -u + '[' 0 = 0 ']' + /bin/chown -Rhf root . ++ /usr/bin/id -u + '[' 0 = 0 ']' + /bin/chgrp -Rhf root . + /bin/chmod -Rf a+rX,g-w,o-w . + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.3967 + umask 022 + cd /usr/src/packages/BUILD + cd bcrypt + make set -e; for i in kgsha src mod; do make -C $i CC=gcc CPP=g++ ; done make[1]: Entering directory `/usr/src/packages/BUILD/bcrypt/kgsha' g++ -Wall -Werror -fno-strength-reduce -I../include -g -c -o alg.o alg.cpp g++ -Wall -Werror -fno-strength-reduce -I../include -g -c -o kblock.o kblock.cp p g++ -Wall -Werror -fno-strength-reduce -I../include -g -c -o kg_misc.o kg_misc. cpp g++ -Wall -Werror -fno-strength-reduce -I../include -g -c -o kgsha.o kgsha.cpp g++ -Wall -Werror -fno-strength-reduce -I../include -g -c -o pwldlg.o pwldlg.cp p g++ -Wall -Werror -fno-strength-reduce -I../include -g -c -o sha1.o sha1.cpp g++ -Wall -Werror -fno-strength-reduce -I../include -g -c -o random.o random.cp p ar -rcsv libkgsha.a alg.o kblock.o kg_misc.o kgsha.o pwldlg.o sha1.o random.o a - alg.o a - kblock.o a - kg_misc.o a - kgsha.o a - pwldlg.o a - sha1.o a - random.o cp -f libkgsha.a ../lib cp -f kg_defs.h kgsha.h kblock.h sha1.h random.h ../include make[1]: Leaving directory `/usr/src/packages/BUILD/bcrypt/kgsha' make[1]: Entering directory `/usr/src/packages/BUILD/bcrypt/src' gcc -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -L../lib - I../include/ -Wall -O2 -fno-strict-aliasing -c -o bctool.o bctool.c gcc -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -L../lib - I../include/ -Wall -O2 -fno-strict-aliasing -c -o alg.o alg.c gcc -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -L../lib - I../include/ -Wall -O2 -fno-strict-aliasing -c -o config.o config.c gcc -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -L../lib - I../include/ -Wall -O2 -fno-strict-aliasing -c -o error.o error.c gcc -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -L../lib - I../include/ -Wall -O2 -fno-strict-aliasing -c -o misc.o misc.c gcc -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -L../lib - I../include/ -Wall -O2 -fno-strict-aliasing -c -o bcmount.o bcmount.c gcc -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -L../lib - I../include/ -Wall -O2 -fno-strict-aliasing -c -o bcpasswd.o bcpasswd.c gcc -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -L../lib - I../include/ -Wall -O2 -fno-strict-aliasing -c -o bcinfo.o bcinfo.c gcc -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -L../lib - I../include/ -Wall -O2 -fno-strict-aliasing -c -o bccreate.o bccreate.c gcc -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -L../lib - I../include/ -Wall -O2 -fno-strict-aliasing -c -o bcformat.o bcformat.c gcc -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -L../lib - I../include/ -Wall -O2 -fno-strict-aliasing -c -o bcreencrypt.o bcreencrypt.c gcc -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -L../lib - I../include/ -Wall -O2 -fno-strict-aliasing -c -o bcfsck.o bcfsck.c gcc -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -L../lib - I../include/ -Wall -O2 -fno-strict-aliasing -c -o bclink.o bclink.c gcc -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -L../lib - I../include/ -Wall -O2 -fno-strict-aliasing -c -o bcunlock.o bcunlock.c g++ -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -L../lib - I../include/ -Wall -O2 -fno-strict-aliasing -o bctool bctool.o alg.o config.o error.o misc.o bcmount.o bcpasswd.o bcinfo.o bccreate.o bcformat.o bcreencrypt. o bcfsck.o bclink.o bcunlock.o -lkgsha cp -f bctool ../bin/ make[1]: Leaving directory `/usr/src/packages/BUILD/bcrypt/src' make[1]: Entering directory `/usr/src/packages/BUILD/bcrypt/mod' gcc -I/lib/modules/2.4.20-4GB/build/include -o mkver mkver.c touch bc_dev.ver ; gcc -I/lib/modules/2.4.20-4GB/build/include/ -E bc_dev.c -I../include -D__GENKSY MS__ | /sbin/genksyms -k 2.4.20 > bc_dev.ver gcc -c -D__KERNEL__ -DMODULE -I/usr/src/packages/BUILD/bcrypt/mod/../include/ -I /lib/modules/2.4.20-4GB/build/include/ -O6 -Wall -fno-strength-reduce -fno-stric t-aliasing -c -o bc_dev.o bc_dev.c In file included from bc_dev24.c:40, from bc_dev.c:31: /lib/modules/2.4.20-4GB/build/include/linux/module.h:21:34: linux/modversions.h: No such file or directory In file included from bc_dev24.c:44, from bc_dev.c:31: /lib/modules/2.4.20-4GB/build/include/linux/file.h: In function `fcheck_files': /lib/modules/2.4.20-4GB/build/include/linux/file.h:37: warning: comparison betwe en signed and unsigned /lib/modules/2.4.20-4GB/build/include/linux/file.h: In function `fcheck': /lib/modules/2.4.20-4GB/build/include/linux/file.h:50: warning: comparison betwe en signed and unsigned /lib/modules/2.4.20-4GB/build/include/linux/file.h: In function `__put_unused_fd ': /lib/modules/2.4.20-4GB/build/include/linux/file.h:62: warning: comparison betwe en signed and unsigned In file included from /lib/modules/2.4.20-4GB/build/include/linux/blk.h:4, from bc_dev24.c:55, from bc_dev.c:31: /lib/modules/2.4.20-4GB/build/include/linux/blkdev.h: In function `blk_queue_bou nce': /lib/modules/2.4.20-4GB/build/include/linux/blkdev.h:212: warning: comparison be tween signed and unsigned /lib/modules/2.4.20-4GB/build/include/linux/blkdev.h: In function `blk_finished_ io': /lib/modules/2.4.20-4GB/build/include/linux/blkdev.h:348: warning: comparison be tween signed and unsigned make[1]: *** [bc_dev.o] Error 1 make[1]: Leaving directory `/usr/src/packages/BUILD/bcrypt/mod' make: *** [subdirs] Error 2 Bad exit status from /var/tmp/rpm-tmp.3967 (%build) linux:~/bestcrypt # |
You're using "/lib/modules/2.4.20-4GB/build" as kernel include dir.
The build dir is a symlink to something like /usr/src/linux which should be a symlink to something like /usr/src/linux-2.4.20-4GB. Is there a file called modversions.h in the /usr/src/linux-2.4.20-4GB/include/linux dir? Else if the symlinks don't represent the kernel source dir you're building Bestcrypt for, change 'em. |
All times are GMT -5. The time now is 05:02 AM. |