Uploaded image for project: 'Kudu'
  1. Kudu
  2. KUDU-3162

Failed to compile kudu using openssl 1.1.1

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Not A Problem
    • Affects Version/s: 1.9.0
    • Fix Version/s: n/a
    • Component/s: None
    • Labels:
      None
    • Environment:
      CentOS 7.7.1908

      Description

      When I downloaded toolchain and the corresponding kudu code(hash code is 84086fe), the kudu compilation was successful. However, if the OpenSSL version that kudu depends on is changed to 1.1.1 in CMakeLists.txt as follows:

      set(OPENSSL_ROOT_DIR "/home/kudu/native-toolchain/build/openssl-1.1.1")
      set(OPENSSL_INCLUDE_DIR "/home/kudu/native-toolchain/build/openssl-1.1.1/include")
      set(OPENSSL_SSL_LIBRARY "/home/kudu/native-toolchain/build/openssl-1.1.1/lib")
      set(OPENSSL_CRYPTO_LIBRARY "/home/kudu/native-toolchain/build/openssl-1.1.1/lib")
      find_package(OpenSSL 1.1.1 REQUIRED)

      The compilation error is as follows:

      /home/kudu/native-toolchain/build/openssl-1.1.1/lib: file not recognized: Is a directory
      collect2: error: ld returned 1 exit status
      make[2]: *** [lib/exported/libkudu_client.so.0.1.0] Error 1
      make[1]: *** [src/kudu/client/CMakeFiles/kudu_client_exported.dir/all] Error 2

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              davidxdh Davy Xu
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: