[MPlayer-users] libao2 compile problem

Steve Stavropoulos steve at math.upatras.gr
Thu Feb 28 02:42:02 CET 2002


On 27 Feb 2002, Sipos Ferenc wrote:

> Small patch works for me, using gcc pre3.1. Apply into cvs. Thx.
>
> > hmm
> > try to change ao_plugin.c line 39 to:
> > volatile ao_plugin_data_t ao_plugin_data;    // Data used by the plugins
> >
> > (so, add 'volatile' at the beginning of the line)
> >
> > and tell me if it solved the problem.
> >
> > A'rpi / Astral & ESP-team


 Didn't work for me(gcc version 3.0.1). It gave an error in linking:
(undefined reference to `ao_plugin_data')

gcc3 -O4 -march=i686 -mcpu=i686 -pipe -ffast-math -fomit-frame-pointer
-D_REENTRANT -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
-D_LARGEFILE64_SOURCE -Ilibmpdemux -Iloader -Ilibvo   -o mplayer mplayer.o
cyuv.o adpcm.o xacodec.o cpudetect.o mp_msg.o ac3-iec958.o dec_audio.o
dec_video.o msvidc.o cinepak.o fli.o qtrle.o codec-cfg.o cfgparser.o
my_profile.o RTjpegN.o minilzo.o nuppelvideo.o spudec.o playtree.o
playtreeparser.o asxparser.o qtsmc.o ducktm1.o roqav.o qtrpza.o mpng.o
find_sub.o subreader.o lirc_mp.o mixer.o vobsub.o mp-opt-reg.o dll_init.o
-Llibvo -lvo  -Lg72x -lg72x -Lmp3lib -lMP3 -Llibac3 -lac3 -Lliba52 -la52
-Lxa -lxa -Llibmpeg2 -lmpeg2 -Llibavcodec -lavcodec -Llibmpdemux -lmpdemux
-llirc_client -Linput -linput  -Lloader -lloader -Lloader/dshow
-lDS_Filter    -lvorbis -logg  -ldvdread -lpthread -ldl   -Lpostproc
-lpostproc -ldivxdecore opendivx/postprocess.o  -ltermcap  -lnsl -lz
-lpng -lz -Llinux -losdep -lm  -L/usr/X11R6/lib -lX11 -lXext -lnsl -lGL
-lXxf86dga -lXv -lXxf86vm -lXinerama  -lnsl    -lpng -lz -L/usr/lib
-Wl,-rpath,/usr/lib -lSDL -lpthread -lvgagl -lvga -laa  -Llibao2 -lao2
-Lvidix -lvidix
libao2/libao2.a(ao_plugin.o): In function `init':
ao_plugin.o(.text+0x1f7): undefined reference to `ao_plugin_data'
ao_plugin.o(.text+0x200): undefined reference to `ao_plugin_data'
ao_plugin.o(.text+0x209): undefined reference to `ao_plugin_data'
ao_plugin.o(.text+0x211): undefined reference to `ao_plugin_data'
ao_plugin.o(.text+0x219): undefined reference to `ao_plugin_data'
libao2/libao2.a(ao_plugin.o)(.text+0x21f): more undefined references to
`ao_plugin_data' follow
collect2: ld returned 1 exit status
make: *** [mplayer] Error 1





More information about the MPlayer-users mailing list