engine: Fails tests with OpenSSL master (3.0)
$ cmake .. -DCMAKE_C_FLAGS="-I/Users/ur20980/openssl-1.1/include -L/Users/ur20980/openssl-1.1/lib"
-- Found OpenSSL: /opt/local/lib/libcrypto.dylib (found suitable version "1.1.1c", minimum required is "1.1.1")
-- Looking for clock_gettime
-- Looking for clock_gettime - found
-- Looking for clock_gettime in rt
-- Looking for clock_gettime in rt - not found
-- LITTLE_ENDIAN
-- Found PkgConfig: /opt/local/bin/pkg-config (found version "0.29.2")
-- Configuring done
-- Generating done
-- Build files have been written to: /Users/ur20980/src/grasshopper-engine/build
$ make -j4 all
Scanning dependencies of target test_tlstree
Scanning dependencies of target gost_core
[ 1%] Building C object CMakeFiles/test_tlstree.dir/test_tlstree.c.o
[ 3%] Building C object CMakeFiles/gost_core.dir/gosthash2012.c.o
[ 7%] Building C object CMakeFiles/gost_core.dir/gost89.c.o
[ 7%] Building C object CMakeFiles/gost_core.dir/gosthash.c.o
[ 9%] Linking C executable bin/test_tlstree
[ 11%] Building C object CMakeFiles/gost_core.dir/gost_grasshopper_core.c.o
[ 11%] Built target test_tlstree
[ 12%] Building C object CMakeFiles/gost_core.dir/gost_grasshopper_defines.c.o
[ 14%] Building C object CMakeFiles/gost_core.dir/gost_grasshopper_galois_precompiled.c.o
[ 16%] Building C object CMakeFiles/gost_core.dir/gost_grasshopper_precompiled.c.o
[ 18%] Building C object CMakeFiles/gost_core.dir/gost_grasshopper_cipher.c.o
[ 20%] Building C object CMakeFiles/gost_core.dir/gost_ec_keyx.c.o
[ 22%] Building C object CMakeFiles/gost_core.dir/gost_ec_sign.c.o
[ 24%] Building C object CMakeFiles/gost_core.dir/gost_omac.c.o
[ 25%] Building C object CMakeFiles/gost_core.dir/gost_omac_acpkm.c.o
[ 27%] Linking C static library libgost_core.a
[ 27%] Built target gost_core
Scanning dependencies of target gost12sum
Scanning dependencies of target gostsum
Scanning dependencies of target gost_engine
[ 31%] Building C object CMakeFiles/gost12sum.dir/gost12sum.c.o
[ 31%] Building C object CMakeFiles/gostsum.dir/gostsum.c.o
[ 35%] Building C object CMakeFiles/gost_engine.dir/gost_asn1.c.o
[ 35%] Building C object CMakeFiles/gost_engine.dir/e_gost_err.c.o
[ 37%] Building C object CMakeFiles/gost_engine.dir/gost_crypt.c.o
[ 38%] Linking C executable bin/gostsum
[ 40%] Linking C executable bin/gost12sum
[ 42%] Building C object CMakeFiles/gost_engine.dir/gost_ctl.c.o
[ 42%] Built target gostsum
[ 44%] Building C object CMakeFiles/gost_engine.dir/gost_eng.c.o
[ 44%] Built target gost12sum
[ 46%] Building C object CMakeFiles/gost_engine.dir/gost_keywrap.c.o
[ 48%] Building C object CMakeFiles/gost_engine.dir/gost_params.c.o
[ 50%] Building C object CMakeFiles/gost_engine.dir/gost_keyexpimp.c.o
[ 51%] Building C object CMakeFiles/gost_engine.dir/gost_ameth.c.o
/Users/ur20980/src/grasshopper-engine/gost_keyexpimp.c:47:12: error: 'EVP_MD_CTX_ctrl' is
deprecated [-Werror,-Wdeprecated-declarations]
|| EVP_MD_CTX_ctrl(mac, EVP_MD_CTRL_SET_KEY, 32, mac_key) <= 0
^
/Users/ur20980/openssl-1.1/include/openssl/evp.h:553:1: note: 'EVP_MD_CTX_ctrl' has been
explicitly marked deprecated here
DEPRECATEDIN_3(int EVP_MD_CTX_ctrl(EVP_MD_CTX *ctx, int cmd, int p1, void *p2))
^
/Users/ur20980/openssl-1.1/include/openssl/opensslconf.h:170:35: note: expanded from macro
'DEPRECATEDIN_3'
# define DEPRECATEDIN_3(f) DECLARE_DEPRECATED(f)
^
/Users/ur20980/openssl-1.1/include/openssl/opensslconf.h:117:56: note: expanded from macro
'DECLARE_DEPRECATED'
# define DECLARE_DEPRECATED(f) f __attribute__ ((deprecated));
^
/Users/ur20980/src/grasshopper-engine/gost_keyexpimp.c:48:12: error: 'EVP_MD_CTX_ctrl' is
deprecated [-Werror,-Wdeprecated-declarations]
|| EVP_MD_CTX_ctrl(mac, EVP_MD_CTRL_MAC_LEN, mac_len, NULL) <= 0
^
/Users/ur20980/openssl-1.1/include/openssl/evp.h:553:1: note: 'EVP_MD_CTX_ctrl' has been
explicitly marked deprecated here
DEPRECATEDIN_3(int EVP_MD_CTX_ctrl(EVP_MD_CTX *ctx, int cmd, int p1, void *p2))
^
/Users/ur20980/openssl-1.1/include/openssl/opensslconf.h:170:35: note: expanded from macro
'DEPRECATEDIN_3'
# define DEPRECATEDIN_3(f) DECLARE_DEPRECATED(f)
^
/Users/ur20980/openssl-1.1/include/openssl/opensslconf.h:117:56: note: expanded from macro
'DECLARE_DEPRECATED'
# define DECLARE_DEPRECATED(f) f __attribute__ ((deprecated));
^
/Users/ur20980/src/grasshopper-engine/gost_keyexpimp.c:140:12: error: 'EVP_MD_CTX_ctrl' is
deprecated [-Werror,-Wdeprecated-declarations]
|| EVP_MD_CTX_ctrl(mac, EVP_MD_CTRL_SET_KEY, 32, mac_key) <= 0
^
/Users/ur20980/openssl-1.1/include/openssl/evp.h:553:1: note: 'EVP_MD_CTX_ctrl' has been
explicitly marked deprecated here
DEPRECATEDIN_3(int EVP_MD_CTX_ctrl(EVP_MD_CTX *ctx, int cmd, int p1, void *p2))
^
/Users/ur20980/openssl-1.1/include/openssl/opensslconf.h:170:35: note: expanded from macro
'DEPRECATEDIN_3'
# define DEPRECATEDIN_3(f) DECLARE_DEPRECATED(f)
^
/Users/ur20980/openssl-1.1/include/openssl/opensslconf.h:117:56: note: expanded from macro
'DECLARE_DEPRECATED'
# define DECLARE_DEPRECATED(f) f __attribute__ ((deprecated));
^
/Users/ur20980/src/grasshopper-engine/gost_keyexpimp.c:141:12: error: 'EVP_MD_CTX_ctrl' is
deprecated [-Werror,-Wdeprecated-declarations]
|| EVP_MD_CTX_ctrl(mac, EVP_MD_CTRL_MAC_LEN, mac_len, NULL) <= 0
^
/Users/ur20980/openssl-1.1/include/openssl/evp.h:553:1: note: 'EVP_MD_CTX_ctrl' has been
explicitly marked deprecated here
DEPRECATEDIN_3(int EVP_MD_CTX_ctrl(EVP_MD_CTX *ctx, int cmd, int p1, void *p2))
^
/Users/ur20980/openssl-1.1/include/openssl/opensslconf.h:170:35: note: expanded from macro
'DEPRECATEDIN_3'
# define DEPRECATEDIN_3(f) DECLARE_DEPRECATED(f)
^
/Users/ur20980/openssl-1.1/include/openssl/opensslconf.h:117:56: note: expanded from macro
'DECLARE_DEPRECATED'
# define DECLARE_DEPRECATED(f) f __attribute__ ((deprecated));
^
4 errors generated.
make[2]: *** [CMakeFiles/gost_engine.dir/gost_keyexpimp.c.o] Error 1
make[2]: *** Waiting for unfinished jobs....
[ 53%] Building C object CMakeFiles/gost_engine.dir/gost_md.c.o
[ 55%] Building C object CMakeFiles/gost_engine.dir/gost_md2012.c.o
make[1]: *** [CMakeFiles/gost_engine.dir/all] Error 2
make: *** [all] Error 2
$
Current master fails to compile under OpenSSL_1_1_1c
as well.
Branch openssl_1_1_0_release2
compiles with OpenSSL_1_1_1c
fine.
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Comments: 37 (37 by maintainers)
Commits related to this issue
- test/run_tests: Always set paths when OPENSSL_ROOT_DIR is defined When the environment variable OPENSSL_ROOT_DIR is defined, we need to ensure that PATH and LD_LIBRARY_PATH are properly affected. Th... — committed to levitte/engine by levitte 5 years ago
- test/run_tests: extend support for more operating systems Not all systems recognise LD_LIBRARY_PATH, and we therefore need to set other environment variables. Currently set: - LD_LIBRARY_PATH (Linu... — committed to levitte/engine by levitte 5 years ago
However, the
.libs
issue is real. I can have a quick look tomorrow…Regarding
$PATH
, the driver scripttest/run_tests
sets that up.