From owner-freebsd-ports@FreeBSD.ORG Mon Mar 30 21:39:01 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 2380F10656C2; Mon, 30 Mar 2009 21:39:01 +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 949168FC08; Mon, 30 Mar 2009 21:39:00 +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 1LoPC6-0003Aq-1t; Mon, 30 Mar 2009 23:38:58 +0200 Received: from 78.142.74.81 (SquirrelMail authenticated user decke@bluelife.at) by webmail.itac.at with HTTP; Mon, 30 Mar 2009 23:38:58 +0200 (CEST) Message-ID: <280c2089102f1ae68ca7d184039d1956.squirrel@webmail.itac.at> In-Reply-To: References: Date: Mon, 30 Mar 2009 23:38:58 +0200 (CEST) From: Bernhard =?iso-8859-1?Q?Fr=F6hlich?= To: "Torfinn Ingolfsen" 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: 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: Mon, 30 Mar 2009 21:39:02 -0000 On Mon, March 30, 2009 7:54 pm, Torfinn Ingolfsen wrote: > Hi, > I am trying to install the mythtv 0.21 port (multimedia/mythtv) under > FreeBSd 7.2-prerelease/amd64: > root@kg-quiet# uname -a > FreeBSD kg-quiet.kg4.no 7.2-PRERELEASE FreeBSD 7.2-PRERELEASE #3: Sun > Mar 29 14:46:57 CEST 2009 > root@kg-quiet.kg4.no:/usr/obj/usr/src/sys/QUIET amd64 > and ports tree updated yesterday: > root@kg-quiet# ll /usr/ports/IN* > -rw-r--r-- 1 root wheel 19094389 Mar 29 12:14 /usr/ports/INDEX-7 > -rw-r--r-- 1 root wheel 1261454 Mar 29 09:35 /usr/ports/INDEX-7.bz2 > -rw-r--r-- 1 root wheel 33808384 Mar 29 12:15 /usr/ports/INDEX-7.db > > However, when I do > cd /usr/ports/multimedia/mythtv > make > > it barfs after a while with: > gmake[2]: Entering directory > `/usr/ports/multimedia/mythtv/work/mythtv-0.21/libs/libmyth' > g++ -c -pipe -march=k8 -fomit-frame-pointer -O3 -g -Wall -Wno-switch > -Wpointer-arith -Wredundant-decls -Wno-non-virtual-dtor > -D__STDC_CONSTANT_MACROS -I/usr/local/include/artsc -D_REENTRANT > -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include -DPIC > -fPIC -DMMX -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 > -DPREFIX=\"/usr/local\" -DLIBDIR=\"/usr/local/lib\" -DUSING_OSS > -DUSE_ARTS -DUSING_X11 -DUSING_XRANDR -DQT_NO_DEBUG > -DQT_THREAD_SUPPORT -DQT_SHARED -DQT_TABLET_SUPPORT > -I/usr/local/share/qt/mkspecs/freebsd-g++ -I. > -I../../../../../../../local/include > -I../../../../../../../local/include -I../libmythsamplerate > -I../libmythsoundtouch -I../libmythfreesurround -I../libavcodec > -I../libavutil -I../.. -I.. -I. -I../../../../../../../local/include > -I/usr/local/include -o audiooutput.o audiooutput.cpp > g++ -c -pipe -march=k8 -fomit-frame-pointer -O3 -g -Wall -Wno-switch > -Wpointer-arith -Wredundant-decls -Wno-non-virtual-dtor > -D__STDC_CONSTANT_MACROS -I/usr/local/include/artsc -D_REENTRANT > -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include -DPIC > -fPIC -DMMX -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 > -DPREFIX=\"/usr/local\" -DLIBDIR=\"/usr/local/lib\" -DUSING_OSS > -DUSE_ARTS -DUSING_X11 -DUSING_XRANDR -DQT_NO_DEBUG > -DQT_THREAD_SUPPORT -DQT_SHARED -DQT_TABLET_SUPPORT > -I/usr/local/share/qt/mkspecs/freebsd-g++ -I. > -I../../../../../../../local/include > -I../../../../../../../local/include -I../libmythsamplerate > -I../libmythsoundtouch -I../libmythfreesurround -I../libavcodec > -I../libavutil -I../.. -I.. -I. -I../../../../../../../local/include > -I/usr/local/include -o audiooutputbase.o audiooutputbase.cpp > In file included from audiooutputdigitalencoder.h:5, > from audiooutputbase.cpp:19: > ../../../../../../../local/include/libavcodec/avcodec.h:2353: warning: > 'ImgReSampleContext' is deprecated (declared at > ../../../../../../../local/include/libavcodec/avcodec.h:2347) > ../../../../../../../local/include/libavcodec/avcodec.h:2363: warning: > 'ImgReSampleContext' is deprecated (declared at > ../../../../../../../local/include/libavcodec/avcodec.h:2347) > audiooutputbase.cpp: In member function 'virtual void > AudioOutputBase::Reconfigure(int, int, int, bool, void*)': > audiooutputbase.cpp:360: error: 'codec_id_string' was not declared in this > scope > gmake[2]: *** [audiooutputbase.o] Error 1 > gmake[2]: Leaving directory > `/usr/ports/multimedia/mythtv/work/mythtv-0.21/libs/libmyth' > gmake[1]: *** [sub-libmyth] Error 2 > gmake[1]: Leaving directory > `/usr/ports/multimedia/mythtv/work/mythtv-0.21/libs' > gmake: *** [sub-libs] Error 2 > *** Error code 1 > > Stop in /usr/ports/multimedia/mythtv. > *** Error code 1 > > Stop in /usr/ports/multimedia/mythtv. > > Any hints? Yeah i can reproduce that too. It's because it takes libavcodec from the system path which is wrong. Attached patch fixes that problem but then I get another compile error with Intel XvMC in mythtranscode. That one probably needs further investigation but it might not bite you if you don't have intel onboard graphics. This patch should fix the above problem: (as usual throw it in mythtv/files) http://home.bluelife.at/ports/mythtv/patch-libs-libmyth-libmyth.pro --- libs/libmyth/libmyth.pro.orig 2009-03-30 22:55:47.000000000 +0200 +++ libs/libmyth/libmyth.pro 2009-03-30 22:58:01.000000000 +0200 @@ -43,14 +43,14 @@ SOURCES += volumebase.cpp volumecontrol.cpp virtualkeyboard.cpp xmlparse.cpp SOURCES += mythhdd.cpp mythcdrom.cpp storagegroup.cpp dbutil.cpp -INCLUDEPATH += ../libmythsamplerate ../libmythsoundtouch ../libmythfreesurround -INCLUDEPATH += ../libavcodec ../libavutil -INCLUDEPATH += ../.. ../ ./ -DEPENDPATH += ../libmythsamplerate ../libmythsoundtouch -DEPENDPATH += ../libmythfreesurround -DEPENDPATH += ../libavcodec ../libavutil -DEPENDPATH += ../ ../libmythui -DEPENDPATH += ../libmythupnp +INCLUDEPATH = ../libmythsamplerate ../libmythsoundtouch ../libmythfreesurround $${INCLUDEPATH} +INCLUDEPATH = ../libavcodec ../libavutil $${INCLUDEPATH} +INCLUDEPATH = ../.. ../ ./ $${INCLUDEPATH} +DEPENDPATH = ../libmythsamplerate ../libmythsoundtouch $${DEPENDPATH} +DEPENDPATH = ../libmythfreesurround $${DEPENDPATH} +DEPENDPATH = ../libavcodec ../libavutil $${DEPENDPATH} +DEPENDPATH = ../ ../libmythui $${DEPENDPATH} +DEPENDPATH = ../libmythupnp $${DEPENDPATH} LIBS += -L../libmythsamplerate -lmythsamplerate-$${LIBVERSION} -- Bernhard Fröhlich http://www.bluelife.at/