Hi,
I have downloaded alsa-driver-0.9.6.
The configure works well.
but when I launch make, I get the following error:

gcc -M -D__KERNEL__ -D__isapnp_now__ -DMODULE=1 -I/home/mathieu/admin/packages/alsa/alsa-driver-0.9.6/include -I/lib/modules/2.4.21-0.13mdk/build/include -O2 -DLINUX -Wall -Wstrict-prototypes -fomit-frame-pointer -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -pipe -DALSA_BUILD hwdep.c memalloc.c memory_wrapper.c pcm.c pcm_native.c pcm_lib.c pcm_timer.c pcm_misc.c pcm_memory.c rawmidi.c timer.c sound.c init.c memory.c info.c control.c misc.c device.c wrappers.c sound_oss.c info_oss.c > .depend
In file included from sound_oss.c:2:
../alsa-kernel/core/sound_oss.c:27:2: #error "Enable the OSS soundcore multiplexer (CONFIG_SOUND) in the kernel."


Do I have to rebuild the kernel without OSS support to be able to install alsa ?

I have tried to compile the driver without the OSS support:
./configure --with-oss=no
Then, when I launch the make, it goes further but I get the following error:

gcc -D__KERNEL__ -DMODULE=1 -I/home/mathieu/admin/packages/alsa/alsa-driver-0.9.6/include -I/lib/modules/2.4.21-0.13mdk/build/include -O2 -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 /lib/modules/2.4.21-0.13mdk/build/include/linux/module.h:21,
from /home/mathieu/admin/packages/alsa/alsa-driver-0.9.6/include/adriver.h:51,
from /home/mathieu/admin/packages/alsa/alsa-driver-0.9.6/include/sound/driver.h:42,
from hwdep.c:22:
/usr/include/linux/modversions.h:1:2: #error "======================================================="
/usr/include/linux/modversions.h:2:2: #error "You should not include /usr/include/{linux,asm}/ header"
/usr/include/linux/modversions.h:3:2: #error "files directly for the compilation of kernel modules."
/usr/include/linux/modversions.h:4:2: #error ""
/usr/include/linux/modversions.h:5:2: #error "glibc now uses kernel header files from a well-defined"
/usr/include/linux/modversions.h:6:2: #error "working kernel version (as recommended by Linus Torvalds)"
/usr/include/linux/modversions.h:7:2: #error "These files are glibc internal and may not match the"
/usr/include/linux/modversions.h:8:2: #error "currently running kernel. They should only be"
/usr/include/linux/modversions.h:9:2: #error "included via other system header files - user space"
/usr/include/linux/modversions.h:10:2: #error "programs should not directly include <linux/*.h> or"
/usr/include/linux/modversions.h:11:2: #error "<asm/*.h> as well."
/usr/include/linux/modversions.h:12:2: #error ""
/usr/include/linux/modversions.h:13:2: #error "To build kernel modules please do the following:"
/usr/include/linux/modversions.h:14:2: #error ""
/usr/include/linux/modversions.h:15:2: #error " o Have the kernel sources installed"
/usr/include/linux/modversions.h:16:2: #error ""
/usr/include/linux/modversions.h:17:2: #error " o Make sure that the symbolic link"
/usr/include/linux/modversions.h:18:2: #error " /lib/modules/`uname -r`/build exists and points to"
/usr/include/linux/modversions.h:19:2: #error " the matching kernel source directory"
/usr/include/linux/modversions.h:20:2: #error ""
/usr/include/linux/modversions.h:21:2: #error " o Now copy /boot/vmlinuz.version.h to"
/usr/include/linux/modversions.h:22:2: #error " /lib/modules/`uname -r`/build/include/linux/version.h"
/usr/include/linux/modversions.h:23:2: #error ""
/usr/include/linux/modversions.h:24:2: #error " o When compiling, make sure to use the following"
/usr/include/linux/modversions.h:25:2: #error " compiler option to use the correct include files:"
/usr/include/linux/modversions.h:26:2: #error ""
/usr/include/linux/modversions.h:27:2: #error " -I/lib/modules/`uname -r`/build/include"
/usr/include/linux/modversions.h:28:2: #error ""
/usr/include/linux/modversions.h:29:2: #error " instead of"
/usr/include/linux/modversions.h:30:2: #error ""
/usr/include/linux/modversions.h:31:2: #error " -I/usr/include/linux"
/usr/include/linux/modversions.h:32:2: #error ""
/usr/include/linux/modversions.h:33:2: #error " Please adjust the Makefile accordingly."
/usr/include/linux/modversions.h:34:2: #error "======================================================="


I don't know what to do because:
-> kernel sources are installed
-> /lib/modules/2.4.21-0.13mdk/build already exists and points to /usr/src/linux-2.4.21-0.13mdk
-> the line in the makefile is -I/lib/modules/2.4.21-0.13mdk/build/include
and not
-I/usr/include/linux


So the advices in the error message aren't usefull.

Thank you for your support



-------------------------------------------------------
This SF.net email is sponsored by: VM Ware
With VMware you can run multiple operating systems on a single machine.
WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines
at the same time. Free trial click here:http://www.vmware.com/wl/offer/358/0
_______________________________________________
Alsa-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/alsa-user

Reply via email to