0 Replies Latest reply on Jul 3, 2012 7:17 AM by seweryn

    RS2CW080/ir3_sas-v00.00.06.12-1.noarch.rpm SLES11-SP2 dkms build problem

    seweryn

      hi there, having troubles building this driver under sles11-sp2, and it look like raid-console need this version to work properly:

       

      rpm -ivh dkms-2.0.22.0-1.noarch.rpm

      rpm -ivh ir3_sas-v00.00.06.12-1.noarch.rpm

       

      _gives error, so:

       

      patch < patches/sles11-sp1.patch

       

      dkms build -m megaraid_sas -v v00.00.06.12

      --------------------------------------------

       

      KMS make.log for megaraid_sas-v00.00.06.12 for kernel 3.0.13-0.27-xen (x86_64)

      Tue Jul  3 14:55:45 CEST 2012

      make: Entering directory `/usr/src/linux-3.0.13-0.27-obj/x86_64/xen'

      make -C ../../../linux-3.0.13-0.27 O=/usr/src/linux-3.0.13-0.27-obj/x86_64/xen/. modules

        Updating /var/lib/dkms/megaraid_sas/v00.00.06.12/build/Makefile.xen

        CC [M]  /var/lib/dkms/megaraid_sas/v00.00.06.12/build/megaraid_sas_base.o

      /var/lib/dkms/megaraid_sas/v00.00.06.12/build/megaraid_sas_base.c:44:28: error: linux/smp_lock.h: No such file or directory

      /var/lib/dkms/megaraid_sas/v00.00.06.12/build/megaraid_sas_base.c:3233: warning: initialization from incompatible pointer typ

      e

      /var/lib/dkms/megaraid_sas/v00.00.06.12/build/megaraid_sas_base.c:5194: error: unknown field ‘owner’ specified in initializer

      /var/lib/dkms/megaraid_sas/v00.00.06.12/build/megaraid_sas_base.c:5194: warning: excess elements in struct initializer

      /var/lib/dkms/megaraid_sas/v00.00.06.12/build/megaraid_sas_base.c:5194: warning: (near initialization for ‘sysfs_max_sectors_

      attr.attr’)

      /var/lib/dkms/megaraid_sas/v00.00.06.12/build/megaraid_sas_base.c:5197: warning: initialization from incompatible pointer typ

      e

      /var/lib/dkms/megaraid_sas/v00.00.06.12/build/megaraid_sas_base.c: In function ‘megasas_mgmt_open’:

      /var/lib/dkms/megaraid_sas/v00.00.06.12/build/megaraid_sas_base.c:5994: error: implicit declaration of function ‘cycle_kernel

      _lock’

      make[3]: *** [/var/lib/dkms/megaraid_sas/v00.00.06.12/build/megaraid_sas_base.o] Error 1

      make[2]: *** [_module_/var/lib/dkms/megaraid_sas/v00.00.06.12/build] Error 2

      make[1]: *** [sub-make] Error 2

      make: *** [all] Error 2

      make: Leaving directory `/usr/src/linux-3.0.13-0.27-obj/x86_64/xen'

       

       

      ,need a help building this...