LinuxSir.cn,穿越时空的Linuxsir!

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

安装Alsa-utils-1.0.13时出现的问题,求助

[复制链接]
发表于 2007-3-6 20:32:22 | 显示全部楼层 |阅读模式
在安装Alsa-driver-1.0.13和Alsa-lib-1.0.13时都安装成功,安装Alsa-utils1.0.13时make出错,求助,谢谢

./configure时显示

[root@localhost alsa-utils-1.0.13]# ./configure
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether NLS is requested... yes
checking for msgfmt... /usr/bin/msgfmt
checking for gmsgfmt... /usr/bin/msgfmt
checking for xgettext... /usr/bin/xgettext
checking for msgmerge... /usr/bin/msgmerge
checking for style of include used by make... GNU
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking dependency style of gcc... gcc3
checking build system type... x86_64-unknown-linux
checking host system type... x86_64-unknown-linux
checking for ld used by GCC... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for shared library run path origin... done
checking for CFPreferencesCopyAppValue... no
checking for CFLocaleCopyCurrent... no
checking whether NLS is requested... yes
checking for GNU gettext in libc... yes
checking whether to use NLS... yes
checking where the gettext function comes from... libc
checking for cross-compiler... gcc
checking for gcc... (cached) gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to accept ANSI C... (cached) none needed
checking dependency style of gcc... (cached) gcc3
checking for a BSD-compatible install... /usr/bin/install -c
checking whether ln -s works... yes
checking for ALSA CFLAGS...
checking for ALSA LDFLAGS...  -lasound -lm -ldl -lpthread
checking for libasound headers version >= 1.0.12... found.
checking for snd_ctl_open in -lasound... yes
checking how to run the C preprocessor... gcc -E
checking for egrep... grep -E
checking for ANSI C header files... yes
checking for initscr in -lncurses... yes
checking for an ANSI C-conforming const... yes
checking for inline... inline
checking whether time.h and sys/time.h may both be included... yes
checking whether gcc needs -traditional... no
checking for special C compiler options needed for large files... no
checking for _FILE_OFFSET_BITS value needed for large files... no
checking for _LARGE_FILES value needed for large files... no
configure: creating ./config.status
config.status: creating Makefile
config.status: creating alsactl/Makefile
config.status: creating alsamixer/Makefile
config.status: creating amidi/Makefile
config.status: creating amixer/Makefile
config.status: creating m4/Makefile
config.status: creating po/Makefile.in
config.status: creating alsaconf/alsaconf
config.status: creating alsaconf/Makefile
config.status: creating alsaconf/po/Makefile
config.status: creating aplay/Makefile
config.status: creating include/Makefile
config.status: creating iecset/Makefile
config.status: creating utils/Makefile
config.status: creating utils/alsa-utils.spec
config.status: creating seq/Makefile
config.status: creating seq/aconnect/Makefile
config.status: creating seq/aplaymidi/Makefile
config.status: creating seq/aseqdump/Makefile
config.status: creating seq/aseqnet/Makefile
config.status: creating speaker-test/Makefile
config.status: creating speaker-test/samples/Makefile
config.status: creating include/aconfig.h
config.status: executing default-1 commands
config.status: creating po/POTFILES
config.status: creating po/Makefile
config.status: executing depfiles commands



make时出现错误:

[root@localhost alsa-utils-1.0.13]# make
Making all in include
make[1]: Entering directory `/home/zfan/alsa-utils-1.0.13/include'
make  all-am
make[2]: Entering directory `/home/zfan/alsa-utils-1.0.13/include'
make[2]: Leaving directory `/home/zfan/alsa-utils-1.0.13/include'
make[1]: Leaving directory `/home/zfan/alsa-utils-1.0.13/include'
Making all in alsactl
make[1]: Entering directory `/home/zfan/alsa-utils-1.0.13/alsactl'
if gcc -DHAVE_CONFIG_H -I. -I. -I../include     -g -O2 -MT alsactl.o -MD -MP -MF ".deps/alsactl.Tpo" -c -o alsactl.o alsactl.c; \
then mv -f ".deps/alsactl.Tpo" ".deps/alsactl.Po"; else rm -f ".deps/alsactl.Tpo"; exit 1; fi
if gcc -DHAVE_CONFIG_H -I. -I. -I../include     -g -O2 -MT state.o -MD -MP -MF ".deps/state.Tpo" -c -o state.o state.c; \
then mv -f ".deps/state.Tpo" ".deps/state.Po"; else rm -f ".deps/state.Tpo"; exit 1; fi
if gcc -DHAVE_CONFIG_H -I. -I. -I../include     -g -O2 -MT names.o -MD -MP -MF ".deps/names.Tpo" -c -o names.o names.c; \
then mv -f ".deps/names.Tpo" ".deps/names.Po"; else rm -f ".deps/names.Tpo"; exit 1; fi
gcc  -g -O2   -o alsactl  alsactl.o state.o names.o  -lasound -lm -ldl -lpthreadstate.o(.text+0x57b): In function `get_control':
/home/zfan/alsa-utils-1.0.13/alsactl/state.c:245: undefined reference to `snd_ctl_elem_info_is_user'
state.o(.text+0x70b):/home/zfan/alsa-utils-1.0.13/alsactl/state.c:288: undefined reference to `snd_ctl_elem_info_is_tlv_readable'
state.o(.text+0x71b):/home/zfan/alsa-utils-1.0.13/alsactl/state.c:288: undefined reference to `snd_ctl_elem_info_is_tlv_writable'
state.o(.text+0x73e):/home/zfan/alsa-utils-1.0.13/alsactl/state.c:291: undefined reference to `snd_ctl_elem_tlv_read'
state.o(.text+0x1e23): In function `add_user_control':
/home/zfan/alsa-utils-1.0.13/alsactl/state.c:810: undefined reference to `snd_ctl_elem_add_integer'
state.o(.text+0x1e58):/home/zfan/alsa-utils-1.0.13/alsactl/state.c:815: undefined reference to `snd_ctl_elem_tlv_write'
state.o(.text+0x1e85):/home/zfan/alsa-utils-1.0.13/alsactl/state.c:822: undefined reference to `snd_ctl_elem_add_iec958'
state.o(.text+0x1e9e):/home/zfan/alsa-utils-1.0.13/alsactl/state.c:819: undefined reference to `snd_ctl_elem_add_boolean'
names.o(.text+0xe1b): In function `probe_timers':
/home/zfan/alsa-utils-1.0.13/alsactl/names.c:428: undefined reference to `snd_timer_ginfo_sizeof'
names.o(.text+0xe3b):/home/zfan/alsa-utils-1.0.13/alsactl/names.c:428: undefined reference to `snd_timer_ginfo_sizeof'
names.o(.text+0xe9e):/home/zfan/alsa-utils-1.0.13/alsactl/names.c:438: undefined reference to `snd_timer_ginfo_set_tid'
names.o(.text+0xf0f):/home/zfan/alsa-utils-1.0.13/alsactl/names.c:448: undefined reference to `snd_timer_ginfo_get_name'
collect2: ld returned 1 exit status
make[1]: *** [alsactl] 错误 1
make[1]: Leaving directory `/home/zfan/alsa-utils-1.0.13/alsactl'
make: *** [all-recursive] 错误 1

不知道问题出现出现在什么地方,高手请指点一下,先谢了.
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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