[mythtv-users] Mythtv-0.16 failing with Math errors

Rod Smart snaketails at optusnet.com.au
Tue Oct 26 14:07:15 UTC 2004


    Ok, no one replied to this E-mail, so I am in a way trying again, 
but with a fix..

    The file below (dvbdiseq.cpp) failed in compilation with "math" 
errors as was posted on the Gentoo forums, the fix is below, I'm not 
100% sure how a "diff" of a file is supposed to be run, but here is the 
output of what I modified (modified file is the *.new filename)

shadow libmythtv # diff -b dvbdiseqc.cpp dvbdiseqc.cpp.new
41a42,43
 > #include "math.h"
 >

    I hope with this, someone can solve or modify the program so this 
error can be eliminated, or is there a "bug" reporting facility ?

Rod Smart wrote:

> ~    Hello, I'm trying to get mythtv to compile under Gentoo, but I am
> getting "mathimaticle" errors during the compile time, but I don't
> know what is causing this problem.
>
> ~    Someone on the Gntoo forums has sugested that "#include math.h"
> should be included to "dvbdiseq.cpp"
>
> ~    Will this solve my problem?
>
> ~    Does anyone know why I am having this problem?
>
> ~    I am running Kernel-2.6.8 and gcc version 3.4.2
>
> ~    Below is the output of the compile that breaks, this is not a
> problem with Gentoo, as compilation breaks if I try to compile from
> source manually.
>
>
> ln -s libmyth-0.16.so.0.16.0 libmyth-0.16.so
> ln -s libmyth-0.16.so.0.16.0 libmyth-0.16.so.0
> ln -s libmyth-0.16.so.0.16.0 libmyth-0.16.so.0.16
> make: Leaving directory
> `/var/tmp/portage/mythtv-0.16/work/mythtv-0.16/libs/libmyth'
> make: Entering directory
> `/var/tmp/portage/mythtv-0.16/work/mythtv-0.16/libs/libmythtv'
>
> <---SNIP--->
>
> g++ -c -pipe `artsc-config --cflags` -Wall -W -O3 -pipe
> `freetype-config --cflags` -D_REENTRANT -fPIC  -D_GNU_SOURCE
> -D_FILE_OFFSET_BITS=64 -DPREFIX=\"/usr\" -DMMX -DCONFIG_VIDEO4LINUX
> -DUSING_IVTV -DUSING_OSS -DUSING_DVB -DUSING_XVMC -DUSING_OPENGL_VSYNC
> -DUSING_XRANDR -DUSING_XV -DQT_NO_DEBUG -DQT_THREAD_SUPPORT
> -I/usr/qt/3/mkspecs/linux-g++ -I. -I/usr/include -I/usr/local/include
> -I/usr/include -I../libmyth -I.. -Idvbdev -I../libavcodec
> -I/usr/qt/3/include -I/usr/X11R6/include -I/usr/X11R6/include -o
> dvbsections.o dvbsections.cpp
> dvbrecorder.cpp: In member function `virtual void
> DVBRecorder::StartRecording()':
> dvbrecorder.cpp:381: warning: unused variable 'qualthread'
> dvbdiseqc.cpp: In member function `bool
> DVBDiSEqC::PositionerGotoAngular(dvb_tuning_t&, bool, bool&)':
> dvbdiseqc.cpp:587: error: `M_PI' undeclared (first use this function)
> dvbdiseqc.cpp:587: error: (Each undeclared identifier is reported only
> once for each function it appears in.)
> dvbdiseqc.cpp:603: error: `tan' undeclared (first use this function)
> dvbdiseqc.cpp:603: error: `sin' undeclared (first use this function)
> dvbdiseqc.cpp:603: error: `atan2' undeclared (first use this function)
> dvbdiseqc.cpp:631: error: `round' undeclared (first use this function)
> make: *** [dvbdiseqc.o] Error 1
> make: *** Waiting for unfinished jobs....
> ivtvdecoder.cpp:54: warning: unused parameter 'needFlush'
> make: Leaving directory
> `/var/tmp/portage/mythtv-0.16/work/mythtv-0.16/libs/libmythtv'


_______________________________________________
mythtv-users mailing list
mythtv-users at mythtv.org
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users




More information about the mythtv-users mailing list