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

Failed to compile kudu using openssl 1.1.1

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Not A Problem
    • 1.9.0
    • n/a
    • None
    • None
    • 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

            Unassigned Unassigned
            davidxdh Davy Xu
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: