OpenSSL 1.1.1b tests fail on Solaris

John Unsworth John.Unsworth at synchronoss.com
Thu May 9 20:56:47 UTC 2019


Resend without cryptolist.txt and openssl_nm.txt attachments because they made the email too big.

Attached is ar -t libcrypto.a.
sol-mds-build-01 $ ar -t libcrypto.a > cryptolist.txt
It contains stack.o which I see has the code for OPENSSL_sk_new_null. 

Attached is sol-mds-build-01 $ nm openssl > openssl_nm.txt
All the OPENSSL_sk functions are missing. They are marked UNDEF and WEAK.
[11397]	|                   0|                   0|FUNC |WEAK |0    |UNDEF  |OPENSSL_sk_deep_copy
[11466]	|                   0|                   0|FUNC |WEAK |0    |UNDEF  |OPENSSL_sk_delete
[11287]	|                   0|                   0|FUNC |WEAK |0    |UNDEF  |OPENSSL_sk_delete_ptr
[11485]	|                   0|                   0|FUNC |WEAK |0    |UNDEF  |OPENSSL_sk_dup
[11389]	|                   0|                   0|FUNC |WEAK |0    |UNDEF  |OPENSSL_sk_find
[11502]	|                   0|                   0|FUNC |WEAK |0    |UNDEF  |OPENSSL_sk_free
[11476]	|                   0|                   0|FUNC |WEAK |0    |UNDEF  |OPENSSL_sk_insert
[11408]	|                   0|                   0|FUNC |WEAK |0    |UNDEF  |OPENSSL_sk_is_sorted
[11583]	|                   0|                   0|FUNC |WEAK |0    |UNDEF  |OPENSSL_sk_new
[11450]	|                   0|                   0|FUNC |WEAK |0    |UNDEF  |OPENSSL_sk_new_null
[11458]	|                   0|                   0|FUNC |WEAK |0    |UNDEF  |OPENSSL_sk_new_reserve
[11377]	|                   0|                   0|FUNC |WEAK |0    |UNDEF  |OPENSSL_sk_num
[11467]	|                   0|                   0|FUNC |WEAK |0    |UNDEF  |OPENSSL_sk_pop
[11402]	|                   0|                   0|FUNC |WEAK |0    |UNDEF  |OPENSSL_sk_pop_free
[11298]	|                   0|                   0|FUNC |WEAK |0    |UNDEF  |OPENSSL_sk_push
[11294]	|                   0|                   0|FUNC |WEAK |0    |UNDEF  |OPENSSL_sk_reserve
[11409]	|                   0|                   0|FUNC |WEAK |0    |UNDEF  |OPENSSL_sk_set
[11562]	|                   0|                   0|FUNC |WEAK |0    |UNDEF  |OPENSSL_sk_set_cmp_func
[11295]	|                   0|                   0|FUNC |WEAK |0    |UNDEF  |OPENSSL_sk_shift
[11424]	|                   0|                   0|FUNC |WEAK |0    |UNDEF  |OPENSSL_sk_sort
[11576]	|                   0|                   0|FUNC |WEAK |0    |UNDEF  |OPENSSL_sk_value

Attached is sol-mds-build-01 $ nm stack.o > stacklist.txt
All the functions are there but are marked WEAK.
[28]	|                 784|                 412|FUNC |WEAK |2    |2      |OPENSSL_sk_deep_copy
[38]	|                3256|                 128|FUNC |WEAK |2    |2      |OPENSSL_sk_delete
[39]	|                3056|                 164|FUNC |WEAK |2    |2      |OPENSSL_sk_delete_ptr
[51]	|                  96|                 652|FUNC |WEAK |2    |2      |OPENSSL_sk_dup
[47]	|                3416|                 260|FUNC |WEAK |2    |2      |OPENSSL_sk_find
[48]	|                3712|                 260|FUNC |WEAK |2    |2      |OPENSSL_sk_find_ex
[36]	|                4712|                  72|FUNC |WEAK |2    |2      |OPENSSL_sk_free
[45]	|                2544|                 480|FUNC |WEAK |2    |2      |OPENSSL_sk_insert
[50]	|                5184|                  24|FUNC |WEAK |2    |2      |OPENSSL_sk_is_sorted
[32]	|                1288|                  16|FUNC |WEAK |2    |2      |OPENSSL_sk_new
[33]	|                1232|                  20|FUNC |WEAK |2    |2      |OPENSSL_sk_new_null
[34]	|                1872|                 288|FUNC |WEAK |2    |2      |OPENSSL_sk_new_reserve
[30]	|                4816|                  24|FUNC |WEAK |2    |2      |OPENSSL_sk_num
[42]	|                4240|                  60|FUNC |WEAK |2    |2      |OPENSSL_sk_pop
[44]	|                4576|                 100|FUNC |WEAK |2    |2      |OPENSSL_sk_pop_free
[40]	|                4008|                  28|FUNC |WEAK |2    |2      |OPENSSL_sk_push
[35]	|                2192|                 316|FUNC |WEAK |2    |2      |OPENSSL_sk_reserve
[46]	|                4960|                  68|FUNC |WEAK |2    |2      |OPENSSL_sk_set
[29]	|                  32|                  32|FUNC |WEAK |2    |2      |OPENSSL_sk_set_cmp_func
[43]	|                4120|                  88|FUNC |WEAK |2    |2      |OPENSSL_sk_shift
[49]	|                5064|                  84|FUNC |WEAK |2    |2      |OPENSSL_sk_sort
[41]	|                4072|                  16|FUNC |WEAK |2    |2      |OPENSSL_sk_unshift
[31]	|                4872|                  56|FUNC |WEAK |2    |2      |OPENSSL_sk_value
[37]	|                4336|                 208|FUNC |WEAK |2    |2      |OPENSSL_sk_zero
Does the Bind Type WEAK indicate anything?
>> Note - Weak symbols are intended primarily for use in system software. Their use in application programs is discouraged.
Shouldn't they be GLOBAL like the rest? How to change them?

