<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman",serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p.msonormal0, li.msonormal0, div.msonormal0
        {mso-style-name:msonormal;
        mso-margin-top-alt:auto;
        margin-right:0in;
        mso-margin-bottom-alt:auto;
        margin-left:0in;
        font-size:12.0pt;
        font-family:"Times New Roman",serif;}
span.EmailStyle18
        {mso-style-type:personal-reply;
        font-family:"Calibri",sans-serif;
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri",sans-serif;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-US" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D">Shared means to configure as shared libraries.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><b><span style="font-size:11.0pt;font-family:"Calibri",sans-serif">From:</span></b><span style="font-size:11.0pt;font-family:"Calibri",sans-serif"> Aneeq Abid <aneeqabid@gmail.com>
<br>
<b>Sent:</b> Thursday, October 15, 2020 12:36 PM<br>
<b>To:</b> Floodeenjr, Thomas <thomas_floodeenjr@mentor.com><br>
<b>Cc:</b> openssl-users@openssl.org<br>
<b>Subject:</b> Re: OpenSSL Config Error<o:p></o:p></span></p>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<div>
<p class="MsoNormal">Dear Thomas,<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">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?<o:p></o:p></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<div>
<p class="MsoNormal">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:<o:p></o:p></p>
</div>
<blockquote style="border:none;border-left:solid #CCCCCC 1.0pt;padding:0in 0in 0in 6.0pt;margin-left:4.8pt;margin-right:0in">
<p class="MsoNormal" style="margin-bottom:12.0pt">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/" 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<o:p></o:p></p>
</blockquote>
</div>
</div>
</body>
</html>