From owner-freebsd-ports@FreeBSD.ORG Wed Dec 12 03:33:10 2007 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id DA51416A496 for ; Wed, 12 Dec 2007 03:33:10 +0000 (UTC) (envelope-from lihong.chen@gmail.com) Received: from rv-out-0910.google.com (rv-out-0910.google.com [209.85.198.188]) by mx1.freebsd.org (Postfix) with ESMTP id 6F8A013C455 for ; Wed, 12 Dec 2007 03:33:10 +0000 (UTC) (envelope-from lihong.chen@gmail.com) Received: by rv-out-0910.google.com with SMTP id l15so61505rvb.43 for ; Tue, 11 Dec 2007 19:33:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:subject:from:to:content-type:date:message-id:mime-version:x-mailer:sender; bh=4vQ309Wbp/sIlG+ni0YeMbSKg0vd5RMRRWCygYdV/tU=; b=jH/C/2xvBzzKUetcVcsCqEXRq777ZKNk7eh+yL/yPrgtp0Wt6uFXPTxBafF+CsaKyXrFPMzmCTLKmOEsYL6CwLWhOf5hsD95kYktU9Yv9l19chxeDzhKr4EwbE5SLo9gNIjQxAtQZKXrL9ZzIMoFbfS3z5ER7NNFRM6S1kCt//8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=subject:from:to:content-type:date:message-id:mime-version:x-mailer:sender; b=TaPQ6tE+lOtLOUNq9FL2rN0W6kTnxpYbmdImxvAttSd30H9ZXeeRVuAZ7vug+W8qJgsY5a646/1wl0YrajVS0VO+ydRT+HxW6kHvTHYIDCBymmChR743pm98qISWYHsdGTMx/uje5J2QTKTq/behTvf37LsuZkjpt7q9cFCYy9c= Received: by 10.140.139.3 with SMTP id m3mr82744rvd.38.1197428815950; Tue, 11 Dec 2007 19:06:55 -0800 (PST) Received: from ?192.168.10.84? ( [59.125.13.44]) by mx.google.com with ESMTPS id c19sm10560931rvf.2007.12.11.19.06.52 (version=TLSv1/SSLv3 cipher=RC4-MD5); Tue, 11 Dec 2007 19:06:54 -0800 (PST) From: "Eric L. Chen" To: freebsd-current@freebsd.org, freebsd-stable@freebsd.org, freebsd-ports@freebsd.org Content-Type: multipart/mixed; boundary="=-a3QXkU35vvFSIr/5c+sL" Date: Wed, 12 Dec 2007 11:06:48 +0800 Message-Id: <1197428808.1576.8.camel@localhost> Mime-Version: 1.0 X-Mailer: Evolution 2.12.1 FreeBSD GNOME Team Port Sender: "Eric L. Chen" Cc: Subject: Fix cannot build mencoder on amd64 X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 12 Dec 2007 03:33:10 -0000 --=-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 - +.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--