Regards,
John

-----Original Message-----
From: John Unsworth 
Sent: 09 May 2019 10:48
To: openssl-users at openssl.org
Subject: RE: OpenSSL 1.1.1b tests fail on Solaris

This is the build line for sanity test:

rm -f test/sanitytest
${LDCMD:-cc} -xarch=v9 -xstrconst -Xa -xO5 -xdepend -m64 -xcode=pic32 -xldscope=hidden -L. -mt  \
        -o test/sanitytest test/sanitytest.o \
         test/libtestutil.a -lcrypto -lsocket -lnsl -ldl -lpthread -lrt
cc: Warning: -xarch=v9 is deprecated, use -m64 to create 64-bit programs

Does it need -lssl?

John

-----Original Message-----
From: openssl-users <openssl-users-bounces at openssl.org> On Behalf Of John Unsworth
Sent: 09 May 2019 10:13
To: openssl-users at openssl.org
Subject: RE: OpenSSL 1.1.1b tests fail on Solaris

CAUTION: This email originated from outside of Synchronoss.


This looks like the problem:

ld.so.1: sanitytest: fatal: relocation error: file ../../test/sanitytest: symbol OPENSSL_sk_new_null: referenced symbol not found ../../util/shlib_wrap.sh ../../test/sanitytest => 137 not ok 1 - running sanitytest

#   Failed test 'running sanitytest'
#   at /home/metabld/OpenSSL/openssl-1.1.1b/test/../util/perl/OpenSSL/Test/Simple.pm line 77.
# Looks like you failed 1 test of 1.
Dubious, test returned 1 (wstat 256, 0x100) Failed 1/1 subtests

This results in the same error:
sol-mds-build-01 $ cd apps
sol-mds-build-01 $ ./openssl version
ld.so.1: openssl: fatal: relocation error: file openssl: symbol OPENSSL_sk_new_null: referenced symbol not found

I have built static libraries.

John

-----Original Message-----
From: openssl-users <openssl-users-bounces at openssl.org> On Behalf Of Matt Caswell
Sent: 09 May 2019 09:38
To: openssl-users at openssl.org
Subject: Re: OpenSSL 1.1.1b tests fail on Solaris

CAUTION: This email originated from outside of Synchronoss.


What is the output from:

$ make V=1 TESTS=test_sanity test

Matt

