OpenSSL Config Error

Aneeq Abid aneeqabid at gmail.com
Thu Oct 15 18:36:14 UTC 2020


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_floodeenjr at 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-bounces at openssl.org> On Behalf Of
> Aneeq Abid
> Sent: Monday, October 5, 2020 4:07 AM
> To: openssl-users at 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
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mta.openssl.org/pipermail/openssl-users/attachments/20201015/466ab860/attachment.html>


More information about the openssl-users mailing list