Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 198394 - app-crypt/truecrypt-4.3a fails to compile against 2.6.24-rc2 kernel
Summary: app-crypt/truecrypt-4.3a fails to compile against 2.6.24-rc2 kernel
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Crypto team [DISABLED]
URL:
Whiteboard:
Keywords:
: 202405 (view as bug list)
Depends on:
Blocks:
 
Reported: 2007-11-07 20:41 UTC by tla
Modified: 2007-12-26 08:53 UTC (History)
2 users (show)

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


Attachments
Patch for 2.6.24-rc5 (vanilla sources) (truecrypt-kernel-2.6.23.+2.6.24.patch,940 bytes, patch)
2007-12-15 18:16 UTC, W. Elschner
Details | Diff
Patch for 2.6.24-rc5 (vanilla sources) (truecrypt-4.3a-2.6.24.patch,536 bytes, patch)
2007-12-15 18:41 UTC, W. Elschner
Details | Diff
Modified ebuild (for 2.6.23 and 2.6.24) (truecrypt-4.3a.ebuild,3.22 KB, text/plain)
2007-12-15 18:44 UTC, W. Elschner
Details
Compiles and works with kernel 2.6.24-rc6 (truecrypt-4.3a-2.6.24.patch,1.74 KB, patch)
2007-12-25 19:50 UTC, W. Elschner
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description tla 2007-11-07 20:41:40 UTC
app-crypt/truecrypt-4.3a ebuild fails to compile against 2.6.24-rc2 kernel even if patch described in bug# 186901 is applied.  gcc 4.2.2

Reproducible: Always

Steps to Reproduce:
1. create an overlay and call it app-crypt/truecrypt-9.9
2. emerge =truecrypt-9.9
3.

Actual Results:  
# emerge =truecrypt-9.9
Calculating dependencies... done!
>>> Verifying ebuild Manifests...

>>> Emerging (1 of 1) app-crypt/truecrypt-9.9 to /
 * truecrypt-9.9-source-code.tar.gz MD5 ;-) ...                                                                                                                                  [ ok ]
 * truecrypt-9.9-source-code.tar.gz RMD160 ;-) ...                                                                                                                               [ ok ]
 * truecrypt-9.9-source-code.tar.gz SHA1 ;-) ...                                                                                                                                 [ ok ]
 * truecrypt-9.9-source-code.tar.gz SHA256 ;-) ...                                                                                                                               [ ok ]
 * truecrypt-9.9-source-code.tar.gz size ;-) ...                                                                                                                                 [ ok ]
 * checking ebuild checksums ;-) ...                                                                                                                                             [ ok ]
 * checking auxfile checksums ;-) ...                                                                                                                                            [ ok ]
 * checking miscfile checksums ;-) ...                                                                                                                                           [ ok ]
 * checking truecrypt-9.9-source-code.tar.gz ;-) ...                                                                                                                             [ ok ]
 * Determining the location of the kernel source code
 * Found kernel source directory:
 *     /usr/src/linux
 * Found sources for kernel version:
 *     2.6.24-rc2
 * Checking for Device mapper support (BLK_DEV_DM) ...                                                                                                                           [ ok ]
>>> Unpacking source...
>>> Unpacking truecrypt-9.9-source-code.tar.gz to /var/tmp/portage/app-crypt/truecrypt-9.9/work
>>> Source unpacked.
>>> Compiling source in /var/tmp/portage/app-crypt/truecrypt-9.9/work/truecrypt-9.9-source-code ...
 * Preparing truecrypt module
