Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#16 Cannot compile 4.0.1.11 on 2.6.10

open
nobody
5
2005-02-24
2005-02-24
Mark Schuren
No

Hello,

I'm trying to get the 4.0.1.11 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 4.0.1.11 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-4.0.1.11.patch
worked flawlessly.

Btw, 4.0.1.9 and 4.0.1.10 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 4.0.1.11 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
aktualisiert.
LD [M] drivers/scsi/iscsi-sfnet/iscsi_sfnet.o
drivers/scsi/iscsi-sfnet/driver/scsi_transport_iscsi.o(.init.text+0x0):
In function `init_module':
: multiple definition of `init_module'
drivers/scsi/iscsi-sfnet/driver/iscsi-initiator.o(.init.text+0x0):
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
drivers/scsi/iscsi-sfnet/driver/scsi_transport_iscsi.o(.exit.text+0x0):
In function `cleanup_module':
: multiple definition of `cleanup_module'
drivers/scsi/iscsi-sfnet/driver/iscsi-initiator.o(.exit.text+0x0):
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!

Discussion

  • 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
    user_id=1226728

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

     
  • 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
    user_id=889116

    Thanks, this explains it.

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