At 21 Jun 2002 10:27:16 -0400,
Ryan Davis wrote:
> 
> I'm trying to get my onboard AC97 sound working.  I have an ePox 8KHA+
> with a VIA KT266/A chipset.
> 
> I am using redhat 7.2.  
> 
> I ran sndconfig, and it identified the sound card, and kindly informed
> me that the ALSA project had a driver.  So, I went over there, and got
> the rc2 alsa-driver,lib, util files.  I ran ./configure in the driver
> directory with no problems, and I get this result from make:
> 
> <console>
> [root@brazil alsa-driver-0.9.0rc2]# make
> make[1]: Entering directory `/root/alsa-driver-0.9.0rc2/acore'
> gcc -DALSA_BUILD -D__KERNEL__ -DMODULE=1
> -I/root/alsa-driver-0.9.0rc2/include
> -I/lib/modules/2.4.7-10/build/include -O2 -mpreferred-stack-boundary=2
> -march=athlon -DLINUX -Wall -Wstrict-prototypes -fomit-frame-pointer
> -pipe   -DEXPORT_SYMTAB -c hwdep.c
> In file included from /root/alsa-driver-0.9.0rc2/include/adriver.h:40,
>                  from
> /root/alsa-driver-0.9.0rc2/include/sound/driver.h:43,
>                  from ../alsa-kernel/core/hwdep.c:22,
>                  from hwdep.c:1:
> /lib/modules/2.4.7-10/build/include/linux/modversions.h:1:2: #error
> Modules should never use kernel-headers system headers,
> /lib/modules/2.4.7-10/build/include/linux/modversions.h:2:2: #error but
> rather headers from an appropriate kernel-source package.
> /lib/modules/2.4.7-10/build/include/linux/modversions.h:3:2: #error
> Change -I/usr/src/linux/include (or similar) to
> /lib/modules/2.4.7-10/build/include/linux/modversions.h:4:2: #error
> -I/lib/modules/$(uname -r)/build/include
> /lib/modules/2.4.7-10/build/include/linux/modversions.h:5:2: #error to
> build against the currently-running kernel.
> make[1]: *** [hwdep.o] Error 1
> make[1]: Leaving directory `/root/alsa-driver-0.9.0rc2/acore'
> make: *** [compile] Error 1
> </console>

well, the error message shows what you should do.
perhaps you haven't installed the kernel source tree, or
/lib/modules/XXX/build is linked to a wrong directory.

please make sure that

- you have a kernel source tree with the correct version and
  configuration matching with your running system,
- the kernel tree is symlinked (or stored there) in /usr/src/linux,
  or alternatively /lib/modules/XXX/build where XXX is the version
  number of your kernel, or ...
- specify the location of the kernel tree via --with-kernel option of
  configure script


> I've just recently joined this list, so I apologize if this has been
> answered a million times.  I did notice people posting their
> Makefile.conf.in, so here's that:
 
this doesn't help - please check Makefile.conf instead.
also, if something wrong occurs in configure, please check config.log
and find out the point where the error happens (search the string,
such as 'checking for directory with kernel source').


Takashi


-------------------------------------------------------
Sponsored by:
ThinkGeek at http://www.ThinkGeek.com/
_______________________________________________
Alsa-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/alsa-user

Reply via email to