linux iscsi 源码编译,Linux操作系统安装iscsi连接IP-SAN磁盘、编译的时候报错,各种linux技术牛火速围观啊...

[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",

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值