[alsa-devel] ALSA driver - make error
I tried to compile latest alsa drivers anf I got make error. all the relevant information is included here. I think there is a bug in source code.
[root@dune alsa-driver-1.0.21]# ./configure --with-oss=yes --with-pcm-oss=yes --with-sequencer=yes --with-cards=all --with-card-options=all --prefix=/usr
................... .................... make[2]: Leaving directory `/usr/local/src/alsa/alsa-driver-1.0.21/misc' make[1]: Leaving directory `/usr/local/src/alsa/alsa-driver-1.0.21' make -C /lib/modules/2.6.18-128.4.1.el5/source SUBDIRS=/usr/local/src/alsa/alsa-driver-1.0.21 CPP="gcc -E" CC="gcc" modules make[1]: Entering directory `/usr/src/kernels/2.6.18-128.4.1.el5-i686' CC [M] /usr/local/src/alsa/alsa-driver-1.0.21/acore/hwdep.o In file included from /usr/local/src/alsa/alsa-driver-1.0.21/acore/hwdep.c:1: /usr/local/src/alsa/alsa-driver-1.0.21/include/adriver.h:1786: error: redefinition of typedef ‘bool’ include/linux/types.h:36: error: previous declaration of ‘bool’ was here make[3]: *** [/usr/local/src/alsa/alsa-driver-1.0.21/acore/hwdep.o] Error 1 make[2]: *** [/usr/local/src/alsa/alsa-driver-1.0.21/acore] Error 2 make[1]: *** [_module_/usr/local/src/alsa/alsa-driver-1.0.21] Error 2 make[1]: Leaving directory `/usr/src/kernels/2.6.18-128.4.1.el5-i686' make: *** [compile] Error 2
[root@dune alsa-driver-1.0.21]# gcc --version gcc (GCC) 4.1.2 20080704 (Red Hat 4.1.2-44) Copyright (C) 2006 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
[root@dune alsa-driver-1.0.21]# uname -a Linux dune 2.6.18-128.4.1.el5 #1 SMP Tue Aug 4 20:23:34 EDT 2009 i686 athlon i386 GNU/Linux [root@dune alsa-driver-1.0.21]# cat /etc/issue CentOS release 5.3 (Final) Kernel \r on an \m
[root@dune alsa-driver-1.0.21]#
At Tue, 1 Sep 2009 10:41:43 +0530, arnuld uttre wrote:
I tried to compile latest alsa drivers anf I got make error. all the relevant information is included here. I think there is a bug in source code.
Well, you are using the modified kernel tree, so it's your responsibility :) Basically we support only vanilla kernels.
[root@dune alsa-driver-1.0.21]# ./configure --with-oss=yes --with-pcm-oss=yes --with-sequencer=yes --with-cards=all --with-card-options=all --prefix=/usr
................... .................... make[2]: Leaving directory `/usr/local/src/alsa/alsa-driver-1.0.21/misc' make[1]: Leaving directory `/usr/local/src/alsa/alsa-driver-1.0.21' make -C /lib/modules/2.6.18-128.4.1.el5/source SUBDIRS=/usr/local/src/alsa/alsa-driver-1.0.21 CPP="gcc -E" CC="gcc" modules make[1]: Entering directory `/usr/src/kernels/2.6.18-128.4.1.el5-i686' CC [M] /usr/local/src/alsa/alsa-driver-1.0.21/acore/hwdep.o In file included from /usr/local/src/alsa/alsa-driver-1.0.21/acore/hwdep.c:1: /usr/local/src/alsa/alsa-driver-1.0.21/include/adriver.h:1786: error: redefinition of typedef ‘bool’
An easy fix is to uncomment this line in include/adriver.h.
Takashi
participants (2)
-
arnuld uttre
-
Takashi Iwai