Summary: | kde-frameworks/kio-6.1.0: [LLVM-18] src/gui/systemd/scopedprocessrunner.cpp:60:9: error: use of undeclared identifier 'close' | ||
---|---|---|---|
Product: | [Frameworks and Libraries] frameworks-kio | Reporter: | Gonçalo Negrier Duarte <gonegrier.duarte> |
Component: | general | Assignee: | KIO Bugs <kio-bugs-null> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | asturm, egger.m, kdelibs-bugs |
Priority: | NOR | ||
Version: | 6.1.0 | ||
Target Milestone: | --- | ||
Platform: | Gentoo Packages | ||
OS: | Linux | ||
See Also: | https://invent.kde.org/frameworks/kio/-/merge_requests/1619 | ||
Latest Commit: | Version Fixed In: | ||
Attachments: |
kde-frameworks/kio-6.1.0 build log
emerge info log fix-undecleared-identifier-close.patch |
Description
Gonçalo Negrier Duarte
2024-04-20 14:16:32 UTC
Created attachment 168715 [details]
emerge info log
Created attachment 168786 [details]
fix-undecleared-identifier-close.patch
Happens for me as well on Gentoo with LLVM/Clang 17.
I've attached patch as a workaround that includes unistd.h that defines "close", however I'm not sure if this has some unwanted side effects, but so far everything seems to work fine.
STEPS TO REPRODUCE
1. Have llvm-17.0.6
2. Update KDE Plasma 6.0.4, Gear 24.02.2 and Frameworks 6.1.0
2. Compile kde-frameworks/kio-6.1.0 clang and USE flags "X wayland"
SOFTWARE/OS VERSIONS
Linux: Gentoo Linux 2.15
KDE Plasma Version: 6.0.4
KDE Frameworks Version: 6.1.0
Qt Version: 6.7.0
(In reply to Michael from comment #2) > Created attachment 168786 [details] > fix-undecleared-identifier-close.patch > > Happens for me as well on Gentoo with LLVM/Clang 17. > I've attached patch as a workaround that includes unistd.h that defines > "close", however I'm not sure if this has some unwanted side effects, but so > far everything seems to work fine. Can confirm it work also for me, I don't think will cause any side effects, basically it solve the undefined close. Send that patch to gentoo bug as well, might be added as workaround for now Thanks, can you please take your patch to https://invent.kde.org/frameworks/kio by creating an MR there? Here is the MR https://invent.kde.org/frameworks/kio/-/merge_requests/1619 Gonna just marked as fixed since the MR was merged |