[mythtv-users] rpmfusion MythTV 30 compile error

Udo van den Heuvel udovdh at xs4all.nl
Sat Nov 2 16:19:48 UTC 2019


Hello,

As preparation for the new DVB-T2 capable MythTV box, I downloaded the
rpmfusion source RPMs for mythtv to see if they compile.
I installed the source rpms, did not modify the SPEC file, installed the
dependencies missing before building.
The build errors, though:

/usr/lib64/qt5/bin/moc -DMMX -Dusing_libcec -D_GNU_SOURCE -DMETA_API
-DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_XML_LIB -DQT_SQL_LIB
-DQT_CORE_LIB --include
/usr/src/redhat/BUILD/mythtv-30.0/mythtv/libs/libmythmetadata/moc/moc_predefs.h
-I/usr/lib64/qt5/mkspecs/linux-g++
-I/usr/src/redhat/BUILD/mythtv-30.0/mythtv/libs/libmythmetadata
-I/usr/include/libxml2 -I/usr/include/X11
-I/usr/src/redhat/BUILD/mythtv-30.0/mythtv/libs/libmythbase
-I/usr/src/redhat/BUILD/mythtv-30.0/mythtv/libs/libmythtv
-I/usr/src/redhat/BUILD/mythtv-30.0/mythtv
-I/usr/src/redhat/BUILD/mythtv-30.0/mythtv/libs
-I/usr/src/redhat/BUILD/mythtv-30.0/mythtv/libs/libmythmetadata
-I/usr/src/redhat/BUILD/mythtv-30.0/mythtv/libs/libmythui
-I/usr/src/redhat/BUILD/mythtv-30.0/mythtv
-I/usr/src/redhat/BUILD/mythtv-30.0/mythtv/external/FFmpeg
-I/usr/src/redhat/BUILD/mythtv-30.0/mythtv/libs/libmyth
-I/usr/src/redhat/BUILD/mythtv-30.0/mythtv/libs/libmythservicecontracts
-I/usr/include/taglib -I/usr/include/qt5 -I/usr/include/qt5/QtWidgets
-I/usr/include/qt5/QtGui -I/usr/include/qt5/QtNetwork
-I/usr/include/qt5/QtXml -I/usr/include/qt5/QtSql
-I/usr/include/qt5/QtCore -I/usr/include/c++/9
-I/usr/include/c++/9/x86_64-redhat-linux -I/usr/include/c++/9/backward
-I/usr/lib/gcc/x86_64-redhat-linux/9/include -I/usr/local/include
-I/usr/include parentalcontrols.cpp -o moc/parentalcontrols.moc
g++ -c -pipe -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -DPIC -march=k8
-mtune=k8 -msse -msse2 -msse3 -m3dnow -O2 -g -Wall
-Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions
-fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches
-m64 -fomit-frame-pointer -fno-devirtualize -std=c++11 -fPIC
-DQT_DISABLE_DEPRECATED_BEFORE=0x050300 -pthread -DHDHOMERUN_V2 -Wextra
-Wpointer-arith -D__STDC_CONSTANT_MACROS -D__STDC_LIMIT_MACROS
-fvisibility-inlines-hidden -Wdouble-promotion -Wduplicated-cond
-Wlogical-op -Wmissing-declarations -Wnull-dereference
-Woverloaded-virtual -funit-at-a-time -faligned-new
-Wzero-as-null-pointer-constant -Wsuggest-override -fvisibility=hidden
-std=gnu++11 -D_REENTRANT -fPIC -DMMX -Dusing_libcec -D_GNU_SOURCE
-DMETA_API -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_XML_LIB
-DQT_SQL_LIB -DQT_CORE_LIB -I. -isystem /usr/include/libxml2 -isystem
/usr/include/X11 -I../libmythbase -I../libmythtv -I../.. -I.. -I.
-I../libmythui -I../.. -I../../external/FFmpeg -I../libmyth
-I../libmythservicecontracts -isystem /usr/include/taglib -isystem
/usr/include/qt5 -isystem /usr/include/qt5/QtWidgets -isystem
/usr/include/qt5/QtGui -isystem /usr/include/qt5/QtNetwork -isystem
/usr/include/qt5/QtXml -isystem /usr/include/qt5/QtSql -isystem
/usr/include/qt5/QtCore -Imoc -isystem /usr/include/libdrm
-I/usr/lib64/qt5/mkspecs/linux-g++ -o obj/parentalcontrols.o
parentalcontrols.cpp
g++ -c -pipe -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -DPIC -march=k8
-mtune=k8 -msse -msse2 -msse3 -m3dnow -O2 -g -Wall
-Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions
-fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches
-m64 -fomit-frame-pointer -fno-devirtualize -std=c++11 -fPIC
-DQT_DISABLE_DEPRECATED_BEFORE=0x050300 -pthread -DHDHOMERUN_V2 -Wextra
-Wpointer-arith -D__STDC_CONSTANT_MACROS -D__STDC_LIMIT_MACROS
-fvisibility-inlines-hidden -Wdouble-promotion -Wduplicated-cond
-Wlogical-op -Wmissing-declarations -Wnull-dereference
-Woverloaded-virtual -funit-at-a-time -faligned-new
-Wzero-as-null-pointer-constant -Wsuggest-override -fvisibility=hidden
-std=gnu++11 -D_REENTRANT -fPIC -DMMX -Dusing_libcec -D_GNU_SOURCE
-DMETA_API -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_XML_LIB
-DQT_SQL_LIB -DQT_CORE_LIB -I. -isystem /usr/include/libxml2 -isystem
/usr/include/X11 -I../libmythbase -I../libmythtv -I../.. -I.. -I.
-I../libmythui -I../.. -I../../external/FFmpeg -I../libmyth
-I../libmythservicecontracts -isystem /usr/include/taglib -isystem
/usr/include/qt5 -isystem /usr/include/qt5/QtWidgets -isystem
/usr/include/qt5/QtGui -isystem /usr/include/qt5/QtNetwork -isystem
/usr/include/qt5/QtXml -isystem /usr/include/qt5/QtSql -isystem
/usr/include/qt5/QtCore -Imoc -isystem /usr/include/libdrm
-I/usr/lib64/qt5/mkspecs/linux-g++ -o obj/imagemetadata.o imagemetadata.cpp
In file included from ../../external/FFmpeg/libavutil/common.h:488,
                 from ../../external/FFmpeg/libavutil/avutil.h:296,
                 from ../../external/FFmpeg/libavutil/samplefmt.h:24,
                 from ../../external/FFmpeg/libavcodec/avcodec.h:31,
                 from ../../external/FFmpeg/libavformat/avformat.h:319,
                 from imagemetadata.cpp:21:
