Bestcrypt 1.5_p1 does not compile for me under kernel 2.6.4-rc1-mm2 (gentoo 2004.0). It complains a lot of times about: bc_dev22.c:177: error: dereferencing pointer to incomplete type and finishes with: make[1]: *** [bc_dev22.o] Error 1 make[1]: Leaving directory `/var/tmp/portage/bestcrypt-1.5_p1/work/bcrypt/mod' make: *** [subdirs] Error 2 (complete output in attachment) Reproducible: Always Steps to Reproduce: 1. ACCEPT_KEYWORDS="~x86" emerge bestcrypt 2. 3. Actual Results: Portage 2.0.50-r1 (default-x86-2004.0, gcc-3.3.2, glibc-2.3.2-r9, 2.6.4-rc1-mm2) ================================================================= System uname: 2.6.4-rc1-mm2 i686 Intel(R) Pentium(R) M processor 1500MHz Gentoo Base System version 1.4.3.13 Autoconf: sys-devel/autoconf-2.58 Automake: sys-devel/automake-1.7.7 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CFLAGS="-O2 -pipe -mcpu=i686 -march=i686 -fomit-frame-pointer" CHOST="i686-pc-linux-gnu" COMPILER="gcc3" CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.2/share/config /usr/kde/3/share/config /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d" CXXFLAGS="-O2 -pipe -mcpu=i686 -march=i686 -fomit-frame-pointer" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs ccache sandbox" GENTOO_MIRRORS="http://212.219.247.18/sites/www.ibiblio.org/gentoo/ http://212.219.247.15/sites/www.ibiblio.org/gentoo/ http://212.219.247.17/sites/www.ibiblio.org/gentoo/ http://212.219.247.10/sites/www.ibiblio.org/gentoo/" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="X aalib acpi alsa apm arts avi berkdb cdr crypt cups dvd dvdr encode evo fbcon flac foomaticdb gdbm gif gpm gtk2 imlib jpeg kde libg++ libwww lirc mad mikmod motif mozilla mpeg msn ncurses nls oggvorbis opengl oss pam pcmcia pdflib perl png python qt quicktime readline samba sdl slang spell ssl svga tcpd tetex tiff truetype unicode usb videos x x86 xml2 xmms xv yahoo zlib"
Created attachment 27100 [details] complete output of emerge attempt
*** Bug 44173 has been marked as a duplicate of this bug. ***
Same thing happens under 2.6.3 (gentoo-dev-sources)
I have made a patch to make it work again under 2.6.x Tomorrow i'll upload, now i cant access my box :( HINT Edit: the ebuild and whenever it says -e "s:-linuxyaddayaddayadda" replace with -e "s:-/usr/src/linuxyaddayaddayadda" (i cant remember the full line).
Thanks for your help Sebastian. It compiles properly with the changes you suggested. Unfortunately, now bctool complains of "kernel modules not loaded" (although lsmod shows that they are indeed loaded). I am starting bestcrypt as: /etc/init.d/bcrypt start before attempting to use bctool.
--- bestcrypt-1.5_p1.ebuild 2004-03-11 22:21:37.885031808 +0000 +++ bestcrypt-1.5_p1-r1.ebuild 2004-03-11 22:18:32.614197256 +0000 @@ -31,8 +31,8 @@ ewarn ${KV} for file in `find . -type f -iname Makefile*`;do sed -i -e "s:-O[0-9]:${CFLAGS}:" \ - -e 's%KVER =.*%KVER = $(shell readlink /usr/src/linux|sed -e "s:linux-\\([0-9]\\+\\.[0-9]\\+\\)\\..*:\\1:")%' \ - -e "s%uname -r%readlink /usr/src/linux|sed -e 's:linux-::'%" \ + -e 's%KVER =.*%KVER = $(shell readlink /usr/src/linux|sed -e "s:/usr/src/linux-\\([0-9]\\+\\.[0-9]\\+\\)\\..*:\\1:")%' \ + -e "s%uname -r%readlink /usr/src/linux|sed -e 's:/usr/src/linux-::'%" \ ${file} done
And about what you say, try running update-modules after installing bestcrypt. It worked for me.
*** Bug 44477 has been marked as a duplicate of this bug. ***
I did do modules-update after installing, and the modules are loaded: bash-2.05b# lsmod Module Size Used by bc_cast 19236 0 bc_rijn 34852 0 bc_idea 7076 0 bc_3des 16868 0 bc_bf128 11940 0 bc_bf448 12068 0 bc_twofish 19904 0 bc_gost 6820 0 bc_des 16484 0 bc_blowfish 11940 0 bc 16196 10 bc_cast,bc_rijn,bc_idea,bc_3des,bc_bf128,bc_bf448,bc_twofish,bc_gost,bc_des,bc_blowfish but still: bash-2.05b# bctool Kernel modules not loaded
I just emerged bestcrypt 1.5_p2 under gentoo-dev-sources-2.6.5-r1 and it compiles properly. However, the problem I mentioned above remains: although a /etc/init.d/bcrypt start seems to load the modules properly (and I can see them in lsmod), bctool always complains of : kernel modules not loaded :o(
*sigh* same thing with gentoo-dev-sources 2.6.7-r8, on a different machine, with a clean install of gentoo. "Kernel modules not loaded" although they are. Since this is never going to get looked into, what is a kernel version that works so that at least I can retrieve my data from the containers and move it elsewhere? It's been months...
bestcrypt-1.5_p5 is out! Try it...or else download bestcrypt from jetico.com and install it by hand...
# BestCrypt for Linux v1.5-6 1. Incorrect container capacity fixed. Important! If you are running 2.6.x kernel, please backup data from your containers before installing BestCrypt v1.5-6. After installation please reformat your containers. 2. x86_64 architecture support. 3. Data flush before container unlinking added
Sorry I should have mentioned that this was with Bestcrypt 1.5_p5.
Try the bcrypt init file which is supplied from the archieve and not the one installed via the ebuild, that fixes the problem for me.
Try a newer version, and reopen if it still doesn't work... Specifically the 1.5_p7 version I'm about to commit.