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 <[email protected]> On Behalf Of John
Unsworth
Sent: 09 May 2019 10:13
To: [email protected]
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 <[email protected]> On Behalf Of Matt
Caswell
Sent: 09 May 2019 09:38
To: [email protected]
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.
>