免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1407 | 回复: 0
打印 上一主题 下一主题

编译raid卡驱动时出错??? [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2007-03-28 14:48 |只看该作者 |倒序浏览
我有一块3ware 9650se sata 2 raid controller 的raid卡,我要装redhat as 4但只找到了原代码的驱动.原代码文件有:
3w-9xxx.c  
3w-9xxx.h  
Makefile

我另外一台redhat as 4 kernel 2.6.9-22的机器上编译这个原代码,但是报以下错,这是怎么会事???:

[root@localhost driver]# make
make V=1 -I/lib/modules/2.6.9-22.ELsmp/source/drivers/scsi -C /lib/modules/2.6.9-22.ELsmp/source SUBDIRS=/root/3ware/driver modules
make[1]: Entering directory `/usr/src/kernels/2.6.9-22.EL-smp-i686'
mkdir -p /root/3ware/driver/.tmp_versions
make -f scripts/Makefile.build obj=/root/3ware/driver
  gcc -Wp,-MD,/root/3ware/driver/.3w-9xxx.o.d -nostdinc -iwithprefix include -D__KERNEL__ -Iinclude  -I/lib/modules/2.6.9-22.ELsmp/source/drivers/scsi -Wall -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Os -fomit-frame-pointer -g -Wdeclaration-after-statement -pipe -msoft-float -m32 -fno-builtin-sprintf -fno-builtin-log2 -fno-builtin-puts  -mpreferred-stack-boundary=2 -fno-unit-at-a-time -march=i686 -mregparm=3 -Iinclude/asm-i386/mach-generic -Iinclude/asm-i386/mach-default   -DMODULE -DKBUILD_BASENAME=3w_9xxx -DKBUILD_MODNAME=3w_9xxx -c -o /root/3ware/driver/.tmp_3w-9xxx.o /root/3ware/driver/3w-9xxx.c
In file included from /root/3ware/driver/3w-9xxx.c:93:
/root/3ware/driver/3w-9xxx.h:675: error: field `ioctl_lock' has incomplete type
/root/3ware/driver/3w-9xxx.c: In function `twa_chrdev_ioctl':
/root/3ware/driver/3w-9xxx.c:641: warning: implicit declaration of function `mutex_lock_interruptible'
/root/3ware/driver/3w-9xxx.c:1185:32: macro "mutex_init" requires 3 arguments, but only 1 given
/root/3ware/driver/3w-9xxx.c: In function `twa_initialize_device_extension':
/root/3ware/driver/3w-9xxx.c:1185: error: `mutex_init' undeclared (first use in this function)
/root/3ware/driver/3w-9xxx.c:1185: error: (Each undeclared identifier is reported only once
/root/3ware/driver/3w-9xxx.c:1185: error: for each function it appears in.)
/root/3ware/driver/3w-9xxx.c: In function `twa_scsi_eh_reset':
/root/3ware/driver/3w-9xxx.c:1742: warning: implicit declaration of function `sdev_printk'
/root/3ware/driver/3w-9xxx.c:1747:32: macro "mutex_lock" requires 2 arguments, but only 1 given
/root/3ware/driver/3w-9xxx.c:1747: error: `mutex_lock' undeclared (first use in this function)
/root/3ware/driver/3w-9xxx.c: At top level:
/root/3ware/driver/3w-9xxx.c:2038: error: unknown field `change_queue_depth' specified in initializer
/root/3ware/driver/3w-9xxx.c:2038: warning: initialization from incompatible pointer type
/root/3ware/driver/3w-9xxx.c:2237: error: unknown field `shutdown' specified in initializer
/root/3ware/driver/3w-9xxx.c:2238: warning: initialization from incompatible pointer type
make[2]: *** [/root/3ware/driver/3w-9xxx.o] Error 1
make[1]: *** [_module_/root/3ware/driver] Error 2
make[1]: Leaving directory `/usr/src/kernels/2.6.9-22.EL-smp-i686'
make: *** [default] Error 2
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP