https://bugs.kde.org/show_bug.cgi?id=456975
Bug ID: 456975 Summary: src/keychainaccountmanager.cpp:50:16: error: expected primary-expression before ‘const’ Product: kio-gdrive Version: 22.07.80 Platform: Gentoo Packages OS: Linux Status: REPORTED Severity: normal Priority: NOR Component: general Assignee: elvis.angelac...@kde.org Reporter: ast...@gentoo.org Target Milestone: --- Created attachment 150786 --> https://bugs.kde.org/attachment.cgi?id=150786&action=edit kde-misc:kio-gdrive-22.07.80:20220721-093859.log Build error snippet: > src/keychainaccountmanager.cpp:50:16: error: expected primary-expression > before ‘const’ > 50 | Q_FOREACH (const QString &scope, scopes) { > | ^~~~~ > src/keychainaccountmanager.cpp:50:5: error: ‘Q_FOREACH’ was not declared in > this scope; did you mean ‘Q_FOREVER’? > 50 | Q_FOREACH (const QString &scope, scopes) { > | ^~~~~~~~~ > | Q_FOREVER > src/keychainaccountmanager.cpp: In member function ‘void > KeychainAccountManager::storeAccount(const AccountPtr&)’: > src/keychainaccountmanager.cpp:93:16: error: expected primary-expression > before ‘const’ > 93 | Q_FOREACH (const QUrl &scope, account->scopes()) { > | ^~~~~ > src/keychainaccountmanager.cpp:93:5: error: ‘Q_FOREACH’ was not declared in > this scope; did you mean ‘Q_FOREVER’? > 93 | Q_FOREACH (const QUrl &scope, account->scopes()) { > | ^~~~~~~~~ > | Q_FOREVER > ninja: build stopped: subcommand failed. STEPS TO REPRODUCE Try to build kio-gdrive-22.07.80 with: -DCMAKE_DISABLE_FIND_PACKAGE_KAccounts=ON -DCMAKE_DISABLE_FIND_PACKAGE_KF5Purpose=ON Interestingly, 22.04.3 builds fine with that configuration. Attaching build.log with MAKEOPTS=-j1. -- You are receiving this mail because: You are watching all bug changes.