make[1]: Entering directory `/home/tla/git/linux-2.6'
  CC [M]  /var/tmp/portage/app-crypt/truecrypt-9.9/work/truecrypt-9.9-source-code/Linux/Kernel/../../Crypto/Aescrypt.o
  CC [M]  /var/tmp/portage/app-crypt/truecrypt-9.9/work/truecrypt-9.9-source-code/Linux/Kernel/../../Crypto/Aeskey.o
  CC [M]  /var/tmp/portage/app-crypt/truecrypt-9.9/work/truecrypt-9.9-source-code/Linux/Kernel/../../Crypto/Aestab.o
  CC [M]  /var/tmp/portage/app-crypt/truecrypt-9.9/work/truecrypt-9.9-source-code/Linux/Kernel/../../Crypto/Bf_ecb.o
  CC [M]  /var/tmp/portage/app-crypt/truecrypt-9.9/work/truecrypt-9.9-source-code/Linux/Kernel/../../Crypto/Bf_enc.o
  CC [M]  /var/tmp/portage/app-crypt/truecrypt-9.9/work/truecrypt-9.9-source-code/Linux/Kernel/../../Crypto/Bf_skey.o
  CC [M]  /var/tmp/portage/app-crypt/truecrypt-9.9/work/truecrypt-9.9-source-code/Linux/Kernel/../../Crypto/C_ecb.o
  CC [M]  /var/tmp/portage/app-crypt/truecrypt-9.9/work/truecrypt-9.9-source-code/Linux/Kernel/../../Crypto/C_enc.o
  CC [M]  /var/tmp/portage/app-crypt/truecrypt-9.9/work/truecrypt-9.9-source-code/Linux/Kernel/../../Crypto/C_skey.o
  CC [M]  /var/tmp/portage/app-crypt/truecrypt-9.9/work/truecrypt-9.9-source-code/Linux/Kernel/../../Crypto/Des.o
  CC [M]  /var/tmp/portage/app-crypt/truecrypt-9.9/work/truecrypt-9.9-source-code/Linux/Kernel/../../Crypto/Des_enc.o
  CC [M]  /var/tmp/portage/app-crypt/truecrypt-9.9/work/truecrypt-9.9-source-code/Linux/Kernel/../../Crypto/Ecb3_enc.o
  CC [M]  /var/tmp/portage/app-crypt/truecrypt-9.9/work/truecrypt-9.9-source-code/Linux/Kernel/../../Crypto/Serpent.o
  CC [M]  /var/tmp/portage/app-crypt/truecrypt-9.9/work/truecrypt-9.9-source-code/Linux/Kernel/../../Crypto/Set_key.o
  CC [M]  /var/tmp/portage/app-crypt/truecrypt-9.9/work/truecrypt-9.9-source-code/Linux/Kernel/../../Crypto/Twofish.o
  CC [M]  /var/tmp/portage/app-crypt/truecrypt-9.9/work/truecrypt-9.9-source-code/Linux/Kernel/../../Common/Crc.o
  CC [M]  /var/tmp/portage/app-crypt/truecrypt-9.9/work/truecrypt-9.9-source-code/Linux/Kernel/../../Common/Crypto.o
  CC [M]  /var/tmp/portage/app-crypt/truecrypt-9.9/work/truecrypt-9.9-source-code/Linux/Kernel/../../Common/Endian.o
  CC [M]  /var/tmp/portage/app-crypt/truecrypt-9.9/work/truecrypt-9.9-source-code/Linux/Kernel/../../Common/GfMul.o
  CC [M]  /var/tmp/portage/app-crypt/truecrypt-9.9/work/truecrypt-9.9-source-code/Linux/Kernel/../../Common/Tests.o
  CC [M]  /var/tmp/portage/app-crypt/truecrypt-9.9/work/truecrypt-9.9-source-code/Linux/Kernel/Dm-target.o
  LD [M]  /var/tmp/portage/app-crypt/truecrypt-9.9/work/truecrypt-9.9-source-code/Linux/Kernel/truecrypt.o
  Building modules, stage 2.
  MODPOST 1 modules
WARNING: "mempool_alloc_pages" [/var/tmp/portage/app-crypt/truecrypt-9.9/work/truecrypt-9.9-source-code/Linux/Kernel/truecrypt.ko] undefined!
WARNING: "kmem_cache_destroy" [/var/tmp/portage/app-crypt/truecrypt-9.9/work/truecrypt-9.9-source-code/Linux/Kernel/truecrypt.ko] undefined!
WARNING: "kmalloc_caches" [/var/tmp/portage/app-crypt/truecrypt-9.9/work/truecrypt-9.9-source-code/Linux/Kernel/truecrypt.ko] undefined!
WARNING: "__kmalloc" [/var/tmp/portage/app-crypt/truecrypt-9.9/work/truecrypt-9.9-source-code/Linux/Kernel/truecrypt.ko] undefined!
WARNING: "bio_alloc" [/var/tmp/portage/app-crypt/truecrypt-9.9/work/truecrypt-9.9-source-code/Linux/Kernel/truecrypt.ko] undefined!
WARNING: "param_get_int" [/var/tmp/portage/app-crypt/truecrypt-9.9/work/truecrypt-9.9-source-code/Linux/Kernel/truecrypt.ko] undefined!
WARNING: "strlen" [/var/tmp/portage/app-crypt/truecrypt-9.9/work/truecrypt-9.9-source-code/Linux/Kernel/truecrypt.ko] undefined!
WARNING: "dm_get_device" [/var/tmp/portage/app-crypt/truecrypt-9.9/work/truecrypt-9.9-source-code/Linux/Kernel/truecrypt.ko] undefined!
WARNING: "congestion_wait" [/var/tmp/portage/app-crypt/truecrypt-9.9/work/truecrypt-9.9-source-code/Linux/Kernel/truecrypt.ko] undefined!
WARNING: "dm_table_get_mode" [/var/tmp/portage/app-crypt/truecrypt-9.9/work/truecrypt-9.9-source-code/Linux/Kernel/truecrypt.ko] undefined!
WARNING: "mempool_destroy" [/var/tmp/portage/app-crypt/truecrypt-9.9/work/truecrypt-9.9-source-code/Linux/Kernel/truecrypt.ko] undefined!
WARNING: "queue_work" [/var/tmp/portage/app-crypt/truecrypt-9.9/work/truecrypt-9.9-source-code/Linux/Kernel/truecrypt.ko] undefined!
WARNING: "dm_register_target" [/var/tmp/portage/app-crypt/truecrypt-9.9/work/truecrypt-9.9-source-code/Linux/Kernel/truecrypt.ko] undefined!
WARNING: "param_set_int" [/var/tmp/portage/app-crypt/truecrypt-9.9/work/truecrypt-9.9-source-code/Linux/Kernel/truecrypt.ko] undefined!
WARNING: "sprintf" [/var/tmp/portage/app-crypt/truecrypt-9.9/work/truecrypt-9.9-source-code/Linux/Kernel/truecrypt.ko] undefined!
WARNING: "strcmp" [/var/tmp/portage/app-crypt/truecrypt-9.9/work/truecrypt-9.9-source-code/Linux/Kernel/truecrypt.ko] undefined!
WARNING: "cond_resched" [/var/tmp/portage/app-crypt/truecrypt-9.9/work/truecrypt-9.9-source-code/Linux/Kernel/truecrypt.ko] undefined!
WARNING: "kunmap_atomic" [/var/tmp/portage/app-crypt/truecrypt-9.9/work/truecrypt-9.9-source-code/Linux/Kernel/truecrypt.ko] undefined!
WARNING: "mempool_alloc_slab" [/var/tmp/portage/app-crypt/truecrypt-9.9/work/truecrypt-9.9-source-code/Linux/Kernel/truecrypt.ko] undefined!
WARNING: "kmap_atomic" [/var/tmp/portage/app-crypt/truecrypt-9.9/work/truecrypt-9.9-source-code/Linux/Kernel/truecrypt.ko] undefined!
WARNING: "printk" [/var/tmp/portage/app-crypt/truecrypt-9.9/work/truecrypt-9.9-source-code/Linux/Kernel/truecrypt.ko] undefined!
WARNING: "sscanf" [/var/tmp/portage/app-crypt/truecrypt-9.9/work/truecrypt-9.9-source-code/Linux/Kernel/truecrypt.ko] undefined!
WARNING: "dm_unregister_target" [/var/tmp/portage/app-crypt/truecrypt-9.9/work/truecrypt-9.9-source-code/Linux/Kernel/truecrypt.ko] undefined!
WARNING: "mempool_free_pages" [/var/tmp/portage/app-crypt/truecrypt-9.9/work/truecrypt-9.9-source-code/Linux/Kernel/truecrypt.ko] undefined!
WARNING: "destroy_workqueue" [/var/tmp/portage/app-crypt/truecrypt-9.9/work/truecrypt-9.9-source-code/Linux/Kernel/truecrypt.ko] undefined!
WARNING: "generic_make_request" [/var/tmp/portage/app-crypt/truecrypt-9.9/work/truecrypt-9.9-source-code/Linux/Kernel/truecrypt.ko] undefined!
WARNING: "mempool_free_slab" [/var/tmp/portage/app-crypt/truecrypt-9.9/work/truecrypt-9.9-source-code/Linux/Kernel/truecrypt.ko] undefined!
WARNING: "__create_workqueue_key" [/var/tmp/portage/app-crypt/truecrypt-9.9/work/truecrypt-9.9-source-code/Linux/Kernel/truecrypt.ko] undefined!
WARNING: "bio_endio" [/var/tmp/portage/app-crypt/truecrypt-9.9/work/truecrypt-9.9-source-code/Linux/Kernel/truecrypt.ko] undefined!
WARNING: "bio_put" [/var/tmp/portage/app-crypt/truecrypt-9.9/work/truecrypt-9.9-source-code/Linux/Kernel/truecrypt.ko] undefined!
WARNING: "strcat" [/var/tmp/portage/app-crypt/truecrypt-9.9/work/truecrypt-9.9-source-code/Linux/Kernel/truecrypt.ko] undefined!
WARNING: "kmem_cache_alloc" [/var/tmp/portage/app-crypt/truecrypt-9.9/work/truecrypt-9.9-source-code/Linux/Kernel/truecrypt.ko] undefined!
WARNING: "mempool_alloc" [/var/tmp/portage/app-crypt/truecrypt-9.9/work/truecrypt-9.9-source-code/Linux/Kernel/truecrypt.ko] undefined!
WARNING: "__get_free_pages" [/var/tmp/portage/app-crypt/truecrypt-9.9/work/truecrypt-9.9-source-code/Linux/Kernel/truecrypt.ko] undefined!
WARNING: "mempool_create" [/var/tmp/portage/app-crypt/truecrypt-9.9/work/truecrypt-9.9-source-code/Linux/Kernel/truecrypt.ko] undefined!
WARNING: "mempool_free" [/var/tmp/portage/app-crypt/truecrypt-9.9/work/truecrypt-9.9-source-code/Linux/Kernel/truecrypt.ko] undefined!
WARNING: "kmem_cache_create" [/var/tmp/portage/app-crypt/truecrypt-9.9/work/truecrypt-9.9-source-code/Linux/Kernel/truecrypt.ko] undefined!
WARNING: "kfree" [/var/tmp/portage/app-crypt/truecrypt-9.9/work/truecrypt-9.9-source-code/Linux/Kernel/truecrypt.ko] undefined!
WARNING: "dm_put_device" [/var/tmp/portage/app-crypt/truecrypt-9.9/work/truecrypt-9.9-source-code/Linux/Kernel/truecrypt.ko] undefined!
WARNING: "snprintf" [/var/tmp/portage/app-crypt/truecrypt-9.9/work/truecrypt-9.9-source-code/Linux/Kernel/truecrypt.ko] undefined!
WARNING: "strcpy" [/var/tmp/portage/app-crypt/truecrypt-9.9/work/truecrypt-9.9-source-code/Linux/Kernel/truecrypt.ko] undefined!
  CC      /var/tmp/portage/app-crypt/truecrypt-9.9/work/truecrypt-9.9-source-code/Linux/Kernel/truecrypt.mod.o
/var/tmp/portage/app-crypt/truecrypt-9.9/work/truecrypt-9.9-source-code/Linux/Kernel/truecrypt.mod.c:8: error: variable '__this_module' has initializer but incomplete type
/var/tmp/portage/app-crypt/truecrypt-9.9/work/truecrypt-9.9-source-code/Linux/Kernel/truecrypt.mod.c:9: error: unknown field 'name' specified in initializer
/var/tmp/portage/app-crypt/truecrypt-9.9/work/truecrypt-9.9-source-code/Linux/Kernel/truecrypt.mod.c:9: warning: excess elements in struct initializer
/var/tmp/portage/app-crypt/truecrypt-9.9/work/truecrypt-9.9-source-code/Linux/Kernel/truecrypt.mod.c:9: warning: (near initialization for '__this_module')
/var/tmp/portage/app-crypt/truecrypt-9.9/work/truecrypt-9.9-source-code/Linux/Kernel/truecrypt.mod.c:10: error: unknown field 'init' specified in initializer
/var/tmp/portage/app-crypt/truecrypt-9.9/work/truecrypt-9.9-source-code/Linux/Kernel/truecrypt.mod.c:10: warning: excess elements in struct initializer
/var/tmp/portage/app-crypt/truecrypt-9.9/work/truecrypt-9.9-source-code/Linux/Kernel/truecrypt.mod.c:10: warning: (near initialization for '__this_module')
/var/tmp/portage/app-crypt/truecrypt-9.9/work/truecrypt-9.9-source-code/Linux/Kernel/truecrypt.mod.c:14: error: unknown field 'arch' specified in initializer
/var/tmp/portage/app-crypt/truecrypt-9.9/work/truecrypt-9.9-source-code/Linux/Kernel/truecrypt.mod.c:14: error: 'MODULE_ARCH_INIT' undeclared here (not in a function)
/var/tmp/portage/app-crypt/truecrypt-9.9/work/truecrypt-9.9-source-code/Linux/Kernel/truecrypt.mod.c:14: warning: excess elements in struct initializer
/var/tmp/portage/app-crypt/truecrypt-9.9/work/truecrypt-9.9-source-code/Linux/Kernel/truecrypt.mod.c:14: warning: (near initialization for '__this_module')
make[2]: *** [/var/tmp/portage/app-crypt/truecrypt-9.9/work/truecrypt-9.9-source-code/Linux/Kernel/truecrypt.mod.o] Error 1
make[1]: *** [modules] Error 2
make[1]: Leaving directory `/home/tla/git/linux-2.6'
make: *** [truecrypt] Error 2
 *
 * ERROR: app-crypt/truecrypt-9.9 failed.
 * Call stack:
 *              ebuild.sh, line 1695:  Called dyn_compile
 *              ebuild.sh, line 1033:  Called qa_call 'src_compile'
 *              ebuild.sh, line   44:  Called src_compile
 *   truecrypt-9.9.ebuild, line   50:  Called linux-mod_src_compile
 *       linux-mod.eclass, line  518:  Called die
 * The specific snippet of code:
 *                      emake HOSTCC="$(tc-getBUILD_CC)" CC="$(get-KERNEL_CC)" LDFLAGS="$(get_abi_LDFLAGS)" \
 *                                ${BUILD_FIXES} ${BUILD_PARAMS} ${BUILD_TARGETS} \
 *                              || die "Unable to make ${BUILD_FIXES} ${BUILD_PARAMS} ${BUILD_TARGETS}."
 *  The die message:
 *   Unable to make  KERNEL_SRC=/usr/src/linux NO_WARNINGS=1 truecrypt.
 *
 * If you need support, post the topmost build error, and the call stack if relevant.
 * A complete build log is located at '/var/tmp/portage/app-crypt/truecrypt-9.9/temp/build.log'.
 * This ebuild is from an overlay: '/usr/local/portage/'
 *

 * Messages for package app-crypt/truecrypt-9.9:

 *
 * ERROR: app-crypt/truecrypt-9.9 failed.
 * Call stack:
 *              ebuild.sh, line 1695:  Called dyn_compile
 *              ebuild.sh, line 1033:  Called qa_call 'src_compile'
 *              ebuild.sh, line   44:  Called src_compile
 *   truecrypt-9.9.ebuild, line   50:  Called linux-mod_src_compile
 *       linux-mod.eclass, line  518:  Called die
 * The specific snippet of code:
 *                      emake HOSTCC="$(tc-getBUILD_CC)" CC="$(get-KERNEL_CC)" LDFLAGS="$(get_abi_LDFLAGS)" \
 *                                ${BUILD_FIXES} ${BUILD_PARAMS} ${BUILD_TARGETS} \
 *                              || die "Unable to make ${BUILD_FIXES} ${BUILD_PARAMS} ${BUILD_TARGETS}."
 *  The die message:
 *   Unable to make  KERNEL_SRC=/usr/src/linux NO_WARNINGS=1 truecrypt.
 *
 * If you need support, post the topmost build error, and the call stack if relevant.
 * A complete build log is located at '/var/tmp/portage/app-crypt/truecrypt-9.9/temp/build.log'.
 * This ebuild is from an overlay: '/usr/local/portage/'
 *


