On Sun, 12 Oct 2003, Chris Smith wrote:
> Using a previously working simple configure:
>
> ./configure --with-cards=hdsp,intel8x0 --with-sequencer=yes --with-oss=yes
> --with-isapnp=no
>
> With alsa-driver 0.9.6 I get this error during make:
>
> In file included from
> /usr/local/src/alsa-driver-0.9.6/include/sound/driver.h:42,
> from hwdep.c:22:
> /usr/local/src/alsa-driver-0.9.6/include/adriver.h:200: redefinition of
> `irqreturn_t'
> /lib/modules/2.4.23-pre7/build/include/linux/interrupt.h:16: `irqreturn_t'
> previously declared here
> make[1]: *** [hwdep.o] Error 1
> make[1]: Leaving directory `/usr/local/src/alsa-driver-0.9.6/acore'
> make: *** [compile] Error 1
>
> With alsa-driver 0.9.7b I get this error during make:
>
> In file included from memalloc.c:27:
> /lib/modules/2.4.23-pre7/build/include/linux/proc_fs.h:213: redefinition of
> `PDE'
> /usr/local/src/alsa-driver-0.9.7b/include/adriver.h:133: `PDE' previously
> defined here
> make[1]: *** [memalloc.o] Error 1
> make[1]: Leaving directory `/usr/local/src/alsa-driver-0.9.7b/acore'
> make: *** [compile] Error 1
>
> Outside of dropping back to 2.4.22 what can be done?
Bellow patch will solve your problem for 0.9.7b.
Jaroslav
Index: configure.in
===================================================================
RCS file: /cvsroot/alsa/alsa-driver/configure.in,v
retrieving revision 1.194
diff -u -r1.194 configure.in
--- configure.in 10 Oct 2003 14:47:38 -0000 1.194
+++ configure.in 12 Oct 2003 16:39:23 -0000
@@ -1027,6 +1027,7 @@
#define __KERNEL__
#include "$CONFIG_SND_KERNELDIR/include/linux/config.h"
#include "$CONFIG_SND_KERNELDIR/include/linux/fs.h"
+#include "$CONFIG_SND_KERNELDIR/include/linux/proc_fs.h"
],[
PDE(NULL);
],
Index: include/adriver.h
===================================================================
RCS file: /cvsroot/alsa/alsa-driver/include/adriver.h,v
retrieving revision 1.59
diff -u -r1.59 adriver.h
--- include/adriver.h 6 Oct 2003 10:09:33 -0000 1.59
+++ include/adriver.h 12 Oct 2003 16:39:23 -0000
@@ -129,6 +129,7 @@
#endif
#ifndef CONFIG_HAVE_PDE
#include <linux/fs.h>
+#include <linux/proc_fs.h>
static inline struct proc_dir_entry *PDE(const struct inode *inode)
{
return (struct proc_dir_entry *) inode->u.generic_ip;
-----
Jaroslav Kysela <[EMAIL PROTECTED]>
Linux Kernel Sound Maintainer
ALSA Project, SuSE Labs
-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
SourceForge.net hosts over 70,000 Open Source Projects.
See the people who have HELPED US provide better services:
Click here: http://sourceforge.net/supporters.php
_______________________________________________
Alsa-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/alsa-user