manio / vdr-plugin-dvbapi

VDR dvbapi plugin for use with OSCam
http://www.streamboard.tv/wbb2/thread.php?threadid=40060
GNU General Public License v2.0
57 stars 25 forks source link

g++: error: unrecognized command line option ‘-fdiagnostics-color=auto’ #72

Closed MegaV0lt closed 9 years ago

MegaV0lt commented 9 years ago

todays GIT is not compiling... Using Gen2VDR V5

hdvdr01 dvbapi # make install g++: error: unrecognized command line option ‘-fdiagnostics-color=auto’ g++ -g -O3 -Wall -Werror=overloaded-virtual -Wno-parentheses -fPIC -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -fdiagnostics-color=auto -c -DUSE_WAREAGLEICON -DPLUGIN_NAME_I18N='"dvbapi"' -DGITVERSION='"-GIT-766f613"' -DLIBDVBCSA -o CAPMT.o CAPMT.cpp g++: error: unrecognized command line option ‘-fdiagnostics-color=auto’ make: *\ [CAPMT.o] Error 1

hdvdr01 dvbapi # g++ -v Using built-in specs. COLLECT_GCC=/usr/x86_64-pc-linux-gnu/gcc-bin/4.7.3/g++ COLLECT_LTO_WRAPPER=/usr/libexec/gcc/x86_64-pc-linux-gnu/4.7.3/lto-wrapper Target: x86_64-pc-linux-gnu Configured with: /mnt/data/system/tmp/portage/sys-devel/gcc-4.7.3-r1/work/gcc-4.7.3/configure --host=x86_64-pc-linux-gnu --build=x86_64-pc-linux-gnu --prefix=/usr --bindir=/usr/x86_64-pc-linux-gnu/gcc-bin/4.7.3 --includedir=/usr/lib/gcc/x86_64-pc-linux-gnu/4.7.3/include --datadir=/usr/share/gcc-data/x86_64-pc-linux-gnu/4.7.3 --mandir=/usr/share/gcc-data/x86_64-pc-linux-gnu/4.7.3/man --infodir=/usr/share/gcc-data/x86_64-pc-linux-gnu/4.7.3/info --with-gxx-include-dir=/usr/lib/gcc/x86_64-pc-linux-gnu/4.7.3/include/g++-v4 --with-python-dir=/share/gcc-data/x86_64-pc-linux-gnu/4.7.3/python --enable-languages=c,c++,fortran --enable-obsolete --enable-secureplt --disable-werror --with-system-zlib --enable-nls --without-included-gettext --enable-checking=release --with-bugurl=https://bugs.gentoo.org/ --with-pkgversion='Gentoo 4.7.3-r1 p1.4, pie-0.5.5' --enable-libstdcxx-time --enable-shared --enable-threads=posix --enable-__cxa_atexit --enable-clocale=gnu --enable-multilib --with-multilib-list=m32,m64 --disable-altivec --disable-fixed-point --enable-targets=all --disable-libgcj --enable-libgomp --disable-libmudflap --disable-libssp --enable-lto --without-cloog --without-ppl Thread model: posix gcc version 4.7.3 (Gentoo 4.7.3-r1 p1.4, pie-0.5.5)

unixer commented 9 years ago

some error with gcc version 4.8.3

unixer commented 9 years ago

Apply these patch https://raw.githubusercontent.com/unixer/SifBoX/8dd770b1e3f2c37d23624c66aa999e15a3069f7f/packages/multimedia/vdr-dvbapi/patches/vdr-plugin-dvbapi-05__diagnostics-color.patch

MegaV0lt commented 9 years ago

The "-fdiagnostics-color=" was introduced in gcc 4.9 i think. auto is the default, so it must not be set at all.

manio commented 9 years ago

Ok, thanks guys. Fixing...