Expected Results:  
Good build with no errors.
Comment 1 tla 2007-11-07 20:42:35 UTC
# emerge --info
Portage 2.1.3.16 (default-linux/x86/2006.1, gcc-4.2.2, glibc-2.6.1-r0, 2.6.24-rc2 i686)
=================================================================
System uname: 2.6.24-rc2 i686 Pentium III (Coppermine)
Timestamp of tree: Wed, 07 Nov 2007 18:00:01 +0000
app-shells/bash:     3.2_p17
dev-lang/python:     2.4.4-r6
dev-python/pycrypto: 2.0.1-r6
sys-apps/baselayout: 1.12.9-r2
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.61-r1
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.18-r1
sys-devel/gcc-config: 1.3.16
sys-devel/libtool:   1.5.24
virtual/os-headers:  2.6.22-r2
ACCEPT_KEYWORDS="x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=pentium3 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb /var/bind"
CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-O2 -march=pentium3 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="ccache collision-protect distlocks metadata-transfer parallel-fetch sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="ftp://ftp.mirrorservice.org/sites/www.ibiblio.org/gentoo/ "
LANG="en_GB"
LC_ALL="en_GB"
LINGUAS="en_GB en"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X apache2 bash-completion berkdb bitmap-fonts cli cracklib crypt cups dri emacs fortran gdbm gpm gtk iconv ipv6 isdnlog midi mp3 mudflap ncurses nls nptl nptlonly opengl openmp pam pcre perl postgres ppds pppd python readline reflection session spl ssl tcpd truetype-fonts type1-fonts unicode x86 xorg zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" ELIBC="glibc" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en_GB en" USERLAND="GNU" VIDEO_CARDS="i810"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

