From owner-freebsd-ports@FreeBSD.ORG Thu Apr 23 07:51:27 2009 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 CD1161065675; Thu, 23 Apr 2009 07:51:27 +0000 (UTC) (envelope-from decke@bluelife.at) Received: from mail.itac.at (mail.itac.at [213.47.211.116]) by mx1.freebsd.org (Postfix) with ESMTP id 4A0E18FC0C; Thu, 23 Apr 2009 07:51:26 +0000 (UTC) (envelope-from decke@bluelife.at) Received: from localhost ([127.0.0.1] helo=webmail.itac.at) by mail.itac.at with esmtpa (Exim 4.63) (envelope-from ) id 1LwtiO-0004os-7o; Thu, 23 Apr 2009 09:51:24 +0200 Received: from 78.142.74.81 (SquirrelMail authenticated user decke@bluelife.at) by webmail.itac.at with HTTP; Thu, 23 Apr 2009 09:51:24 +0200 (CEST) Message-ID: <7602fa74716991101557bd2781280b68.squirrel@webmail.itac.at> In-Reply-To: <49EFCEF4.7050905@FreeBSD.org> References: <280c2089102f1ae68ca7d184039d1956.squirrel@webmail.itac.at> <49E1616C.5060404@FreeBSD.org> <8e44ebf15169796f60883e3c409bbb62.squirrel@webmail.itac.at> <49EFCEF4.7050905@FreeBSD.org> Date: Thu, 23 Apr 2009 09:51:24 +0200 (CEST) From: Bernhard =?iso-8859-1?Q?Fr=F6hlich?= To: glarkin@FreeBSD.org User-Agent: SquirrelMail/1.4.15 MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) Importance: Normal Cc: Bernhard =?iso-8859-1?Q?Fr=F6hlich?= , Torfinn Ingolfsen , FreeBSD Ports ML Subject: Re: mythtv 0.21 - trouble compiling the port 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, 23 Apr 2009 07:51:29 -0000 On Thu, April 23, 2009 4:14 am, Greg Larkin wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > Bernhard Fröhlich wrote: > [...] >> >> Yes, that is correct. It took me some time to figure out why that only >> affects multimedia/mythtv and not the multimedia/mythtv-frontend port >> though they are nearly the same. The reason is that the mythtranscode >> patch got lost on the way because it was included in my PR but is not in >> the repository. So i have reattached it now. >> >> It is nearly useless to test them in a tinderbox because the problems >> are >> all conflicts with an installed ffmpeg and that does not happen in a >> tinderbox build. > > Hi Bernhard, > > I have a prepared commits for mythtv and mythtv-frontend and am doing a > Tinderbox build just to make sure there aren't any silly errors present. > > Since you mentioned that ffmpeg has caused conflicts previously, can you > tell me how to configure and install it so I can run a separate mythtv > compilation to make sure the patches I have are correct? Just installing the multimedia/ffmpeg port without any enabled options is enough. Then build mythtv with ARTS. The problem is that mythtv includes files from /usr/local/include/libavcodec if it is present but it should never do that because it has his own ffmpeg version included in his source and really wants to build with that. The bug that leads to this is that they use -I../libavcodec as part of their include path whenever they need their ffmpeg headers and put it at the end of the include path. But it happens that configure has already put -I/usr/local/include/arts to the include path and -I/usr/local/include/arts + -I../libavcodec = /usr/local/include/arts/../libavcodec which results in including the system ffmpeg headers - which is wrong, not supported and fails in many strange ways. A simple fix is to put -I../libavcodec at the beginning of the include path then the compiler finds myhttv's ffmpeg headers first and everything works as expected. That errors probably never came up because it only fails when the system ffmpeg headers and the included from mythtv are different in an incompatible way. It is possible that there are more of that wrong include paths that haven't been patched yet but i haven't tested it yet. The easiest check would be to install multimedia/ffmpeg and corrupt each header file of it by adding "#error GOT YOU" at the beginning or something else that needs the compiler to give up and raise an error whenever it happens to include one of the system ffmpeg headers. Then build mythtv with ARTS support and cross your fingers. -- Bernhard Fröhlich http://www.bluelife.at/