|
楼主 |
发表于 2004-8-19 09:26:55
|
显示全部楼层
gcc 的版本 gcc-3.3.3-7
rpm 包安装在/usr/src/llinux/drivers/scsi/lpfc下。make时的出错信息如下:
[root@localhost scsi]# cd lpfc
[root@localhost lpfc]# ls
COPYING elx_mem.h lpfc.conf lpfcLINUXlan.c
core.c elx_os.h lpfc_core.c lpfc_module_param.h
elx_cfgparm.h elx_os_scsiport.h lpfc_crtn.h lpfc.spec
elx_clock.h elx_sched.h lpfc_diag.h Makefile
elx_crtn.h elx_scsi.h lpfc_disc.h prod_crtn.h
elx_disc.h elx_sli.h lpfc_hba.h prod_linux.c
elx.h elx_util.h lpfc_hw.h prod_os.h
elx_hw.h hbaapi.h lpfc_ioctl.h README
elx_ioctl.h Install.sh lpfc_ip.h Remove.sh
elx_logmsg.h lpfc_cfgparm.h lpfcLINUXfcp.c
[root@localhost lpfc]# make
gcc -Wall -O2 -fomit-frame-pointer -D__KERNEL__ -DVARYIO=21 -DUSE_HIGHMEM_IO=2
-I/lib/modules/2.6.5-1.358/build/include -I/lib/modules/2.6.5-1.358/build/driver
s/scsi -I/lib/modules/2.6.5-1.358/build/include/scsi -DMODULE -DMODVERSIONS -inc
lude /lib/modules/2.6.5-1.358/build/include/linux/modversions.h -c lpfc_core.c
<command line>:165425646:12848: /lib/modules/2.6.5-1.358/build/include/linux/mod
versions.h: No such file or directory
In file included from /lib/modules/2.6.5-1.358/build/include/asm/processor.h:18,
from /lib/modules/2.6.5-1.358/build/include/asm/thread_info.h:1
6,
from /lib/modules/2.6.5-1.358/build/include/linux/thread_info.h
:21,
from /lib/modules/2.6.5-1.358/build/include/linux/spinlock.h:12
,
from /lib/modules/2.6.5-1.358/build/include/linux/irq.h:17,
from /lib/modules/2.6.5-1.358/build/include/asm/hardirq.h:6,
from /lib/modules/2.6.5-1.358/build/include/linux/delay.h:13,
from prod_crtn.h:24,
from lpfc_core.c:39:
/lib/modules/2.6.5-1.358/build/include/asm/system.h: In function `__set_64bit_va
r':
/lib/modules/2.6.5-1.358/build/include/asm/system.h:193: warning: dereferencing
type-punned pointer will break strict-aliasing rules
/lib/modules/2.6.5-1.358/build/include/asm/system.h:193: warning: dereferencing
type-punned pointer will break strict-aliasing rules
In file included from /lib/modules/2.6.5-1.358/build/include/linux/irq.h:20,
from /lib/modules/2.6.5-1.358/build/include/asm/hardirq.h:6,
from /lib/modules/2.6.5-1.358/build/include/linux/delay.h:13,
from prod_crtn.h:24,
from lpfc_core.c:39:
/lib/modules/2.6.5-1.358/build/include/asm/irq.h:16:25: irq_vectors.h: No such f
ile or directory
In file included from /lib/modules/2.6.5-1.358/build/include/asm/hardirq.h:6,
from /lib/modules/2.6.5-1.358/build/include/linux/delay.h:13,
from prod_crtn.h:24,
from lpfc_core.c:39:
/lib/modules/2.6.5-1.358/build/include/linux/irq.h: At top level:
/lib/modules/2.6.5-1.358/build/include/linux/irq.h:70: error: `NR_IRQS' undeclar
ed here (not in a function)
In file included from /lib/modules/2.6.5-1.358/build/include/linux/irq.h:72,
from /lib/modules/2.6.5-1.358/build/include/asm/hardirq.h:6,
from /lib/modules/2.6.5-1.358/build/include/linux/delay.h:13,
from prod_crtn.h:24,
from lpfc_core.c:39:
/lib/modules/2.6.5-1.358/build/include/asm/hw_irq.h:28: error: `NR_IRQ_VECTORS'
undeclared here (not in a function)
/lib/modules/2.6.5-1.358/build/include/asm/hw_irq.h:32: error: `NR_IRQS' undecla
red here (not in a function)
make: *** [obj_lower] Error 1
[root@localhost lpfc]# rpm -q gcc
gcc-3.3.3-7
[root@localhost lpfc]#
在线等。。。。。。。 |
|