../../external/FFmpeg/libavutil/mem.h:342:79: warning: ‘alloc_size’
attribute ignored on a function returning ‘int’ [-Wattributes]
  342 | av_alloc_size(2, 3) int av_reallocp_array(void *ptr, size_t
nmemb, size_t size);
      |
             ^
imagemetadata.cpp: In constructor
‘PictureMetaData::PictureMetaData(const QString&)’:
imagemetadata.cpp:315:19: error: ‘Error’ in namespace ‘Exiv2’ does not
name a type
  315 |     catch (Exiv2::Error &e)
      |                   ^~~~~
In file included from /usr/include/qt5/QtCore/qcoreapplication.h:43,
                 from /usr/include/qt5/QtCore/QCoreApplication:1,
                 from imagemetadata.h:12,
                 from imagemetadata.cpp:1:
imagemetadata.cpp:317:74: error: ‘e’ was not declared in this scope
  317 |         LOG(VB_GENERAL, LOG_ERR, LOC + QString("Exiv2 exception
%1").arg(e.what()));
      |
        ^
imagemetadata.cpp:317:9: note: in expansion of macro ‘LOG’
  317 |         LOG(VB_GENERAL, LOG_ERR, LOC + QString("Exiv2 exception
%1").arg(e.what()));
      |         ^~~
make: *** [Makefile:1694: obj/imagemetadata.o] Error 1


Question:
Probably something is missing from the dependencies. (?!)
If so: what would that be?
Please let us know.

Kind regards,
Udo


More information about the mythtv-users mailing list