[MPlayer-users] make mistake "libao2/libao2.a"

Reimar Döffinger Reimar.Doeffinger at stud.uni-karlsruhe.de
Wed Feb 25 19:15:11 CET 2009


On Wed, Feb 25, 2009 at 06:52:44PM +0100, michael at begegnungsstaette-silbernkamp.de wrote:
> from glibc-2.3.2 to 2.3.6 I updated the system. But there is no change in
> linux-2.6.14 and gcc-3.3. And now 'make' breaks the compilation with the
> following message
> [code]
> cc -o mplayer mplayer.o m_property.o mp_fifo.o mp_msg.o mixer.o
> parser-mpcmd.o subopt-helper.o command.o asxparser.o codec-cfg.o cpudetect.o
> edl.o find_sub.o get_path.o m_config.o m_option.o m_struct.o mpcommon.o
> parser-cfg.o playtree.o playtreeparser.o spudec.o sub_cc.o subreader.o
> vobsub.o unrarlib.o libvo/libvo.a libao2/libao2.a input/libinput.a
> vidix/libvidix.a gui/libgui.a libmpcodecs/libmpcodecs.a libaf/libaf.a
> libmpdemux/libmpdemux.a stream/stream.a libswscale/libswscale.a
> libvo/libosd.a libavformat/libavformat.a libavcodec/libavcodec.a
> libavutil/libavutil.a libpostproc/libpostproc.a loader/libloader.a
> mp3lib/libmp3.a liba52/liba52.a libmpeg2/libmpeg2.a libfaad2/libfaad2.a
> tremor/libvorbisidec.a dvdread/libdvdread.a libdvdcss/libdvdcss.a
> osdep/libosdep.a -lXext -lX11 -lpthread -lXv -lXinerama -lXxf86vm -lXxf86dga
> -Wl,--export-dynamic -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgdk_pixbuf-2.0
> -lm -lpangoxft-1.0 -lpangox-1.0 -lpango-1.0 -lgobject-2.0 -lgmodule-2.0 -ldl
> -lglib-2.0 -lglib-2.0 -L/usr/X11R6/lib -Wl,-z,noexecstack    -lncurses -lpng
> -lz -lasound -ldl -lpthread -L/usr/X11R6/lib -lfreetype -lfontconfig  -lz
> -lmad -lpthread -ldl -rdynamic  -lm
> libao2/libao2.a(ao_alsa.o)(.text+0xa00): In function `init':
> : undefined reference to `snd_pcm_hw_params_set_rate_resample'
> collect2: ld returned 1 exit status
> make: *** [mplayer] Fehler 1
> [/code]
> Where is the mistake?

My guess: you somehow managed to end up with an ancient version of the
alsa libraries, but newer version of the headers.
If you haven't, try make distclean && ./configure && make
again.
Or configure with --disable-alsa, though you might end up having no
sound at all (check the configure output that some AO that seems
sensible to you is enabled).



More information about the MPlayer-users mailing list