Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 222447 - mplayer-1.0_rc2_p26753 configure fails on ppc
Summary: mplayer-1.0_rc2_p26753 configure fails on ppc
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: PPC Linux
: High normal (vote)
Assignee: Gentoo Media-video project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 215006
  Show dependency tree
 
Reported: 2008-05-16 22:39 UTC by Laurent G.
Modified: 2008-06-02 19:56 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Laurent G. 2008-05-16 22:39:55 UTC
>>> 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
Comment 1 Steve Dibb (RETIRED) gentoo-dev 2008-05-17 01:29:17 UTC
Can someone verify this works (and looks) correct.

Thanks for the patch, Laurent.
Comment 2 Alexis Ballier gentoo-dev 2008-05-17 08:06:58 UTC
(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 ;)
Comment 3 Steve Dibb (RETIRED) gentoo-dev 2008-05-21 05:10:51 UTC
Patch added in mplayer-1.0_rc2_p26753-r1, hopefully this fixes the solution, reopen if not.
Comment 4 Fabian Groffen gentoo-dev 2008-06-02 18:35:56 UTC
just to note in case you bring it upstream: this patch breaks OSX on PPC.
Comment 5 Laurent G. 2008-06-02 19:56:43 UTC
(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.