[ 
https://issues.apache.org/jira/browse/KUDU-3162?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17161572#comment-17161572
 ] 

Todd Lipcon commented on KUDU-3162:
-----------------------------------

I think you want to set the OPENSSL_FOO_LIBRARY variables to point to 
libcrypto.so and libssl.so, not to the lib directory.

> 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: Donghui Xu
>            Priority: Minor
>
> 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



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to