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 -O3 -mcpu=athlon -funroll-loops -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 -O3 -mcpu=athlon -funroll-loops -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 -O3 -mcpu=athlon -funroll-loops -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 -O3 -mcpu=athlon -funroll-loops -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 -O3 -mcpu=athlon -funroll-loops -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 -O3 -mcpu=athlon -funroll-loops -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 -O3 -mcpu=athlon -funroll-loops -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 -O3 -mcpu=athlon -funroll-loops -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 -O3 -mcpu=athlon -funroll-loops -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 -O3 -mcpu=athlon -funroll-loops -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 -O3 -mcpu=athlon -funroll-loops -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 -O3 -mcpu=athlon -funroll-loops -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 -O3 -mcpu=athlon -funroll-loops -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 -O3 -mcpu=athlon -funroll-loops -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 -O3 -mcpu=athlon -funroll-loops -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/ -O3 -mcpu=athlon -funroll-loops -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: bc_dev.h:58: error: syntax error before "devfs_handle_t" bc_dev.h:58: warning: no semicolon at end of struct or union bc_dev.h:80: error: syntax error before '}' token bc_dev22.c:82: error: `BC_BUFFERS' undeclared here (not in a function) bc_dev22.c:116: error: `block_fsync' undeclared here (not in a function) bc_dev22.c:116: error: initializer element is not constant bc_dev22.c:116: error: (near initialization for `save_fops.fsync') bc_dev22.c:118: error: conflicting declarations of `bc_fops' bc_dev.h:68: error: `bc_fops' previously declared here bc_dev22.c:118: warning: `bc_fops' was declared `extern' and later `static' bc_dev22.c:125: error: `block_fsync' undeclared here (not in a function) bc_dev22.c:125: error: initializer element is not constant bc_dev22.c:125: error: (near initialization for `bc_fops.fsync') bc_dev22.c: In function `get_bcdev': bc_dev22.c:146: error: invalid use of undefined type `struct bc_device' bc_dev22.c: In function `reset_dev': bc_dev22.c:177: error: dereferencing pointer to incomplete type bc_dev22.c:178: error: dereferencing pointer to incomplete type bc_dev22.c:179: error: dereferencing pointer to incomplete type bc_dev22.c:180: error: dereferencing pointer to incomplete type bc_dev22.c:181: error: dereferencing pointer to incomplete type bc_dev22.c:182: error: dereferencing pointer to incomplete type bc_dev22.c:183: error: dereferencing pointer to incomplete type bc_dev22.c:184: error: dereferencing pointer to incomplete type bc_dev22.c:184: error: dereferencing pointer to incomplete type bc_dev22.c:184: error: dereferencing pointer to incomplete type bc_dev22.c:184: error: dereferencing pointer to incomplete type bc_dev22.c:184: error: dereferencing pointer to incomplete type bc_dev22.c:184: error: dereferencing pointer to incomplete type bc_dev22.c:184: error: dereferencing pointer to incomplete type bc_dev22.c:184: error: dereferencing pointer to incomplete type bc_dev22.c:184: error: dereferencing pointer to incomplete type bc_dev22.c:184: error: dereferencing pointer to incomplete type bc_dev22.c:186: error: dereferencing pointer to incomplete type bc_dev22.c: In function `grab_requests': bc_dev22.c:329: error: structure has no member named `next' bc_dev22.c:330: error: structure has no member named `next' bc_dev22.c:334: error: structure has no member named `next' bc_dev22.c:336: error: structure has no member named `next' bc_dev22.c:336: error: structure has no member named `next' bc_dev22.c:337: error: structure has no member named `next' bc_dev22.c:340: error: structure has no member named `next' bc_dev22.c:343: error: structure has no member named `next' bc_dev22.c:345: error: structure has no member named `next' bc_dev22.c: In function `bc_request': bc_dev22.c:369: error: structure has no member named `next' bc_dev22.c:373: error: dereferencing pointer to incomplete type bc_dev22.c:373: error: dereferencing pointer to incomplete type bc_dev22.c:377: error: dereferencing pointer to incomplete type bc_dev22.c:378: error: dereferencing pointer to incomplete type bc_dev22.c:386: error: dereferencing pointer to incomplete type bc_dev22.c:396: error: dereferencing pointer to incomplete type bc_dev22.c:402: error: dereferencing pointer to incomplete type bc_dev22.c:417: error: dereferencing pointer to incomplete type bc_dev22.c:419: error: dereferencing pointer to incomplete type bc_dev22.c:419: error: dereferencing pointer to incomplete type bc_dev22.c:421: error: dereferencing pointer to incomplete type bc_dev22.c:421: error: dereferencing pointer to incomplete type bc_dev22.c:424: error: `BC_BUFFERS' undeclared (first use in this function) bc_dev22.c:424: error: (Each undeclared identifier is reported only once bc_dev22.c:424: error: for each function it appears in.) bc_dev22.c:439: error: dereferencing pointer to incomplete type bc_dev22.c:441: error: dereferencing pointer to incomplete type bc_dev22.c:441: error: dereferencing pointer to incomplete type bc_dev22.c:443: error: dereferencing pointer to incomplete type bc_dev22.c:443: error: dereferencing pointer to incomplete type bc_dev22.c:457: error: dereferencing pointer to incomplete type bc_dev22.c: In function `bc_open': bc_dev22.c:494: error: dereferencing pointer to incomplete type bc_dev22.c:495: error: dereferencing pointer to incomplete type bc_dev22.c:497: error: dereferencing pointer to incomplete type bc_dev22.c:498: warning: passing arg 1 of `sleep_on' from incompatible pointer type bc_dev22.c:500: error: dereferencing pointer to incomplete type bc_dev22.c:501: error: dereferencing pointer to incomplete type bc_dev22.c: In function `bc_release': bc_dev22.c:520: error: dereferencing pointer to incomplete type bc_dev22.c:521: error: dereferencing pointer to incomplete type bc_dev22.c:522: error: dereferencing pointer to incomplete type bc_dev22.c:524: error: dereferencing pointer to incomplete type bc_dev22.c:527: error: dereferencing pointer to incomplete type bc_dev22.c: In function `bc_get_info': bc_dev22.c:590: error: dereferencing pointer to incomplete type bc_dev22.c: In function `bc_check': bc_dev22.c:614: error: invalid use of undefined type `struct bc_device' bc_dev22.c:614: error: dereferencing pointer to incomplete type bc_dev22.c: In function `scan_device': bc_dev22.c:640: error: dereferencing pointer to incomplete type bc_dev22.c:643: error: dereferencing pointer to incomplete type bc_dev22.c:645: error: dereferencing pointer to incomplete type bc_dev22.c:647: error: dereferencing pointer to incomplete type bc_dev22.c:648: error: dereferencing pointer to incomplete type bc_dev22.c:648: error: dereferencing pointer to incomplete type bc_dev22.c:650: error: dereferencing pointer to incomplete type bc_dev22.c:652: error: dereferencing pointer to incomplete type bc_dev22.c:658: error: dereferencing pointer to incomplete type bc_dev22.c:661: error: dereferencing pointer to incomplete type bc_dev22.c:663: error: dereferencing pointer to incomplete type bc_dev22.c:664: warning: passing arg 1 of `__wake_up' from incompatible pointer type bc_dev22.c:681: error: dereferencing pointer to incomplete type bc_dev22.c:690: error: dereferencing pointer to incomplete type bc_dev22.c:694: error: dereferencing pointer to incomplete type bc_dev22.c:695: warning: passing arg 1 of `__wake_up' from incompatible pointer type bc_dev22.c: In function `bc_set_fd': bc_dev22.c:719: error: dereferencing pointer to incomplete type bc_dev22.c:754: error: dereferencing pointer to incomplete type bc_dev22.c:756: error: dereferencing pointer to incomplete type bc_dev22.c:760: error: dereferencing pointer to incomplete type bc_dev22.c:761: error: dereferencing pointer to incomplete type bc_dev22.c:762: error: dereferencing pointer to incomplete type bc_dev22.c:763: error: dereferencing pointer to incomplete type bc_dev22.c:767: error: dereferencing pointer to incomplete type bc_dev22.c:769: error: dereferencing pointer to incomplete type bc_dev22.c:771: error: dereferencing pointer to incomplete type bc_dev22.c:772: error: dereferencing pointer to incomplete type bc_dev22.c:773: error: dereferencing pointer to incomplete type bc_dev22.c:774: error: dereferencing pointer to incomplete type bc_dev22.c:775: error: dereferencing pointer to incomplete type bc_dev22.c: In function `bc_clr_fd': bc_dev22.c:803: error: dereferencing pointer to incomplete type bc_dev22.c:805: error: dereferencing pointer to incomplete type bc_dev22.c:807: error: dereferencing pointer to incomplete type bc_dev22.c:816: error: dereferencing pointer to incomplete type bc_dev22.c:816: error: dereferencing pointer to incomplete type bc_dev22.c:821: error: dereferencing pointer to incomplete type bc_dev22.c:821: error: dereferencing pointer to incomplete type bc_dev22.c:828: error: dereferencing pointer to incomplete type bc_dev22.c:829: error: dereferencing pointer to incomplete type bc_dev22.c:830: error: dereferencing pointer to incomplete type bc_dev22.c:831: error: dereferencing pointer to incomplete type bc_dev22.c:833: error: dereferencing pointer to incomplete type bc_dev22.c:833: error: dereferencing pointer to incomplete type bc_dev22.c:834: error: dereferencing pointer to incomplete type bc_dev22.c:834: error: dereferencing pointer to incomplete type bc_dev22.c: In function `bc_lock_dev': bc_dev22.c:868: error: wrong type argument to increment bc_dev22.c:870: error: dereferencing pointer to incomplete type bc_dev22.c:872: error: wrong type argument to decrement bc_dev22.c:874: error: dereferencing pointer to incomplete type bc_dev22.c: In function `bc_force_unlock': bc_dev22.c:895: error: wrong type argument to decrement bc_dev22.c:897: error: dereferencing pointer to incomplete type bc_dev22.c: In function `bc_check_activity': bc_dev22.c:924: error: dereferencing pointer to incomplete type bc_dev22.c:924: error: dereferencing pointer to incomplete type bc_dev22.c:924: error: dereferencing pointer to incomplete type bc_dev22.c:924: error: dereferencing pointer to incomplete type bc_dev22.c:925: error: dereferencing pointer to incomplete type bc_dev22.c: In function `blkgetsize': bc_dev22.c:1053: error: dereferencing pointer to incomplete type bc_dev22.c: In function `hdio_getgeo': bc_dev22.c:1067: error: dereferencing pointer to incomplete type bc_dev22.c: In function `bc_ioctl': bc_dev22.c:1121: error: dereferencing pointer to incomplete type bc_dev22.c:1143: error: dereferencing pointer to incomplete type bc_dev22.c: In function `init_module': bc_dev22.c:1211: warning: assignment from incompatible pointer type bc_dev22.c:1213: warning: passing arg 3 of `register_blkdev' from incompatible pointer type bc_dev22.c:1241: error: invalid application of `sizeof' to an incomplete type bc_dev22.c:1243: error: `BC_BUFFERS' undeclared (first use in this function) bc_dev22.c:1257: error: invalid application of `sizeof' to an incomplete type bc_dev22.c:1257: error: invalid application of `sizeof' to an incomplete type bc_dev22.c:1257: error: invalid application of `sizeof' to an incomplete type bc_dev22.c:1257: error: invalid application of `sizeof' to an incomplete type bc_dev22.c:1257: error: invalid application of `sizeof' to an incomplete type bc_dev22.c:1257: error: invalid application of `sizeof' to an incomplete type bc_dev22.c:1263: error: `MUTEX' undeclared (first use in this function) bc_dev22.c:1268: error: invalid use of undefined type `struct bc_device' bc_dev22.c:1268: error: dereferencing pointer to incomplete type bc_dev22.c:1269: error: invalid use of undefined type `struct bc_device' bc_dev22.c:1269: error: dereferencing pointer to incomplete type bc_dev22.c:1308: error: structure has no member named `max_nr' bc_dev22.c:1309: error: structure has no member named `init' bc_dev22.c: In function `cleanup_module': bc_dev22.c:1347: warning: assignment from incompatible pointer type bc_dev22.c: At top level: bc_dev22.c:82: error: storage size of `bc_buffers' isn't known 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 !!! ERROR: app-crypt/bestcrypt-1.5_p1 failed. !!! Function src_compile, Line 41, Exitcode 2 !!! (no error message) bc_cfg.h:45:35: linux/modversions.h: No such file or directory Seems this is the error, but: ./src/linux-2.4.22-gentoo-r7/include/linux/modversions.h ./src/linux-2.4.22-gentoo-r7/include/config/modversions.h exist! I do not know what could be wrong here. emerge info: Portage 2.0.50-r1 (default-x86-1.4, gcc-3.3.3, glibc-2.3.3_pre20040207-r0, 2.4.22-gentoo-r7) ================================================================= System uname: 2.4.22-gentoo-r7 i686 AMD-K7(tm) Processor Gentoo Base System version 1.4.3.13p1 Autoconf: sys-devel/autoconf-2.59-r3 Automake: sys-devel/automake-1.8.2 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CFLAGS="-O3 -mcpu=athlon -funroll-loops -pipe" 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 /var/bind /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-O3 -mcpu=athlon -funroll-loops -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs ccache sandbox" GENTOO_MIRRORS="ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo ftp://ftp.join.uni-muenster.de/pub/linux/distributions/gentoo" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="3dfx 3dnow X aalib acpi apm arts avi berkdb cdr crypt cups curl encode ethereal firebird foomaticdb gdbm gif gpm gtk gtk2 icq imlib ipv6 java jpeg libg++ libwww mad mikmod mmx motif mozilla mpeg ncurses nls oggvorbis opengl oss pam pdflib perl png python qt quicktime readline samba sdl slang snmp socks5 spell ssl svga tcpd tiff truetype usb x86 xml xml2 xmms xv zlib"
*** This bug has been marked as a duplicate of 44150 ***
I thought I had already ~x86 for bestcrypt in /etc/portage/package.keywords, but I was wrong. I should have checked and tried 1.6_p16 in first place. Thanks.