On 08/05/2019 19:22, John Unsworth wrote:
> I have build OpenSSL 1.1.1b 64 bit on Solaris SunOS 5.10 
> Generic_Virtual sun4v sparc SUNW,T5140.
>
>
>
> ./Configure -lrt solaris64-sparcv9-cc no-shared -m64 -xcode=pic32 
> -xldscope=hidden
>
>
>
> It builds fine but all the tests fail, with or without no-asm. Can 
> anyone help please? Here is the start of the test run:
>
>
>
> $ make test
>
> make depend && make _tests
>
> ( cd test; \
>
>   mkdir -p test-runs; \
>
>   SRCTOP=../. \
>
>   BLDTOP=../. \
>
>   RESULT_D=test-runs \
>
>  PERL="/opt/perl-5.26.1/bin/perl" \
>
>   EXE_EXT= \
>
>   OPENSSL_ENGINES=`cd .././engines 2>/dev/null && pwd` \
>
>   OPENSSL_DEBUG_MEMORY=on \
>
>     /opt/perl-5.26.1/bin/perl .././test/run_tests.pl  )
>
> ../test/recipes/01-test_abort.t .................... ok
>
> ../test/recipes/01-test_sanity.t ................... Dubious, test 
> returned 1 (wstat 256, 0x100)
>
> Failed 1/1 subtests
>
> ../test/recipes/01-test_symbol_presence.t .......... skipped: Only 
> useful when building shared libraries
>
> ../test/recipes/01-test_test.t ..................... Dubious, test 
> returned 1 (wstat 256, 0x100)
>
> Failed 1/1 subtests
>
> ../test/recipes/02-test_errstr.t ................... Dubious, test 
> returned 60 (wstat 15360, 0x3c00)
>
> Failed 60/76 subtests
>
>         (less 16 skipped subtests: 0 okay)
>
> ../test/recipes/02-test_internal_ctype.t ........... Dubious, test 
> returned 1 (wstat 256, 0x100)
>
> Failed 1/1 subtests
>
> ../test/recipes/02-test_lhash.t .................... Dubious, test 
> returned 1 (wstat 256, 0x100)
>
> Failed 1/1 subtests
>
> ../test/recipes/02-test_ordinals.t ................. ok
>
> ../test/recipes/02-test_stack.t .................... Dubious, test 
> returned 1 (wstat 256, 0x100)
>
> Failed 1/1 subtests
>
> ../test/recipes/03-test_exdata.t ................... Dubious, test 
> returned 1 (wstat 256, 0x100)
>
> Failed 1/1 subtests
>
> ../test/recipes/03-test_internal_asn1.t ............ Dubious, test 
> returned 1 (wstat 256, 0x100)
>
> Failed 1/1 subtests
>
> ../test/recipes/03-test_internal_chacha.t .......... Dubious, test 
> returned 1 (wstat 256, 0x100)
>
> Failed 1/1 subtests
>
> ../test/recipes/03-test_internal_curve448.t ........ Dubious, test 
> returned 1 (wstat 256, 0x100)
>
> Failed 1/1 subtests
>
> ../test/recipes/03-test_internal_ec.t .............. Dubious, test 
> returned 1 (wstat 256, 0x100)
>
> Failed 1/1 subtests
>
> ../test/recipes/03-test_internal_mdc2.t ............ Dubious, test 
> returned 1 (wstat 256, 0x100)
>
> Failed 1/1 subtests
>
> ../test/recipes/03-test_internal_modes.t ........... Dubious, test 
> returned 1 (wstat 256, 0x100)
>
> Failed 1/1 subtests
>
> ../test/recipes/03-test_internal_poly1305.t ........ Dubious, test 
> returned 1 (wstat 256, 0x100)
>
> Failed 1/1 subtests
>
> ../test/recipes/03-test_internal_siphash.t ......... Dubious, test 
> returned 1 (wstat 256, 0x100)
>
> Failed 1/1 subtests
>
> ../test/recipes/03-test_internal_sm2.t ............. Dubious, test 
> returned 1 (wstat 256, 0x100)
>
> Failed 1/1 subtests
>
> ../test/recipes/03-test_internal_sm4.t ............. Dubious, test 
> returned 1 (wstat 256, 0x100)
>
> Failed 1/1 subtests
>
> ../test/recipes/03-test_internal_ssl_cert_table.t .. Dubious, test 
> returned 1 (wstat 256, 0x100)
>
> Failed 1/1 subtests
>
> ../test/recipes/03-test_internal_x509.t ............ Dubious, test 
> returned 1 (wstat 256, 0x100)
>
> Failed 1/1 subtests
>
> ../test/recipes/03-test_ui.t ....................... Dubious, test 
> returned 1 (wstat 256, 0x100)
>
> Failed 1/1 subtests
>
> ../test/recipes/04-test_asn1_decode.t .............. Dubious, test 
> returned 1 (wstat 256, 0x100)
>
> Failed 1/1 subtests
>
> ../test/recipes/04-test_asn1_encode.t .............. Dubious, test 
> returned 1 (wstat 256, 0x100)
>
> Failed 1/1 subtests
>
> ../test/recipes/04-test_asn1_string_table.t ........ Dubious, test 
> returned 1 (wstat 256, 0x100)
>
> Failed 1/1 subtests
>
> ../test/recipes/04-test_bio_callback.t ............. Dubious, test 
> returned 1 (wstat 256, 0x100)
>
> Failed 1/1 subtests
>
> * *
>
> Regards,
>
> John.
>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: stacklist.txt
URL: <http://mta.openssl.org/pipermail/openssl-users/attachments/20190509/da4d4bc5/attachment.txt>


More information about the openssl-users mailing list