Comment 2 Alon Bar-Lev (RETIRED) gentoo-dev 2007-11-09 09:29:27 UTC
I don't understand...
Why do you report here issues with pre-release kernel?
You can report these issues directly to upstream, so they can fix this.

However, if you got a fix, I will be happy if you attach it.

I will look at this after 2.6.24 release.
Thanks.
Comment 3 Jakub Moc (RETIRED) gentoo-dev 2007-12-15 17:53:29 UTC
*** Bug 202405 has been marked as a duplicate of this bug. ***
Comment 4 Alon Bar-Lev (RETIRED) gentoo-dev 2007-12-15 17:56:58 UTC
Please *ATTACH* patches, pasting them does not help in applying them later.
Comment 5 W. Elschner 2007-12-15 18:16:55 UTC
Created attachment 138558 [details, diff]
Patch for 2.6.24-rc5 (vanilla sources)

Patch attached.
Comment 6 Alon Bar-Lev (RETIRED) gentoo-dev 2007-12-15 18:23:50 UTC
Thanks!
Fixed.
Please notice that the 2.6.23 was already in tree... Next time, please submit only missing patches.
Comment 7 W. Elschner 2007-12-15 18:41:35 UTC
Created attachment 138561 [details, diff]
Patch for 2.6.24-rc5 (vanilla sources)
Comment 8 W. Elschner 2007-12-15 18:44:50 UTC
Created attachment 138565 [details]
Modified ebuild (for 2.6.23 and 2.6.24)

