#16 Cannot compile on 2.6.10



I'm trying to get the release working on my
fresh 2.6.10 kernel.

I get "multiple definition of 'init_module' /
'cleanup_module'" errors when compiling the kernel with
the patch included. I'm using a plain 2.6.10
from kernel.org plus the patches "-ck5". Also using
smp. Patching in the linux-iscsi-kernel-
worked flawlessly.

Btw, and both compile cleanly on my
2.6.10, but this also does not work:I get "iscsi_sfnet:
Unknown symbol sock_getsockopt" when trying to load the
module... As far as I understand, I should therefore
definitely use with 2.6.10, right?

[root@hyper linux-2.6.10-hyper]# make modules (repeated)
CHK include/linux/version.h
make[1]: ťarch/i386/kernel/asm-offsets.sŤ ist bereits
LD [M] drivers/scsi/iscsi-sfnet/iscsi_sfnet.o
In function `init_module':
: multiple definition of `init_module'
first defined here
ld: Warning: size of symbol `init_module' changed from
214 in
drivers/scsi/iscsi-sfnet/driver/iscsi-initiator.o to 39
in drivers/scsi/iscsi-sfnet/driver/scsi_transport_iscsi.o
In function `cleanup_module':
: multiple definition of `cleanup_module'
first defined here
ld: Warning: size of symbol `cleanup_module' changed
from 55 in
drivers/scsi/iscsi-sfnet/driver/iscsi-initiator.o to 31
in drivers/scsi/iscsi-sfnet/driver/scsi_transport_iscsi.o
make[3]: *** [drivers/scsi/iscsi-sfnet/iscsi_sfnet.o]
Fehler 1
make[2]: *** [drivers/scsi/iscsi-sfnet] Fehler 2
make[1]: *** [drivers/scsi] Fehler 2
make: *** [drivers] Fehler 2

Any idea what's going wrong with me?
Thanks in advance!


  • Nobody/Anonymous

    Logged In: NO

    I have exactly the same error... I have Fedora Core 3 with
    2.6.10 vanilla

  • binary

    binary - 2005-02-24

    Logged In: YES

    I have exatly the same problem on FC3 - 2.6.10, even trying
    to compile as kernel with kernel patch file

  • Nobody/Anonymous

    Logged In: NO

    The Makefile is messed up. When they made the patch they
    just copied what was in the tarball, and so the
    iscsi_transport_class just got thrown in with the driver
    which is why you get the compilation errors.

    You can hack the Makefile and Kconfig so that
    iscsi_transport_iscsi and iscsi-sfnet are different modules
    like they should be. I also tried to compile it into the
    kernel and it compiled ok (I did not run it though). Also,
    if just compile from the sourceforge tarball it works.

  • Mark Schuren

    Mark Schuren - 2005-02-27

    Logged In: YES

    Thanks, this explains it.

    Does anyone have a diff for the Makefile/Kconfig in
    linux-iscsi-kernel- (a patch for the patch :)
    that makes it work with a vanilla 2.6.10 source tree?


Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

No, thanks