Subject: pkg/23241: xine-lib fails to build on macppc-current
To: None <gnats-bugs@gnats.netbsd.org>
From: None <mrg@eterna.com.au>
List: netbsd-bugs
Date: 10/23/2003 19:23:05
>Number: 23241
>Category: pkg
>Synopsis: xine-lib fails to build on macppc-current
>Confidential: no
>Severity: serious
>Priority: high
>Responsible: pkg-manager
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Thu Oct 23 09:24:00 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator: matthew green
>Release: NetBSD 1.6ZD
>Organization:
people's front against (bozotic) www (softwar foundation)
>Environment:
System: NetBSD what-time-is-love.eterna.com.au 1.6ZD NetBSD 1.6ZD (_what_) #141: Sun Oct 19 21:03:51 EST 2003 mrg@phat-bass.eterna.com.au:/home/obj/macppc/usr/src/sys/arch/macppc/compile/_what_ macppc
Architecture: powerpc
Machine: macppc
>Description:
an asm file "ppcasm_string.S" in xine-lib's has linuxisms.
>How-To-Repeat:
build xine-lib on macppc-current.
>Fix:
include this patch. then it seems happy.
--- xine-lib-1-rc0a/src/xine-utils/ppcasm_string.S.orig 2003-07-14 05:29:04.000000000 +1000
+++ xine-lib-1-rc0a/src/xine-utils/ppcasm_string.S 2003-10-23 17:44:47.000000000 +1000
@@ -18,6 +18,7 @@
#warning Be forewarned - using PowerPC assembly
+#ifdef __linux__
#define __KERNEL__
#define __ASSEMBLY__
@@ -26,6 +27,13 @@
#include <asm/processor.h>
#include <asm/cache.h>
#include <asm/errno.h>
+#endif
+
+#ifdef __NetBSD__
+#define _STANDALONE
+
+#include <machine/asm.h>
+#endif
#define COPY_16_BYTES \
lwz r7,4(r4); \
>Release-Note:
>Audit-Trail:
>Unformatted: