[kdepim] [Bug 481877] New: Messagelib fails to compile against Qt 6.7
bugzilla_noreply at kde.org
bugzilla_noreply at kde.org
Tue Feb 27 02:17:32 GMT 2024
https://bugs.kde.org/show_bug.cgi?id=481877
Bug ID: 481877
Summary: Messagelib fails to compile against Qt 6.7
Classification: Applications
Product: kdepim
Version: GIT (master)
Platform: Other
OS: Linux
Status: REPORTED
Severity: normal
Priority: NOR
Component: general
Assignee: kdepim-bugs at kde.org
Reporter: bluescreenavenger at gmail.com
Target Milestone: ---
I think Qt 6.7 must have dropped a function recently, using the 6.7 branch, and
compiling messagelib, I get the below error
```
[ 11%] Building CXX object
messagecore/src/CMakeFiles/KPim6MessageCore.dir/autocrypt_debug.cpp.o
In file included from /opt/include/qt6/QtCore/qbytearray.h:11,
from /opt/include/qt6/QtCore/qstringview.h:8,
from /opt/include/qt6/QtCore/qchar.h:656,
from /opt/include/qt6/QtCore/qtextstream.h:8,
from /opt/include/qt6/QtCore/qdebug.h:13,
from /opt/include/qt6/QtCore/QDebug:1,
from
/var/cache/srcbuild/messagelib/webengineviewer/src/urlinterceptor/blocktrackingurlinterceptor/blocktrackingurlinterceptor.h:10,
from
/var/cache/srcbuild/messagelib/webengineviewer/src/urlinterceptor/blocktrackingurlinterceptor/blocktrackingurlinterceptor.cpp:7:
/opt/include/qt6/QtCore/qarraydatapointer.h: In instantiation of ‘void
QArrayDataPointer<T>::assign(InputIterator, InputIterator, Projection) [with
InputIterator = const
WebEngineViewer::BlockTrackingUrlInterceptor::TrackerBlackList*; Projection =
q20::identity; T =
WebEngineViewer::BlockTrackingUrlInterceptor::TrackerBlackList]’:
/opt/include/qt6/QtCore/qlist.h:510:15: required from ‘QList<T>&
QList<T>::assign(InputIterator, InputIterator) [with InputIterator = const
WebEngineViewer::BlockTrackingUrlInterceptor::TrackerBlackList*; typename
std::enable_if<std::is_convertible<typename
std::iterator_traits<_InputIterator>::iterator_category,
std::input_iterator_tag>::value, bool>::type <anonymous> = true; T =
WebEngineViewer::BlockTrackingUrlInterceptor::TrackerBlackList]’
/opt/include/qt6/QtCore/qlist.h:513:20: required from ‘QList<T>&
QList<T>::assign(std::initializer_list<_Tp>) [with T =
WebEngineViewer::BlockTrackingUrlInterceptor::TrackerBlackList]’
/opt/include/qt6/QtCore/qlist.h:298:22: required from ‘QList<T>&
QList<T>::operator=(std::initializer_list<_Tp>) [with T =
WebEngineViewer::BlockTrackingUrlInterceptor::TrackerBlackList]’
/var/cache/srcbuild/messagelib/webengineviewer/src/urlinterceptor/blocktrackingurlinterceptor/blocktrackingurlinterceptor.cpp:66:119:
required from here
/opt/include/qt6/QtCore/qarraydatapointer.h:408:18: error: use of deleted
function ‘WebEngineViewer::BlockTrackingUrlInterceptor::TrackerBlackList&
WebEngineViewer::BlockTrackingUrlInterceptor::TrackerBlackList::operator=(const
WebEngineViewer::BlockTrackingUrlInterceptor::TrackerBlackList&)’
408 | *dst = std::invoke(proj, *first); // overwrite existing
element
| ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~
/var/cache/srcbuild/messagelib/webengineviewer/src/urlinterceptor/blocktrackingurlinterceptor/blocktrackingurlinterceptor.h:23:12:
note: ‘WebEngineViewer::BlockTrackingUrlInterceptor::TrackerBlackList&
WebEngineViewer::BlockTrackingUrlInterceptor::TrackerBlackList::operator=(const
WebEngineViewer::BlockTrackingUrlInterceptor::TrackerBlackList&)’ is implicitly
deleted because the default definition would be ill-formed:
23 | struct TrackerBlackList {
| ^~~~~~~~~~~~~~~~
/var/cache/srcbuild/messagelib/webengineviewer/src/urlinterceptor/blocktrackingurlinterceptor/blocktrackingurlinterceptor.h:23:12:
error: passing ‘const QString’ as ‘this’ argument discards qualifiers
[-fpermissive]
In file included from /opt/include/qt6/QtCore/qdebug.h:15:
/opt/include/qt6/QtCore/qstring.h:178:14: note: in call to ‘QString&
QString::operator=(const QString&)’
178 | QString &operator=(const QString &) noexcept;
| ^~~~~~~~
/var/cache/srcbuild/messagelib/webengineviewer/src/urlinterceptor/blocktrackingurlinterceptor/blocktrackingurlinterceptor.h:23:12:
error: passing ‘const QString’ as ‘this’ argument discards qualifiers
[-fpermissive]
23 | struct TrackerBlackList {
| ^~~~~~~~~~~~~~~~
/opt/include/qt6/QtCore/qstring.h:178:14: note: in call to ‘QString&
QString::operator=(const QString&)’
178 | QString &operator=(const QString &) noexcept;
| ^~~~~~~~
/var/cache/srcbuild/messagelib/webengineviewer/src/urlinterceptor/blocktrackingurlinterceptor/blocktrackingurlinterceptor.h:23:12:
error: passing ‘const QString’ as ‘this’ argument discards qualifiers
[-fpermissive]
23 | struct TrackerBlackList {
| ^~~~~~~~~~~~~~~~
/opt/include/qt6/QtCore/qstring.h:178:14: note: in call to ‘QString&
QString::operator=(const QString&)’
178 | QString &operator=(const QString &) noexcept;
| ^~~~~~~~
make[2]: ***
[webengineviewer/src/CMakeFiles/KPim6WebEngineViewer.dir/build.make:502:
webengineviewer/src/CMakeFiles/KPim6WebEngineViewer.dir/urlinterceptor/blocktrackingurlinterceptor/blocktrackingurlinterceptor.cpp.o]
Error 1
make[1]: *** [CMakeFiles/Makefile2:16021:
webengineviewer/src/CMakeFiles/KPim6WebEngineViewer.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
[ 11%] Linking CXX shared library ../../bin/libKPim6MessageCore.so
[ 11%] Built target KPim6MessageCore
make: *** [Makefile:146: all] Error 2
PackageInstallSource finished in 2 seconds with result 2
```
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the Kdepim-bugs
mailing list