[MPlayer-users] build failure on MacOS 10.4.11

Christian Ebert blacktrash at gmx.net
Mon Apr 14 18:18:09 CEST 2008


Hi Jan,

* Jan Knutar on Monday, April 14, 2008 at 16:08:11 +0300
> Try the attached patch.. 'make distclean',

always ;)

> apply it with 'patch -p0 < 
> configure-unsetauto.patch' in the mplayer source tree, run ./configure 
> and make/gmake as usual...

there's progress, but:

[...]
cc  -Wdisabled-optimization -Wno-pointer-sign -Wdeclaration-after-statement -I. -I.. -I../libavutil -Wall -Wno-switch -Wpointer-arith -Wredundant-decls -O4 -mcpu=7450 -mtune=7450 -pipe -ffast-math -fomit-frame-pointer -mdynamic-no-pic -falign-loops=16 -shared-libgcc -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -DHAVE_CONFIG_H -I/usr/local/include -I/usr/X11R6/include -I/usr/local/include/SDL  -D_THREAD_SAFE -I/sw/include -I/sw/include   -c -o cpu_state.o cpu_state.c
cpu_state.c: In function 'mpeg2_cpu_state_init':
cpu_state.c:129: error: 'state_save_altivec' undeclared (first use in this function)
cpu_state.c:129: error: (Each undeclared identifier is reported only once
cpu_state.c:129: error: for each function it appears in.)
cpu_state.c:130: error: 'state_restore_altivec' undeclared (first use in this function)
make[1]: *** [cpu_state.o] Error 1
make: *** [libmpeg2/libmpeg2.a] Error 2

However I noted that configure complains:

Detected operating system: Darwin
Detected host architecture: ppc
Checking for cc version ... 4.0.1, ok 
Checking for host cc ... cc 
Checking for cross compilation ... no 
Checking for CPU type ... 7450 altivec 
Checking for GCC & CPU optimization abilities ... 7450 
./configure: line 2313: powerpc: command not found
Checking for extern symbol prefix ... _ 
[...]

If I comment out the switch (I guess not needed for ppc, but for
other machines) mplayer builds successfully:


Index: configure
===================================================================
--- configure	(revision 26450)
+++ configure	(working copy)
@@ -2300,6 +2300,24 @@
     _altivec=yes
   fi
 fi
+if ! x86 ; then
+  _mmx=
+  _3dnow=
+  _3dnowext=
+  _mmxext=
+  _sse=
+  _sse2=
+  _ssse3=
+  _cmov=
+fi
+#if ! (ppc|powerpc) ; then
+#  _altivec=
+#fi
+if ! arm ; then
+  _armv5te=
+  _armv6=
+  _iwmmxt=
+fi
 
 
 echocheck "extern symbol prefix"




Thanks.

c
-- 
__   _    _         _  __  _               _    
\ \ | |__| |__ _ __| |_\ \| |_ _ _ __ _ __| |_  
 \ \| '_ \ / _` / _| / /\ \  _| '_/ _` (_-< ' \   http://www.blacktrash.org/
  \_\_.__/_\__,_\__|_\_\ \_\__|_| \__,_/__/_||_|  Jabber-ID: blacktrash at gmx.net



More information about the MPlayer-users mailing list