View previous topic :: View next topic |
Author |
Message |
isaak n00b
Joined: 29 Sep 2002 Posts: 38 Location: Västervik, Sweden
|
Posted: Fri Jan 23, 2004 7:05 pm Post subject: Bestcrypt 1.5_p1 fails |
|
|
I got a problem while compiling Bestcrypt, is this a kernel matter?
Why doesn't 2.4.22-gentoo-r5 install the correct modversions.h in the correct place?
Code: |
opiate linux # uname -a
Linux opiate 2.4.22-gentoo-r5 #2 SMP Fri Jan 23 17:09:37 CET 2004 i686 AMD Athlon(TM) XP 2100+ AuthenticAMD GNU/Linux
|
Code: |
opiate linux # emerge bestcrypt -v
Calculating dependencies ...done!
>>> emerge (1 of 1) app-crypt/bestcrypt-1.5_p1 to /
>>> md5 src_uri ;-) BestCrypt-1.5-1.tar.gz
>>> Unpacking source...
>>> Unpacking BestCrypt-1.5-1.tar.gz to /var/tmp/portage/bestcrypt-1.5_p1/work
>>> Source unpacked.
set -e; for i in kgsha src mod; do make -C $i CC=gcc CPP=g++ ; done
make[1]: Entering directory `/var/tmp/portage/bestcrypt-1.5_p1/work/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.cpp
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.cpp
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.cpp
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 `/var/tmp/portage/bestcrypt-1.5_p1/work/bcrypt/kgsha'
make[1]: Entering directory `/var/tmp/portage/bestcrypt-1.5_p1/work/bcrypt/src'
gcc -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -L../lib -I../include/ -Wall -O2 -march=athlon-xp -pipe -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 -march=athlon-xp -pipe -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 -march=athlon-xp -pipe -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 -march=athlon-xp -pipe -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 -march=athlon-xp -pipe -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 -march=athlon-xp -pipe -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 -march=athlon-xp -pipe -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 -march=athlon-xp -pipe -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 -march=athlon-xp -pipe -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 -march=athlon-xp -pipe -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 -march=athlon-xp -pipe -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 -march=athlon-xp -pipe -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 -march=athlon-xp -pipe -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 -march=athlon-xp -pipe -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 -march=athlon-xp -pipe -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 `/var/tmp/portage/bestcrypt-1.5_p1/work/bcrypt/src'
make[1]: Entering directory `/var/tmp/portage/bestcrypt-1.5_p1/work/bcrypt/mod'
gcc -I/include -o mkver mkver.c
touch bc_dev.ver ;
gcc -I/include/ -E -I../include -D__GENKSYMS__ | /sbin/genksyms -p smp_ -k 2.4.19 > bc_dev.ver
gcc: no input files
gcc -c -D__KERNEL__ -DMODULE -I/var/tmp/portage/bestcrypt-1.5_p1/work/bcrypt/mod/../include/ -I/include/ -O2 -march=athlon-xp -pipe -fno-strength-reduce -fno-strict-aliasing -c -o bc_dev22.o bc_dev22.c
In file included from bc_dev22.c:35:
bc_cfg.h:45:35: linux/modversions.h: No such file or directory
In file included from bc_dev22.c:49:
-- snip --
!!! ERROR: app-crypt/bestcrypt-1.5_p1 failed.
!!! Function src_compile, Line 41, Exitcode 2
!!! (no error message)
|
Thanks in advance!
/Isak |
|
Back to top |
|
|
obsidian n00b
Joined: 14 Jul 2002 Posts: 12 Location: Germany
|
Posted: Thu Feb 26, 2004 9:31 am Post subject: |
|
|
Hi,
I don't know about your modversions file, it should be there. But the bestcrypt Makefile makes some assumptions about kernel versions, and it detects your kernel as version 2.2 (bc_dev22.c). Change to the working directory of the aborted build process, which should be /var/tmp/portage/bestcrypt-1.5/work/bestcrypt or something like that, and edit the Makefile in the modules subdirectory to exclude bc_dev22.c and bc_dev26.c. This did the trick for me.
Sorry this is a bit vague, I don't have the stuff in front of me right now. If it doesn't work I can send you my modified Makefile.
Cheers. |
|
Back to top |
|
|
isaak n00b
Joined: 29 Sep 2002 Posts: 38 Location: Västervik, Sweden
|
Posted: Fri Feb 27, 2004 12:44 am Post subject: |
|
|
Thanks for answering..
but I changed my linking in /usr/src and that did the trick
cheers!
/isak |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|