[mythtv] Unable to create ticket for compile error on PowerPC w/o Altivec

Eric Pheatt eric.pheatt at gmail.com
Mon Mar 5 03:44:19 UTC 2007


Hi all,

I tried to create a new ticket at http://cvs.mythtv.org/trac/newticket
but got the following error:

 Trac detected an internal error:

ParseError: not well-formed (invalid token): line 21, column 36, in
ticket_new.html

So I have attached the tiny patch that I have used to address a
PowerPC without Altivec compile issue for SVN when compiling with
--disable-altivec passed to configure. Changset 11203 addressed most
of the problem, but cpu_state.c in libs/libmythmpeg2 also needed a
similar change.

Cheers!
Eric
-------------- next part --------------
Index: libs/libmythmpeg2/cpu_state.c
===================================================================
--- libs/libmythmpeg2/cpu_state.c       (revision 12297)
+++ libs/libmythmpeg2/cpu_state.c       (working copy)
@@ -43,7 +43,7 @@
 }
 #endif

-#ifdef ARCH_PPC
+#ifdef HAVE_ALTIVEC
 #if defined(HAVE_ALTIVEC_H) && !defined(CONFIG_DARWIN) /* gnu */
 #define LI(a,b) "li " #a "," #b "\n\t"
 #define STVX0(a,b,c) "stvx " #a ",0," #c "\n\t"
@@ -120,7 +120,7 @@
        mpeg2_cpu_state_restore = state_restore_mmx;
     }
 #endif
-#ifdef ARCH_PPC
+#ifdef HAVE_ALTIVEC
     if (accel & MPEG2_ACCEL_PPC_ALTIVEC) {
        mpeg2_cpu_state_save = state_save_altivec;
        mpeg2_cpu_state_restore = state_restore_altivec;


More information about the mythtv-dev mailing list