Uploaded image for project: 'Apache NiFi MiNiFi C++'
  1. Apache NiFi MiNiFi C++
  2. MINIFICPP-1725

Upgrade Libwebsockets version and remove workaround in the LibreSSL cmake file

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • 0.12.0
    • None

    Description

      The Libwebsockets version (v4.2-stable) we use as a dependency of kubernetes-client/c is not prepared for OpenSSL to be compiled together with it as a subproject; it expects some flavor of OpenSSL to be already present on the system.

      There is a workaround for this problem in cmake/BundledLibreSSL.cmake:

          set(OPENSSL_INCLUDE_DIRS "${OPENSSL_INCLUDE_DIR}" CACHE STRING "" FORCE)  # workaround for libwebsockets
      

      but it would be good if we did not need it.

      I fixed the problem in the 4.2 version in https://github.com/warmcat/libwebsockets/pull/2535, and this fix is available in Libwebsockets version >= 4.3.1.  However, other changes in version 4.3 stop this from working again.  CMake now fails with this error:

      CMake Error in build/_deps/websockets-src/lib/CMakeLists.txt:
        Target "websockets" INTERFACE_INCLUDE_DIRECTORIES property contains path:
      
          "/home/fgerlits/src/minifi/build/thirdparty/libressl-install/include"
      
        which is prefixed in the build directory.
      
      
      CMake Error in build/_deps/websockets-src/lib/CMakeLists.txt:
        Target "websockets" INTERFACE_INCLUDE_DIRECTORIES property contains path:
      
          "/home/fgerlits/src/minifi/build/thirdparty/libressl-install/include"
      
        which is prefixed in the build directory.Target "websockets"
        INTERFACE_INCLUDE_DIRECTORIES property contains path:
      
          "/home/fgerlits/src/minifi/build/thirdparty/libressl-install/include"
      
        which is prefixed in the source directory.
      

       

      Attachments

        Activity

          People

            lordgamez Gábor Gyimesi
            fgerlits Ferenc Gerlits
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 20m
                20m