Uploaded image for project: 'Qpid Proton'
  1. Qpid Proton
  2. PROTON-2346

Build failure on musl

VotersWatch issueWatchersLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • proton-c-0.33.0
    • proton-c-0.34.0
    • proton-c
    • None
    • Linux
    • Patch

    Description

      Build with epoll proactor on musl is broken since at least version 0.23.0 and
      https://github.com/apache/qpid-proton/commit/37136940e3077f25ce58c94775f48c66f666f4a8
      because musl does not define PTHREAD_MUTEX_ADAPTIVE_NP resulting in the
      following build failure:

      In file included from /home/giuliobenetti/autobuild/run/instance-0/output-1/build/qpid-proton-0.33.0/c/src/proactor/epoll.c:60:
      /home/giuliobenetti/autobuild/run/instance-0/output-1/build/qpid-proton-0.33.0/c/src/proactor/epoll-internal.h: In function 'pmutex_init':
      /home/giuliobenetti/autobuild/run/instance-0/output-1/build/qpid-proton-0.33.0/c/src/proactor/epoll-internal.h:319:36: error: 'PTHREAD_MUTEX_ADAPTIVE_NP' undeclared (first use in this function); did you mean 'PTHREAD_MUTEX_STALLED'?
       319 | pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_ADAPTIVE_NP);
       | ^~~~~~~~~~~~~~~~~~~~~~~~~
       | PTHREAD_MUTEX_STALLED

      Fixes:

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            Unassigned Unassigned
            fabricefontaine Fabrice Fontaine
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment