MythTV port compilation error

Hans Nieser h.nieser at
Fri Jun 1 07:48:16 UTC 2007

Hans Nieser wrote:
> Greg 'groggy' Lehey wrote:
>> [Format recovered--see]
>> Computer output unfolded.
>> On Thursday, 31 May 2007 at 19:32:49 +0200, Hans Nieser wrote:
>>> I've been trying occasionally the past few weeks to compile MythTV, but it
>>> keeps failing. I have an updated ports tree. Does anyone know if this is a
>>> known problem, or how to fix it?
>> This is probably better addressed to FreeBSD-questions.  I'm copying
>> that list and copying multimedia@ (the original mailing list) as Bcc.
>>> g++ -Wl,-rpath,/usr/local/lib  -Wl,-rpath,/usr/local/lib -pthread -o mythcommflag main.o mmDetector2.o  pgm.o  EdgeDetector.o  CannyEdgeDetector.o  PGMConverter.o  BorderDetector. omEventRelayer.o  moc_CommDetectorBase.o  moc_LogoDetectorBase.o moc_SceneChangeDetectorBlibavcodec -L../../libs/libavformat -L../../libs/libmythfreemheg -L../../libs/libmythui -L hupnp-0.20 -lmythlivemedia-0.20 -lmyth-0.20 -lmythui-0.20 -lfreetype -lmp3lame -L/usr/loca
>>> main.o(.text+0x1f9c): In function `FlagCommercials(QString, QString)': /usr/ports/multimedia/mythtv/work/mythtv-fixes-0.20-13053/programs/mythcommflag/main.cpp:4
>>> *** Error code 1
>> OK, I've tried to reconstitute the output you quoted, but it looks as
>> if you have truncated the lines.  In particular, the important part of
>> the last line seems to be missing.
>> At first sight, this did look like a problem I've seen, but it's
>> difficult to say.  What do you have in /var/db/ports/mythtv/options?
>> What revision of the port are you compiling (i.e. what is PORTREVISION
>> in the Makefile)?  What version of FreeBSD are you running?
> Yeah I was puzzled by what seems to be a truncated error message as well
> but this really seems to be all I was getting. The contents of the options
> file are:
> # This file is auto-generated by 'make config'.
> # No user-servicable parts inside!
> # Options for mythtv-0.20
> _OPTIONS_READ=mythtv-0.20
> The portrevision is 2 ("PORTVERSION=    0.20"
> and "PORTREVISION=   2" in the Makefile).
> I'm running 6.1-RELEASE-p6
> I'll try to recompile it again and make sure I did in fact copy paste the
> error correctly (I did resize my terminal window so maybe it somehow
> screwed up and truncated the lines or something)

Ah it does seem like the terminal I copied it from was borked. I have
attached the actual error.

>From googling around a bit I can see that I'm not the only one with this
problem and that it's not specific to FreeBSD, I couldn't find any
solution unfortunately.

-------------- next part --------------
g++ -Wl,-rpath,/usr/local/lib  -Wl,-rpath,/usr/local/lib -pthread -o mythcommflag main.o  CommDetectorFactory.o  CommDetectorBase.o  Histogram.o  ClassicLogoDetector.o  ClassicSceneChangeDetector.o  ClassicCommDetector.o  quickselect.o  CommDetector2.o  pgm.o  EdgeDetector.o  CannyEdgeDetector.o  PGMConverter.o  BorderDetector.o  FrameAnalyzer.o  TemplateFinder.o  TemplateMatcher.o  HistogramAnalyzer.o  BlankFrameDetector.o  SceneChangeDetector.o moc_SlotRelayer.o  moc_CustomEventRelayer.o  moc_CommDetectorBase.o  moc_LogoDetectorBase.o  moc_SceneChangeDetectorBase.o  moc_ClassicCommDetector.o   -L/usr/local/lib -L/usr/local/lib -L../../libs/libmyth -L../../libs/libmythtv -L../../libs/libavutil -L../../libs/libavcodec -L../../libs/libavformat -L../../libs/libmythfreemheg -L../../libs/libmythui -L../../libs/libmythupnp -L../../libs/libmythlivemedia -lmythtv-0.20 -lmythavformat-0.20 -lmythavutil-0.20 -lmythavcodec-0.20 -lmythfreemheg-0.20 -lmythupnp-0.20 -lmythlivemedia-0.20 -lmyth-0.20 -lmythui-0.20 -lfreetype -lmp3lame -L/usr/local/lib -lXinerama -lXv -lXxf86vm -lXrandr -lviaXvMC -lXvMC -lqt-mt -lGLU -lGL -lXmu -lXext -lX11 -lm
main.o(.text+0x1f9c): In function `FlagCommercials(QString, QString)':
/usr/ports/multimedia/mythtv/work/mythtv-fixes-0.20-13053/programs/mythcommflag/main.cpp:495: undefined reference to `ProgramInfo::GetRecordFilename(QString const&, bool) const'
*** Error code 1

Stop in /usr/ports/multimedia/mythtv/work/mythtv-fixes-0.20-13053/programs/mythcommflag.
*** Error code 1

Stop in /usr/ports/multimedia/mythtv/work/mythtv-fixes-0.20-13053/programs.
*** Error code 1

Stop in /usr/ports/multimedia/mythtv/work/mythtv-fixes-0.20-13053.
*** Error code 1

Stop in /usr/ports/multimedia/mythtv.
*** Error code 1

Stop in /usr/ports/multimedia/mythtv.
** Command failed [exit code 1]: /usr/bin/script -qa /tmp/portupgrade.38159.58 env UPGRADE_TOOL=portupgrade UPGRADE_PORT=mythtv-0.20 UPGRADE_PORT_VER=0.20 make
** Fix the problem and try again.
** Listing the failed packages (*:skipped / !:failed)
        ! multimedia/mythtv (mythtv-0.20)       (linker error)
--->  Packages processed: 0 done, 500 ignored, 0 skipped and 1 failed

More information about the freebsd-multimedia mailing list