This ebuild checks the kernel version and applies the necessary patch for 2.6.23 and/or 2.6.24. 
Disclaimer: I am an absolute beginner on linux/gentoo :-)
Comment 9 Alon Bar-Lev (RETIRED) gentoo-dev 2007-12-15 18:50:02 UTC
Thanks!
I already fixed this.

In future, please have the portage snapshot as a baseline, and submit only diffs.

If you modify ebuild, attach the diff between the baseline and the new one.

Reviewing diffs is much simpler than find the difference on full attachment.
Comment 10 boris64 2007-12-17 16:08:05 UTC
Hi folks, 
your patch makes truecrypt compile against >kernel-2.6.23, 
but i still can't use/mount my truecrypt containers.

It looks like this:
truecrypt /home/stuff/boris64.tc /home/stuff/crypto
Enter password for '/home/stuff/boris64.tc':

After i entered the correct(!) passphrase, truecrypt hangs here forever,
until i press [ctrl]+[c] (the next day :/). 
Additionally, a unkillable process remains in memory:

root     867403  0.0  0.0   8060   600 pts/13   D    17:01   0:00 mount -tauto -orw /dev/mapper/truecrypt0 /home/stuff/crypto

Anyone else experiencing this? There was already a thread about this issue
in the truecrypt forums (down atm), where someone else had this problem 
under 2.6.24_rcx after using this(?) patch.
Should i file a new bug?
Comment 11 W. Elschner 2007-12-18 08:46:47 UTC
No problems here. Maybe you should check your kernel (crypto) settings and/or reemerge or update sys-fs/udev (here it is sys-fs/udev 117).
Comment 12 W. Elschner 2007-12-25 19:50:39 UTC
Created attachment 139304 [details, diff]
Compiles and works with kernel 2.6.24-rc6

