#17 Couldn't load module iscsi_sfnet

open
nobody
None
5
2005-03-24
2005-03-24
Anonymous
No

I am able to compile linux-iscsi-3.6.2 on Red Hat Linux
7.3 2.96-126 Kernel 2.4.20-28.7. When I start the iscsi
driver 'service iscsi start' I get the following error
message in /var/log/iscsi.log file. I searched the
kernel source code and found that all missing function
are defined in some kernel source code, why the iscsi
module is not able to resolve these definitions from
kernel.

/lib/modules/2.4.20-28.7/misc/iscsi_sfnet.o: unresolved
symbol remove_wait_queue_R4850ea6d
/lib/modules/2.4.20-28.7/misc/iscsi_sfnet.o: unresolved
symbol add_wait_queue_R2d0dd6eb
/lib/modules/2.4.20-28.7/misc/iscsi_sfnet.o: unresolved
symbol flush_signals_R9db5041d
/lib/modules/2.4.20-28.7/misc/iscsi_sfnet.o: unresolved
symbol register_chrdev_R2cc549a7
/lib/modules/2.4.20-28.7/misc/iscsi_sfnet.o: unresolved
symbol sock_create_R28d6a950
/lib/modules/2.4.20-28.7/misc/iscsi_sfnet.o: unresolved
symbol sock_release_R774244b4
/lib/modules/2.4.20-28.7/misc/iscsi_sfnet.o: unresolved
symbol sock_setsockopt_R2642f20c
/lib/modules/2.4.20-28.7/misc/iscsi_sfnet.o: unresolved
symbol filp_open_R5c0e38f7
/lib/modules/2.4.20-28.7/misc/iscsi_sfnet.o: unresolved
symbol sock_getsockopt_R6119da80
/lib/modules/2.4.20-28.7/misc/iscsi_sfnet.o: unresolved
symbol sock_sendmsg_R9a8bdc67
/lib/modules/2.4.20-28.7/misc/iscsi_sfnet.o: unresolved
symbol filp_close_Rb6da46ed
/lib/modules/2.4.20-28.7/misc/iscsi_sfnet.o: unresolved
symbol zone_table_R54c82ffb
/lib/modules/2.4.20-28.7/misc/iscsi_sfnet.o: unresolved
symbol scsi_unregister_R7b9155a1
/lib/modules/2.4.20-28.7/misc/iscsi_sfnet.o: unresolved
symbol scsi_register_Rae0f068a
/lib/modules/2.4.20-28.7/misc/iscsi_sfnet.o: unresolved
symbol sock_recvmsg_Rb373d81a
/lib/modules/2.4.20-28.7/misc/iscsi_sfnet.o: insmod
/lib/modules/2.4.20-28.7/misc/iscsi_sfnet.o failed
/lib/modules/2.4.20-28.7/misc/iscsi_sfnet.o: insmod
iscsi_sfnet failed

uname -r = 2.4.20-28.7
uname -m = i686
/proc/cmdline = auto
/proc/cmdline = BOOT_IMAGE=linux
/proc/cmdline = ro
/proc/cmdline = root=302
/proc/cmdline = BOOT_FILE=/boot/vmlinuz-2.4.20-28.7
/proc/cmdline = 2.4.20

ls -la /boot/:
total 6336
drwxr-xr-x 3 root root 4096 Dec 21 18:10 .
drwxr-xr-x 26 root root 4096 Feb 7 17:30 ..
-rw-r--r-- 1 root root 512 Aug 1 2001
boot.0300
-rw-r--r-- 1 root root 5824 Jun 24 2001
boot.b
-rw-r--r-- 1 root root 612 Jun 24 2001
chain.b
-rw-r--r-- 1 root root 44762 Dec 18 2003
config-2.4.20-28.7
drwxr-xr-x 2 root root 4096 Sep 2 2003
grub
-rw-r--r-- 1 root root 116752 Jan 30 2004
initrd-2.4.20-28.7.img
-rw-r--r-- 1 root root 330248 Sep 2 2003
initrd-2.4.7-10.img
lrwxrwxrwx 1 root root 14 Jan 30 2004
kernel.h -> kernel.h-2.4.9
-rw-r--r-- 1 root root 417 Dec 20 17:06
kernel.h-2.4.9
-rw------- 1 root root 28672 Dec 20 17:04 map
-rw-r--r-- 1 root root 23108 Jun 24 2001
message
-rw-r--r-- 1 root root 21282 Jun 24 2001
message.ja
lrwxrwxrwx 1 root root 23 Sep 7 2004
module-info -> module-info-2.4.20-28.7
-rw-r--r-- 1 root root 15438 Dec 18 2003
module-info-2.4.20-28.7
-rw-r--r-- 1 root root 13598 Sep 6 2001
module-info-2.4.7-10
-rw-r--r-- 1 root root 640 Jun 24 2001
os2_d.b
lrwxrwxrwx 1 root root 22 Dec 20 17:06
System.map -> System.map-2.4.20-28.7
-rw-r--r-- 1 root root 505797 Dec 18 2003
System.map-2.4.20-28.7
-rw-r--r-- 1 root root 435039 Sep 6 2001
System.map-2.4.7-10
-rw-r--r-- 1 root root 2993917 Dec 18 2003
vmlinux-2.4.20-28.7
lrwxrwxrwx 1 root root 19 Sep 7 2004
vmlinuz -> vmlinuz-2.4.20-28.7
-rw-r--r-- 1 root root 1072489 Dec 18 2003
vmlinuz-2.4.20-28.7
-rw-r--r-- 1 root root 802068 Sep 6 2001
vmlinuz-2.4.7-10

/boot md5sums:
4667d160d65c5ab011a357420818cf1a /boot/vmlinux-2.4.20-28.7
f7f0340f151d70f3467d9466754f13c4 /boot/vmlinuz
f7f0340f151d70f3467d9466754f13c4 /boot/vmlinuz-2.4.20-28.7
d159a158ffad3d25893a950ec6c513d3 /boot/vmlinuz-2.4.7-10

ls -la /usr/src:
total 20
drwxr-xr-x 5 root root 4096 Feb 7 17:26 .
drwxr-xr-x 24 root root 4096 Feb 2 11:41 ..
drwxr-xr-x 4 root root 4096 Mar 23 11:31
iscsi
lrwxrwxrwx 1 root root 17 Feb 7 17:26
linux-2.4 -> linux-2.4.20-28.7
drwxr-xr-x 16 root root 4096 Feb 7 17:26
linux-2.4.20-28.7
drwxr-xr-x 7 root root 4096 Feb 15 2002
redhat

ls -la /lib/modules/2.4.20-28.7:
total 368
drwxr-xr-x 5 root root 4096 Feb 7 17:30 .
drwxr-xr-x 4 root root 4096 Dec 18 2003 ..
lrwxrwxrwx 1 root root 34 Sep 7 2004
build -> ../../../usr/src/linux-2.4.20-28.7
drwxr-xr-x 8 root root 4096 Dec 18 2003
kernel
drwxr-xr-x 2 root root 4096 Mar 23 15:13
misc
-rw-r--r-- 1 root root 104147 Mar 23 15:13
modules.dep
-rw-r--r-- 1 root root 31 Mar 23 15:13
modules.generic_string
-rw-r--r-- 1 root root 147 Mar 23 15:13
modules.ieee1394map
-rw-r--r-- 1 root root 8330 Mar 23 15:13
modules.isapnpmap
-rw-r--r-- 1 root root 29 Mar 23 15:13
modules.parportmap
-rw-r--r-- 1 root root 65563 Mar 23 15:13
modules.pcimap
-rw-r--r-- 1 root root 24 Mar 23 15:13
modules.pnpbiosmap
-rw-r--r-- 1 root root 136489 Mar 23 15:13
modules.usbmap
drwxr-xr-x 2 root root 4096 Sep 7 2004
pcmcia

...

Discussion