OpenSSL 3.0.7 make test failed on AIX 7100-04
Zhongyan Wang
zwang2 at rocketsoftware.com
Thu Nov 3 07:08:21 UTC 2022
Hi team,
I compile OpenSSL 3.0.5 and 3.0.7 on AIX 7100, make and make install succeed, but make test failed at very beginning when doing "00-prep_fipsmodule_cnf.t".
This is my config options: ./Configure -Wl,-R,/.uvlibs1 aix64-cc enable-fips enable-acvp-tests no-mdc2 no-idea shared --prefix=/disk1/wzhy/openssl_build/install
The strange thing is that if I just add the --debug option in config options, make test succeeds.
Then I try openssl fipsinstall, it shows the same error log with make test:
Unable to get MAC of type HMAC
INSTALL FAILED
00000001:error:0308010C:digital envelope routines:inner_evp_generic_fetch:unsupported:crypto/evp/evp_fetch.c:373:Global default library context, Algorithm (HMAC : 0), Properties (<null>)
I think add -debug should not be a good solution, can you give me some help?
I paste my compile information as follow:
$ pwd
/disk1/wzhy/openssl_build/openssl-3.0.7
$ make test
make depend && make _tests
( SRCTOP=. BLDTOP=. PERL="perl" FIPSKEY="f4556650ac31d35461610bac4ed81b1a181b2d8a43ea2854cbae22ca74560813" EXE_EXT= perl ./test/run_tests.pl )
00-prep_fipsmodule_cnf.t ..
Unable to get MAC of type HMAC
INSTALL FAILED
00000001:error:0308010C:digital envelope routines:inner_evp_generic_fetch:unsupported:crypto/evp/evp_fetch.c:373:Global default library context, Algorithm (HMAC : 0), Properties (<null>)
../../util/wrap.pl ../../apps/openssl fipsinstall -module ../../providers/fips.so -provider_name fips -section_name fips_sect -out ../../test/fipsmodule.cnf => 1
not ok 1 - fips install
00-prep_fipsmodule_cnf.t .. 1/? ------------------------------------------------
# Failed test 'fips install'
# at test/recipes/00-prep_fipsmodule_cnf.t line 33.
00-prep_fipsmodule_cnf.t .. Dubious, test returned 1 (wstat 256, 0x100)
Failed 1/1 subtests
Test Summary Report
-------------------
00-prep_fipsmodule_cnf.t (Wstat: 256 Tests: 1 Failed: 1)
Failed test: 1
Non-zero exit status: 1
Files=1, Tests=1, 0 wallclock secs ( 0.01 usr 0.00 sys + 0.10 cusr 0.01 csys = 0.12 CPU)
Result: FAIL
make: The error code from the last command is 1.
Stop.
make: 1254-004 The error code from the last command is 2.
Stop.
$ apps/openssl fipsinstall -module providers/fips.so -out fips1.cnf
Unable to get MAC of type HMAC
INSTALL FAILED
00000001:error:0308010C:digital envelope routines:inner_evp_generic_fetch:unsupported:crypto/evp/evp_fetch.c:373:Global default library context, Algorithm (HMAC : 0), Properties (<null>)
$ /disk1/wzhy/openssl_build/install/bin/openssl fipsinstall -module /disk1/wzhy/openssl_build/install/lib//ossl-modules/fips.so -out fips1.cnf
Unable to get MAC of type HMAC
INSTALL FAILED
00000001:error:0308010C:digital envelope routines:inner_evp_generic_fetch:unsupported:crypto/evp/evp_fetch.c:373:Global default library context, Algorithm (HMAC : 0), Properties (<null>)
$ /disk1/wzhy/openssl_build/install/bin/openssl version -a
OpenSSL 3.0.7 1 Nov 2022 (Library: OpenSSL 3.0.7 1 Nov 2022)
built on: Thu Nov 3 05:50:08 2022 UTC
platform: aix64-cc
options: bn(64,64)
compiler: cc -qpic -q64 -qmaxmem=16384 -qro -qroconst -qthreaded -O -DB_ENDIAN -DOPENSSL_PIC -D_THREAD_SAFE -DOPENSSL_BUILDING_OPENSSL -DNDEBUG
OPENSSLDIR: "/disk1/wzhy/openssl_build/install/ssl"
ENGINESDIR: "/disk1/wzhy/openssl_build/install/lib/engines-3"
MODULESDIR: "/disk1/wzhy/openssl_build/install/lib/ossl-modules"
Seeding source: os-specific
CPUINFO: N/A
$ oslevel -r
7100-04
$ perl configdata.pm --dump
Command line (with current working directory = .):
perl ./Configure -Wl,-R,/.uvlibs1 aix64-cc enable-fips enable-acvp-tests no-mdc2 no-idea shared --prefix=/disk1/wzhy/openssl_build/install
Perl information:
perl
5.10.1 for aix-thread-multi
Enabled features:
acvp-tests
aria
asm
async
autoalginit
autoerrinit
autoload-config
bf
blake2
bulk
cached-fetch
camellia
capieng
cast
chacha
cmac
cmp
cms
comp
ct
deprecated
des
dgram
dh
dsa
dso
dtls
dynamic-engine
ec
ec2m
ecdh
ecdsa
engine
err
filenames
fips
fips-securitychecks
gost
legacy
loadereng
md4
module
multiblock
nextprotoneg
ocb
ocsp
padlockeng
pic
pinshared
poly1305
posix-io
psk
rc2
rc4
rdrand
rfc3779
rmd160
scrypt
secure-memory
seed
shared
siphash
siv
sm2
sm3
sm4
sock
srp
srtp
sse2
ssl
ssl-trace
static-engine
stdio
tests
threads
tls
ts
ui-console
whirlpool
tls1
tls1-method
tls1_1
tls1_1-method
tls1_2
tls1_2-method
tls1_3
dtls1
dtls1-method
dtls1_2
dtls1_2-method
Disabled features:
afalgeng [not-linux] OPENSSL_NO_AFALGENG
asan [default] OPENSSL_NO_ASAN
buildtest-c++ [default]
crypto-mdebug [default] OPENSSL_NO_CRYPTO_MDEBUG
devcryptoeng [default] OPENSSL_NO_DEVCRYPTOENG
ec_nistp_64_gcc_128 [default] OPENSSL_NO_EC_NISTP_64_GCC_128
egd [default] OPENSSL_NO_EGD
external-tests [default] OPENSSL_NO_EXTERNAL_TESTS
fuzz-afl [default] OPENSSL_NO_FUZZ_AFL
fuzz-libfuzzer [default] OPENSSL_NO_FUZZ_LIBFUZZER
idea [option] OPENSSL_NO_IDEA (skip crypto/idea)
ktls [default] OPENSSL_NO_KTLS
makedepend [unavailable]
md2 [default] OPENSSL_NO_MD2 (skip crypto/md2)
mdc2 [option] OPENSSL_NO_MDC2 (skip crypto/mdc2)
msan [default] OPENSSL_NO_MSAN
rc5 [default] OPENSSL_NO_RC5 (skip crypto/rc5)
sctp [default] OPENSSL_NO_SCTP
trace [default] OPENSSL_NO_TRACE
ubsan [default] OPENSSL_NO_UBSAN
unit-test [default] OPENSSL_NO_UNIT_TEST
uplink [no uplink_arch] OPENSSL_NO_UPLINK
weak-ssl-ciphers [default] OPENSSL_NO_WEAK_SSL_CIPHERS
zlib [default]
zlib-dynamic [default]
ssl3 [default] OPENSSL_NO_SSL3
ssl3-method [default] OPENSSL_NO_SSL3_METHOD
Config target attributes:
AR => "ar -X64",
ARFLAGS => "qc",
CC => "cc",
CFLAGS => "-O",
HASHBANGPERL => "/usr/bin/env perl",
RANLIB => "ranlib -X64",
RC => "windres",
asm_arch => "ppc64",
bn_ops => "SIXTY_FOUR_BIT_LONG RC4_CHAR",
build_file => "Makefile",
build_scheme => [ "unified", "unix" ],
cflags => "-q64 -qmaxmem=16384 -qro -qroconst -qthreaded",
cppflags => "-D_THREAD_SAFE",
defines => [ "OPENSSL_BUILDING_OPENSSL" ],
disable => [ ],
dso_scheme => "dlfcn",
enable => [ ],
ex_libs => "-lpthreads",
includes => [ ],
lflags => "-Wl,-bsvr4",
lib_cflags => "",
lib_cppflags => "-DB_ENDIAN",
lib_defines => [ ],
module_cflags => "-qpic",
module_cxxflags => undef,
module_ldflags => "-Wl,-G,-bsymbolic,-bnoentry",
perl_platform => "AIX",
perlasm_scheme => "aix64",
shared_cflag => "-qpic",
shared_defflag => "-Wl,-bE:",
shared_defines => [ ],
shared_extension => "64.so.\$(SHLIB_VERSION_NUMBER)",
shared_fipsflag => "-Wl,-binitfini:_init:_cleanup",
shared_ldflag => "-Wl,-G,-bsymbolic,-bnoentry",
shared_rcflag => "",
shared_target => "aix",
sys_id => "AIX",
thread_defines => [ ],
thread_scheme => "pthreads",
unistd => "<unistd.h>",
Recorded environment:
AR =
BUILDFILE =
CC =
CFLAGS =
CPPFLAGS =
CROSS_COMPILE =
CXX =
CXXFLAGS =
HASHBANGPERL =
LDFLAGS =
LDLIBS =
OPENSSL_LOCAL_CONFIG_DIR =
PERL =
RANLIB =
RC =
RCFLAGS =
WINDRES =
__CNF_CFLAGS =
__CNF_CPPDEFINES =
__CNF_CPPFLAGS =
__CNF_CPPINCLUDES =
__CNF_CXXFLAGS =
__CNF_LDFLAGS =
__CNF_LDLIBS =
Makevars:
AR = ar -X64
ARFLAGS = qc
CC = cc
CFLAGS = -O
CPPDEFINES =
CPPFLAGS =
CPPINCLUDES =
CXXFLAGS =
HASHBANGPERL = /usr/bin/env perl
LDFLAGS = -Wl,-R,/.uvlibs1
LDLIBS =
PERL = perl
RANLIB = ranlib -X64
RC = windres
RCFLAGS =
NOTE: These variables only represent the configuration view. The build file
template may have processed these variables further, please have a look at the
build file for more exact data:
Makefile
build file:
Makefile
build file templates:
Configurations/common0.tmpl
Configurations/unix-Makefile.tmpl
Waiting for your help.
Thanks.
================================
Rocket Software, Inc. and subsidiaries ? 77 Fourth Avenue, Waltham MA 02451 ? Main Office Toll Free Number: +1 855.577.4323
Contact Customer Support: https://my.rocketsoftware.com/RocketCommunity/RCEmailSupport
Unsubscribe from Marketing Messages/Manage Your Subscription Preferences - http://www.rocketsoftware.com/manage-your-email-preferences
Privacy Policy - http://www.rocketsoftware.com/company/legal/privacy-policy
================================
This communication and any attachments may contain confidential information of Rocket Software, Inc. All unauthorized use, disclosure or distribution is prohibited. If you are not the intended recipient, please notify Rocket Software immediately and destroy all copies of this communication. Thank you.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mta.openssl.org/pipermail/openssl-users/attachments/20221103/b45f7ed7/attachment-0001.htm>
More information about the openssl-users
mailing list