Bug#974104: merkaartor FTBFS: error: field ‘thePath’ has incomplete type ‘QPainterPath’

Helmut Grohne helmut at subdivi.de
Mon Nov 9 16:26:26 GMT 2020


Source: merkaartor
Version: 0.18.4+ds-4
Severity: serious
Tags: ftbfs

merkaartor fails to build from source in unstable, A build ends with:

| g++ -c -pipe -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -DACCEPT_USE_OF_DEPRECATED_PROJ_API_H -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include/gdal -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -DACCEPT_USE_OF_DEPRECATED_PROJ_API_H -Wdate-time -D_FORTIFY_SOURCE=2 -std=gnu++11 -frtti -Wall -Wextra -Wno-reorder -D_REENTRANT -fPIC -DVERSION=0.18.4 -DREVISION=0.18.4-64bit -DPRODUCT=Merkaartor -DUSE_LIBPROXY -D_TTY_POSIX_ -DUSE_GPS -DUSE_GPSD_LIB -DPLUGINS_DIR=/usr/lib/merkaartor/plugins -DSHARE_DIR=/usr/share/merkaartor -DTRANSDIR_MERKAARTOR=/usr/share/merkaartor/translations -DTRANSDIR_SYSTEM=/usr/share/qt5/translations/ -DGEOIMAGE -DQT_NO_DEBUG -DQT_SVG_LIB -DQT_PRINTSUPPORT_LIB -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_XML_LIB -DQT_CONCURRENT_LIB -DQT_CORE_LIB -I. -I../3rdparty/qtsingleapplication-2.6_1-opensource/src -I. -I../include -I../interfaces -Icommon -IBackend -IPaintStyle -IPaintStyle -IFeatures -ILayers -IPreferences -ISync -ICommands -IInteractions -IDocks -IQMapControl -IImportExport -IRender -Iqextserialport -IGPS -ITools -ITagTemplate -INameFinder -IUtils -IQToolBarDialog -I/usr/include/x86_64-linux-gnu/qt5 -I/usr/include/x86_64-linux-gnu/qt5/QtSvg -I/usr/include/x86_64-linux-gnu/qt5/QtPrintSupport -I/usr/include/x86_64-linux-gnu/qt5/QtWidgets -I/usr/include/x86_64-linux-gnu/qt5/QtGui -I/usr/include/x86_64-linux-gnu/qt5/QtNetwork -I/usr/include/x86_64-linux-gnu/qt5/QtXml -I/usr/include/x86_64-linux-gnu/qt5/QtConcurrent -I/usr/include/x86_64-linux-gnu/qt5/QtCore -Irelease -I. -I/usr/lib/x86_64-linux-gnu/qt5/mkspecs/linux-g++ -o release/Global.o common/Global.cpp
| In file included from Features/Feature.h:7,
|                  from Features/Features.h:2,
|                  from Backend/MemoryBackend.h:4,
|                  from common/Global.h:19,
|                  from common/Global.cpp:13:
| common/Coord.h: In function ‘Coord operator/(const Coord&, qreal)’:
| common/Coord.h:95:41: warning: ‘QTextStream& QTextStreamFunctions::endl(QTextStream&)’ is deprecated: Use Qt::endl [-Wdeprecated-declarations]
|    95 |         qDebug()<<"Error: divide by 0"<<endl;
|       |                                         ^~~~
| In file included from /usr/include/x86_64-linux-gnu/qt5/QtCore/qdebug.h:49,
|                  from /usr/include/x86_64-linux-gnu/qt5/QtCore/QtDebug:1,
|                  from common/Coord.h:9,
|                  from Features/Feature.h:7,
|                  from Features/Features.h:2,
|                  from Backend/MemoryBackend.h:4,
|                  from common/Global.h:19,
|                  from common/Global.cpp:13:
| /usr/include/x86_64-linux-gnu/qt5/QtCore/qtextstream.h:293:75: note: declared here
|   293 | Q_CORE_EXPORT QT_DEPRECATED_VERSION_X(5, 15, "Use Qt::endl") QTextStream &endl(QTextStream &s);
|       |                                                                           ^~~~
| In file included from Features/Feature.h:7,
|                  from Features/Features.h:2,
|                  from Backend/MemoryBackend.h:4,
|                  from common/Global.h:19,
|                  from common/Global.cpp:13:
| common/Coord.h:95:41: warning: ‘QTextStream& QTextStreamFunctions::endl(QTextStream&)’ is deprecated: Use Qt::endl [-Wdeprecated-declarations]
|    95 |         qDebug()<<"Error: divide by 0"<<endl;
|       |                                         ^~~~
| In file included from /usr/include/x86_64-linux-gnu/qt5/QtCore/qdebug.h:49,
|                  from /usr/include/x86_64-linux-gnu/qt5/QtCore/QtDebug:1,
|                  from common/Coord.h:9,
|                  from Features/Feature.h:7,
|                  from Features/Features.h:2,
|                  from Backend/MemoryBackend.h:4,
|                  from common/Global.h:19,
|                  from common/Global.cpp:13:
| /usr/include/x86_64-linux-gnu/qt5/QtCore/qtextstream.h:293:75: note: declared here
|   293 | Q_CORE_EXPORT QT_DEPRECATED_VERSION_X(5, 15, "Use Qt::endl") QTextStream &endl(QTextStream &s);
|       |                                                                           ^~~~
| In file included from Features/Features.h:2,
|                  from Backend/MemoryBackend.h:4,
|                  from common/Global.h:19,
|                  from common/Global.cpp:13:
| Features/Feature.h: At global scope:
| Features/Feature.h:354:18: error: field ‘thePath’ has incomplete type ‘QPainterPath’
|   354 |     QPainterPath thePath;
|       |                  ^~~~~~~
| In file included from Features/Features.h:1,
|                  from Backend/MemoryBackend.h:4,
|                  from common/Global.h:19,
|                  from common/Global.cpp:13:
| ../interfaces/IFeature.h:10:7: note: forward declaration of ‘class QPainterPath’
|    10 | class QPainterPath;
|       |       ^~~~~~~~~~~~
| common/Global.cpp: In function ‘QStringList g_getTagValueList(QString)’:
| common/Global.cpp:92:38: warning: ‘QSet<T> QList<T>::toSet() const [with T = unsigned int]’ is deprecated: Use QSet<T>(list.begin(), list.end()) instead. [-Wdeprecated-declarations]
|    92 |             retList.unite(list.toSet());
|       |                                      ^
| In file included from /usr/include/x86_64-linux-gnu/qt5/QtCore/qdebug.h:52,
|                  from /usr/include/x86_64-linux-gnu/qt5/QtCore/QtDebug:1,
|                  from common/Coord.h:9,
|                  from Features/Feature.h:7,
|                  from Features/Features.h:2,
|                  from Backend/MemoryBackend.h:4,
|                  from common/Global.h:19,
|                  from common/Global.cpp:13:
| /usr/include/x86_64-linux-gnu/qt5/QtCore/qset.h:406:30: note: declared here
|   406 | Q_OUTOFLINE_TEMPLATE QSet<T> QList<T>::toSet() const
|       |                              ^~~~~~~~
| common/Global.cpp:94:53: warning: ‘QSet<T> QList<T>::toSet() const [with T = unsigned int]’ is deprecated: Use QSet<T>(list.begin(), list.end()) instead. [-Wdeprecated-declarations]
|    94 |         retList = tagList[tagKeys.indexOf(k)].toSet();
|       |                                                     ^
| In file included from /usr/include/x86_64-linux-gnu/qt5/QtCore/qdebug.h:52,
|                  from /usr/include/x86_64-linux-gnu/qt5/QtCore/QtDebug:1,
|                  from common/Coord.h:9,
|                  from Features/Feature.h:7,
|                  from Features/Features.h:2,
|                  from Backend/MemoryBackend.h:4,
|                  from common/Global.h:19,
|                  from common/Global.cpp:13:
| /usr/include/x86_64-linux-gnu/qt5/QtCore/qset.h:406:30: note: declared here
|   406 | Q_OUTOFLINE_TEMPLATE QSet<T> QList<T>::toSet() const
|       |                              ^~~~~~~~
| common/Global.cpp: In function ‘QStringList g_getTagKeyList()’:
| common/Global.cpp:115:26: warning: ‘QSet<T> QList<T>::toSet() const [with T = QString]’ is deprecated: Use QSet<T>(list.begin(), list.end()) instead. [-Wdeprecated-declarations]
|   115 |     return tagKeys.toSet().toList();
|       |                          ^
| In file included from /usr/include/x86_64-linux-gnu/qt5/QtCore/QList:1,
|                  from common/Global.h:15,
|                  from common/Global.cpp:13:
| /usr/include/x86_64-linux-gnu/qt5/QtCore/qlist.h:413:13: note: declared here
|   413 |     QSet<T> toSet() const;
|       |             ^~~~~
| common/Global.cpp:115:35: warning: ‘QList<T> QSet<T>::toList() const [with T = QString]’ is deprecated: Use values() instead. [-Wdeprecated-declarations]
|   115 |     return tagKeys.toSet().toList();
|       |                                   ^
| In file included from /usr/include/x86_64-linux-gnu/qt5/QtCore/qdebug.h:52,
|                  from /usr/include/x86_64-linux-gnu/qt5/QtCore/QtDebug:1,
|                  from common/Coord.h:9,
|                  from Features/Feature.h:7,
|                  from Features/Features.h:2,
|                  from Backend/MemoryBackend.h:4,
|                  from common/Global.h:19,
|                  from common/Global.cpp:13:
| /usr/include/x86_64-linux-gnu/qt5/QtCore/qset.h:265:14: note: declared here
|   265 |     QList<T> toList() const { return values(); }
|       |              ^~~~~~
| make[3]: *** [Makefile.Release:2418: release/Global.o] Error 1
| make[3]: Leaving directory '/<<PKGBUILDDIR>>/src'
| make[2]: *** [Makefile:42: release] Error 2
| make[2]: Leaving directory '/<<PKGBUILDDIR>>/src'
| make[1]: *** [Makefile:48: sub-src-make_first] Error 2
| make[1]: Leaving directory '/<<PKGBUILDDIR>>'
| dh_auto_build: error: make -j1 returned exit code 2
| make: *** [debian/rules:17: binary] Error 25
| dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2

Helmut



More information about the Pkg-grass-devel mailing list