Shared means to configure as shared libraries.

From: Aneeq Abid <aneeqa...@gmail.com>
Sent: Thursday, October 15, 2020 12:36 PM
To: Floodeenjr, Thomas <thomas_floodee...@mentor.com>
Cc: openssl-users@openssl.org
Subject: Re: OpenSSL Config Error

Dear Thomas,

I tried different parameters and have found out that the error occurs only when 
the option "shared" is used in the command. It works fine for all others. Can 
you please explain to me what is the purpose of the shared parameter? And is it 
okay if I configure openssl without it?

On Mon, Oct 5, 2020 at 7:00 PM Floodeenjr, Thomas 
<thomas_floodee...@mentor.com<mailto:thomas_floodee...@mentor.com>> wrote:
Try removing the --openssldir=/usr/local/ssl flag. I think it is not needed.

sudo ./config --prefix=/usr/local/ssl shared zlib

-Tom

From: openssl-users 
<openssl-users-boun...@openssl.org<mailto:openssl-users-boun...@openssl.org>> 
On Behalf Of Aneeq Abid
Sent: Monday, October 5, 2020 4:07 AM
To: openssl-users@openssl.org<mailto:openssl-users@openssl.org>
Subject: OpenSSL Config Error

Hi,

I have no familiarization with OpenSSL. I am installing it as a dependency for 
installing Erlang. I am using this guide:

https://www.howtoforge.com/tutorial/how-to-install-openssl-from-source-on-linux/

Version installing is openssl-1.0.2l

I am facing the following error on make [3] while configuring OpenSSL. Can 
someone please guide me through it:

make[3]: Entering directory '/media/erlang/openssl-1.0.2l'
make[4]: Entering directory '/media/erlang/openssl-1.0.2l'
/usr/bin/ld: libcrypto.a(gost_eng.o): relocation R_X86_64_PC32 against symbol 
`stderr@@GLIBC_2.2.5' can not be used when making a shared object; recompile 
with -fPIC
/usr/bin/ld: final link failed: Bad value
collect2: error: ld returned 1 exit status
Makefile.shared:169: recipe for target 'link_a.gnu' failed
make[4]: *** [link_a.gnu] Error 1
make[4]: Leaving directory '/media/erlang/openssl-1.0.2l'
Makefile:357: recipe for target 'do_linux-shared' failed
make[3]: *** [do_linux-shared] Error 2
make[3]: Leaving directory '/media/erlang/openssl-1.0.2l'
Makefile:310: recipe for target 'libcrypto.so.1.0.0' failed
make[2]: *** [libcrypto.so.1.0.0] Error 2
make[2]: Leaving directory '/media/erlang/openssl-1.0.2l'
Makefile:109: recipe for target 'shared' failed
make[1]: *** [shared] Error 2
make[1]: Leaving directory '/media/erlang/openssl-1.0.2l/crypto'
Makefile:287: recipe for target 'build_crypto' failed
make: *** [build_crypto] Error 1


I used the following command to configure:

sudo ./config --prefix=/usr/local/ssl --openssldir=/usr/local/ssl shared zlib

Reply via email to