[Gllug] ALSA sound driver problems
will
will at hellacool.co.uk
Wed Jan 2 23:39:56 UTC 2002
Hi All,
Well, I have a nice new motherboard with an onboard sound card.
sndconfig reported that I have a VIA Technologies|AC97 card and that I
needed the ALSA driver. I downloaded it and 2 other tar.gz packages
that I needed and tried to compile them by doing a ./configure:
[root at localhost alsa-driver-0.5.9d]# ./configure
loading cache ./config.cache
checking for gcc... (cached) gcc
checking whether the C compiler (gcc ) works... yes
checking whether the C compiler (gcc ) is a cross-compiler... no
checking whether we are using GNU C... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for ranlib... (cached) ranlib
checking for a BSD compatible install... (cached) /usr/bin/install -c
checking how to run the C preprocessor... (cached) gcc -E
checking for ANSI C header files... (cached) yes
checking for linux/fs.h... (cached) yes
checking for working const... (cached) yes
checking for inline... (cached) inline
checking whether time.h and sys/time.h may both be included... (cached) yes
checking whether gcc needs -traditional... (cached) no
checking for directory with kernel source... /usr/src/linux
checking for kernel version... 2.4.9
checking for kernel module symbol versions... no
checking for PCI support in kernel... no
checking for SGI/MIPS (HAL2) architecture... no
checking for directory to store kernel modules... /lib/modules/2.4.9/misc
checking for debug level... none
checking for processor type... unknown
checking for SMP... no
checking for ISA PnP driver in kernel... yes
checking for ISA PnP support... yes
checking for driver version... 0.5.9d
checking for sequencer support... yes
checking for OSS/Free emulation... yes
checking for which soundcards to compile driver for... all
creating ./config.status
creating Makefile.conf
creating snddevices
creating utils/alsa-driver.spec
creating cards.config
creating include/config.h
include/config.h is unchanged
creating include/config1.h
include/config1.h is unchanged
creating include/version.h
include/version.h is unchanged
that seemed to work, then a make:
[root at localhost alsa-driver-0.5.9d]# make
make[1]: Entering directory `/usr/local/src/alsa-driver-0.5.9d/kernel'
gcc -DALSA_BUILD -D__KERNEL__ -O2 -DLINUX -Wall -Wstrict-prototypes
-fomit-frame-pointer -pipe -I/usr/src/linux/include -I.. -DEXPORT_SYMTAB
-c sound.c
In file included from ../include/driver.h:66,
from sound.c:23:
/usr/include/linux/modversions.h:1:2: #error Modules should never use
kernel-headers system headers,
/usr/include/linux/modversions.h:2:2: #error but rather headers from an
appropriate kernel-source package.
/usr/include/linux/modversions.h:3:2: #error Change
-I/usr/src/linux/include (or similar) to
/usr/include/linux/modversions.h:4:2: #error -I/lib/modules/$(uname
-r)/build/include
/usr/include/linux/modversions.h:5:2: #error to build against the
currently-running kernel.
sound.c:511:17: warning: pasting ""snd: "" and ""unable to register
native major device number %d\n"" does not give a valid
preprocessing token
sound.c:593:17: warning: pasting ""snd: "" and ""unable to unregister
major device number %d\n"" does not give a valid preprocessing token
make[1]: *** [sound.o] Error 1
make[1]: Leaving directory `/usr/local/src/alsa-driver-0.5.9d/kernel'
make: *** [compile] Error 1
[root at localhost alsa-driver-0.5.9d]#
which didn't seem to work. Does anyone have any idea why this seems to
be happening? I checked and there is a file:
/usr/include/linux/modversions.h
Any suggestions? I don't really understand the error that is being
given. I am using RH 7.2 BTW.
Will.
--
Gllug mailing list - Gllug at linux.co.uk
http://list.ftech.net/mailman/listinfo/gllug
More information about the GLLUG
mailing list