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

cmake -DBUILD_WITH_CXX=ON build breaks on Linux

VotersWatch issueWatchersLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Resolved
    • proton-c-0.30.0
    • proton-c-0.32.0
    • build
    • None

    Description

      Compile as in PROTON-2145, that means

      mkdir _build
      cd _build
      cmake .. -DCMAKE_INSTALL_PREFIX=/usr/local\
        -DSYSINSTALL_BINDINGS=ON\
        -DBUILD_STATIC_LIBS=ON\
        -DBUILD_TESTING=OFF\
        -DBUILD_WITH_CXX=ON\
        -DENABLE_FUZZ_TESTING=OFF\
        -DFUZZ_REGRESSION_TESTS=OFF
      
      make -j4
      make install
      

      The -DBUILD_WITH_CXX=ON is breaking builds on Linux

      [ 28%] Building CXX object c/CMakeFiles/qpid-proton-core-objects.dir/src/core/codec.c.o
      /qpid-proton/c/src/platform/platform.c: In function 'void pn_i_strerror(int, char*, size_t)':
      /qpid-proton/c/src/platform/platform.c:92:13: error: ignoring return value of 'char* strerror_r(int, char*, size_t)', declared with attribute warn_unused_result [-Werror=unused-result]                                                
         strerror_r(errnum, buf, buflen);                                                                                 
         ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~                                                                                  
      cc1plus: all warnings being treated as errors
      

      Attachments

        Issue Links

        Activity

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

          People

            Unassigned Unassigned
            jdanek Jiri Daněk
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment