LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 957|回复: 1

emerge alsa-lib 出错,大家帮看一下是什么原因3ks(哈哈,已经找到解决方法了)

[复制链接]
发表于 2005-11-20 21:15:02 | 显示全部楼层 |阅读模式
出错代码如下:
我的gentoo内核是2.6.14-rc2没有把alsa编译进内核,alsa-driver已经安装

  1. i686-pc-linux-gnu-gcc -shared  .libs/hda.o .libs/sbasedl.o  -Wl,--rpath -Wl,/var/tmp/portage/alsa-lib-1.0.10_rc2/work/alsa-lib-1.0.10rc2/src/.libs ../../../src/.libs/libasound.so  -march=pentium4 -Wl,-soname -Wl,smixer-hda.so -o .libs/smixer-hda.so
  2. i686-pc-linux-gnu-ar cru .libs/smixer-hda.a  hda.o sbasedl.o
  3. i686-pc-linux-gnu-ranlib .libs/smixer-hda.a
  4. creating smixer-hda.la
  5. (cd .libs && rm -f smixer-hda.la && ln -s ../smixer-hda.la smixer-hda.la)
  6. make[3]: Leaving directory `/var/tmp/portage/alsa-lib-1.0.10_rc2/work/alsa-lib-1.0.10rc2/modules/mixer/simple'
  7. make[3]: Entering directory `/var/tmp/portage/alsa-lib-1.0.10_rc2/work/alsa-lib-1.0.10rc2/modules/mixer'
  8. make[3]: Nothing to be done for `all-am'.
  9. make[3]: Leaving directory `/var/tmp/portage/alsa-lib-1.0.10_rc2/work/alsa-lib-1.0.10rc2/modules/mixer'
  10. make[2]: Leaving directory `/var/tmp/portage/alsa-lib-1.0.10_rc2/work/alsa-lib-1.0.10rc2/modules/mixer'
  11. make[2]: Entering directory `/var/tmp/portage/alsa-lib-1.0.10_rc2/work/alsa-lib-1.0.10rc2/modules'
  12. make[2]: Nothing to be done for `all-am'.
  13. make[2]: Leaving directory `/var/tmp/portage/alsa-lib-1.0.10_rc2/work/alsa-lib-1.0.10rc2/modules'
  14. make[1]: Leaving directory `/var/tmp/portage/alsa-lib-1.0.10_rc2/work/alsa-lib-1.0.10rc2/modules'
  15. Making all in aserver
  16. make[1]: Entering directory `/var/tmp/portage/alsa-lib-1.0.10_rc2/work/alsa-lib-1.0.10rc2/aserver'
  17. if i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I../include -I../include -I../src/pcm    -O2 -march=pentium4 -MT aserver.o -MD -MP -MF ".deps/aserver.Tpo" \
  18.   -c -o aserver.o `test -f 'aserver.c' || echo './'`aserver.c; \
  19. then mv -f ".deps/aserver.Tpo" ".deps/aserver.Po"; \
  20. else rm -f ".deps/aserver.Tpo"; exit 1; \
  21. fi
  22. /bin/sh ../libtool --mode=link i686-pc-linux-gnu-gcc  -O2 -march=pentium4   -o aserver  aserver.o ../src/libasound.la
  23. mkdir .libs
  24. i686-pc-linux-gnu-gcc -O2 -march=pentium4 -o .libs/aserver aserver.o  ../src/.libs/libasound.so -lm -ldl -lpthread
  25. creating aserver
  26. make[1]: Leaving directory `/var/tmp/portage/alsa-lib-1.0.10_rc2/work/alsa-lib-1.0.10rc2/aserver'
  27. Making all in alsalisp
  28. make[1]: Entering directory `/var/tmp/portage/alsa-lib-1.0.10_rc2/work/alsa-lib-1.0.10rc2/alsalisp'
  29. if i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I../include -I../include -I../src/alisp    -O2 -march=pentium4 -MT alsalisp.o -MD -MP -MF ".deps/alsalisp.Tpo" \
  30.   -c -o alsalisp.o `test -f 'alsalisp.c' || echo './'`alsalisp.c; \
  31. then mv -f ".deps/alsalisp.Tpo" ".deps/alsalisp.Po"; \
  32. else rm -f ".deps/alsalisp.Tpo"; exit 1; \
  33. fi
  34. /bin/sh ../libtool --mode=link i686-pc-linux-gnu-gcc  -O2 -march=pentium4   -o alsalisp  alsalisp.o ../src/libasound.la
  35. mkdir .libs
  36. i686-pc-linux-gnu-gcc -O2 -march=pentium4 -o .libs/alsalisp alsalisp.o  ../src/.libs/libasound.so -lm -ldl -lpthread
  37. creating alsalisp
  38. make[1]: Leaving directory `/var/tmp/portage/alsa-lib-1.0.10_rc2/work/alsa-lib-1.0.10rc2/alsalisp'
  39. Making all in test
  40. make[1]: Entering directory `/var/tmp/portage/alsa-lib-1.0.10_rc2/work/alsa-lib-1.0.10rc2/test'
  41. cd .. && \
  42.   /bin/sh /var/tmp/portage/alsa-lib-1.0.10_rc2/work/alsa-lib-1.0.10rc2/missing --run automake-1.7 --foreign  test/Makefile
  43. configure.in:12: version mismatch.  This is Automake 1.7.9,
  44. configure.in:12: but the definition used by this AM_INIT_AUTOMAKE
  45. configure.in:12: comes from Automake 1.7.6.  You should recreate
  46. configure.in:12: aclocal.m4 with aclocal and run automake again.
  47. make[1]: *** [Makefile.in] Error 1
  48. make[1]: Leaving directory `/var/tmp/portage/alsa-lib-1.0.10_rc2/work/alsa-lib-1.0.10rc2/test'
  49. make: *** [all-recursive] Error 1

  50. !!! ERROR: media-libs/alsa-lib-1.0.10_rc2 failed.
  51. !!! Function src_compile, Line 44, Exitcode 2
  52. !!! make failed
  53. !!! If you need support, post the topmost build error, NOT this status message.
复制代码


##########################################
暂时的代替解决方案:
升级内核重新编译内核,把内核中对自己的声卡的支持直接编译进内核。我用的是2.6.14.2的内核,把alsa编译进内核(不是做为模块),听听歌还不错。总不能为了一个alsa-driver几天内都不听歌吧;)
 楼主| 发表于 2005-11-21 02:05:43 | 显示全部楼层
安装的问题解决了,我把内核更新到2.6.14.2,就能安装了。不过现在又出现了alsaconfig能探测到我的声卡,但是加载/etc/init.d/alsasound start 时会出错。声音还是不能用

  1. #/etc/init.d/alsasound start
  2. * Loading ALSA modules ...
  3. *   Loading: snd-card-0 ...
  4. FATAL: Module snd_*** not found.                                          [ !! ]
  5. *   Loading: snd-seq-oss ...                                             [ ok ]
  6. *   Loading: snd-pcm-oss ...                                             [ ok ]
  7. * ERROR: Failed to load necessary drivers                                [ ok ]
  8. * Restoring Mixer Levels ...
  9. * No mixer config in /etc/asound.state, you have to unmute your card!    [ ok ]
复制代码
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表