Mplayer with some variants not compiling on Leopard

John Hauf j at hauf.org
Tue Nov 20 11:20:50 PST 2007


Hello,

I tried to compile Mplayer with the following command:

port -d install mplayer +fontconfig +freetype +gif +theora +xvid +x264 
+real +binary-codecs +spee +faac +dv +twolame +dts +sdl +aa +caca

and get the following error:

cc -Wdeclaration-after-statement -fno-PIC -O4 -march=pentium-m 
-mtune=pentium-m -pipe -ffast-math -fomit-frame-pointer -mdynamic-no-pic 
-falign-loops=16 -DSYS_DARWIN -DCONFIG_DARWIN -shared-libgcc -arch i386 
  -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/opt/local/include/lzo 
-I/opt/local/include -I/usr/X11/include -I/opt/local/include/ 
-I/opt/local/include/SDL -D_GNU_SOURCE=1 -D_THREAD_SAFE -I. 
-I./libavutil -I./libavcodec -o mplayer mplayer.o m_property.o mp_msg.o 
asxparser.o codec-cfg.o cpudetect.o edl.o find_sub.o m_config.o 
m_option.o m_struct.o parser-cfg.o playtree.o playtreeparser.o spudec.o 
sub_cc.o subreader.o vobsub.o mixer.o parser-mpcmd.o subopt-helper.o 
libvo/libvo.a libao2/libao2.a input/libinput.a 
libmpcodecs/libmpcodecs.a  libaf/libaf.a libmpdemux/libmpdemux.a 
stream/stream.a libswscale/libswscale.a osdep/libosdep.a 
-L/opt/local/lib -L/opt/local/lib/samba3 -Llibmpdvdkit2 -lmpdvdkit 
libavformat/libavformat.a  libavcodec/libavcodec.a 
libavutil/libavutil.a  libpostproc/libpostproc.a  -lmad -ldv  -ltheora 
-logg  -llzo2 -lxvidcore -ldts -lpng -lz -lz -ljpeg   -lx264 
-lmp3lame  -ltwolame -lfaac -lncurses      -lungif -framework Carbon 
-framework QuickTime -framework CoreAudio -framework AudioUnit 
-framework AudioToolbox -framework Cocoa -framework QuartzCore 
-framework OpenGL      -liconv -lm    libfaad2/libfaad2.a 
liba52/liba52.a libmpeg2/libmpeg2.a tremor/libvorbisidec.a  -laa 
-L/opt/local/lib -lSDLmain -lSDL -Wl,-framework,Cocoa 
-L/opt/local/lib -lcaca -lX11 -L/usr/X11/lib -lncurses -lncurses
ld: cycle in dylib re-exports with /usr/X11/lib/libGL.dylib
collect2: ld returned 1 exit status
make: *** [mplayer] Error 1

I know that there is ticket #13021 about compiling Mplayer on Leopard 
but I think this is a different problem.

Is there a solution for that problem. Thanks a lot for any help!
John



More information about the macports-users mailing list