[mythtv] MythTV Trunk compiles on OSX Intel, not PPC

Janne Grunau janne-mythtv at grunau.be
Fri Aug 28 16:49:44 UTC 2009


On Thu, Aug 27, 2009 at 08:12:22PM -0700, Todd Ignasiak wrote:
> On Thu, Aug 27, 2009 at 6:14 PM, David Snider<dsnider at thesniderpad.com> wrote:
>
> I happened to try building 0.22 on my Mac Mini G4 last night, and ran
> into the same issue.
> But, my mini is running Ubuntu Linux, not Mac OS X as your PPC machine
> appears to be running.
> 
> ../libmythmpeg2/libmythmpeg2-0.22.a(cpu_state.o): In function
> `state_restore_altivec':
> cpu_state.c:(.text+0x88): undefined reference to `asm'
> ../libmythmpeg2/libmythmpeg2-0.22.a(cpu_state.o): In function
> `state_save_altivec':
> cpu_state.c:(.text+0xc8): undefined reference to `asm'
> collect2: ld returned 1 exit status
> make[2]: *** [libmythtv-0.22.so.0.22.0] Error 1
> make[2]: Leaving directory `/ZFS/home/tji/Myth/mythtv/libs/libmythtv'

Following patch should fix it.

Janne


diff --git a/mythtv/libs/libmythmpeg2/cpu_state.c b/mythtv/libs/libmythmpeg2/cpu_state.c
index 20d2de4..09b7552 100644
--- a/mythtv/libs/libmythmpeg2/cpu_state.c
+++ b/mythtv/libs/libmythmpeg2/cpu_state.c
@@ -60,7 +60,7 @@ static void state_restore_mmx (cpu_state_t * state)
 
 static void state_save_altivec (cpu_state_t * state)
 {
-    asm (LI (9, 16)
+    __asm__ (LI (9, 16)
 	 STVX0 (20, 0, 3)
 	 LI (11, 32)
 	 STVX (21, 9, 3)
@@ -87,7 +87,7 @@ static void state_save_altivec (cpu_state_t * state)
 
 static void state_restore_altivec (cpu_state_t * state)
 {
-    asm (LI (9, 16)
+    __asm__ (LI (9, 16)
 	 LVX0 (20, 0, 3)
 	 LI (11, 32)
 	 LVX (21, 9, 3)


More information about the mythtv-dev mailing list