user/nextcloud-client: FTBFS: error: aggregate ‘QPainterPath path’ has incomplete type and cannot be defined
Found on ppc64:
...
In file included from /root/packages/user/nextcloud-client/src/desktop-2.6.4/src/libsync/owncloudpropagator.h:31,
from /root/packages/user/nextcloud-client/src/desktop-2.6.4/src/libsync/networkjobs.cpp:37:
/root/packages/user/nextcloud-client/src/desktop-2.6.4/src/libsync/bandwidthmanager.h:89:5: warning: ‘template<class T> class QLinkedList’ is deprecated: Use std::list instead [-Wdeprecated-declarations]
QLinkedList<GETFileJob *> _downloadJobList;
^~~~~~~~~~~
In file included from /usr/include/QtCore/qvarlengtharray.h:43,
from /usr/include/QtCore/qmetatype.h:48,
from /usr/include/QtCore/qcborcommon.h:44,
from /usr/include/QtCore/qcborvalue.h:45,
from /usr/include/QtCore/qjsonvalue.h:46,
from /usr/include/QtCore/qjsondocument.h:43,
from /usr/include/QtCore/QJsonDocument:1,
from /root/packages/user/nextcloud-client/src/desktop-2.6.4/src/libsync/networkjobs.cpp:16:
/usr/include/QtCore/qcontainerfwd.h:51:26: note: declared here
template <class T> class QLinkedList;
^~~~~~~~~~~
/root/packages/user/nextcloud-client/src/desktop-2.6.4/src/libsync/networkjobs.cpp: In static member function ‘static QImage OCC::AvatarJob::makeCircularAvatar(const QImage&)’:
/root/packages/user/nextcloud-client/src/desktop-2.6.4/src/libsync/networkjobs.cpp:659:18: error: aggregate ‘QPainterPath path’ has incomplete type and cannot be defined
QPainterPath path;
^~~~
At global scope:
cc1plus: warning: unrecognized command line option ‘-Wno-gnu-zero-variadic-macro-arguments’
make[2]: *** [src/libsync/CMakeFiles/nextcloudsync.dir/build.make:244: src/libsync/CMakeFiles/nextcloudsync.dir/networkjobs.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
20220528-11_23_52.854240504_nextcloud-client.log
See also: #721 (closed).