thrift-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "James E. King, III (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (THRIFT-4112) undefined openssl symbols when building with with openssl-1.1.0e and autoconf
Date Sat, 11 Mar 2017 13:17:04 GMT

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

James E. King, III commented on THRIFT-4112:
--------------------------------------------

Thanks, I was able to confirm this on the Ubuntu docker image as well.  Same error:
{noformat}
/bin/bash ../../../libtool  --tag=CXX   --mode=link g++ -Wall -Wextra -pedantic -g -O2 -std=c++11
-L/usr/lib/x86_64-linux-gnu  -o Benchmark Benchmark.o libtestgencpp.la -lrt -lpthread 
libtool: link: g++ -Wall -Wextra -pedantic -g -O2 -std=c++11 -o .libs/Benchmark Benchmark.o
 -L/usr/lib/x86_64-linux-gnu ./.libs/libtestgencpp.a /thrift/src/lib/cpp/.libs/libthrift.so
-L/usr/local/lib -lssl -lcrypto -lrt -lpthread
/thrift/src/lib/cpp/.libs/libthrift.so: undefined reference to `OPENSSL_sk_pop_free'
/thrift/src/lib/cpp/.libs/libthrift.so: undefined reference to `OPENSSL_sk_value'
/thrift/src/lib/cpp/.libs/libthrift.so: undefined reference to `OPENSSL_sk_num'
/thrift/src/lib/cpp/.libs/libthrift.so: undefined reference to `OPENSSL_init_ssl'
/thrift/src/lib/cpp/.libs/libthrift.so: undefined reference to `TLS_method'
/thrift/src/lib/cpp/.libs/libthrift.so: undefined reference to `SSL_CTX_set_options'
{noformat}

Looks like an autoconf issue.  As a workaround you can build with cmake instead.

> 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: Question
>          Components: Build Process, C++ - Library
>    Affects Versions: 0.10.0
>         Environment: Arch Linux x64
>            Reporter: Drystan Mazur
>
> 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)

Mime
View raw message