<div dir="ltr"><div>Dear Thomas,</div><div><br></div><div>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?<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Oct 5, 2020 at 7:00 PM Floodeenjr, Thomas <<a href="mailto:thomas_floodeenjr@mentor.com" target="_blank">thomas_floodeenjr@mentor.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Try removing the --openssldir=/usr/local/ssl flag. I think it is not needed.<br>
<br>
sudo ./config --prefix=/usr/local/ssl shared zlib<br>
<br>
-Tom<br>
<br>
From: openssl-users <<a href="mailto:openssl-users-bounces@openssl.org" target="_blank">openssl-users-bounces@openssl.org</a>> On Behalf Of Aneeq Abid<br>
Sent: Monday, October 5, 2020 4:07 AM<br>
To: <a href="mailto:openssl-users@openssl.org" target="_blank">openssl-users@openssl.org</a><br>
Subject: OpenSSL Config Error<br>
<br>
Hi,<br>
<br>
I have no familiarization with OpenSSL. I am installing it as a dependency for installing Erlang. I am using this guide:<br>
<br>
<a href="https://www.howtoforge.com/tutorial/how-to-install-openssl-from-source-on-linux/" rel="noreferrer" target="_blank">https://www.howtoforge.com/tutorial/how-to-install-openssl-from-source-on-linux/</a><br>
<br>
Version installing is openssl-1.0.2l<br>
<br>
I am facing the following error on make [3] while configuring OpenSSL. Can someone please guide me through it:<br>
<br>
make[3]: Entering directory '/media/erlang/openssl-1.0.2l'<br>
make[4]: Entering directory '/media/erlang/openssl-1.0.2l'<br>
/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<br>
/usr/bin/ld: final link failed: Bad value<br>
collect2: error: ld returned 1 exit status<br>
Makefile.shared:169: recipe for target 'link_a.gnu' failed<br>
make[4]: *** [link_a.gnu] Error 1<br>
make[4]: Leaving directory '/media/erlang/openssl-1.0.2l'<br>
Makefile:357: recipe for target 'do_linux-shared' failed<br>
make[3]: *** [do_linux-shared] Error 2<br>
make[3]: Leaving directory '/media/erlang/openssl-1.0.2l'<br>
Makefile:310: recipe for target 'libcrypto.so.1.0.0' failed<br>
make[2]: *** [libcrypto.so.1.0.0] Error 2<br>
make[2]: Leaving directory '/media/erlang/openssl-1.0.2l'<br>
Makefile:109: recipe for target 'shared' failed<br>
make[1]: *** [shared] Error 2<br>
make[1]: Leaving directory '/media/erlang/openssl-1.0.2l/crypto'<br>
Makefile:287: recipe for target 'build_crypto' failed<br>
make: *** [build_crypto] Error 1<br>
<br>
<br>
I used the following command to configure:<br>
<br>
sudo ./config --prefix=/usr/local/ssl --openssldir=/usr/local/ssl shared zlib<br>
<br>
</blockquote></div>