That should be self-explaining: dbserver1 linux # emerge sys-block/open-iscsi Calculating dependencies... done! >>> Verifying ebuild Manifests... >>> Emerging (1 of 1) sys-block/open-iscsi-1.0.514 to / * open-iscsi-1.0-514.tar.gz RMD160 ;-) ... [ ok ] * open-iscsi-1.0-514.tar.gz SHA1 ;-) ... [ ok ] * open-iscsi-1.0-514.tar.gz SHA256 ;-) ... [ ok ] * open-iscsi-1.0-514.tar.gz size ;-) ... [ ok ] * checking ebuild checksums ;-) ... [ ok ] * checking auxfile checksums ;-) ... [ ok ] * checking miscfile checksums ;-) ... [ ok ] * checking open-iscsi-1.0-514.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.20-gentoo-r8n-fuse * Checking for suitable kernel configuration options... [ ok ] >>> Unpacking source... >>> Unpacking open-iscsi-1.0-514.tar.gz to /var/tmp/portage/sys-block/open-iscsi-1.0.514/work * Applying r438-idbm-file-locking.diff ... [ ok ] >>> Source unpacked. >>> Compiling source in /var/tmp/portage/sys-block/open-iscsi-1.0.514/work/open-iscsi-1.0-514 ... * Building kernel modules * Preparing iscsi_tcp module kernel check... OTHER KERNEL DETECTED make -C /usr/src/linux M=`pwd` KBUILD_OUTPUT= V=0 modules make[1]: Entering directory `/usr/src/linux-2.6.20-gentoo-r8' CC [M] /var/tmp/portage/sys-block/open-iscsi-1.0.514/work/open-iscsi-1.0-514/kernel/scsi_transport_iscsi.o /var/tmp/portage/sys-block/open-iscsi-1.0.514/work/open-iscsi-1.0-514/kernel/scsi_transport_iscsi.c: In function 'iscsi_unblock_session': /var/tmp/portage/sys-block/open-iscsi-1.0.514/work/open-iscsi-1.0-514/kernel/scsi_transport_iscsi.c:283: warning: passing argument 1 of 'cancel_delayed_work' from incompatible pointer type /var/tmp/portage/sys-block/open-iscsi-1.0.514/work/open-iscsi-1.0-514/kernel/scsi_transport_iscsi.c: In function 'iscsi_block_session': /var/tmp/portage/sys-block/open-iscsi-1.0.514/work/open-iscsi-1.0-514/kernel/scsi_transport_iscsi.c:293: warning: passing argument 1 of 'schedule_delayed_work' from incompatible pointer type /var/tmp/portage/sys-block/open-iscsi-1.0.514/work/open-iscsi-1.0-514/kernel/scsi_transport_iscsi.c:322:71: error: macro "INIT_WORK" passed 3 arguments, but takes just 2 /var/tmp/portage/sys-block/open-iscsi-1.0.514/work/open-iscsi-1.0-514/kernel/scsi_transport_iscsi.c: In function 'iscsi_create_session': /var/tmp/portage/sys-block/open-iscsi-1.0.514/work/open-iscsi-1.0-514/kernel/scsi_transport_iscsi.c:322: error: 'INIT_WORK' undeclared (first use in this function) /var/tmp/portage/sys-block/open-iscsi-1.0.514/work/open-iscsi-1.0-514/kernel/scsi_transport_iscsi.c:322: error: (Each undeclared identifier is reported only once /var/tmp/portage/sys-block/open-iscsi-1.0.514/work/open-iscsi-1.0-514/kernel/scsi_transport_iscsi.c:322: error: for each function it appears in.) /var/tmp/portage/sys-block/open-iscsi-1.0.514/work/open-iscsi-1.0-514/kernel/scsi_transport_iscsi.c: In function 'iscsi_destroy_session': /var/tmp/portage/sys-block/open-iscsi-1.0.514/work/open-iscsi-1.0-514/kernel/scsi_transport_iscsi.c:378: warning: passing argument 1 of 'cancel_delayed_work' from incompatible pointer type make[2]: *** [/var/tmp/portage/sys-block/open-iscsi-1.0.514/work/open-iscsi-1.0-514/kernel/scsi_transport_iscsi.o] Error 1 make[1]: *** [_module_/var/tmp/portage/sys-block/open-iscsi-1.0.514/work/open-iscsi-1.0-514/kernel] Error 2 make[1]: Leaving directory `/usr/src/linux-2.6.20-gentoo-r8' make: *** [all] Error 2 !!! ERROR: sys-block/open-iscsi-1.0.514 failed. Call stack: ebuild.sh, line 1615: Called dyn_compile ebuild.sh, line 972: Called qa_call 'src_compile' ebuild.sh, line 44: Called src_compile open-iscsi-1.0.514.ebuild, line 62: Called linux-mod_src_compile linux-mod.eclass, line 516: Called die !!! Unable to make all. !!! 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/sys-block/open-iscsi-1.0.514/temp/build.log'. Reproducible: Always Steps to Reproduce: 1. unmask sys-block/open-iscsi 2. emerge sys-block/open-iscsi
that kernel is not supported with that version of the ebuild. use the newer ebuild.
Ok, with a newer kernel 2.6.22 it worked.