This patch was tested with kernel 2.6.24-rc6 and 2.6.23.11 (no hangs when mounting truecrypt-containers under 2.6.24-kernel).
Comment 13 Alon Bar-Lev (RETIRED) gentoo-dev 2007-12-25 20:06:25 UTC
Where is this patch taken from?
Why did you remove the "if (bio->bi_size)"?
Comment 14 W. Elschner 2007-12-25 20:44:22 UTC
Patch comes from german sidux-forum
http://sidux.com/PNphpBB2-viewtopic-t-6367-start-15.html 

See also 
http://sidux.com/index.php?module=pnWikka&tag=TruecryptMounterEN

I tested this patch (without the changes for kernel 2.6.23 which are already in the portage 2.6.23-patch) because I could reproduce the behavior described in comment #10 with kernel 2.6.24-rc6. 

> Why did you remove the "if (bio->bi_size)"?

I could not find any information about this, so I just copied it from the origin patch. Unfortunately the Truecrypt forum at www.truecrypt.org is down. Of course this patch is for testing purposes only until there is an "official" patch from truecrypt-upstream.



Comment 15 boris64 2007-12-25 20:58:08 UTC
Thx, the new patch (see comment #12) seems to work as expected,
no hanging mount-process(es) anymore ;)
Comment 16 Alon Bar-Lev (RETIRED) gentoo-dev 2007-12-25 20:59:54 UTC
The problem is that truecrypt developers don't believe in updating their software... They claim that the kernel is not stable so they do not cooperate...

OK... Applied.
Comment 17 boris64 2007-12-25 21:01:42 UTC
Well, that is why i'm using in-kernel crypt(luks!) stuff now, but 
that's just another story and belongs to some troll forum :/
Comment 18 Alon Bar-Lev (RETIRED) gentoo-dev 2007-12-25 21:04:46 UTC
I use loop-aes...
http://wiki.tuxonice.net/EncryptedSwapAndRoot

Much stronger encryption... :)
Comment 19 W. Elschner 2007-12-26 08:53:45 UTC
This becomes the paranoid thread ;-) 

By the way I am using cryptsetup with luks in combination with LVM = encrypted root / swap / home / whatever... Indeed I have no actual needs for truecrypt, but it is nice to know that it COULD be used with kernel 2.6.24 :-)