QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 476|回复: 0

ML1.2pre6编译NF2驱动出错,类似fedora情况。

[复制链接]
发表于 2004-4-21 15:17:06 | 显示全部楼层 |阅读模式
也看了GCC为3.3.3,具体信息如下:
[root@MagicLinux nforce]# make
make -C  nvnet
make[1]: Entering directory `/tmp/nforce/nvnet'
cc -c -Wall -DLINUX -DMODULE -DEXPORT_SYMTAB -D__KERNEL__ -O -Wstrict-prototypes -DCONFIG_PM  -fno-strict-aliasing -mpreferred-stack-boundary=2 -march=i686 -falign-functions=4 -DMODULE -I/lib/modules/2.6.4-1mgc/build/include   nvnet.c
In file included from /lib/modules/2.6.4-1mgc/build/include/linux/irq.h:20,
                 from /lib/modules/2.6.4-1mgc/build/include/asm/hardirq.h:6,
                 from /lib/modules/2.6.4-1mgc/build/include/linux/interrupt.h:11,
                 from nvnet.h:30,
                 from nvnet.c:21:
/lib/modules/2.6.4-1mgc/build/include/asm/irq.h:16:25: irq_vectors.h: 没有那个文件或目录
In file included from /lib/modules/2.6.4-1mgc/build/include/asm/hardirq.h:6,
                 from /lib/modules/2.6.4-1mgc/build/include/linux/interrupt.h:11,
                 from nvnet.h:30,
                 from nvnet.c:21:
/lib/modules/2.6.4-1mgc/build/include/linux/irq.h:70: error: `NR_IRQS' undeclared here (not in a function)
In file included from /lib/modules/2.6.4-1mgc/build/include/linux/irq.h:72,
                 from /lib/modules/2.6.4-1mgc/build/include/asm/hardirq.h:6,
                 from /lib/modules/2.6.4-1mgc/build/include/linux/interrupt.h:11,
                 from nvnet.h:30,
                 from nvnet.c:21:
/lib/modules/2.6.4-1mgc/build/include/asm/hw_irq.h:28: error: `NR_IRQ_VECTORS' undeclared here (not in a function)
/lib/modules/2.6.4-1mgc/build/include/asm/hw_irq.h:31: error: `NR_IRQS' undeclared here (not in a function)
nvnet.c: In function `nvnet_open':
nvnet.c:735: warning: passing arg 2 of `request_irq' from incompatible pointer type
nvnet.c: In function `nvnet_remove':
nvnet.c:1248: error: structure has no member named `driver_data'
make[1]: *** [nvnet.o] 错误 1
make[1]: Leaving directory `/tmp/nforce/nvnet'
make: *** [nvnet_make] 错误 2
[root@MagicLinux nforce]#

请指点迷津,谢谢
您需要登录后才可以回帖 登录 | 注册

本版积分规则

GMT+8, 2024-11-25 18:35 , Processed in 0.043398 second(s), 15 queries .

© 2021 Powered by Discuz! X3.5.

快速回复 返回顶部 返回列表