[mythtv] Build error on Fedora rawhide

Gary Buhrmaster gary.buhrmaster at gmail.com
Sun May 11 17:43:38 UTC 2014


On Sun, May 11, 2014 at 4:40 PM, Richard Shaw <hobbes1069 at gmail.com> wrote:
> I was working on building a new fixes release when I ran into this on
> Rawhide[1]... Building for F20 works fine...
>
....
>
> Any ideas?

Not quickly, and I have to go do some errands, but here are my
initial thoughts:

First, one needs to be careful when running a parallel make to actually
include the "interesting" output lines.  In particular, the ones you *really*
wanted were:

g++ -Wl,-O1 -Wl,-z,relro -o mythavtest main.o commandlineparser.o
-L../../libs/libmyth -L../../libs/libmythtv
-L../../external/FFmpeg/libavutil -L../../external/FFmpeg/libavcodec
-L../../external/FFmpeg/libavformat -L../../external/FFmpeg/libswscale
-L../../external/FFmpeg/libswresample -L../../libs/libmythbase
-L../../libs/libmythui -L../../libs/libmythupnp
-L../../libs/libmythmetadata -L../../libs/libmythservicecontracts
-L../../libs/libmythprotoserver -lmythswscale -lmythavformat
-lmythavcodec -lmythavutil -lmythswresample -lmythtv-0.27
-lmythupnp-0.27 -lmythbase-0.27 -lmythui-0.27 -lmyth-0.27
-lmythmetadata-0.27 -lmythservicecontracts-0.27 -lmythprotoserver-0.27
-L../../libs/libmythfreemheg -lmythfreemheg-0.27
-L../../external/libhdhomerun -lmythhdhomerun-0.27 -lXext -lXinerama
-lXxf86vm -lXv -lXrandr -lX11 -lxml2 -ldns_sd -lcrypto -lass
-lfftw3_threads -lfftw3f -lfftw3 -lva -lpulse -ljack -lasound
-lfreetype -lxvidcore -lx264 -lvpx -lvorbisenc -lvorbis -ltheoraenc
-ltheoradec -logg -lmp3lame -lcrystalhd -lm -luuid -pthread -lz -ldl
-lraw1394 -liec61883 -lavc1394 -lrom1394 -L/usr/X11R6/lib
-L/builddir/build/BUILD/mythtv-0.27/mythtv/external/qjson/lib64
-lmythqjson -L/usr/lib64 -lpthread -lGL -lQtSql -lQtXml -lQtOpenGL
-lQtGui -lQtNetwork -lQtCore
......
main.o: In function `VideoOutput::StartDisplayingFrame()':
/builddir/build/BUILD/mythtv-0.27/mythtv/programs/mythavtest/../../libs/libmythtv/videooutbase.h:199:
undefined reference to `VideoBuffers::StartDisplayingFrame()'
main.o: In function `VideoOutput::DoneDisplayingFrame(VideoFrame_*)':
/builddir/build/BUILD/mythtv-0.27/mythtv/programs/mythavtest/../../libs/libmythtv/videooutbase.h:203:
undefined reference to
`VideoBuffers::DoneDisplayingFrame(VideoFrame_*)'
main.o: In function `VideoOutput::StartDisplayingFrame()':
/builddir/build/BUILD/mythtv-0.27/mythtv/programs/mythavtest/../../libs/libmythtv/videooutbase.h:199:
undefined reference to `VideoBuffers::StartDisplayingFrame()'
main.o: In function `VideoOutput::DoneDisplayingFrame(VideoFrame_*)':
/builddir/build/BUILD/mythtv-0.27/mythtv/programs/mythavtest/../../libs/libmythtv/videooutbase.h:203:
undefined reference to
`VideoBuffers::DoneDisplayingFrame(VideoFrame_*)'
collect2: error: ld returned 1 exit status
make[2]: *** [mythavtest] Error 1
make[2]: Leaving directory
`/builddir/build/BUILD/mythtv-0.27/mythtv/programs/mythavtest'
make[1]: *** [sub-mythavtest-make_default] Error 2



[I deleted the ClassicSceneDetector compile line, which is not
relevant, I think]


And the link line looks right, but I must be missing something, since
the error message indicates (or, rather, suggests) that libmythtv-0.27.so
does not contain the right objects.  I suspect that gcc 4.9 (new in
rawhide, I think) has done something special again, and I will have
to actually read the release notes and/or the PRs against gcc.
Unless someone else gets there first :-)

Gary


More information about the mythtv-dev mailing list