RE: undefined symbol: OSSL_provider_init when running "make test" for OpenSSL 3.0

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

 



IMHO, many providers are dynamically loadable modules, i.e. shared objects (.so). This is in conflict with the „no-shared” flag used.

 

Petr

 

From: openssl-users <openssl-users-bounces@xxxxxxxxxxx> On Behalf Of Lee Staniforth
Sent: Tuesday, December 21, 2021 4:09 PM
To: openssl-users@xxxxxxxxxxx
Subject: undefined symbol: OSSL_provider_init when running "make test" for OpenSSL 3.0

 

CAUTION: This email originated from outside of the Advantech organization. Do not click any link or open any attachment unless you recognize the sender and know the content is 100% safe! If you are not sure this email is legitimate, please contact IT.Helpdesk immediately.

 

Hi,

I have been building the 1.1.1 stream of OpenSSL for a while, and am now starting to look at moving to using 3.0.

 

Building works fine, but testing fails (via “make test”).

A number of the tests fail with undefined symbol: OSSL_provider_init:

 

<snip>

02-test_internal_ctype.t ........... ok

02-test_internal_keymgmt.t ......... ok

02-test_internal_provider.t ........

    # ERROR: (bool) 'ossl_provider_activate(prov, 1, 0) == true' failed @ test/provider_internal_test.c:29

    # false

    # INFO:

    # Got this greeting: <NULL>

    #

    # 403759E7BC7F0000:error:1280006A:DSO support routines:(unknown function):could not bind to the requested symbol name:crypto/dso/dso_dlfcn.c:188:symname(OSSL_provider_init): ../../test/p_test.so: undefined symbol: OSSL_provider_init

    # 403759E7BC7F0000:error:1280006A:DSO support routines:(unknown function):could not bind to the requested symbol name:crypto/dso/dso_lib.c:176:

    # 403759E7BC7F0000:error:078C0105:common libcrypto routines:(unknown function):init fail:crypto/provider_core.c:907:name=p_test

    # OPENSSL_TEST_RAND_ORDER=1640097315

    not ok 2 - test_loaded_provider

<snip>

 

 

I am using CentOS 7: CentOS Linux release 7.9.2009 (Core)

Compiler is gcc: gcc version 4.8.5 20150623 (Red Hat 4.8.5-44) (GCC)

 

This is my Configure line:

./Configure linux-x86_64 no-shared -m64 -fPIC -fvisibility=hidden

 

This happens with 3.0.0 (2021-Sep-07 12:00:26) and 3.0.1 (2021-Dec-14 16:28:09)

 

I’d appreciate any help in fixing this.

 

Thanks in advance.

 

Lee S


[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