You may need to rename the libraries on your system or use LD_PRELOAD when launching your application. Another option is to specify the full path to the specific libraries you want when you link with, instead of the -l<library_name>. For example: gcc -I /sonus/p4/ws/shared/cmn_thirdparty.main/openssl/distrib/include -L /sonus/p4/ws/shared/cmn_thirdparty.main/bldtools/toolchain/current/sonus/lib/ <PATH_TO>/libssl.so.1.0.2 <PATH_TO>/libcrypto.so.1.0.2
cpxmain1.c -o cpxmain1 -Tom From: openssl-users <openssl-users-bounces@xxxxxxxxxxx>
On Behalf Of Kumar Mishra, Sanjeev Hi, In my Linux Debian server both OpenSSL 1.0.2 and 1.1 is installed. As a user I am compiling C code for 1.0.2. But at the runtime and linking and loading it is picking version 1.1 as default. How
to switch between OpenSSL 1.0.2 and 1.1 in compilation loading and linking a C code ? Is there any linux env is required to set? I am using following commands- export LD_LIBRARY_PATH=/sonus/p4/ws/shared/cmn_thirdparty.main/bldtools/toolchain/current/sonus/lib/
To compile gcc -I /sonus/p4/ws/shared/cmn_thirdparty.main/openssl/distrib/include -L /sonus/p4/ws/shared/cmn_thirdparty.main/bldtools/toolchain/current/sonus/lib/ -lssl -lcrypto cpxmain1.c -o cpxmain1 Both the libcrypto.so.1.0.2 and libcrypto.so.1.1 is present in this path but only picking 1.1 as a default. How to change this default setting? Thanks With Best Regards, Sanjeev Kumar Mishra
|