From owner-freebsd-ports@FreeBSD.ORG Thu Nov 15 08:04:16 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 CD84C16A468 for ; Thu, 15 Nov 2007 08:04:16 +0000 (UTC) (envelope-from jkim@FreeBSD.org) Received: from anuket.mj.niksun.com (gwnew.niksun.com [65.115.46.162]) by mx1.freebsd.org (Postfix) with ESMTP id 6A53513C46E for ; Thu, 15 Nov 2007 08:04:16 +0000 (UTC) (envelope-from jkim@FreeBSD.org) Received: from niksun.com (anuket [10.70.0.5]) by anuket.mj.niksun.com (8.13.6/8.13.6) with ESMTP id lAEJJ0wf062734; Wed, 14 Nov 2007 14:19:00 -0500 (EST) (envelope-from jkim@FreeBSD.org) From: Jung-uk Kim To: freebsd-ports@FreeBSD.org, pav@FreeBSD.org Date: Wed, 14 Nov 2007 14:18:50 -0500 User-Agent: KMail/1.6.2 References: <786602c60710260930v2cfbe90bl9d141813c7120e8b@mail.gmail.com> <786602c60711102249k791ceb9eqb66f8b2289cdab8e@mail.gmail.com> <1194792635.1901.8.camel@ikaros.oook.cz> In-Reply-To: <1194792635.1901.8.camel@ikaros.oook.cz> MIME-Version: 1.0 Content-Disposition: inline Content-Type: Multipart/Mixed; boundary="Boundary-00=_ho0OHz2LyJw93t/" Message-Id: <200711141418.57883.jkim@FreeBSD.org> X-Virus-Scanned: ClamAV 0.91.2/4790/Wed Nov 14 13:13:53 2007 on anuket.mj.niksun.com X-Virus-Status: Clean Cc: Thomas Zander Subject: Re: Here we go again: mplayer 1.0 rc2, please test 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: Thu, 15 Nov 2007 08:04:16 -0000 --Boundary-00=_ho0OHz2LyJw93t/ Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Content-Disposition: inline On Sunday 11 November 2007 09:50 am, Pav Lucistnik wrote: > Thomas Zander p紫e v ne 11. 11. 2007 v 14:49 +0800: > > Hi Pav, > > > > On 27/10/2007, Pav Lucistnik wrote: > > > It have troubles compiling assembly on amd64 in h264.c: > > > > Could you do me a favour and have a quick look into this? I do > > not have an amd64 machine running FreeBSD currently. There were a > > few postings to ffmpeg mailing list in August with this exact > > problem, but nobody came up with a solution: > > http://lists.mplayerhq.hu/pipermail/ffmpeg-user/2007-August/01087 > >4.html > > http://lists.mplayerhq.hu/pipermail/ffmpeg-user/2007-August/01108 > >4.html However, since the ffmpeg mailing list is not filling up > > with messages like this right now, maybe a more recent version > > compiles. I'd suggest to replace h264.c and/or the included > > headers by up-to-date versions from svn. > > That assembly comes from cabac.h file, which is identical in SVN to > the version in port. I also tried replacing h264.c and h264.h, with > no visible change. FYI, I built it on amd64 -CURRENT with attached patches. Inline assembly in cabac.h generates invalid instructions for amd64. The Makefile patch disables it. Also, sysdep/pci_x86.c works fine on amd64 and linker fails without it. Jung-uk Kim --Boundary-00=_ho0OHz2LyJw93t/ Content-Type: text/plain; charset="utf-8"; name="patch-libavcodec-Makefile" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="patch-libavcodec-Makefile" --- libavcodec/Makefile.orig 2007-10-07 15:49:37.000000000 -0400 +++ libavcodec/Makefile 2007-11-14 02:49:09.000000000 -0500 @@ -6,6 +6,10 @@ CFLAGS += -I$(SRC_PATH)/libswscale -I$(SRC_PATH)/libavcodec +ifeq ($(ARCH_X86_64),yes) +CFLAGS += -DBROKEN_RELOCATIONS +endif + OBJS = allcodecs.o \ audioconvert.o \ bitstream.o \ --Boundary-00=_ho0OHz2LyJw93t/ Content-Type: text/plain; charset="utf-8"; name="patch-vidix-pci.c" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="patch-vidix-pci.c" --- vidix/pci.c.orig 2007-10-07 15:49:27.000000000 -0400 +++ vidix/pci.c 2007-11-14 03:12:26.000000000 -0500 @@ -484,8 +484,6 @@ #include "sysdep/pci_arm32.c" #elif defined(__powerpc__) #include "sysdep/pci_powerpc.c" -#elif defined(__x86_64__) -/* Nothing here right now */ #else #include "sysdep/pci_x86.c" #endif --Boundary-00=_ho0OHz2LyJw93t/--