You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@thrift.apache.org by "Drystan Mazur (JIRA)" <ji...@apache.org> on 2017/03/14 00:45:41 UTC
[jira] [Comment Edited] (THRIFT-4112) undefined openssl symbols
when building with with openssl-1.1.0e and autoconf
[ https://issues.apache.org/jira/browse/THRIFT-4112?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15923330#comment-15923330 ]
Drystan Mazur edited comment on THRIFT-4112 at 3/14/17 12:45 AM:
-----------------------------------------------------------------
Hi James,
I could get the library to compile :)
I built and installed openssl 1.1.0c to /usr/lib
Changed the following in DefineOptions.cmake
line 78 find_package(OpenSSL QUIET) ==> find_package(OpenSSL 1.1.0)
-- Found OpenSSL: /usr/lib64/libssl.so;/usr/lib64/libcrypto.so (found suitable version "1.1.0e", minimum required is "1.1.0")
Then
cmake -DCMAKE_CXX_FLAGS=-fPIC -DWITH_STDTHREADS=ON ..
The build passes !
was (Author: gloopy):
Hi James,
I could get the library to compile but not the unit tests or tutorials . So I am unsure if the process is valid.
I built and installed openssl 1.1.0c to /usr/lib
Changed the following in DefineOptions.cmake
line 78 find_package(OpenSSL QUIET) ==> find_package(OpenSSL 1.1.0)
-- Found OpenSSL: /usr/lib64/libssl.so;/usr/lib64/libcrypto.so (found suitable version "1.1.0e", minimum required is "1.1.0")
Then
cmake -DCMAKE_CXX_FLAGS=-fPIC -DWITH_STDTHREADS=ON ..
The build passes !
> undefined openssl symbols when building with with openssl-1.1.0e and autoconf
> -----------------------------------------------------------------------------
>
> Key: THRIFT-4112
> URL: https://issues.apache.org/jira/browse/THRIFT-4112
> Project: Thrift
> Issue Type: Bug
> Components: Build Process, C++ - Library
> Affects Versions: 0.10.0
> Environment: Arch Linux x64
> Reporter: Drystan Mazur
> Assignee: James E. King, III
>
> Hello,
> I am trying to compile thrift from source and I am getting the following issue.
> /hs2client/thirdparty/thrift-0.10.0/lib/cpp/.libs/libthrift-0.10.0.so: undefined reference to `OPENSSL_sk_pop_free'
> /hs2client/thirdparty/thrift-0.10.0/lib/cpp/.libs/libthrift-0.10.0.so: undefined reference to `OPENSSL_sk_value'
> /hs2client/thirdparty/thrift-0.10.0/lib/cpp/.libs/libthrift-0.10.0.so: undefined reference to `OPENSSL_sk_num'
> /hs2client/thirdparty/thrift-0.10.0/lib/cpp/.libs/libthrift-0.10.0.so: undefined reference to `OPENSSL_init_ssl'
> /hs2client/thirdparty/thrift-0.10.0/lib/cpp/.libs/libthrift-0.10.0.so: undefined reference to `TLS_method'
> /hs2client/thirdparty/thrift-0.10.0/lib/cpp/.libs/libthrift-0.10.0.so: undefined reference to `SSL_CTX_set_options'
> I used the following ./configure options --with-openssl=<somedir>/hs2client/thirdparty/openssl-1.1.0e --without-lua --without-csharp --without-php --without-nodejs
> I confirmed that the symbols were in libssl.so eg 'U OPENSSL_sk_pop_free@@OPENSSL_1_1_0'
> There are some cases of the following in config.log
> configure:23495: g++ -o conftest -g -O2 conftest.cpp -lrt -lpthread >&5
> conftest.cpp:23:0: warning: "BISON_VERSION" redefined
> #define BISON_VERSION 3.0.
> Unsure if it is related
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)