Re: dkms build of aacraid fails for fedora?

Andrew Leahy <[email protected]> Tue, 02 Dec 2003 15:15:56 -0600
Newsgroups gmane.linux.drivers.aacraid.devel
Message-ID <[email protected]>
I had an older version of dkms, so I upgraded to version 1.00 from your 
web site.  That didn't fix it.  I looked at the file that was causing 
the error (see the original message below) and I found that there is a 
snippet of code in rx.c, sa.c, and rkt.c which was causing the conflict:

#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,5,0))
# include <linux/interrupt.h>
#else
   typedef void irqreturn_t;
# define IRQ_HANDLED
# define IRQ_NONE
#endif

I deleted the typedef line in each file and ran dkms build and dkms 
install without a hitch.  The system rebooted cleanly.  I'll keep my 
fingers crossed :-)

I'm no kernel developer, but are these changes related to the irqbalance 
daemon that showed up in FC 1?

Let me know if there's a better way to do this.

Thanks.

Andrew Leahy


[email protected] wrote:

> It's likely that the aacraid code needs a patch to function correctly on the
> fedora kernel, but I'm not sure if that is the case or what the patch might
> be.  Also, let us know what version of DKMS you were using.
> 
> 
>>-----Original Message-----
>>
>>Hello,
>>
>>Having experienced the well-known system hangs with the PERC 
>>3/DI RAID 
>>controller on a PE2650 using previous versions of RedHat, I wanted to 
>>install the latest version of the aacraid module on a system recently 
>>upgraded to fedora core 1.  However, the dkms build fails with:
>>
>>cleaning build area....
>>make -C /lib/modules/2.4.22-1.2115.nptlsmp/build 
>>SUBDIRS=/var/dkms/aacraid/1.1.4.2225/build modules.....(bad 
>>exit status: 2)
>>
>>Error!  Module build aacraid.o failed for kernel: 
>>2.4.22-1.2115.nptlsmp
>>Consult the make.log in the build directory
>>/var/dkms/aacraid/1.1.4.2225/build/ for more information.
>>
>>The tail of the make.log file is:
>>
>>gcc32 -D__KERNEL__ -I/usr/src/linux-2.4.22-1.2115.nptl/include -Wall 
>>-Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing 
>>-fno-common 
>>-fomit-frame-pointer -pipe -mpreferred-stack-boundary=2 -march=i686 
>>-DMODULE -DMODVERSIONS -include 
>>/usr/src/linux-2.4.22-1.2115.nptl/include/linux/modversions.h 
>>-I/usr/src/linux-2.4.22-1.2115.nptl/drivers/scsi  -nostdinc 
>>-iwithprefix 
>>include -DKBUILD_BASENAME=rx  -c -o rx.o rx.c
>>rx.c:46: redefinition of `irqreturn_t'
>>/usr/src/linux-2.4.22-1.2115.nptl/include/linux/interrupt.h:16: 
>>`irqreturn_t' previously declared here
>>make[1]: *** [rx.o] Error 1
>>make[1]: Leaving directory `/var/dkms/aacraid/1.1.4.2225/build'
>>make: *** [_mod_/var/dkms/aacraid/1.1.4.2225/build] Error 2
>>make: Leaving directory `/usr/src/linux-2.4.22-1.2115.nptl'
>>
>>Does anybody know how to fix this problem?  Linux kernel 
>>version is 2.4.22.
>>
>>Thanks for any assistance.
>>
>>Andrew Leahy
>>

---
[This E-mail scanned for viruses by Declude Virus]

_______________________________________________
Linux-aacraid-devel mailing list
[email protected]
http://lists.us.dell.com/mailman/listinfo/linux-aacraid-devel
Please read the FAQ at http://lists.us.dell.com/faq or search the list archives at http://lists.us.dell.com/htdig/