https://bugs.kde.org/show_bug.cgi?id=508908
Bug ID: 508908
Summary: Fails to build with master libktorrent
Classification: Applications
Product: ktorrent
Version First unspecified
Reported In:
Platform: Other
OS: Linux
Status: REPORTED
Severity: normal
Priority: NOR
Component: general
Assignee: [email protected]
Reporter: [email protected]
Target Milestone: ---
SUMMARY
ktorrent (master) fails to build with master libktorrent:
/builddir/build/BUILD/ktorrent-25.11.70_6.git4510509-build/ktorrent-4510509950c10beda3ff7d409efe8f33a71d9ebc/plugins/stats/SpdTabPage.cc:
In member function ‘void kt::SpdTabPage::gatherPeersSpeed(kt::Plugin*)’:
/builddir/build/BUILD/ktorrent-25.11.70_6.git4510509-build/ktorrent-4510509950c10beda3ff7d409efe8f33a71d9ebc/plugins/stats/SpdTabPage.cc:146:31:
error: ‘Ptr’ is not a member of ‘bt::Peer’
146 | const QList<bt::Peer::Ptr> ppl = p_mgr->getPeers();
| ^~~
/builddir/build/BUILD/ktorrent-25.11.70_6.git4510509-build/ktorrent-4510509950c10beda3ff7d409efe8f33a71d9ebc/plugins/stats/SpdTabPage.cc:146:34:
error: template argument 1 is invalid
146 | const QList<bt::Peer::Ptr> ppl = p_mgr->getPeers();
| ^
/builddir/build/BUILD/ktorrent-25.11.70_6.git4510509-build/ktorrent-4510509950c10beda3ff7d409efe8f33a71d9ebc/plugins/stats/SpdTabPage.cc:146:57:
error: cannot convert ‘QList<bt::Peer*>’ to ‘const int’ in initialization
146 | const QList<bt::Peer::Ptr> ppl = p_mgr->getPeers();
| ~~~~~~~~~~~~~~~^~
| |
|
QList<bt::Peer*>
/builddir/build/BUILD/ktorrent-25.11.70_6.git4510509-build/ktorrent-4510509950c10beda3ff7d409efe8f33a71d9ebc/plugins/stats/SpdTabPage.cc:148:33:
error: ‘begin’ was not declared in this scope
148 | for (const auto &peer : ppl) {
| ^~~
/builddir/build/BUILD/ktorrent-25.11.70_6.git4510509-build/ktorrent-4510509950c10beda3ff7d409efe8f33a71d9ebc/plugins/stats/SpdTabPage.cc:148:33:
note: suggested alternatives:
In file included from /usr/include/c++/15/string:55,
from /usr/include/c++/15/bits/locale_classes.h:42,
from /usr/include/c++/15/bits/ios_base.h:43,
from /usr/include/c++/15/streambuf:45,
from /usr/include/c++/15/bits/streambuf_iterator.h:37,
from /usr/include/c++/15/iterator:68,
from /usr/include/qt6/QtCore/qcontainertools_impl.h:20,
from /usr/include/qt6/QtCore/qarraydataops.h:9,
from /usr/include/qt6/QtCore/qarraydatapointer.h:7,
from /usr/include/qt6/QtCore/qlist.h:8,
from /usr/include/qt6/QtCore/QList:1,
from
/builddir/build/BUILD/ktorrent-25.11.70_6.git4510509-build/ktorrent-4510509950c10beda3ff7d409efe8f33a71d9ebc/plugins/stats/SpdTabPage.h:9,
from
/builddir/build/BUILD/ktorrent-25.11.70_6.git4510509-build/ktorrent-4510509950c10beda3ff7d409efe8f33a71d9ebc/plugins/stats/SpdTabPage.cc:6:
/usr/include/c++/15/bits/range_access.h:120:37: note: ‘std::begin’
120 | template<typename _Tp> const _Tp* begin(const valarray<_Tp>&)
noexcept;
| ^~~~~
In file included from /usr/include/c++/15/utility:75,
from /usr/include/qt6/QtCore/qcompilerdetection.h:873,
from /usr/include/qt6/QtCore/qtdeprecationdefinitions.h:7,
from /usr/include/qt6/QtCore/qtconfigmacros.h:12,
from /usr/include/qt6/QtCore/qcontainerfwd.h:7,
from /usr/include/qt6/QtCore/qpair.h:7,
from /usr/include/qt6/QtCore/qarraydata.h:8,
from /usr/include/qt6/QtCore/qarraydataops.h:8:
/usr/include/c++/15/initializer_list:90:5: note: ‘std::begin’
90 | begin(initializer_list<_Tp> __ils) noexcept
| ^~~~~
/builddir/build/BUILD/ktorrent-25.11.70_6.git4510509-build/ktorrent-4510509950c10beda3ff7d409efe8f33a71d9ebc/plugins/stats/SpdTabPage.cc:148:33:
error: ‘end’ was not declared in this scope; did you mean ‘std::end’?
148 | for (const auto &peer : ppl) {
| ^~~
| std::end
/usr/include/c++/15/bits/range_access.h:122:37: note: ‘std::end’ declared here
122 | template<typename _Tp> const _Tp* end(const valarray<_Tp>&) noexcept;
STEPS TO REPRODUCE
1.
2.
3.
OBSERVED RESULT
EXPECTED RESULT
SOFTWARE/OS VERSIONS
Windows:
macOS:
(available in the Info Center app, or by running `kinfo` in a terminal window)
Linux/KDE Plasma:
KDE Plasma Version:
KDE Frameworks Version:
Qt Version:
ADDITIONAL INFORMATION
--
You are receiving this mail because:
You are watching all bug changes.