[root@localhost linux-iscsi-4.0.2]# ll
total 176
drwxr-xr-x 4 root root 4096 Mar 16 2005 common
-rw-r--r-- 1 root root 18009 Mar 11 2005 COPYING
drwxr-xr-x 4 root root 4096 Mar 16 2005 daemon
drwxr-xr-x 3 root root 4096 Mar 16 2005 driver
drwxr-xr-x 2 root root 4096 Mar 16 2005 include
-rw-r--r-- 1 root root 13381 Mar 16 2005 Makefile
drwxr-xr-x 2 root root 4096 Mar 16 2005 man
drwxr-xr-x 4 root root 4096 Mar 16 2005 misc
-rw-r--r-- 1 root root 65922 Mar 16 2005 README
drwxr-xr-x 4 root root 4096 Mar 16 2005 utils
[root@localhost linux-iscsi-4.0.2]# make
Note: using kernel source from /lib/modules/2.6.18-194.el5/build
containing kernel version 2.6.18-194.el5
Note: using kernel config from /lib/modules/2.6.18-194.el5/build/.config
make[1]: Entering directory `/usr/src/kernels/2.6.18-194.el5-i686'
CC [M] /root/linux-iscsi-4.0.2/driver/iscsi-initiator.o
In file included from /root/linux-iscsi-4.0.2/driver/include/scsi_transport_iscsi.h:24,
from /root/linux-iscsi-4.0.2/driver/iscsi-initiator.c:34:
include/linux/config.h:6:2: error: #warning Including config.h is deprecated.
/root/linux-iscsi-4.0.2/driver/iscsi-initiator.c: In function ‘iscsi_init’:
/root/linux-iscsi-4.0.2/driver/iscsi-initiator.c:547: error: ‘UTS_RELEASE’ undeclared (first use in this function)
/root/linux-iscsi-4.0.2/driver/iscsi-initiator.c:547: error: (Each undeclared identifier is reported only once
/root/linux-iscsi-4.0.2/driver/iscsi-initiator.c:547: error: for each function it appears in.)
/root/linux-iscsi-4.0.2/driver/iscsi-initiator.c:553: error: ‘SLAB_NO_REAP’ undeclared (first use in this function)
make[2]: *** [/root/linux-iscsi-4.0.2/driver/iscsi-initiator.o] Error 1
make[1]: *** [_module_/root/linux-iscsi-4.0.2/driver] Error 2
make[1]: Leaving directory `/usr/src/kernels/2.6.18-194.el5-i686'
make: *** [module] Error 2
[root@localhost linux-iscsi-4.0.2]# less /root/linux-iscsi-4.0.2/driver/iscsi-initiator.c
25 #include
26 #include
27 #include
28 #include
29 #include
30 #include
31 #include
32 #include
33
34 #include "scsi_transport_iscsi.h"
35 #include "iscsi-sfnet.h"
36 #include "iscsi-session.h"
37 #include "iscsi-protocol.h"
38 #include "iscsi-task.h"
39 #include "iscsi-version.h"
544 static int
545 __init iscsi_init(void)
546 {
547 iscsi_notice("%s (%s) built for Linux %s\n", ISCSI_DRIVER_VERSION,
548 ISCSI_DATE, UTS_RELEASE);
549
550 /* pool of iscsi tasks */
551 iscsi_task_cache = kmem_cache_create("iscsi_task_cache",