Eror building megaraid_sas 03.09 on SLES9 kernel 2.6.5-7.283-smp

Silviu Marin-Caea silviu_marin-caea at stargame.ro
Wed Jun 27 07:56:16 CDT 2007


Unfortunately, the latest kernel from SLES9 has megaraid_sas 02.00 which does 
not see the internal storage at full capacity of 3.4 TB, it only sees 2 TB.

I have installed using the DUD from Dell, but I need to apply updates and the 
megaraid_sas module does not compile for the updated kernel.


tapelib1:~ # dkms build -m megaraid_sas -v v00.00.03.09

Kernel preparation unnecessary for this kernel.  Skipping...

Building module:
cleaning build area....
make KERNELRELEASE=2.6.5-7.283-smp -C /lib/modules/2.6.5-7.283-smp/build 
SUBDIRS=/var/lib/dkms/megaraid_sas/v00.00.03.09/build modules....(bad exit 
status: 2)

Error! Bad return status for module build on kernel: 2.6.5-7.283-smp (x86_64)
Consult the make.log in the build directory
/var/lib/dkms/megaraid_sas/v00.00.03.09/build/ for more information.


apelib1:~ # cat /var/lib/dkms/megaraid_sas/v00.00.03.09/build/make.log
DKMS make.log for megaraid_sas-v00.00.03.09 for kernel 2.6.5-7.283-smp 
(x86_64)
Wed Jun 27 16:15:15 EEST 2007
make: Entering directory `/usr/src/linux-2.6.5-7.283-obj/x86_64/smp'
make -C ../../../linux-2.6.5-7.283 O=../linux-2.6.5-7.283-obj/x86_64/smp 
modules
  CC [M]  /var/lib/dkms/megaraid_sas/v00.00.03.09/build/megaraid_sas.o
/var/lib/dkms/megaraid_sas/v00.00.03.09/build/megaraid_sas.c:40:25: 
linux/mutex.h: No such file or directory
/var/lib/dkms/megaraid_sas/v00.00.03.09/build/megaraid_sas.c:58: error: 
`PCI_DEVICE_ID_LSI_SAS1064R' undeclared here (not in a function)
/var/lib/dkms/megaraid_sas/v00.00.03.09/build/megaraid_sas.c:58: error: 
initializer element is not constant
/var/lib/dkms/megaraid_sas/v00.00.03.09/build/megaraid_sas.c:58: error: (near 
initialization for `megasas_pci_table[0].device')
/var/lib/dkms/megaraid_sas/v00.00.03.09/build/megaraid_sas.c:58: error: 
initializer element is not constant
/var/lib/dkms/megaraid_sas/v00.00.03.09/build/megaraid_sas.c:58: error: (near 
initialization for `megasas_pci_table[0]')
/var/lib/dkms/megaraid_sas/v00.00.03.09/build/megaraid_sas.c:60: error: 
initializer element is not constant
/var/lib/dkms/megaraid_sas/v00.00.03.09/build/megaraid_sas.c:60: error: (near 
initialization for `megasas_pci_table[1]')
/var/lib/dkms/megaraid_sas/v00.00.03.09/build/megaraid_sas.c:62: error: 
initializer element is not constant
/var/lib/dkms/megaraid_sas/v00.00.03.09/build/megaraid_sas.c:62: error: (near 
initialization for `megasas_pci_table[2]')
/var/lib/dkms/megaraid_sas/v00.00.03.09/build/megaraid_sas.c:64: error: 
`PCI_DEVICE_ID_DELL_PERC5' undeclared here (not in a function)
/var/lib/dkms/megaraid_sas/v00.00.03.09/build/megaraid_sas.c:64: error: 
initializer element is not constant
/var/lib/dkms/megaraid_sas/v00.00.03.09/build/megaraid_sas.c:64: error: (near 
initialization for `megasas_pci_table[3].device')
/var/lib/dkms/megaraid_sas/v00.00.03.09/build/megaraid_sas.c:64: error: 
initializer element is not constant
/var/lib/dkms/megaraid_sas/v00.00.03.09/build/megaraid_sas.c:64: error: (near 
initialization for `megasas_pci_table[3]')
/var/lib/dkms/megaraid_sas/v00.00.03.09/build/megaraid_sas.c:66: error: 
initializer element is not constant
/var/lib/dkms/megaraid_sas/v00.00.03.09/build/megaraid_sas.c:66: error: (near 
initialization for `megasas_pci_table[4]')
/var/lib/dkms/megaraid_sas/v00.00.03.09/build/megaraid_sas.c:74: warning: type 
defaults to `int' in declaration of `DEFINE_MUTEX'
/var/lib/dkms/megaraid_sas/v00.00.03.09/build/megaraid_sas.c:74: warning: 
parameter names (without types) in function declaration
/var/lib/dkms/megaraid_sas/v00.00.03.09/build/megaraid_sas.c: In function 
`megasas_generic_reset':
/var/lib/dkms/megaraid_sas/v00.00.03.09/build/megaraid_sas.c:981: warning: 
implicit declaration of function `scmd_printk'
/var/lib/dkms/megaraid_sas/v00.00.03.09/build/megaraid_sas.c: In function 
`megasas_init_mfi':
/var/lib/dkms/megaraid_sas/v00.00.03.09/build/megaraid_sas.c:2080: error: 
`PCI_DEVICE_ID_LSI_SAS1064R' undeclared (first use in this function)
/var/lib/dkms/megaraid_sas/v00.00.03.09/build/megaraid_sas.c:2080: error: 
(Each undeclared identifier is reported only once
/var/lib/dkms/megaraid_sas/v00.00.03.09/build/megaraid_sas.c:2080: error: for 
each function it appears in.)
/var/lib/dkms/megaraid_sas/v00.00.03.09/build/megaraid_sas.c:2081: error: 
`PCI_DEVICE_ID_DELL_PERC5' undeclared (first use in this function)
/var/lib/dkms/megaraid_sas/v00.00.03.09/build/megaraid_sas.c: In function 
`megasas_probe_one':
/var/lib/dkms/megaraid_sas/v00.00.03.09/build/megaraid_sas.c:2629: error: 
`IRQF_SHARED' undeclared (first use in this function)
/var/lib/dkms/megaraid_sas/v00.00.03.09/build/megaraid_sas.c: In function 
`megasas_mgmt_fasync':
/var/lib/dkms/megaraid_sas/v00.00.03.09/build/megaraid_sas.c:2877: warning: 
implicit declaration of function `mutex_lock'
/var/lib/dkms/megaraid_sas/v00.00.03.09/build/megaraid_sas.c:2877: error: 
`megasas_async_queue_mutex' undeclared (first use in this function)
/var/lib/dkms/megaraid_sas/v00.00.03.09/build/megaraid_sas.c:2881: warning: 
implicit declaration of function `mutex_unlock'
/var/lib/dkms/megaraid_sas/v00.00.03.09/build/megaraid_sas.c: At top level:
/var/lib/dkms/megaraid_sas/v00.00.03.09/build/megaraid_sas.c:3240: error: 
unknown field `unlocked_ioctl' specified in initializer
/var/lib/dkms/megaraid_sas/v00.00.03.09/build/megaraid_sas.c:3240: warning: 
initialization from incompatible pointer type
/var/lib/dkms/megaraid_sas/v00.00.03.09/build/megaraid_sas.c:3242: error: 
unknown field `compat_ioctl' specified in initializer
/var/lib/dkms/megaraid_sas/v00.00.03.09/build/megaraid_sas.c:3242: warning: 
initialization from incompatible pointer type
/var/lib/dkms/megaraid_sas/v00.00.03.09/build/megaraid_sas.c:3255: error: 
unknown field `shutdown' specified in initializer
/var/lib/dkms/megaraid_sas/v00.00.03.09/build/megaraid_sas.c:3255: warning: 
initialization from incompatible pointer type
/var/lib/dkms/megaraid_sas/v00.00.03.09/build/megaraid_sas.c:74: warning: 
`DEFINE_MUTEX' declared `static' but never defined
make[3]: *** [/var/lib/dkms/megaraid_sas/v00.00.03.09/build/megaraid_sas.o] 
Error 1
make[2]: *** [_module_/var/lib/dkms/megaraid_sas/v00.00.03.09/build] Error 2
make[1]: *** [modules] Error 2
make: *** [modules] Error 2
make: Leaving directory `/usr/src/linux-2.6.5-7.283-obj/x86_64/smp'



More information about the Linux-PowerEdge mailing list