[MPlayer-users] Did an svn update, suddenly libao2 won't compile

thyme pancakes newsbought at hotmail.com
Wed Feb 28 18:12:59 CET 2007


I'd been compiling mplayer to fix an unrelated problem (the svn trunk I was 
compiling from around january 20th). I wanted to see if the problem I had 
was fixed in the latest svn so I ran svn update.

then I did a make clean and ran:
./configure --enable-macosx-bundle --with-extraincdir=/usr/X11R6/include/ 
--with-extralibdir=/usr/X11R6/lib/ 
--with-freetype-config=/usr/X11R6/bin/freetype-config 
--enable-macosx-finder-support

The error I get after a make clean is:
--------------------------------------------------------
ranlib libvo.a
cc -Wdeclaration-after-statement -O4 -mcpu=7450 -mtune=7450 -pipe 
-ffast-math -fomit-frame-pointer -faltivec -D__APPLE_ALTIVEC__ 
-mdynamic-no-pic -falign-loops=16 -DSYS_DARWIN -DCONFIG_DARWIN 
-shared-libgcc -DCONFIG_DARWIN -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 
-D_LARGEFILE64_SOURCE -I/usr/X11R6/include/ -I/usr/local/include 
-I/usr/X11R6/include/ -I/usr/X11R6/include/freetype2 -I/usr/X11R6/include 
-I. -I./libavutil -I./libavcodec    libao2/ao_macosx.c   -o libao2/ao_macosx
/usr/bin/ld: Undefined symbols:
_main
_AudioOutputUnitStart
_AudioOutputUnitStop
_AudioUnitGetParameter
_AudioUnitGetProperty
_AudioUnitInitialize
_AudioUnitSetParameter
_AudioUnitSetProperty
_AudioUnitUninitialize
_CloseComponent
_FindNextComponent
_OpenAComponent
_ao_data
_mp_msg
_usec_sleep
collect2: ld returned 1 exit status
make: *** [libao2/ao_macosx] Error 1
--------------------------------------------------------

Now what it used to say, when I was compiling the old version, was:
--------------------------------------------------------
ranlib libvo.a
make -C libao2
cc  -I. -I.. -Wdeclaration-after-statement -O4 -mcpu=7450 -mtune=7450 -pipe 
-ffast-math -fomit-frame-pointer -faltivec -D__APPLE_ALTIVEC__ 
-mdynamic-no-pic -falign-loops=16 -DSYS_DARWIN -DCONFIG_DARWIN 
-shared-libgcc -DCONFIG_DARWIN -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 
-D_LARGEFILE64_SOURCE -I/usr/X11R6/include/ -I/usr/local/include 
-I/usr/X11R6/include/ -I/usr/X11R6/include/freetype2 -I/usr/X11R6/include   
-c -o ao_macosx.o ao_macosx.c
ar r libao2.a audio_out.o ao_mpegpes.o ao_null.o ao_pcm.o ao_macosx.o 
ao_openal.o
ranlib libao2.a
--------------------------------------------------------

So one difference is that the new configure is leaving out the "make -C 
libao2" line. if I go into the libao2 directory and run make, libao complies 
but still won't link with the main mplayer. Reason?
--------------------------------------------------------
make[1]: `libvo.a' is up to date.
cc   libao2/ao_macosx.o   -o libao2/ao_macosx
/usr/bin/ld: Undefined symbols:
_main
--------------------------------------------------------
Can anyone identify the problem? I'm runing Mac os 10.4.8 PPC and I've 
reverted all my mplayer files to untouched svn copies. Thanks in advance..

Thyme

_________________________________________________________________
http://local.live.com/default.aspx?v=2&cp=43.658648~-79.383962&style=r&lvl=15&tilt=-90&dir=0&alt=-1000&scene=3702663&cid=7ABE80D1746919B4!1329 
>From January 26 to February 8, 2007




More information about the MPlayer-users mailing list