[frameworks-kdesu] [Bug 451001] New: use of undeclared identifier 'SOCK_CLOEXEC', 'dup3', 'pipe2'

Yurii Kolesnykov bugzilla_noreply at kde.org
Tue Mar 1 12:48:03 GMT 2022


https://bugs.kde.org/show_bug.cgi?id=451001

            Bug ID: 451001
           Summary: use of undeclared identifier 'SOCK_CLOEXEC', 'dup3',
                    'pipe2'
           Product: frameworks-kdesu
           Version: 5.91.0
          Platform: Homebrew (macOS)
               URL: https://invent.kde.org/packaging/homebrew-kde/-/issues
                    /42
                OS: macOS
            Status: REPORTED
          Severity: critical
          Priority: NOR
         Component: general
          Assignee: kdelibs-bugs at kde.org
          Reporter: yurii.kolesnykov at kdemail.net
  Target Milestone: ---

SUMMARY
kdesu stopped to build under macOS after this MR:
https://invent.kde.org/frameworks/kdesu/-/merge_requests/14

STEPS TO REPRODUCE
1. Try to build kdesu on macOS

OBSERVED RESULT
/tmp/kf5-kdesu-20220301-88703-7d14qt/kdesu-5.91.0/src/kdesud/kdesud.cpp:255:44:
error: use of undeclared identifier 'SOCK_CLOEXEC'
    sockfd = socket(PF_UNIX, SOCK_STREAM | SOCK_CLOEXEC, 0);
                                           ^
/tmp/kf5-kdesu-20220301-88703-7d14qt/kdesu-5.91.0/src/kdesud/kdesud.cpp:355:18:
error: use of undeclared identifier 'dup3'
        sockfd = dup3(sockfd, 3, O_CLOEXEC);
                 ^
/tmp/kf5-kdesu-20220301-88703-7d14qt/kdesu-5.91.0/src/kdesud/kdesud.cpp:391:5:
error: use of undeclared identifier 'pipe2'
    pipe2(pipeOfDeath, O_CLOEXEC);

EXPECTED RESULT
Should build.

SOFTWARE/OS VERSIONS
macOS: 12.3
KDE Frameworks Version: 5.91
Qt Version: 5.15.2

-- 
You are receiving this mail because:
You are watching all bug changes.



More information about the kde-mac mailing list