From: SourceForge.net <no...@so...> - 2005-02-25 19:28:20
|
Support Requests item #1151014, was opened at 2005-02-24 05:26 Message generated for change (Comment added) made by nobody You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=387024&aid=1151014&group_id=26396 Category: Install Problem (example) Group: None Status: Open Priority: 5 Submitted By: Mark Schuren (parasonic) Assigned to: Nobody/Anonymous (nobody) Summary: Cannot compile 4.0.1.11 on 2.6.10 Initial Comment: 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! ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2005-02-25 11:28 Message: 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. ---------------------------------------------------------------------- Comment By: binary (jbinary82) Date: 2005-02-24 08:21 Message: 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 ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2005-02-24 08:13 Message: Logged In: NO I have exactly the same error... I have Fedora Core 3 with 2.6.10 vanilla ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=387024&aid=1151014&group_id=26396 |