[frameworks-kcoreaddons] [Bug 469078] New: KCoreAddons does not build on macOS
Mikaela Szekely
bugzilla_noreply at kde.org
Thu Apr 27 21:51:24 BST 2023
https://bugs.kde.org/show_bug.cgi?id=469078
Bug ID: 469078
Summary: KCoreAddons does not build on macOS
Classification: Frameworks and Libraries
Product: frameworks-kcoreaddons
Version: 5.105.0
Platform: Compiled Sources
OS: macOS
Status: REPORTED
Severity: normal
Priority: NOR
Component: general
Assignee: mpyne at kde.org
Reporter: mikaela.szekely at qyriad.me
CC: kdelibs-bugs at kde.org
Target Milestone: ---
Created attachment 158498
--> https://bugs.kde.org/attachment.cgi?id=158498&action=edit
The full output of `cmake -B build && cmake --build build` on my macOS system
SUMMARY
KCoreAddons uses the `SOCK_CLOEXEC` flag, which is Linux-specific and not
available on macOS, causing compilation for macOS to fail with `use of
undeclared identifier: 'SOCK_CLOEXEC'` in src/lib/util/ksignalhandler.cpp.
STEPS TO REPRODUCE
1. Clone https://invent.kde.org/frameworks/kcoreaddons
2. Run `cmake -B build`
3. Run `cmake --build build`
OBSERVED RESULT
Build fails with:
/Users/qyriad/code/builds/kcoreaddons/src/lib/util/ksignalhandler.cpp:37:45:
error: use of undeclared identifier 'SOCK_CLOEXEC'
if (::socketpair(AF_UNIX, SOCK_STREAM | SOCK_CLOEXEC, 0,
KSignalHandlerPrivate::signalFd)) {
EXPECTED RESULT
Build completes successfully without error.
SOFTWARE/OS VERSIONS
macOS: 13.3.1 (x86_64)
KDE Frameworks Version: master, or 5.105.0
Qt Version: Qt6 and Qt5 both have the same result
--
You are receiving this mail because:
You are watching all bug changes.
More information about the kde-mac
mailing list