|
发表于 2002-12-11 23:47:25
|
显示全部楼层
救命:为什么我编译alsa不能通过?
我的机器是845G主板,集成的声卡是Avance AC97声卡.
装了RedHat8.0后,声卡不能发声.
我从www.alsa-project.org下了三个包
alsa-proalsa-driver-0.5.12a.tar.bz2,
alsa-lib-0.5.10b.tar.bz2,alsa-utils-0.5.10.tar.bz2
准备按照前面弟兄们的指点编译一把.
在/usr/src/alsa中解开driver包
./configure没有问题
但在make的时候出错,信息如下:
make dep
make[1]: Entering directory `/usr/src/alsa/alsa-driver-0.5.12a'
ln -sf ../support/isapnp.h include/isapnp.h
make[2]: Entering directory `/usr/src//alsa/alsa-driver-0.5.12a/kernel'
rm -f ../include/modules/sound.ver
gcc -DALSA_BUILD -D__KERNEL__ -I/usr/src/linux/include -I.. -E -D__GENKSYMS__ sound.c | /sbin/genksyms -k 0.0.0 > ../include/modules/sound.ver
In file included from /usr/src/linux/include/linux/config.h:4,
from ../include/driver.h:47,
from sound.c:23:
/usr/include/linux/autoconf.h:1:2: #error Invalid kernel header included in userspace
Usage:
genksyms [-dDwqhV] [-k kernel_version] [-p prefix] > .../linux/module/*.ver
-d, --debug Increment the debug level (repeatable)
-D, --dump Dump expanded symbol defs (for debugging only)
-w, --warnings Enable warnings
-q, --quiet Disable warnings (default)
-h, --help Print this message
-V, --version Print the release version
-k ver
--kernel ver Set the kernel version for which we are compiling
-p string
--prefix string Set a mangling prefix for all symbols
make[2]: *** [../include/modules/sound.ver] Error 1
make[2]: Leaving directory `/tmp/alsa/alsa-driver-0.5.12a/kernel'
make[1]: *** [dep] Error 1
make[1]: Leaving directory `/tmp/alsa/alsa-driver-0.5.12a'
make: *** [include/sndversions.h] Error 2
我的内核代码包在/usr/src/linux下,版本是2.4.18-14
怎么回事???请兄弟们帮帮忙.
太郁闷了,都搞了几个晚上了,还没能脱离无声世界.
热盼兄弟们帮我脱离苦海!!!不胜感激!!! |
|