[ https://issues.apache.org/jira/browse/KUDU-3162?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Davy Xu updated KUDU-3162: -------------------------- 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 was: 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/xudonghui/kudu/native-toolchain/build/openssl-1.1.1") set(OPENSSL_INCLUDE_DIR "/home/xudonghui/kudu/native-toolchain/build/openssl-1.1.1/include") set(OPENSSL_SSL_LIBRARY "/home/xudonghui/kudu/native-toolchain/build/openssl-1.1.1/lib") set(OPENSSL_CRYPTO_LIBRARY "/home/xudonghui/kudu/native-toolchain/build/openssl-1.1.1/lib") find_package(OpenSSL 1.1.1 REQUIRED) The compilation error is as follows: /home/xudonghui/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 > Failed to compile kudu using openssl 1.1.1 > ------------------------------------------ > > Key: KUDU-3162 > URL: https://issues.apache.org/jira/browse/KUDU-3162 > Project: Kudu > Issue Type: Bug > Affects Versions: 1.9.0 > Environment: CentOS 7.7.1908 > Reporter: Davy Xu > Priority: Minor > Fix For: n/a > > > 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 -- This message was sent by Atlassian Jira (v8.3.4#803005)