Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 44150 - bestcrypt-1.5_p1 doesn't compile under 2.6.4-rc1-mm2
Summary: bestcrypt-1.5_p1 doesn't compile under 2.6.4-rc1-mm2
Status: RESOLVED TEST-REQUEST
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High major (vote)
Assignee: Brandon Low (RETIRED)
URL:
Whiteboard:
Keywords:
: 44173 44477 (view as bug list)
Depends on:
Blocks:
 
Reported: 2004-03-09 09:08 UTC by Diego Chantrain
Modified: 2004-10-07 10:08 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
complete output of emerge attempt (bestcrypt-emergeoutput.txt,16.33 KB, text/plain)
2004-03-09 09:08 UTC, Diego Chantrain
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Diego Chantrain 2004-03-09 09:08:01 UTC
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"
Comment 1 Diego Chantrain 2004-03-09 09:08:36 UTC
Created attachment 27100 [details]
complete output of emerge attempt
Comment 2 Seemant Kulleen (RETIRED) gentoo-dev 2004-03-09 13:32:16 UTC
*** Bug 44173 has been marked as a duplicate of this bug. ***
Comment 3 Diego Chantrain 2004-03-11 08:20:29 UTC
Same thing happens under 2.6.3 (gentoo-dev-sources)
Comment 4 Sebastian B. Otaegui 2004-03-11 17:55:51 UTC
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).
Comment 5 Diego Chantrain 2004-03-12 08:36:11 UTC
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.
Comment 6 Sebastian B. Otaegui 2004-03-12 09:40:39 UTC
--- 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
Comment 7 Sebastian B. Otaegui 2004-03-12 10:24:21 UTC
And about what you say, try running update-modules after installing bestcrypt.
It worked for me.
Comment 8 Tim Yamin (RETIRED) gentoo-dev 2004-03-12 13:01:22 UTC
*** Bug 44477 has been marked as a duplicate of this bug. ***
Comment 9 Diego Chantrain 2004-03-13 04:50:55 UTC
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
Comment 10 Diego Chantrain 2004-04-19 05:37:59 UTC
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(
Comment 11 Diego Chantrain 2004-07-06 01:48:49 UTC
*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...
Comment 12 Stefan Behte (RETIRED) gentoo-dev Security 2004-07-06 08:51:42 UTC
bestcrypt-1.5_p5 is out!
Try it...or else download bestcrypt from jetico.com and install it by hand...
Comment 13 Sebastian B. Otaegui 2004-07-06 12:33:19 UTC
# 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
Comment 14 Diego Chantrain 2004-07-06 19:16:52 UTC
Sorry I should have mentioned that this was with Bestcrypt 1.5_p5.
Comment 15 Carl Bach 2004-08-07 03:28:45 UTC
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.
Comment 16 Brandon Low (RETIRED) gentoo-dev 2004-10-07 10:08:07 UTC
Try a newer version, and reopen if it still doesn't work... Specifically the 1.5_p7 version I'm about to commit.