Errors building 1.1.1 on RHEL 7

Mark Richter mrichter at solarflare.com
Wed Jul 17 18:22:19 UTC 2019


Hi Jan,

Thanks for that.  I got 1.1.1c and it built properly.

I configured it to use /usr/local/openssl for the target per the instructions on https://blacksaildivision.com/how-to-install-openssl-on-centos, and everything seemed to go well.  I get this:

11:02 [mrichter at sfsdr220d:~] $ openssl version
OpenSSL 1.1.1c  28 May 2019

After I log out and back in.

However, although I modified our make file to use '-I/usr/local/openssl/include' and '-L/usr/local/openssl/lib', I now see this warning:

cc -DLOG_LEVEL=LOG_INFO -Wall -Werror -D__ci_driver__ -D__ci_ul_driver__ -D_GNU_SOURCE -DWITH_MCDI_V2 -DWITH_TLS12=0 -DSOLAR_SECURE_VERSION="1.0.3.1020 (3bf2875895d5+ Wed Jul 17 11:14:55 PDT 2019)" -Isrc/include -I/usr/local/openssl/include -Isrc/tools/mc-comms -Isrc/tools/mc-comms/include -Isrc/emulators/mbedtls/include -I/usr/include/json-c   -g3 -fno-omit-frame-pointer build/src/tools/sfslc.o -o build/bin/sfslc -Lbuild/lib -L/usr/local/openssl/lib  -lsfsl_api -lsf_core -lcm -lss -lcrypto  -lpci -lcurl -lpthread -lrt -lssl -luuid -ljson-c
/usr/bin/ld: warning: libssl.so.10, needed by /usr/lib64/libssh2.so.1, may conflict with libssl.so.1.1
/usr/bin/ld: warning: libcrypto.so.10, needed by /usr/lib64/libssh2.so.1, may conflict with libcrypto.so.1.1

I tried googling this and get lots of suggestion for similar errors with libcurl, but not this one.

What am I missing?

-----Original Message-----
From: Jan Just Keijser <janjust at nikhef.nl>
Sent: Wednesday, July 17, 2019 2:53 AM
To: Mark Richter <mrichter at solarflare.com>; Matt Caswell <matt at openssl.org>; openssl-users at openssl.org
Subject: Re: Errors building 1.1.1 on RHEL 7

FWIW:

I just downloaded openssl 1.1.1c, untarred it on my CentOS 7 box, then ran
   ./config
   make
   make test

The tests passed with the following output (the "ok" tests stripped out):

