CFT: MythTV Fixes

Bernhard Froehlich decke at bluelife.at
Mon Nov 10 14:19:32 PST 2008


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

> On Tue, 04 Nov 2008 22:55:43 +0100
> Bernhard Froehlich <decke at 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 at 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 at 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 at kg-vm# pwd
> /usr/ports/multimedia/mythtv-frontend
> root at 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 at kg-vm.kg4.no:/usr/obj/usr/src/sys/SMP  amd64
> root at 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/

-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch-configure-toupper
Type: application/octet-stream
Size: 566 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-multimedia/attachments/20081110/64cada25/patch-configure-toupper.obj


More information about the freebsd-multimedia mailing list