[mythtv] dbcheck.cpp change in r12544 (mythgallery and mythgame) do not compile on gcc 4.1.1

Robin Neatherway robthebob at gmail.com
Wed Jan 17 14:43:04 UTC 2007


All plugins appear to have been updated with this change as of one day
ago. I am running into problems compiling them on gcc 4.1.1. This is
the line I am having trouble with:

20: if(!gContext->SaveSettingOnHost("GalleryDBSchemaVer",newnumber,NULL))

Below are the results of make, with the compilation error, and gcc -v.
Please let me know if any more info is required.

Robin

 # make
distcc g++ -c -pipe -march=pentiumpro -I/usr/kde/3.5/include/artsc
-pthread -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include
-Wno-non-virtual-dtor -Wall -W -O3 -Wall -Wno-switch
-fomit-frame-pointer -D_REENTRANT -DPIC -fPIC  -D_GNU_SOURCE
-DPREFIX=\"/usr/local\" -DMMX -Di386 -D_FILE_OFFSET_BITS=64
-DQT_NO_DEBUG -DQT_THREAD_SUPPORT -DQT_PLUGIN -DQT_SHARED
-DQT_TABLET_SUPPORT -I/usr/qt/3/mkspecs/linux-g++ -I.
-I/usr/local/include -I/usr/kde/3.5/include -I/usr/local/include
-I/usr/include -I/usr/include -I/usr/local/include/mythtv
-I/usr/local/include/mythtv/ffmpeg
-I/usr/local/include/mythtv/libmythtv -I/usr/qt/3/include -o dbcheck.o
dbcheck.cpp
dbcheck.cpp: In function 'bool UpdateDBVersionNumber(const QString&)':
dbcheck.cpp:20: error: could not convert 'gContext->
MythContext::SaveSettingOnHost(((const QString&)(& QString(((const
char*)"ArchiveDBSchemaVer")))), ((const QString&)((const
QString*)newnumber)), ((const QString&)(& QString(0u))))' to 'bool'
dbcheck.cpp:20: error: in argument to unary !
distcc[12337] ERROR: compile dbcheck.cpp on localhost failed

 # gcc -v
Using built-in specs.
Target: i686-pc-linux-gnu
Configured with: /var/tmp/portage/gcc-4.1.1/work/gcc-4.1.1/configure
--prefix=/usr --bindir=/usr/i686-pc-linux-gnu/gcc-bin/4.1.1
--includedir=/usr/lib/gcc/i686-pc-linux-gnu/4.1.1/include
--datadir=/usr/share/gcc-data/i686-pc-linux-gnu/4.1.1
--mandir=/usr/share/gcc-data/i686-pc-linux-gnu/4.1.1/man
--infodir=/usr/share/gcc-data/i686-pc-linux-gnu/4.1.1/info
--with-gxx-include-dir=/usr/lib/gcc/i686-pc-linux-gnu/4.1.1/include/g++-v4
--host=i686-pc-linux-gnu --build=i686-pc-linux-gnu --disable-altivec
--enable-nls --without-included-gettext --with-system-zlib
--disable-checking --disable-werror --disable-libunwind-exceptions
--disable-multilib --disable-libmudflap --disable-libssp
--disable-libgcj --enable-languages=c,c++,fortran --enable-shared
--enable-threads=posix --enable-__cxa_atexit --enable-clocale=gnu
Thread model: posix
gcc version 4.1.1 (Gentoo 4.1.1)


More information about the mythtv-dev mailing list