Undefined link for TLSv1_1_client_method, although "nm" says otherwise

In my SSL client code, when I try to compile, I get an undefined reference error on use TLSv1_1_client_method()

. If I don't have a TLS method the link would be fine. When run ldd

in binary, I see:

% ldd client_sim_ssl
libssl.so.10 => /usr/lib64/libssl.so.10 
libcrypto.so.10 => /usr/lib64/libcrypto.so.10

Now if I check nm

for /usr/lib64/libssl.so.10

:

% nm /usr/lib64/libssl.so.10 | grep TLSv1_1_client_method
0000000000030d30 T TLSv1_1_client_method

Installed OpenSSL version: OpenSSL 1.0.1g 7 Apr 2014

Why is the link error undefined when the library it links to has a definition? What is a missing part?

EDIT 1:

I logged out of the system I was working on. In my experiment to upgrade the version - openSSL 1.0.1g I think I confused with libraries. SSH connection is having problems.: - (

ssh root@10.200.2.197 ssh_exchange_identification: connection closed by remote host

Maybe my original problem is related to this as well?

I'll update the post soon when I fix the SSH connection issue.

EDIT 2:

My system is RHEL 6.1. For SSH, the problem was to re-install the OpenSSL rpm from the CD as the version mismatch error from ssh

. With this installation, OpenSSL libraries were installed directly into /usr/lib/

and /usr/lib64/

. Now I don't see TLSv1_1_client_method()

with nm

.

I had to put in libraries with 1.0.1g in /usr/lib64/' and thus resulted in

nm` showing the TLS method. And it used other versions when compiling? Not sure.

+3
c linux openssl


source to share


No one has answered this question yet

Check out similar questions:

29
M2Crypto is not installed in venv or swig does not define __x86_64__, which is split into OpenSSL
4
Undefined libssl function reference with Android NDK
2
Linking to a shared SSL library of different versions
2
How can I make rpm tell which libraries are provided inside it?
2
How do I compile Python 3.6 using custom Fips Openssl?
1
Using openssl-fips-2.0 shared libraries in Android
1
Curl line with openssl 1.0.x, ldd shows dependencies on 0.9.8 and 1.0.x
1
OpenSSL-1.0.1e for RHEL 5
1
Openssl 1.0.1g rpm creates problems on Linux
0
Openssl update with internal revs results in libcrypto.so.10 not found on CentOS 6.6 x64



All Articles
Loading...
X
Show
Funny
Dev
Pics