RE: OpenSSL Config Error

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Sorry, I am nog familiar with Erlang.

 

From: Aneeq Abid <aneeqabid@xxxxxxxxx>
Sent: Thursday, October 15, 2020 1:09 PM
To: Floodeenjr, Thomas <thomas_floodeenjr@xxxxxxxxxx>
Cc: openssl-users@xxxxxxxxxxx
Subject: Re: OpenSSL Config Error

 

Thanks for your reply. I have already installed OpenSSL but when I install Erlang, I find that crypto is missing. And it gives me an error that OpenSSL might not be installed. Can you help me here?

 

$ erl
Erlang/OTP 17 [erts-6.0] [source] [64-bit] [smp:4:4] [async-threads:10] [hipe] [kernel-poll:false]

Eshell V6.0  (abort with ^G)
1> crypto:start().
** exception error: undefined function crypto:start/0
2>
=ERROR REPORT==== 15-Oct-2020::23:28:36 ===
Unable to load crypto library. Failed with error:
"load_failed, Failed to load NIF library: '/usr/local/lib/erlang/lib/crypto-3.3/priv/lib/crypto.so: undefined symbol: HMAC_CTX_init'"
OpenSSL might not be installed on this system.

=ERROR REPORT==== 15-Oct-2020::23:28:36 ===
The on_load function for module crypto returned {error,
                                                 {load_failed,
                                                  "Failed to load NIF library: '/usr/local/lib/erlang/lib/crypto-3.3/priv/lib/crypto.so: undefined symbol: HMAC_CTX_init'"}}

 

On Fri, Oct 16, 2020 at 12:04 AM Floodeenjr, Thomas <thomas_floodeenjr@xxxxxxxxxx> wrote:

Shared means to configure as shared libraries.

 

From: Aneeq Abid <aneeqabid@xxxxxxxxx>
Sent: Thursday, October 15, 2020 12:36 PM
To: Floodeenjr, Thomas <thomas_floodeenjr@xxxxxxxxxx>
Cc: openssl-users@xxxxxxxxxxx
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_floodeenjr@xxxxxxxxxx> 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@xxxxxxxxxxx> On Behalf Of Aneeq Abid
Sent: Monday, October 5, 2020 4:07 AM
To: openssl-users@xxxxxxxxxxx
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


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux