powerpc/161947: multimedia/libdvdnav builds broken binaries on big
endian machines
Rich Healey
richo at psych0tik.net
Sun Oct 23 22:40:02 UTC 2011
>Number: 161947
>Category: powerpc
>Synopsis: multimedia/libdvdnav builds broken binaries on big endian machines
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: freebsd-ppc
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Sun Oct 23 22:40:01 UTC 2011
>Closed-Date:
>Last-Modified:
>Originator: Rich Healey
>Release: 10-current
>Organization:
psych0tik.net
>Environment:
>Description:
> I tried to use vlc to play a dvd on -CURRENT but it fails with
>
> libdvdnav: vm: ifoRead_FP_PGC failed >
> Googling, I found a patch from debian bugtracker at
>
> http://bugs.debian.org/cgi-bin/bugreport.cgi?msg=25;filename=05-endian.patch;att=1;bug=531621
>
> Which I adjusted for FreeBSD (changed patch to source file and path to
> include file)
>
> Can this be included in ports?
>How-To-Repeat:
>Fix:
Attached patch will reverse the word byte order if the machine is bigendian.
Patch attached with submission follows:
Index: src/bswap.h
===================================================================
--- src/bswap.h 2009-06-04 12:32:25.000000000 -0700
+++ src/bswap.h 2009-06-04 12:32:59.000000000 -0700
@@ -20,6 +20,11 @@
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
+#include <sys/endian.h>
+#if BYTE_ORDER == BIG_ENDIAN
+#define WORDS_BIGENDIAN
+#endif
+
#include <config.h>
#if defined(WORDS_BIGENDIAN)
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ppc
mailing list