Buld fails: aggregate "QPainterPath dataPath" has incomplete type and cannot be defined
Building kstars 2.9.8 using Qt 5.15.2 fails with this error massage:
/tmp/guix-build-kstars-2.9.8.drv-0/kstars-2.9.8/kstars/auxiliary/QRoundProgressBar.cpp:270:18: error: aggregate ?QPainterPath dataPath? has incomplete type and cannot be defined
QPainterPath dataPath;
^~~~~~~~
make[2]: *** [kstars/CMakeFiles/KStarsLib.dir/build.make:2021: kstars/CMakeFiles/KStarsLib.dir/auxiliary/QRoundProgressBar.cpp.o] Error 1
Complete build command for this file is (the command line is so long since this is build under GNU guix which uses a separate prefix for each package)::
cd /tmp/guix-build-kstars-2.9.8.drv-0/build/kstars && /gnu/store/rn75fm7adgx3pw5j8pg3bczfqq1y17lk-gcc-7.5.0/bin/c++ -DKCOREADDONS_LIB -DQT_CONCURRENT_LIB -DQT_CORE_LIB -DQT_DATAVISUALIZATION_LIB -DQT_DBUS_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_NO_CAST_TO_ASCII -DQT_NO_DEBUG -DQT_NO_URL_CAST_FROM_STRING -DQT_PRINTSUPPORT_LIB -DQT_QMLMODELS_LIB -DQT_QML_LIB -DQT_QUICK_LIB -DQT_SQL_LIB -DQT_SVG_LIB -DQT_USE_FAST_CONCATENATION -DQT_USE_FAST_OPERATOR_PLUS -DQT_WEBSOCKETS_LIB -DQT_WIDGETS_LIB -DQT_XML_LIB -D_GNU_SOURCE -D_LARGEFILE64_SOURCE -I/tmp/guix-build-kstars-2.9.8.drv-0/build/kstars -I/tmp/guix-build-kstars-2.9.8.drv-0/kstars-2.9.8/kstars -I/tmp/guix-build-kstars-2.9.8.drv-0/build/kstars/KStarsLib_autogen/include -I/tmp/guix-build-kstars-2.9.8.drv-0/build -I/tmp/guix-build-kstars-2.9.8.drv-0/kstars-2.9.8/kstars/skyobjects -I/tmp/guix-build-kstars-2.9.8.drv-0/kstars-2.9.8/kstars/skycomponents -I/tmp/guix-build-kstars-2.9.8.drv-0/kstars-2.9.8/kstars/auxiliary -I/tmp/guix-build-kstars-2.9.8.drv-0/kstars-2.9.8/kstars/time -I/tmp/guix-build-kstars-2.9.8.drv-0/kstars-2.9.8/kstars/tools -I/tmp/guix-build-kstars-2.9.8.drv-0/kstars-2.9.8/kstars/KStarsLib -I/tmp/guix-build-kstars-2.9.8.drv-0/kstars-2.9.8/kstars/PUBLIC -I/tmp/guix-build-kstars-2.9.8.drv-0/build/datahandlers -I/tmp/guix-build-kstars-2.9.8.drv-0/kstars-2.9.8/datahandlers -I/tmp/guix-build-kstars-2.9.8.drv-0/build/kstars/htmesh -I/tmp/guix-build-kstars-2.9.8.drv-0/kstars-2.9.8/kstars/htmesh -I/gnu/store/zgxl9nkya7n44mkkdaz0sbqjsazgsj2a-wcslib-6.4/include/wcslib -isystem /gnu/store/n50ikpnyzdda0zklwnmqasklcrif2csg-eigen-3.3.8/include/eigen3 -isystem /gnu/store/31l2p576n2wzz80y4d2wrzi4sf7ivkfy-kwidgetsaddons-5.70.0/include/KF5/KWidgetsAddons -isystem /gnu/store/31l2p576n2wzz80y4d2wrzi4sf7ivkfy-kwidgetsaddons-5.70.0/include/KF5 -isystem /gnu/store/vpvnd6593mjncvyir2rbgp3k83cr7w0a-qtbase-5.15.2/include/qt5 -isystem /gnu/store/vpvnd6593mjncvyir2rbgp3k83cr7w0a-qtbase-5.15.2/include/qt5/QtWidgets -isystem /gnu/store/vpvnd6593mjncvyir2rbgp3k83cr7w0a-qtbase-5.15.2/include/qt5/QtGui -isystem /gnu/store/vpvnd6593mjncvyir2rbgp3k83cr7w0a-qtbase-5.15.2/include/qt5/QtCore -isystem /gnu/store/vpvnd6593mjncvyir2rbgp3k83cr7w0a-qtbase-5.15.2/lib/qt5/mkspecs/linux-g++ -isystem /gnu/store/3xmsw3vi5ccmfmydg3lz7ry24drdb5vb-ki18n-5.70.0/include/KF5/KI18n -isystem /gnu/store/3xmsw3vi5ccmfmydg3lz7ry24drdb5vb-ki18n-5.70.0/include/KF5 -isystem /gnu/store/vpvnd6593mjncvyir2rbgp3k83cr7w0a-qtbase-5.15.2/include/qt5/QtSql -isystem /gnu/store/j2cdiag9pmi2wqx476dx2k2mprc56c19-kcrash-5.70.0/include/KF5/KCrash -isystem /gnu/store/j2cdiag9pmi2wqx476dx2k2mprc56c19-kcrash-5.70.0/include/KF5 -isystem /gnu/store/2gx567ifqy9spw3cmsi5b01q3yhn98z9-knewstuff-5.70.0/include/KF5/KNewStuff3 -isystem /gnu/store/2gx567ifqy9spw3cmsi5b01q3yhn98z9-knewstuff-5.70.0/include/KF5/KNewStuff3/KNS3 -isystem /gnu/store/2gx567ifqy9spw3cmsi5b01q3yhn98z9-knewstuff-5.70.0/include/KF5/KNewStuff3/knscore -isystem /gnu/store/2gx567ifqy9spw3cmsi5b01q3yhn98z9-knewstuff-5.70.0/include/KF5 -isystem /gnu/store/2gx567ifqy9spw3cmsi5b01q3yhn98z9-knewstuff-5.70.0/include/KF5/KNewStuff3/kns3 -isystem /gnu/store/2gx567ifqy9spw3cmsi5b01q3yhn98z9-knewstuff-5.70.0/include/KF5/KNewStuff3/KNSCore -isystem /gnu/store/f2rkcyhhj32shn9dg6ws2ml40vl8j9vi-attica-5.70.0/include/KF5/Attica -isystem /gnu/store/f2rkcyhhj32shn9dg6ws2ml40vl8j9vi-attica-5.70.0/include/KF5 -isystem /gnu/store/vpvnd6593mjncvyir2rbgp3k83cr7w0a-qtbase-5.15.2/include/qt5/QtNetwork -isystem /gnu/store/97hlqiw4nl9r3ilxgqh94ij7nfnrqcm9-kcoreaddons-5.70.0/include/KF5/KCoreAddons -isystem /gnu/store/97hlqiw4nl9r3ilxgqh94ij7nfnrqcm9-kcoreaddons-5.70.0/include/KF5 -isystem /gnu/store/vpvnd6593mjncvyir2rbgp3k83cr7w0a-qtbase-5.15.2/include/qt5/QtXml -isystem /gnu/store/a8smg254j5sy8virddz3kgr0xd9hzwda-kxmlgui-5.70.0/include/KF5/KXmlGui -isystem /gnu/store/a8smg254j5sy8virddz3kgr0xd9hzwda-kxmlgui-5.70.0/include/KF5 -isystem /gnu/store/5nsnhc5by4n4wrc3j88ch541ijfaw9bp-kconfig-5.70.0/include/KF5/KConfigCore -isystem /gnu/store/5nsnhc5by4n4wrc3j88ch541ijfaw9bp-kconfig-5.70.0/include/KF5 -isystem /gnu/store/w4hlx1ln35xcb74qgn3q99ijcdxblzvs-kconfigwidgets-5.70.0/include/KF5/KConfigWidgets -isystem /gnu/store/w4hlx1ln35xcb74qgn3q99ijcdxblzvs-kconfigwidgets-5.70.0/include/KF5 -isystem /gnu/store/ayzhljvp429wc0zd4j1xaz2nn2ggwldf-kcodecs-5.70.0/include/KF5/KCodecs -isystem /gnu/store/ayzhljvp429wc0zd4j1xaz2nn2ggwldf-kcodecs-5.70.0/include/KF5 -isystem /gnu/store/5nsnhc5by4n4wrc3j88ch541ijfaw9bp-kconfig-5.70.0/include/KF5/KConfigGui -isystem /gnu/store/xq9p3kn08ynm738gsmzfcyzrh6p2a4bd-kauth-5.70.0/include/KF5/KAuth -isystem /gnu/store/xq9p3kn08ynm738gsmzfcyzrh6p2a4bd-kauth-5.70.0/include/KF5 -isystem /gnu/store/vpvnd6593mjncvyir2rbgp3k83cr7w0a-qtbase-5.15.2/include/qt5/QtDBus -isystem /gnu/store/1yw7qahf5ypyazpvwsd98y0zn9c792sd-kservice-5.70.0/include/KF5/KService -isystem /gnu/store/1yw7qahf5ypyazpvwsd98y0zn9c792sd-kservice-5.70.0/include/KF5 -isystem /gnu/store/1pyy5f4ym64dfbwhd331rvgnh3c4rj54-kio-5.70.1/include/KF5/KIOFileWidgets -isystem /gnu/store/1pyy5f4ym64dfbwhd331rvgnh3c4rj54-kio-5.70.1/include/KF5 -isystem /gnu/store/1pyy5f4ym64dfbwhd331rvgnh3c4rj54-kio-5.70.1/include/KF5/KIOWidgets -isystem /gnu/store/1pyy5f4ym64dfbwhd331rvgnh3c4rj54-kio-5.70.1/include/KF5/KIOGui -isystem /gnu/store/1pyy5f4ym64dfbwhd331rvgnh3c4rj54-kio-5.70.1/include/KF5/KIOCore -isystem /gnu/store/vpvnd6593mjncvyir2rbgp3k83cr7w0a-qtbase-5.15.2/include/qt5/QtConcurrent -isystem /gnu/store/h03hpzy4vrann37h13m5shx4hclavcdq-kwindowsystem-5.70.0/include/KF5/KWindowSystem -isystem /gnu/store/h03hpzy4vrann37h13m5shx4hclavcdq-kwindowsystem-5.70.0/include/KF5 -isystem /gnu/store/0rir5aqihyil1r487jm8i66f0vn48rxl-kjobwidgets-5.70.0/include/KF5/KJobWidgets -isystem /gnu/store/0rir5aqihyil1r487jm8i66f0vn48rxl-kjobwidgets-5.70.0/include/KF5 -isystem /gnu/store/7y5f3ziwp3l3v6p3niwrwgxyb2xzhs81-kcompletion-5.70.0/include/KF5/KCompletion -isystem /gnu/store/7y5f3ziwp3l3v6p3niwrwgxyb2xzhs81-kcompletion-5.70.0/include/KF5 -isystem /gnu/store/8qxhw4f0swbjl3wjippzhy6psvcrlf18-kbookmarks-5.70.0/include/KF5/KBookmarks -isystem /gnu/store/8qxhw4f0swbjl3wjippzhy6psvcrlf18-kbookmarks-5.70.0/include/KF5 -isystem /gnu/store/nr82sv50gwrfx25h2askrr2rz4vbg4rp-kitemviews-5.70.0/include/KF5/KItemViews -isystem /gnu/store/nr82sv50gwrfx25h2askrr2rz4vbg4rp-kitemviews-5.70.0/include/KF5 -isystem /gnu/store/fm8d7j79kscc1l13lxqryv4cmnbwx47w-solid-5.70.0/include/KF5/Solid -isystem /gnu/store/fm8d7j79kscc1l13lxqryv4cmnbwx47w-solid-5.70.0/include/KF5 -isystem /gnu/store/6ahax86r3dw0vflz7xrslz0d1ifi2vkq-kplotting-5.70.0/include/KF5/KPlotting -isystem /gnu/store/6ahax86r3dw0vflz7xrslz0d1ifi2vkq-kplotting-5.70.0/include/KF5 -isystem /gnu/store/nlbj30cqaqdnbdzdr0vd4flqv8ivh5k2-knotifications-5.70.0/include/KF5/KNotifications -isystem /gnu/store/nlbj30cqaqdnbdzdr0vd4flqv8ivh5k2-knotifications-5.70.0/include/KF5 -isystem /gnu/store/vpvnd6593mjncvyir2rbgp3k83cr7w0a-qtbase-5.15.2/include/qt5/QtPrintSupport -isystem /gnu/store/j7gpgnx3wsk0nbxdd896d7ryi538054a-qtsvg-5.15.2/include/qt5 -isystem /gnu/store/j7gpgnx3wsk0nbxdd896d7ryi538054a-qtsvg-5.15.2/include/qt5/QtSvg -isystem /gnu/store/93gl0i94cl488zamwg4an2fa8yhrmkpn-qtdeclarative-5.15.2/include/qt5 -isystem /gnu/store/93gl0i94cl488zamwg4an2fa8yhrmkpn-qtdeclarative-5.15.2/include/qt5/QtQml -isystem /gnu/store/93gl0i94cl488zamwg4an2fa8yhrmkpn-qtdeclarative-5.15.2/include/qt5/QtQuick -isystem /gnu/store/93gl0i94cl488zamwg4an2fa8yhrmkpn-qtdeclarative-5.15.2/include/qt5/QtQmlModels -isystem /gnu/store/3z4w0ys2b6ikj2lldpdlbiy2519c3243-qtwebsockets-5.15.2/include/qt5 -isystem /gnu/store/3z4w0ys2b6ikj2lldpdlbiy2519c3243-qtwebsockets-5.15.2/include/qt5/QtWebSockets -isystem /gnu/store/v55jh96lwj805g8i862g5cm83hzds6r7-qtdatavis3d-5.15.2/include/qt5 -isystem /gnu/store/v55jh96lwj805g8i862g5cm83hzds6r7-qtdatavis3d-5.15.2/include/qt5/QtDataVisualization -isystem /gnu/store/2v6jkw208aajm4l2k5pkm06f66wj4kaz-knotifyconfig-5.70.0/include/KF5/KNotifyConfig -isystem /gnu/store/2v6jkw208aajm4l2k5pkm06f66wj4kaz-knotifyconfig-5.70.0/include/KF5 -fno-operator-names -Wall -Wextra -Wcast-align -Wchar-subscripts -Wformat-security -Wno-long-long -Wpointer-arith -Wundef -Wnon-virtual-dtor -Woverloaded-virtual -Werror=return-type -Wvla -Wdate-time -Wsuggest-override -Wlogical-op -fexceptions -Wno-non-virtual-dtor -fdata-sections -ffunction-sections -D_FORTIFY_SOURCE=2 -fstack-protector-all -Wcast-align -fPIE -Wa,--noexecstack -Wall -Wextra -Wno-unused-but-set-variable -Wno-format-truncation -g -O2 -g -DNDEBUG -fvisibility=hidden -fvisibility-inlines-hidden -fPIC -std=gnu++11 -o CMakeFiles/KStarsLib.dir/auxiliary/QRoundProgressBar.cpp.o -c /tmp/guix-build-kstars-2.9.8.drv-0/kstars-2.9.8/kstars/auxiliary/QRoundProgressBar.cpp