Applying ./patches-1.1/010-openssl-deprecated.patch using plaintext: patching file gost_pmeth.c CMake Deprecation Warning at CMakeLists.txt:1 (cmake_minimum_required): Compatibility with CMake < 2.8.12 will be removed from a future version of CMake. Update the VERSION argument value or use a ... suffix to tell CMake that the project does not need compatibility with older versions. -- The C compiler identification is GNU 12.2.0 -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Check for working C compiler: /builder/shared-workdir/build/sdk/staging_dir/toolchain-mips_4kec_gcc-12.2.0_musl/bin/mips-openwrt-linux-musl-gcc - skipped -- Detecting C compile features -- Detecting C compile features - done -- BIG_ENDIAN -- Configuring done -- Generating done CMake Warning: Manually-specified variables were not used by the project: CMAKE_ASM_COMPILER CMAKE_ASM_COMPILER_LAUNCHER CMAKE_CXX_COMPILER CMAKE_CXX_FLAGS_RELEASE CMAKE_EXPORT_NO_PACKAGE_REGISTRY CMAKE_EXPORT_PACKAGE_REGISTRY CMAKE_FIND_PACKAGE_NO_PACKAGE_REGISTRY CMAKE_FIND_PACKAGE_NO_SYSTEM_PACKAGE_REGISTRY CMAKE_FIND_ROOT_PATH_MODE_LIBRARY CMAKE_FIND_USE_PACKAGE_REGISTRY CMAKE_FIND_USE_SYSTEM_PACKAGE_REGISTRY CMAKE_SHARED_LINKER_FLAGS DL_LIBRARY OPENSSL_ENGINES_DIR -- Build files have been written to: /builder/shared-workdir/build/sdk/build_dir/target-mips_4kec_musl/gost_engine-1.1.0.3 ninja: Entering directory `/builder/shared-workdir/build/sdk/build_dir/target-mips_4kec_musl/gost_engine-1.1.0.3' [1/28] Building C object CMakeFiles/gost.dir/gost_ec_keyx.c.o FAILED: CMakeFiles/gost.dir/gost_ec_keyx.c.o /builder/shared-workdir/build/sdk/staging_dir/toolchain-mips_4kec_gcc-12.2.0_musl/bin/mips-openwrt-linux-musl-gcc -Os -pipe -mno-branch-likely -mips32r2 -mtune=4kec -fno-caller-saves -fno-plt -fhonour-copts -msoft-float -mips16 -minterlink-mips16 -ffile-prefix-map=/builder/shared-workdir/build/sdk/build_dir/target-mips_4kec_musl/gost_engine-1.1.0.3=gost_engine-1.1.0.3 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -O2 -Werror -Wall -Wno-unused-parameter -Wno-unused-function -Wno-missing-braces -ggdb -DNDEBUG -fPIC -MD -MT CMakeFiles/gost.dir/gost_ec_keyx.c.o -MF CMakeFiles/gost.dir/gost_ec_keyx.c.o.d -o CMakeFiles/gost.dir/gost_ec_keyx.c.o -c /builder/shared-workdir/build/sdk/build_dir/target-mips_4kec_musl/gost_engine-1.1.0.3/gost_ec_keyx.c /builder/shared-workdir/build/sdk/build_dir/target-mips_4kec_musl/gost_engine-1.1.0.3/gost_ec_keyx.c: In function 'VKO_compute_key': /builder/shared-workdir/build/sdk/build_dir/target-mips_4kec_musl/gost_engine-1.1.0.3/gost_ec_keyx.c:27:5: error: 'EC_KEY_get0_private_key' is deprecated: Since OpenSSL 3.0 [-Werror=deprecated-declarations] 27 | const BIGNUM *key = EC_KEY_get0_private_key(priv_key); | ^~~~~ In file included from /builder/shared-workdir/build/sdk/staging_dir/target-mips_4kec_musl/usr/include/openssl/x509.h:33, from /builder/shared-workdir/build/sdk/build_dir/target-mips_4kec_musl/gost_engine-1.1.0.3/gost_lcl.h:16, from /builder/shared-workdir/build/sdk/build_dir/target-mips_4kec_musl/gost_engine-1.1.0.3/gost_ec_keyx.c:18: /builder/shared-workdir/build/sdk/staging_dir/target-mips_4kec_musl/usr/include/openssl/ec.h:1048:37: note: declared here 1048 | OSSL_DEPRECATEDIN_3_0 const BIGNUM *EC_KEY_get0_private_key(const EC_KEY *key); | ^~~~~~~~~~~~~~~~~~~~~~~ /builder/shared-workdir/build/sdk/build_dir/target-mips_4kec_musl/gost_engine-1.1.0.3/gost_ec_keyx.c:28:5: error: 'EC_KEY_get0_group' is deprecated: Since OpenSSL 3.0 [-Werror=deprecated-declarations] 28 | EC_POINT *pnt = EC_POINT_new(EC_KEY_get0_group(priv_key)); | ^~~~~~~~ /builder/shared-workdir/build/sdk/staging_dir/target-mips_4kec_musl/usr/include/openssl/ec.h:1034:39: note: declared here 1034 | OSSL_DEPRECATEDIN_3_0 const EC_GROUP *EC_KEY_get0_group(const EC_KEY *key); | ^~~~~~~~~~~~~~~~~ /builder/shared-workdir/build/sdk/build_dir/target-mips_4kec_musl/gost_engine-1.1.0.3/gost_ec_keyx.c:61:5: error: 'EC_KEY_get0_group' is deprecated: Since OpenSSL 3.0 [-Werror=deprecated-declarations] 61 | EC_GROUP_get_order(EC_KEY_get0_group(priv_key), order, ctx); | ^~~~~~~~~~~~~~~~~~ /builder/shared-workdir/build/sdk/staging_dir/target-mips_4kec_musl/usr/include/openssl/ec.h:1034:39: note: declared here 1034 | OSSL_DEPRECATEDIN_3_0 const EC_GROUP *EC_KEY_get0_group(const EC_KEY *key); | ^~~~~~~~~~~~~~~~~ /builder/shared-workdir/build/sdk/build_dir/target-mips_4kec_musl/gost_engine-1.1.0.3/gost_ec_keyx.c:64:9: error: 'EC_KEY_get0_group' is deprecated: Since OpenSSL 3.0 [-Werror=deprecated-declarations] 64 | (EC_KEY_get0_group(priv_key), pnt, NULL, pub_key, p, ctx)) { | ^ /builder/shared-workdir/build/sdk/staging_dir/target-mips_4kec_musl/usr/include/openssl/ec.h:1034:39: note: declared here 1034 | OSSL_DEPRECATEDIN_3_0 const EC_GROUP *EC_KEY_get0_group(const EC_KEY *key); | ^~~~~~~~~~~~~~~~~ /builder/shared-workdir/build/sdk/build_dir/target-mips_4kec_musl/gost_engine-1.1.0.3/gost_ec_keyx.c:68:5: error: 'EC_POINT_get_affine_coordinates_GFp' is deprecated: Since OpenSSL 3.0 [-Werror=deprecated-declarations] 68 | EC_POINT_get_affine_coordinates_GFp(EC_KEY_get0_group(priv_key), | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /builder/shared-workdir/build/sdk/staging_dir/target-mips_4kec_musl/usr/include/openssl/ec.h:659:27: note: declared here 659 | OSSL_DEPRECATEDIN_3_0 int EC_POINT_get_affine_coordinates_GFp | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /builder/shared-workdir/build/sdk/build_dir/target-mips_4kec_musl/gost_engine-1.1.0.3/gost_ec_keyx.c:68:5: error: 'EC_KEY_get0_group' is deprecated: Since OpenSSL 3.0 [-Werror=deprecated-declarations] 68 | EC_POINT_get_affine_coordinates_GFp(EC_KEY_get0_group(priv_key), | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /builder/shared-workdir/build/sdk/staging_dir/target-mips_4kec_musl/usr/include/openssl/ec.h:1034:39: note: declared here 1034 | OSSL_DEPRECATEDIN_3_0 const EC_GROUP *EC_KEY_get0_group(const EC_KEY *key); | ^~~~~~~~~~~~~~~~~ /builder/shared-workdir/build/sdk/build_dir/target-mips_4kec_musl/gost_engine-1.1.0.3/gost_ec_keyx.c: In function 'pkey_gost_ec_derive': /builder/shared-workdir/build/sdk/build_dir/target-mips_4kec_musl/gost_engine-1.1.0.3/gost_ec_keyx.c:133:25: error: 'EC_KEY_get0_public_key' is deprecated: Since OpenSSL 3.0 [-Werror=deprecated-declarations] 133 | EC_KEY_get0_public_key(EVP_PKEY_get0(peer_key)), | ^~~~~~~~~~~~~~~~~~~~~~ /builder/shared-workdir/build/sdk/staging_dir/target-mips_4kec_musl/usr/include/openssl/ec.h:1062:39: note: declared here 1062 | OSSL_DEPRECATEDIN_3_0 const EC_POINT *EC_KEY_get0_public_key(const EC_KEY *key); | ^~~~~~~~~~~~~~~~~~~~~~ /builder/shared-workdir/build/sdk/build_dir/target-mips_4kec_musl/gost_engine-1.1.0.3/gost_ec_keyx.c:133:25: error: 'EVP_PKEY_get0' is deprecated: Since OpenSSL 3.0 [-Werror=deprecated-declarations] 133 | EC_KEY_get0_public_key(EVP_PKEY_get0(peer_key)), | ^~~~~~~~~~~~~~~~~~~~~~ In file included from /builder/shared-workdir/build/sdk/build_dir/target-mips_4kec_musl/gost_engine-1.1.0.3/gost_ec_keyx.c:10: /builder/shared-workdir/build/sdk/staging_dir/target-mips_4kec_musl/usr/include/openssl/evp.h:1330:7: note: declared here 1330 | void *EVP_PKEY_get0(const EVP_PKEY *pkey); | ^~~~~~~~~~~~~ /builder/shared-workdir/build/sdk/build_dir/target-mips_4kec_musl/gost_engine-1.1.0.3/gost_ec_keyx.c:134:25: error: 'EVP_PKEY_get0' is deprecated: Since OpenSSL 3.0 [-Werror=deprecated-declarations] 134 | (EC_KEY *)EVP_PKEY_get0(my_key), data->shared_ukm, | ^ /builder/shared-workdir/build/sdk/staging_dir/target-mips_4kec_musl/usr/include/openssl/evp.h:1330:7: note: declared here 1330 | void *EVP_PKEY_get0(const EVP_PKEY *pkey); | ^~~~~~~~~~~~~ /builder/shared-workdir/build/sdk/build_dir/target-mips_4kec_musl/gost_engine-1.1.0.3/gost_ec_keyx.c: In function 'pkey_GOST_ECcp_encrypt': /builder/shared-workdir/build/sdk/build_dir/target-mips_4kec_musl/gost_engine-1.1.0.3/gost_ec_keyx.c:188:13: error: 'EVP_PKEY_assign' is deprecated: Since OpenSSL 3.0 [-Werror=deprecated-declarations] 188 | if (! EVP_PKEY_assign(sec_key, EVP_PKEY_base_id(pubk), EC_KEY_new()) || | ^~ /builder/shared-workdir/build/sdk/staging_dir/target-mips_4kec_musl/usr/include/openssl/evp.h:1328:5: note: declared here 1328 | int EVP_PKEY_assign(EVP_PKEY *pkey, int type, void *key); | ^~~~~~~~~~~~~~~ /builder/shared-workdir/build/sdk/build_dir/target-mips_4kec_musl/gost_engine-1.1.0.3/gost_ec_keyx.c:188:13: error: 'EC_KEY_new' is deprecated: Since OpenSSL 3.0 [-Werror=deprecated-declarations] 188 | if (! EVP_PKEY_assign(sec_key, EVP_PKEY_base_id(pubk), EC_KEY_new()) || | ^~ /builder/shared-workdir/build/sdk/staging_dir/target-mips_4kec_musl/usr/include/openssl/ec.h:968:31: note: declared here 968 | OSSL_DEPRECATEDIN_3_0 EC_KEY *EC_KEY_new(void); | ^~~~~~~~~~ /builder/shared-workdir/build/sdk/build_dir/target-mips_4kec_musl/gost_engine-1.1.0.3/gost_ec_keyx.c:190:17: error: 'EVP_PKEY_get0' is deprecated: Since OpenSSL 3.0 [-Werror=deprecated-declarations] 190 | ! gost_ec_keygen(EVP_PKEY_get0(sec_key))) { | ^ /builder/shared-workdir/build/sdk/staging_dir/target-mips_4kec_musl/usr/include/openssl/evp.h:1330:7: note: declared here 1330 | void *EVP_PKEY_get0(const EVP_PKEY *pkey); | ^~~~~~~~~~~~~ /builder/shared-workdir/build/sdk/build_dir/target-mips_4kec_musl/gost_engine-1.1.0.3/gost_ec_keyx.c:206:30: error: 'EC_KEY_get0_public_key' is deprecated: Since OpenSSL 3.0 [-Werror=deprecated-declarations] 206 | EC_KEY_get0_public_key(EVP_PKEY_get0(pubk)), | ^~~~~~~~~~~~~~~~~~~~~~ /builder/shared-workdir/build/sdk/staging_dir/target-mips_4kec_musl/usr/include/openssl/ec.h:1062:39: note: declared here 1062 | OSSL_DEPRECATEDIN_3_0 const EC_POINT *EC_KEY_get0_public_key(const EC_KEY *key); | ^~~~~~~~~~~~~~~~~~~~~~ /builder/shared-workdir/build/sdk/build_dir/target-mips_4kec_musl/gost_engine-1.1.0.3/gost_ec_keyx.c:206:30: error: 'EVP_PKEY_get0' is deprecated: Since OpenSSL 3.0 [-Werror=deprecated-declarations] 206 | EC_KEY_get0_public_key(EVP_PKEY_get0(pubk)), | ^~~~~~~~~~~~~~~~~~~~~~ /builder/shared-workdir/build/sdk/staging_dir/target-mips_4kec_musl/usr/include/openssl/evp.h:1330:7: note: declared here 1330 | void *EVP_PKEY_get0(const EVP_PKEY *pkey); | ^~~~~~~~~~~~~ /builder/shared-workdir/build/sdk/build_dir/target-mips_4kec_musl/gost_engine-1.1.0.3/gost_ec_keyx.c:207:30: error: 'EVP_PKEY_get0' is deprecated: Since OpenSSL 3.0 [-Werror=deprecated-declarations] 207 | EVP_PKEY_get0(sec_key), ukm, dgst_nid)) { | ^~~~~~~~~~~~~ /builder/shared-workdir/build/sdk/staging_dir/target-mips_4kec_musl/usr/include/openssl/evp.h:1330:7: note: declared here 1330 | void *EVP_PKEY_get0(const EVP_PKEY *pkey); | ^~~~~~~~~~~~~ /builder/shared-workdir/build/sdk/build_dir/target-mips_4kec_musl/gost_engine-1.1.0.3/gost_ec_keyx.c: In function 'pkey_GOST_ECcp_decrypt': /builder/shared-workdir/build/sdk/build_dir/target-mips_4kec_musl/gost_engine-1.1.0.3/gost_ec_keyx.c:327:26: error: 'EC_KEY_get0_public_key' is deprecated: Since OpenSSL 3.0 [-Werror=deprecated-declarations] 327 | EC_KEY_get0_public_key(EVP_PKEY_get0(peerkey)), | ^~~~~~~~~~~~~~~~~~~~~~ /builder/shared-workdir/build/sdk/staging_dir/target-mips_4kec_musl/usr/include/openssl/ec.h:1062:39: note: declared here 1062 | OSSL_DEPRECATEDIN_3_0 const EC_POINT *EC_KEY_get0_public_key(const EC_KEY *key); | ^~~~~~~~~~~~~~~~~~~~~~ /builder/shared-workdir/build/sdk/build_dir/target-mips_4kec_musl/gost_engine-1.1.0.3/gost_ec_keyx.c:327:26: error: 'EVP_PKEY_get0' is deprecated: Since OpenSSL 3.0 [-Werror=deprecated-declarations] 327 | EC_KEY_get0_public_key(EVP_PKEY_get0(peerkey)), | ^~~~~~~~~~~~~~~~~~~~~~ /builder/shared-workdir/build/sdk/staging_dir/target-mips_4kec_musl/usr/include/openssl/evp.h:1330:7: note: declared here 1330 | void *EVP_PKEY_get0(const EVP_PKEY *pkey); | ^~~~~~~~~~~~~ /builder/shared-workdir/build/sdk/build_dir/target-mips_4kec_musl/gost_engine-1.1.0.3/gost_ec_keyx.c:328:26: error: 'EVP_PKEY_get0' is deprecated: Since OpenSSL 3.0 [-Werror=deprecated-declarations] 328 | EVP_PKEY_get0(priv), wrappedKey, dgst_nid)) { | ^~~~~~~~~~~~~ /builder/shared-workdir/build/sdk/staging_dir/target-mips_4kec_musl/usr/include/openssl/evp.h:1330:7: note: declared here 1330 | void *EVP_PKEY_get0(const EVP_PKEY *pkey); | ^~~~~~~~~~~~~ cc1: all warnings being treated as errors ninja: build stopped: subcommand failed. make[3]: *** [Makefile:88: /builder/shared-workdir/build/sdk/build_dir/target-mips_4kec_musl/gost_engine-1.1.0.3/.built] Error 1 time: package/feeds/packages/gost_engine/compile#1.09#0.48#2.59