Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 10 Nov 2008 23:19:20 +0100
From:      Bernhard Froehlich <decke@bluelife.at>
To:        Torfinn Ingolfsen <torfinn.ingolfsen@broadpark.no>
Cc:        freebsd-multimedia@freebsd.org, glarkin@FreeBSD.org
Subject:   Re: CFT: MythTV Fixes
Message-ID:  <20081110231920.78c38e21@chii.bluelife.at>
In-Reply-To: <20081109125253.41488c7a.torfinn.ingolfsen@broadpark.no>
References:  <20080921180743.313a5a08@chii.bluelife.at> <200809212243.05068.shoesoft@gmx.net> <a2ccddb019edcdbea7eff68167e8ef2d.squirrel@webmail.itac.at> <200809222219.14268.shoesoft@gmx.net> <20080924214956.6936e491@chii.bluelife.at> <20081102012335.e7465e42.torfinn.ingolfsen@broadpark.no> <20081104225543.6f45897f@chii.bluelife.at> <20081109125253.41488c7a.torfinn.ingolfsen@broadpark.no>

next in thread | previous in thread | raw e-mail | index | archive | help
--MP_/B=rkWebngq+4ywZNeM6mFvY
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

On Sun, 09 Nov 2008 12:52:53 +0100
Torfinn Ingolfsen <torfinn.ingolfsen@broadpark.no> wrote:

