Date: Sun, 23 Oct 2011 22:34:39 GMT From: Rich Healey <richo@psych0tik.net> To: freebsd-gnats-submit@FreeBSD.org Subject: powerpc/161947: multimedia/libdvdnav builds broken binaries on big endian machines Message-ID: <201110232234.p9NMYdJe047406@red.freebsd.org> Resent-Message-ID: <201110232240.p9NMe2mD040221@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>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:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201110232234.p9NMYdJe047406>