[ https://issues.apache.org/jira/browse/THRIFT-1071?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12998053#comment-12998053 ]
Roger Meier commented on THRIFT-1071: ------------------------------------- Rowan, that's fast! I still have the following build issue: {code} make[1]: Entering directory `/home/roger/software/thrift/thrift-trunk/lib/cpp' /bin/bash ../../libtool --tag=CXX --mode=link g++ -Wall -g -O2 -o concurrency_test Tests.o libthrift.la -lrt -lpthread libtool: link: g++ -Wall -g -O2 -o .libs/concurrency_test Tests.o ./.libs/libthrift.so -lrt -lpthread ./.libs/libthrift.so: undefined reference to `TLSv1_method' ./.libs/libthrift.so: undefined reference to `SSL_connect' ./.libs/libthrift.so: undefined reference to `sk_pop_free' ./.libs/libthrift.so: undefined reference to `BIO_ctrl' ./.libs/libthrift.so: undefined reference to `GENERAL_NAME_free' ./.libs/libthrift.so: undefined reference to `ASN1_STRING_to_UTF8' ./.libs/libthrift.so: undefined reference to `CRYPTO_set_locking_callback' ./.libs/libthrift.so: undefined reference to `ASN1_STRING_length' ./.libs/libthrift.so: undefined reference to `X509_NAME_get_index_by_NID' ./.libs/libthrift.so: undefined reference to `SSL_CTX_set_verify' ./.libs/libthrift.so: undefined reference to `CRYPTO_set_dynlock_destroy_callback' ./.libs/libthrift.so: undefined reference to `sk_value' ./.libs/libthrift.so: undefined reference to `CRYPTO_set_dynlock_lock_callback' ./.libs/libthrift.so: undefined reference to `SSL_load_error_strings' ./.libs/libthrift.so: undefined reference to `SSL_peek' ./.libs/libthrift.so: undefined reference to `CRYPTO_set_dynlock_create_callback' ./.libs/libthrift.so: undefined reference to `RAND_poll' ./.libs/libthrift.so: undefined reference to `SSL_CTX_use_certificate_chain_file' ./.libs/libthrift.so: undefined reference to `SSL_get_peer_certificate' ./.libs/libthrift.so: undefined reference to `X509_get_subject_name' ./.libs/libthrift.so: undefined reference to `SSL_free' ./.libs/libthrift.so: undefined reference to `ERR_clear_error' ./.libs/libthrift.so: undefined reference to `X509_NAME_get_entry' ./.libs/libthrift.so: undefined reference to `SSL_CTX_set_default_passwd_cb_userdata' ./.libs/libthrift.so: undefined reference to `CRYPTO_free' ./.libs/libthrift.so: undefined reference to `X509_get_ext_d2i' ./.libs/libthrift.so: undefined reference to `ERR_free_strings' ./.libs/libthrift.so: undefined reference to `SSL_CTX_new' ./.libs/libthrift.so: undefined reference to `SSL_get_verify_result' ./.libs/libthrift.so: undefined reference to `SSL_read' ./.libs/libthrift.so: undefined reference to `SSL_set_fd' ./.libs/libthrift.so: undefined reference to `EVP_cleanup' ./.libs/libthrift.so: undefined reference to `X509_verify_cert_error_string' ./.libs/libthrift.so: undefined reference to `CRYPTO_num_locks' ./.libs/libthrift.so: undefined reference to `SSL_CTX_load_verify_locations' ./.libs/libthrift.so: undefined reference to `ERR_get_error' ./.libs/libthrift.so: undefined reference to `ERR_reason_error_string' ./.libs/libthrift.so: undefined reference to `SSL_get_wbio' ./.libs/libthrift.so: undefined reference to `sk_num' ./.libs/libthrift.so: undefined reference to `ASN1_STRING_data' ./.libs/libthrift.so: undefined reference to `ERR_peek_error' ./.libs/libthrift.so: undefined reference to `SSL_CTX_use_PrivateKey_file' ./.libs/libthrift.so: undefined reference to `SSL_library_init' ./.libs/libthrift.so: undefined reference to `SSL_CTX_set_default_passwd_cb' ./.libs/libthrift.so: undefined reference to `SSL_get_verify_mode' ./.libs/libthrift.so: undefined reference to `CRYPTO_set_id_callback' ./.libs/libthrift.so: undefined reference to `SSL_CTX_set_cipher_list' ./.libs/libthrift.so: undefined reference to `ERR_remove_state' ./.libs/libthrift.so: undefined reference to `SSL_new' ./.libs/libthrift.so: undefined reference to `SSL_write' ./.libs/libthrift.so: undefined reference to `CRYPTO_cleanup_all_ex_data' ./.libs/libthrift.so: undefined reference to `X509_free' ./.libs/libthrift.so: undefined reference to `SSL_accept' ./.libs/libthrift.so: undefined reference to `SSL_shutdown' ./.libs/libthrift.so: undefined reference to `SSL_get_shutdown' ./.libs/libthrift.so: undefined reference to `SSL_CTX_ctrl' ./.libs/libthrift.so: undefined reference to `X509_NAME_ENTRY_get_data' ./.libs/libthrift.so: undefined reference to `SSL_get_error' ./.libs/libthrift.so: undefined reference to `SSL_CTX_free' collect2: ld returned 1 exit status make[1]: *** [concurrency_test] Error 1 make[1]: Leaving directory `/home/roger/software/thrift/thrift-trunk/lib/cpp' make: *** [all-recursive] Error 1 {code} I had to pass *-lssl* by hand on Debian squeeze and it works! {code} roger@automat:~/software/thrift/thrift-trunk/lib/cpp$ /bin/bash ../../libtool --tag=CXX --mode=link g++ -Wall -g -O2 -o concurrency_test Tests.o libthrift.la -lrt -lpthread -lssl libtool: link: g++ -Wall -g -O2 -o .libs/concurrency_test Tests.o ./.libs/libthrift.so -lrt -lpthread -lssl roger@slave:~/software/thrift/thrift-trunk/lib/cpp$ roger@automat:~/software/thrift/thrift-trunk/lib/cpp/test$ /bin/bash ../../../libtool --tag=CXX --mode=link g++ -Wall -g -O2 -o Benchmark Benchmark.o libtestgencpp.la -lrt -lpthread -lssl libtool: link: g++ -Wall -g -O2 -o .libs/Benchmark Benchmark.o ./.libs/libtestgencpp.a /home/roger/software/thrift/thrift-trunk/lib/cpp/.libs/libthrift.so -lrt -lpthread -lssl roger@automat:~/software/thrift/thrift-trunk/lib/cpp/test$ t$ libtool: link: g++ -Wall -g -O2 -o .libs/TFDTransportTest TFDTransportTest.o ../../../lib/cpp/.libs/libthrift.so -lrt -lpthread -lssl {code} > SSL/C++: invalid cast breaks build > ---------------------------------- > > Key: THRIFT-1071 > URL: https://issues.apache.org/jira/browse/THRIFT-1071 > Project: Thrift > Issue Type: Bug > Components: C++ - Library > Environment: Ubuntu (Thrift CI Server) > https://hudson.apache.org/hudson/job/Thrift > Debian Squeeze > Reporter: Roger Meier > Attachments: pthread_t_cast.patch > > > THRIFT-151 breaks the build on Ubuntu and Debian Squeeze > see https://hudson.apache.org/hudson/job/Thrift/64/console > {code} > libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../.. -I/usr/include -I./src > -Wall -g -O2 -MT TSSLSocket.lo -MD -MP -MF .deps/TSSLSocket.Tpo -c > src/transport/TSSLSocket.cpp -fPIC -DPIC -o .libs/TSSLSocket.o > src/transport/TSSLSocket.cpp: In function 'long unsigned int > apache::thrift::transport::callbackThreadID()': > src/transport/TSSLSocket.cpp:481: error: invalid cast from type 'pthread_t' > to type 'long unsigned int' > make[4]: *** [TSSLSocket.lo] Error 1 > {code} -- This message is automatically generated by JIRA. - For more information on JIRA, see: http://www.atlassian.com/software/jira