>>> Compiling source in /var/tmp/portage/media-video/mplayer-1.0_rc2_p26753/work/mplayer-1.0_rc2_p26753 ... Detected operating system: Linux Detected host architecture: ppc Checking for powerpc-unknown-linux-gnu-gcc version ... 4.2.3 Checking for host cc ... powerpc-unknown-linux-gnu-gcc Checking for cross compilation ... no Checking for CPU type ... 7447A altivec Checking for GCC & CPU optimization abilities ... 7450 Checking for extern symbol prefix ... Checking for assembler support of -pipe option ... yes Checking for compiler support of named assembler arguments ... yes Checking for .align is a power of two ... yes Checking for GCC AltiVec flags ... -faltivec Checking for altivec.h ... no Checking for -lposix ... no Checking for -lm ... no Checking for langinfo ... no Checking for language ... using fr (man pages: en fr ) Checking for enable sighandler ... yes Checking for runtime cpudetection ... no Checking for restrict keyword ... none Checking for __builtin_expect ... no Checking for kstat ... no Checking for posix4 ... no Checking for llrint ... no Checking for lrint ... no Checking for lrintf ... no Checking for round ... no Checking for roundf ... no Checking for mkstemp ... no Checking for nanosleep ... no Checking for socklib ... no Checking for inet_pton() ... no (trying inet_aton next) Checking for inet_aton() ... no (network support disabled) Checking for network ... no Checking for inttypes.h (required) ... no Checking for bitypes.h (inttypes.h predecessor) ... Reproducible: Always With this patch, emerge finishes OK : diff -u configure configure_ok --- configure 2008-05-16 00:21:04.000000000 +0200 +++ configure_ok 2008-05-16 00:20:56.000000000 +0200 @@ -2418,10 +2418,9 @@ cat > $TMPC << EOF int main(void) { return 0; } EOF - cc_check -maltivec -mabi=altivec \ - && _altivec_gcc_flags="-maltivec -mabi=altivec" \ - || cc_check -faltivec && _altivec_gcc_flags=-faltivec \ - || _altivec=no + cc_check -maltivec -mabi=altivec && _altivec_gcc_flags="-maltivec -mabi=altivec" + test "x$_altivec_gcc_flags" = "x" && cc_check -faltivec && _altivec_gcc_flags=-faltivec + test "x$_altivec_gcc_flags" = "x" && _altivec=no echores "$_altivec_gcc_flags" # check if <altivec.h> should be included
Can someone verify this works (and looks) correct. Thanks for the patch, Laurent.
(In reply to comment #1) > Can someone verify this works (and looks) correct. Yes, that's the patch I failed to write in the past few days :) It fixes my problems on ppc64. Thanks a lot Laurent ! I don't know how to contact upstream, but imho they should be made aware of this and this patch applied there. @beandog: I'll let you apply it, I'm not enough at ease with mplayer's ebuild ;)
Patch added in mplayer-1.0_rc2_p26753-r1, hopefully this fixes the solution, reopen if not.
just to note in case you bring it upstream: this patch breaks OSX on PPC.
(In reply to comment #4) > just to note in case you bring it upstream: this patch breaks OSX on PPC. > Hi could you give us the symptoma of this breakage ? Chances are that it is on the same step, no ? But what does the configure.log says ? Thx.