> On Tue, 04 Nov 2008 22:55:43 +0100
> Bernhard Froehlich <decke@bluelife.at> wrote:
> 
> > I've also updated my archive to include that patch:
> > 
> > http://home.bluelife.at/ports/mythtv-cft-041108.tar.gz
> 
> MythTV seems to be a tough beast to tame. :-)
> I decided to test the archive above on a new machine, this time a SMP
> machine running FreeBSD 5.4-prerelease:
> tingo@kg-vm$ uname -a
> FreeBSD kg-vm.kg4.no 6.4-PRERELEASE FreeBSD 6.4-PRERELEASE #3: Sun Nov  2 10:44:32 CET 2008     root@kg-vm.kg4.no:/usr/obj/usr/src/sys/SMP  amd64
> 
> Note: this machine has not had any MythTV ports installed before, and I am not doing anything
> "behind the scenes" here - I just untar the archive and do 'make' and 'make install'. I select default options.
> Here goes:
> 
> root@kg-vm# pwd
> /usr/ports/multimedia/mythtv-frontend
> root@kg-vm# uname -a
> FreeBSD kg-vm.kg4.no 6.4-PRERELEASE FreeBSD 6.4-PRERELEASE #3: Sun Nov  2 10:44:32 CET 2008     root@kg-vm.kg4.no:/usr/obj/usr/src/sys/SMP  amd64
> root@kg-vm# make clean
> ===>  Cleaning for qmake-3.3.8_1
> ===>  Cleaning for qt-3.3.8_9
> ===>  Cleaning for lame-3.97_1
> ===>  Cleaning for libmng-1.0.10
> ===>  Cleaning for lcms-1.17,1
> ===>  Cleaning for mythtv-frontend-0.21
>
> [snip]
>
> cc -c -pipe -march=k8 -fomit-frame-pointer -O3 -I/usr/local/include -pthread -Wall -Wno-switch -Wdisabled-optimization -Wpointer-arith -Wredundant-decls -w -DPIC -fPIC  -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -DPREFIX=\"/usr/local\" -DLIBDIR=\"/usr/local/lib\" -DHAVE_AV_CONFIG_H -D_LARGEFILE_SOURCE -DHAVE_XVMC -DHAVE_XVMC_VLD -DQT_NO_DEBUG -DQT_THREAD_SUPPORT -DQT_SHARED -DQT_TABLET_SUPPORT -I/usr/local/share/qt/mkspecs/freebsd-g++ -I. -I. -I.. -I../.. -I../libavutil -I../libswscale -I../../../../../../../local/include -I/usr/local/include -o allcodecs.o allcodecs.c
> allcodecs.c: In function `avcodec_register_all':
> allcodecs.c:119: error: `ENABLE_MSZH_DECODER' undeclared (first use in this function)
> allcodecs.c:119: error: (Each undeclared identifier is reported only once
> allcodecs.c:119: error: for each function it appears in.)
> allcodecs.c:133: error: `ENABLE_RPZA_DECODER' undeclared (first use in this function)
> allcodecs.c:171: error: `ENABLE_ZLIB_ENCODER' undeclared (first use in this function)
> allcodecs.c:171: error: `ENABLE_ZLIB_DECODER' undeclared (first use in this function)
> allcodecs.c:172: error: `ENABLE_ZMBV_ENCODER' undeclared (first use in this function)
> allcodecs.c:172: error: `ENABLE_ZMBV_DECODER' undeclared (first use in this function)
> allcodecs.c:228: error: `ENABLE_PCM_ZORK_ENCODER' undeclared (first use in this function)
> allcodecs.c:228: error: `ENABLE_PCM_ZORK_DECODER' undeclared (first use in this function)
> gmake[2]: *** [allcodecs.o] Error 1
> gmake[2]: Leaving directory `/usr/ports/multimedia/mythtv-frontend/work/mythtv-0.21/libs/libavcodec'
> gmake[1]: *** [sub-libavcodec] Error 2
> gmake[1]: Leaving directory `/usr/ports/multimedia/mythtv-frontend/work/mythtv-0.21/libs'
> gmake: *** [sub-libs] Error 2
> *** Error code 2
> 
> Stop in /usr/ports/multimedia/mythtv-frontend.
> *** Error code 1
> 
> Stop in /usr/ports/multimedia/mythtv-frontend.
> 
> HTH


I've attached a patch that should fix that nasty problem now and also
updated the patchset if you like that more.

http://home.bluelife.at/ports/mythtv-cft-101108.tar.gz


Playing Sherlock: The murder was your locale which triggered a bug in
the configure script that uses "tr" to translate words into upper and
lowercase. I've seen that because in my config.h there is

#define CONFIG_ZLIB_DECODER 1
#define ENABLE_ZLIB_DECODER 1

and yours contained

#define CONFIG_]LIB_DECODER 1
#define ENABLE_]LIB_DECODER 1

All "z" got replaced by "]" instead of "Z" which seems to be a
weirdness of locales and "tr". The mythtv developers have already found
and fixed that in trunk so i have taken that few lines and created a
patch for that issue.

Thanks for your kind help to track this one down, that was really an
interesting one!

-- 
Bernhard Froehlich
http://www.bluelife.at/


--MP_/B=rkWebngq+4ywZNeM6mFvY
Content-Type: application/octet-stream; name=patch-configure-toupper
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename=patch-configure-toupper

LS0tIGNvbmZpZ3VyZS5vcmlnCTIwMDgtMTEtMTAgMjI6NDQ6MjYuMDAwMDAwMDAwICswMTAwCisr
KyBjb25maWd1cmUJMjAwOC0xMS0xMCAyMjo0NToxNi4wMDAwMDAwMDAgKzAxMDAKQEAgLTI3NCwx
MyArMjc0LDEzIEBACiAgICAgZXhpdCAxCiB9CiAKLSMgInRyICdbYS16XScgJ1tBLVpdJyIgaXMg
YSB3b3JrYXJvdW5kIGZvciBTb2xhcmlzIHRyIG5vdCBncm9ra2luZyAidHIgYS16IEEtWiIKKyMg
QXZvaWQgbG9jYWxlIHdlaXJkbmVzcywgYmVzaWRlcyB3ZSByZWFsbHkganVzdCB3YW50IHRvIHRy
YW5zbGF0ZSBBU0NJSS4KIHRvdXBwZXIoKXsKLSAgICBlY2hvICIkQCIgfCB0ciAnW2Etel0nICdb
QS1aXScKKyAgICBlY2hvICIkQCIgfCB0ciBhYmNkZWZnaGlqa2xtbm9wcXJzdHV2d3h5eiBBQkNE
RUZHSElKS0xNTk9QUVJTVFVWV1hZWgogfQogCiB0b2xvd2VyKCl7Ci0gICAgZWNobyAiJEAiIHwg
dHIgJ1tBLVpdJyAnW2Etel0nCisgICAgZWNobyAiJEAiIHwgdHIgQUJDREVGR0hJSktMTU5PUFFS
U1RVVldYWVogYWJjZGVmZ2hpamtsbW5vcHFyc3R1dnd4eXoKIH0KIAogc2V0X2FsbCgpewo=

--MP_/B=rkWebngq+4ywZNeM6mFvY--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20081110231920.78c38e21>