openvortex-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Openvortex-dev] compile error


From: Ryan Underwood
Subject: [Openvortex-dev] compile error
Date: Tue, 23 Sep 2003 00:58:31 -0500
User-agent: Mutt/1.5.4i

This is an upstream problem, but:
make[2]: Entering directory `/usr/src/modules/alsa-new/alsa/acore'
gcc-3.3 -D__KERNEL__ -DMODULE=1 -I/usr/src/modules/alsa-new/alsa/include  
-I/usr/src/linux/include -O2 -mpreferred-stack-boundary=2 -march=i686 -DLINUX 
-Wall -Wstrict-prototypes -fomit-frame-pointer -Wno-trigraphs -O2 
-fno-strict-aliasing -fno-common -pipe -DALSA_BUILD   -DEXPORT_SYMTAB -c hwdep.c
In file included from /usr/src/modules/alsa-new/alsa/include/sound/driver.h:42,
                 from hwdep.c:22:
/usr/src/modules/alsa-new/alsa/include/adriver.h:200: error: redefinition of 
`irqreturn_t'
/usr/src/linux/include/linux/interrupt.h:16: error: `irqreturn_t' previously 
declared here

in include/adriver.h:
#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 5, 68)
#define IRQ_NONE        /*void*/
#define IRQ_HANDLED     /*void*/
#define IRQ_RETVAL(x)   /*void*/
typedef void irqreturn_t;
#endif /* LINUX_VERSION_CODE < 2.5.68 */

wrap the 3 lines with #ifndef IRQ_NONE like:
#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 5, 68)
#ifndef IRQ_NONE
#define IRQ_NONE        /*void*/
#define IRQ_HANDLED     /*void*/
#define IRQ_RETVAL(x)   /*void*/
typedef void irqreturn_t;
#endif
#endif /* LINUX_VERSION_CODE < 2.5.68 */

This 2.6ism was also introduced in the 2.4.22 release.

-- 
Ryan Underwood, <nemesis at icequake.net>, icq=10317253




reply via email to

[Prev in Thread] Current Thread [Next in Thread]