Date: Wed, 12 Dec 2007 11:06:48 +0800 From: "Eric L. Chen" <d9364104@mail.nchu.edu.tw> To: freebsd-current@freebsd.org, freebsd-stable@freebsd.org, freebsd-ports@freebsd.org Subject: Fix cannot build mencoder on amd64 Message-ID: <1197428808.1576.8.camel@localhost>
next in thread | raw e-mail | index | archive | help
--=-a3QXkU35vvFSIr/5c+sL Content-Type: text/plain Content-Transfer-Encoding: 7bit Hi! I cannot build mencoder on freebsd-7/amd64 successfully, like this: {standard input}: Assembler messages: {standard input}:1289: Error: can't encode register '%ch' in an instruction requiring REX prefix. {standard input}:1290: Error: can't encode register '%ah' in an instruction requiring REX prefix. {standard input}:1291: Error: can't encode register '%dh' in an instruction requiring REX prefix. make[3]: *** [osd.o] Error 1 After tried some guy's patch, it works on FreeBSD too. I tried encoding some DVDs to x264 encoded no any problem found. --=-a3QXkU35vvFSIr/5c+sL Content-Disposition: attachment; filename=ports.patch Content-Type: text/x-patch; name=ports.patch; charset=UTF-8 Content-Transfer-Encoding: 7bit diff -urN /usr/ports/multimedia/mencoder/Makefile /usr/ports/multimedia/mencoder/Makefile --- /usr/ports/multimedia/mencoder/Makefile 2007-12-10 09:45:16.000000000 +0800 +++ /usr/ports/multimedia/mencoder/Makefile 2007-12-10 09:46:45.000000000 +0800 @@ -55,7 +55,10 @@ sws-test w32codec_dl.pl wma2ogg.pl x2mpsub.sh .include <bsd.port.pre.mk> - +.if ${ARCH} == amd64 +PATCH_SITES+=http://launchpadlibrarian.net/4441618/ +PATCHFILES+=mplayer-0.99+1.0pre8-X64.diff +.endif LIB_DEPENDS+= mp3lame.0:${PORTSDIR}/audio/lame BUILD_DEPENDS+= mplayer:${PORTSDIR}/multimedia/mplayer RUN_DEPENDS+= mplayer:${PORTSDIR}/multimedia/mplayer diff -urN mencoder/distinfo mencoder/distinfo --- /usr/ports/multimedia/mencoder/distinfo 2007-12-10 09:45:16.000000000 +0800 +++ /usr/ports/multimedia/mencoder/distinfo 2007-12-10 09:44:51.000000000 +0800 @@ -4,3 +4,6 @@ MD5 (asmrules_fix_20061231.diff) = f0b71c38b1207c1d604be091876ac051 SHA256 (asmrules_fix_20061231.diff) = 3f71e6f4e07940d4d55084d0df12404371bc4e534a3a6b0756ca73e44ddbc3c4 SIZE (asmrules_fix_20061231.diff) = 1450 +MD5 (mplayer-0.99+1.0pre8-X64.diff) = 47d76978861df599973c9a4822780a1d +SHA256 (mplayer-0.99+1.0pre8-X64.diff) = 5f44021e1d10dcaba72fa391bd49fcfa3a0592a7dd7da6dd5f2325e7c976de3c +SIZE (mplayer-0.99+1.0pre8-X64.diff) = 360 --=-a3QXkU35vvFSIr/5c+sL--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1197428808.1576.8.camel>