What to do?
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking for ranlib... ranlib
checking for a BSD-compatible install... /usr/bin/install -c
checking how to run the C preprocessor... gcc -E
checking for egrep... grep -E
checking for ANSI C header files... yes
checking for an ANSI C-conforming const... yes
checking for inline... inline
checking whether time.h and sys/time.h may both be included... yes
checking whether gcc needs -traditional... no
checking for current directory... /usr/src/linux-2.4.18/alsa-driver-1.0.0rc2/alsa-driver-1.0.0rc2 checking cross compile...
checking for directory with kernel source... /usr/src/linux
checking for kernel version... 2.2.19-3.asp
checking for GCC version... Kernel compiler: gcc egcs-2.91.66 19990314/Linux (egcs-1.1.2 release) Used compiler: 2.96 Fatal error: Compiler type does not match
Decoded kernel compiler: type=egcs version=2.91.66
Decoded used compiler: type=gcc version=2.96
Please, send ./configure output to <[email protected]>
Quoted 9 lines · áÎÄÒiÊ ñÒÅÍËÏ
...
checking for current directory.../usr/src/linux-2.4.18/alsa-driver-1.0.0rc2/alsa-driver-1.0.0rc2
...
checking for directory with kernel source.../usr/src/linux
checking for kernel version... 2.2.19-3.asp
checking for GCC version... Kernel compiler: gcc egcs-2.91.66 19990314/Linux (egcs-1.1.2 release) Used compiler: 2.96 Fatal error: Compiler type does not match
Decoded kernel compiler: type=egcs version=2.91.66
Decoded used compiler: type=gcc version=2.96
If the kernel you're compiling ALSA for is not the kernel currently running, you have to tell the configure script which kernel to use with the --with-kernel option. In your case, it's probably --with-kernel=/usr/src/linux-2.4.18. And you might consider using ALSA 1.0.6 instead of 1.0.0rc2.
HTH
Clemens
-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_idP47&alloc_id808&op=click
Quoted 11 lines · Clemens Ladisch
Quoted 9 lines · áÎÄ?i? ???ÍË?
...
checking for current directory.../usr/src/linux-2.4.18/alsa-driver-1.0.0rc2/alsa-driver-1.0.0rc2
...
checking for directory with kernel source.../usr/src/linux
checking for kernel version... 2.2.19-3.asp
checking for GCC version... Kernel compiler: gcc egcs-2.91.66 19990314/Linux (egcs-1.1.2 release) Used compiler: 2.96 Fatal error: Compiler type does not match
Decoded kernel compiler: type=egcs version=2.91.66
Decoded used compiler: type=gcc version=2.96
Quoted 5 lines
If the kernel you're compiling ALSA for is not the kernel currently running, you have to tell the configure script which kernel to use with the --with-kernel option. In your case, it's probably --with-kernel=/usr/src/linux-2.4.18. And you might consider using ALSA 1.0.6 instead of 1.0.0rc2.
Also, it might be required to specify different compilator for older RH kernels. Try something like this:
CC=egcs ./configure <your_parameters>
Jaroslav
-----
Jaroslav Kysela <[email protected]>
Linux Kernel Sound Maintainer
ALSA Project, SUSE Labs
-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_idP47&alloc_id808&op=click