...
../test/recipes/05-test_md2.t ...................... skipped: md2 is not supported by this OpenSSL build ...
../test/recipes/05-test_rc5.t ...................... skipped: rc5 is not supported by this OpenSSL build ...
../test/recipes/30-test_afalg.t .................... skipped: test_afalg not supported for this build ...
../test/recipes/90-test_gost.t ..................... skipped: No test GOST engine found ...
../test/recipes/90-test_overhead.t ................. skipped: Only supported in no-shared builds ...
../test/recipes/95-test_external_boringssl.t ....... skipped: No external tests in this configuration ../test/recipes/95-test_external_krb5.t ............ skipped: No external tests in this configuration ../test/recipes/95-test_external_pyca.t ............ skipped: No external tests in this configuration ...
All tests successful.
Files=155, Tests=1452, 66 wallclock secs ( 1.44 usr  0.11 sys + 62.90 cusr 13.51 csys = 77.96 CPU)
Result: PASS
make[1]: Leaving directory `/home/janjust/src/openssl-1.1.1c'


Share and enjoy,

JJK

On 17/07/19 00:27, Mark Richter wrote:
> I removed the directory, re-untarred the source, ran 'make clean', then 'make', then 'make TESTS=test_dsa V=1 test':
>
> [root at sfsdr220d openssl-1.1.1]# make TESTS=test_dsa V=1 test make
> depend && make _tests
> make[1]: Entering directory `/tmp/openssl-1.1.1'
> make[1]: Leaving directory `/tmp/openssl-1.1.1'
> make[1]: Entering directory `/tmp/openssl-1.1.1'
> ( cd test; \
>    mkdir -p test-runs; \
>    SRCTOP=../. \
>    BLDTOP=../. \
>    RESULT_D=test-runs \
>    PERL="/usr/bin/perl" \
>    EXE_EXT= \
>    OPENSSL_ENGINES=`cd .././engines 2>/dev/null && pwd` \
>    OPENSSL_DEBUG_MEMORY=on \
>      /usr/bin/perl .././test/run_tests.pl test_dsa )
> /tmp/openssl-1.1.1/test ../test/recipes/15-test_dsa.t ..
> 1..6
> ok 1 - require '../../test/recipes/tconversion.pl';
>      # Subtest: ../../test/dsatest
>      1..1
>      ok 1 - dsa_test
> ../../util/shlib_wrap.sh ../../test/dsatest => 0 ok 2 - running
> dsatest
>      # Subtest: ../../test/dsa_no_digest_size_test
>      1..3
>      ok 1 - dsa_exact_size_test
>      ok 2 - dsa_small_digest_test
>      ok 3 - dsa_large_digest_test
> ../../util/shlib_wrap.sh ../../test/dsa_no_digest_size_test => 0 ok 3
> - running dsa_no_digest_size_test
>      1..10
>      ok 1 - initializing
> read DSA key
> writing DSA key
> ../../util/shlib_wrap.sh ../../apps/openssl dsa -in dsa-fff.p -inform p -out dsa-f.d -outform d => 0
>      ok 2 - p -> d
> read DSA key
> writing DSA key
> ../../util/shlib_wrap.sh ../../apps/openssl dsa -in dsa-fff.p -inform p -out dsa-f.p -outform p => 0
>      ok 3 - p -> p
> read DSA key
> writing DSA key
> ../../util/shlib_wrap.sh ../../apps/openssl dsa -in dsa-f.d -inform d -out dsa-ff.dd -outform d => 0
>      ok 4 - d -> d
> read DSA key
> writing DSA key
> ../../util/shlib_wrap.sh ../../apps/openssl dsa -in dsa-f.p -inform p -out dsa-ff.pd -outform d => 0
>      ok 5 - p -> d
> read DSA key
> writing DSA key
> ../../util/shlib_wrap.sh ../../apps/openssl dsa -in dsa-f.d -inform d -out dsa-ff.dp -outform p => 0
>      ok 6 - d -> p
> read DSA key
> writing DSA key
> ../../util/shlib_wrap.sh ../../apps/openssl dsa -in dsa-f.p -inform p -out dsa-ff.pp -outform p => 0
>      ok 7 - p -> p
>      ok 8 - comparing orig to p
>      ok 9 - comparing p to dp
>      ok 10 - comparing p to pp
> ok 4 - dsa conversions -- private key
>      1..10
> ../../util/shlib_wrap.sh ../../apps/openssl pkey -in ../../test/testdsa.pem -out dsa-fff.p => 0
>      ok 1 - initializing
> ../../util/shlib_wrap.sh ../../apps/openssl pkey -in dsa-fff.p -inform p -out dsa-f.d -outform d => 0
>      ok 2 - p -> d
> ../../util/shlib_wrap.sh ../../apps/openssl pkey -in dsa-fff.p -inform p -out dsa-f.p -outform p => 0
>      ok 3 - p -> p
> ../../util/shlib_wrap.sh ../../apps/openssl pkey -in dsa-f.d -inform d -out dsa-ff.dd -outform d => 0
>      ok 4 - d -> d
> ../../util/shlib_wrap.sh ../../apps/openssl pkey -in dsa-f.p -inform p -out dsa-ff.pd -outform d => 0
>      ok 5 - p -> d
> ../../util/shlib_wrap.sh ../../apps/openssl pkey -in dsa-f.d -inform d -out dsa-ff.dp -outform p => 0
>      ok 6 - d -> p
> ../../util/shlib_wrap.sh ../../apps/openssl pkey -in dsa-f.p -inform p -out dsa-ff.pp -outform p => 0
>      ok 7 - p -> p
>      ok 8 - comparing orig to p
>      ok 9 - comparing p to dp
>      ok 10 - comparing p to pp
> ok 5 - dsa conversions -- private key PKCS\#8
>      1..20
>      ok 1 - initializing
> read DSA key
> writing DSA key
> ../../util/shlib_wrap.sh ../../apps/openssl dsa -pubin -pubout -in msb-fff.p -inform p -out msb-f.d -outform d => 0
>      ok 2 - p -> d
> read DSA key
> writing DSA key
> ../../util/shlib_wrap.sh ../../apps/openssl dsa -pubin -pubout -in msb-fff.p -inform p -out msb-f.p -outform p => 0
>      ok 3 - p -> p
> read DSA key
> writing DSA key
> ../../util/shlib_wrap.sh ../../apps/openssl dsa -pubin -pubout -in msb-fff.p -inform p -out msb-f.msblob -outform msblob => 0
>      ok 4 - p -> msblob
> read DSA key
> writing DSA key
> ../../util/shlib_wrap.sh ../../apps/openssl dsa -pubin -pubout -in msb-f.d -inform d -out msb-ff.dd -outform d => 0
>      ok 5 - d -> d
> read DSA key
> writing DSA key
> ../../util/shlib_wrap.sh ../../apps/openssl dsa -pubin -pubout -in msb-f.p -inform p -out msb-ff.pd -outform d => 0
>      ok 6 - p -> d
> read DSA key
> writing DSA key
> ../../util/shlib_wrap.sh ../../apps/openssl dsa -pubin -pubout -in msb-f.msblob -inform msblob -out msb-ff.msblobd -outform d => 0
>      ok 7 - msblob -> d
> read DSA key
> writing DSA key
> ../../util/shlib_wrap.sh ../../apps/openssl dsa -pubin -pubout -in msb-f.d -inform d -out msb-ff.dp -outform p => 0
>      ok 8 - d -> p
> read DSA key
> writing DSA key
> ../../util/shlib_wrap.sh ../../apps/openssl dsa -pubin -pubout -in msb-f.p -inform p -out msb-ff.pp -outform p => 0
>      ok 9 - p -> p
> read DSA key
> writing DSA key
> ../../util/shlib_wrap.sh ../../apps/openssl dsa -pubin -pubout -in msb-f.msblob -inform msblob -out msb-ff.msblobp -outform p => 0
>      ok 10 - msblob -> p
> read DSA key
> writing DSA key
> ../../util/shlib_wrap.sh ../../apps/openssl dsa -pubin -pubout -in msb-f.d -inform d -out msb-ff.dmsblob -outform msblob => 0
>      ok 11 - d -> msblob
> read DSA key
> writing DSA key
> ../../util/shlib_wrap.sh ../../apps/openssl dsa -pubin -pubout -in msb-f.p -inform p -out msb-ff.pmsblob -outform msblob => 0
>      ok 12 - p -> msblob
> read DSA key
> writing DSA key
> ../../util/shlib_wrap.sh ../../apps/openssl dsa -pubin -pubout -in msb-f.msblob -inform msblob -out msb-ff.msblobmsblob -outform msblob => 0
>      ok 13 - msblob -> msblob
>      ok 14 - comparing orig to p
>      ok 15 - comparing p to dp
>      ok 16 - comparing p to pp
>      ok 17 - comparing p to msblobp
>      ok 18 - comparing msblob to dmsblob
>      ok 19 - comparing msblob to pmsblob
>      ok 20 - comparing msblob to msblobmsblob ok 6 - dsa conversions
> -- public key ok All tests successful.
> Files=1, Tests=6,  1 wallclock secs ( 0.02 usr  0.00 sys +  0.23 cusr
> 0.08 csys =  0.33 CPU)
> Result: PASS
> make[1]: Leaving directory `/tmp/openssl-1.1.1'
> [root at sfsdr220d openssl-1.1.1]# perl -v
>
> This is perl 5, version 16, subversion 3 (v5.16.3) built for
> x86_64-linux-thread-multi (with 33 registered patches, see perl -V for
> more detail)
>
> Copyright 1987-2012, Larry Wall
>
> Perl may be copied only under the terms of either the Artistic License
> or the GNU General Public License, which may be found in the Perl 5 source kit.
>
> Complete documentation for Perl, including FAQ lists, should be found
> on this system using "man perl" or "perldoc perl".  If you have access
> to the Internet, point your browser at http://www.perl.org/, the Perl Home Page.
>
>
> Mark Richter | Senior Staff Engineer
> SolarFlare Communications, Inc. | www.Solarflare.com
> 9444 Waples Street, #170, San Diego, CA  92121
> Mobile: +1 949-632-8403
>
>
> ________________________________________
> From: openssl-users <openssl-users-bounces at openssl.org> on behalf of
> Matt Caswell <matt at openssl.org>
> Sent: Tuesday, July 16, 2019 3:20 PM
> To: openssl-users at openssl.org
> Subject: Re: Errors building 1.1.1 on RHEL 7
>
> On 16/07/2019 22:23, Mark Richter wrote:
>> After I built version 1.1.1 on RHEL 7, I got these errors at the end of the 'make test.'  What do they mean?
>>
>>
>> Test Summary Report
>> -------------------
>> ../test/recipes/15-test_dsa.t                    (Wstat: 768 Tests: 6 Failed: 3)
>>    Failed tests:  4-6
>>    Non-zero exit status: 3
> Looks like something fundamentally wrong to get this many errors
> (guess: perl version is too low?)
>
> Please run:
>
> make TESTS=test_dsa V=1 test
>
> Also lets see the output from:
>
> perl -v
>
> Matt
>
>
>> ../test/recipes/15-test_ec.t                     (Wstat: 768 Tests: 5 Failed: 3)
>>    Failed tests:  3-5
>>    Non-zero exit status: 3
>> ../test/recipes/15-test_genrsa.t                 (Wstat: 1024 Tests: 5 Failed: 4)
>>    Failed tests:  2-5
>>    Non-zero exit status: 4
>> ../test/recipes/15-test_mp_rsa.t                 (Wstat: 7680 Tests: 31 Failed: 30)
>>    Failed tests:  2-31
>>    Non-zero exit status: 30
>> ../test/recipes/15-test_out_option.t             (Wstat: 256 Tests: 4 Failed: 1)
>>    Failed test:  2
>>    Non-zero exit status: 1
>> ../test/recipes/15-test_rsa.t                    (Wstat: 768 Tests: 6 Failed: 3)
>>    Failed tests:  4-6
>>    Non-zero exit status: 3
>> ../test/recipes/15-test_rsapss.t                 (Wstat: 512 Tests: 5 Failed: 2)
>>    Failed tests:  1, 5
>>    Non-zero exit status: 2
>> ../test/recipes/20-test_enc.t                    (Wstat: 256 Tests: 87 Failed: 1)
>>    Failed test:  2
>>    Non-zero exit status: 1
>>    Parse errors: Bad plan.  You planned 172 tests but ran 87.
>> ../test/recipes/20-test_enc_more.t               (Wstat: 256 Tests: 137 Failed: 1)
>>    Failed test:  2
>>    Non-zero exit status: 1
>> ../test/recipes/25-test_crl.t                    (Wstat: 768 Tests: 7 Failed: 3)
>>    Failed tests:  2, 6-7
>>    Non-zero exit status: 3
>> ../test/recipes/25-test_pkcs7.t                  (Wstat: 512 Tests: 3 Failed: 2)
>>    Failed tests:  2-3
>>    Non-zero exit status: 2
>> ../test/recipes/25-test_req.t                    (Wstat: 1024 Tests: 9 Failed: 4)
>>    Failed tests:  2, 7-9
>>    Non-zero exit status: 4
>> ../test/recipes/25-test_sid.t                    (Wstat: 256 Tests: 2 Failed: 1)
>>    Failed test:  2
>>    Non-zero exit status: 1
>> ../test/recipes/25-test_x509.t                   (Wstat: 1792 Tests: 9 Failed: 7)
>>    Failed tests:  2-8
>>    Non-zero exit status: 7
>> ../test/recipes/40-test_rehash.t                 (Wstat: 65280 Tests: 0 Failed: 0)
>>    Non-zero exit status: 255
>>    Parse errors: Bad plan.  You planned 4 tests but ran 0.
>> ../test/recipes/60-test_x509_store.t             (Wstat: 65280 Tests: 0 Failed: 0)
>>    Non-zero exit status: 255
>>    Parse errors: Bad plan.  You planned 3 tests but ran 0.
>> ../test/recipes/80-test_ca.t                     (Wstat: 256 Tests: 5 Failed: 1)
>>    Failed test:  1
>>    Non-zero exit status: 1
>> ../test/recipes/80-test_cms.t                    (Wstat: 1024 Tests: 4 Failed: 4)
>>    Failed tests:  1-4
>>    Non-zero exit status: 4
>> ../test/recipes/80-test_ocsp.t                   (Wstat: 512 Tests: 11 Failed: 2)
>>    Failed tests:  1, 10
>>    Non-zero exit status: 2
>> ../test/recipes/80-test_ssl_new.t                (Wstat: 6912 Tests: 27 Failed: 27)
>>    Failed tests:  1-27
>>    Non-zero exit status: 27
>> ../test/recipes/80-test_ssl_old.t                (Wstat: 1536 Tests: 6 Failed: 6)
>>    Failed tests:  1-6
>>    Non-zero exit status: 6
>> ../test/recipes/80-test_tsa.t                    (Wstat: 3328 Tests: 0 Failed: 0)
>>    Non-zero exit status: 13
>>    Parse errors: Bad plan.  You planned 20 tests but ran 0.
>> ../test/recipes/90-test_store.t                  (Wstat: 3328 Tests: 0 Failed: 0)
>>    Non-zero exit status: 13
>>    Parse errors: Bad plan.  You planned 209 tests but ran 0.
>> Files=152, Tests=850, 30 wallclock secs ( 0.38 usr  0.10 sys + 31.02
>> cusr  4.55 csys = 36.05 CPU)
>> Result: FAIL
>> make[1]: *** [_tests] Error 1
>> make[1]: Leaving directory `/home/mrichter/bin/openssl-1.1.1'
>> make: *** [tests] Error 2
>>
>> ?
>>
>>
>> Mark Richter | Senior Staff Engineer
>> SolarFlare Communications, Inc. |
>> www.Solarflare.com<http://www.solarflare.com/>
>> 9444 Waples Street, #170, San Diego, CA  92121
>> Mobile: +1 949-632-8403
>> [Description: Description: cid:EC628FDE-ACA6-4F34-A8AE-E1F672D4E395]
>> The information contained in this message is confidential and is intended for the addressee(s) only. If you have received this message in error, please notify the sender immediately and delete the message. Unless you are an addressee (or authorized to receive for an addressee), you may not use, copy or disclose to anyone this message or any information contained in this message. The unauthorized use, disclosure, copying or alteration of this message is strictly prohibited.
>>
> The information contained in this message is confidential and is intended for the addressee(s) only. If you have received this message in error, please notify the sender immediately and delete the message. Unless you are an addressee (or authorized to receive for an addressee), you may not use, copy or disclose to anyone this message or any information contained in this message. The unauthorized use, disclosure, copying or alteration of this message is strictly prohibited.

The information contained in this message is confidential and is intended for the addressee(s) only. If you have received this message in error, please notify the sender immediately and delete the message. Unless you are an addressee (or authorized to receive for an addressee), you may not use, copy or disclose to anyone this message or any information contained in this message. The unauthorized use, disclosure, copying or alteration of this message is strictly prohibited.


More information about the openssl-users mailing list