failed to compile on ubuntu 22.04
xianglingzhang opened this issue · 1 comments
xianglingzhang commented
I try to compile fizz on ubuntu 22.04, but I run into this error:
zhang@zhang-virtual-machine:~/Downloads/quantumsafe/fizz/build$ cmake ../fizz/
-- The CXX compiler identification is GNU 11.4.0
-- The C compiler identification is GNU 11.4.0
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Found Boost: /usr/lib/x86_64-linux-gnu/cmake/Boost-1.74.0/BoostConfig.cmake (found suitable version "1.74.0", minimum required is "1.51.0") found components: context filesystem program_options regex system thread
-- Found folly: /usr/local
-- Found OpenSSL: /usr/lib/x86_64-linux-gnu/libcrypto.so (found version "3.0.2")
-- Found Glog: /usr/lib/x86_64-linux-gnu/libglog.so
-- Found gflags from package config /usr/lib/x86_64-linux-gnu/cmake/gflags/gflags-config.cmake
-- Found gflags as a dependency of glog::glog, include=/usr/include, libs=gflags_shared
CMake Warning (dev) at /usr/share/cmake-3.22/Modules/FindPackageHandleStandardArgs.cmake:438 (message):
The package name passed to `find_package_handle_standard_args` (LIBUNWIND)
does not match the name of the calling package (LibUnwind). This can lead
to problems in calling code that expects `find_package` result variables
(e.g., `_FOUND`) to follow a certain pattern.
Call Stack (most recent call first):
/home/zhang/Downloads/quantumsafe/fizz/build/fbcode_builder/CMake/FindLibUnwind.cmake:22 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
/home/zhang/Downloads/quantumsafe/fizz/build/fbcode_builder/CMake/FindGlog.cmake:44 (find_package)
CMakeLists.txt:53 (find_package)
This warning is for project developers. Use -Wno-dev to suppress it.
-- Found LIBUNWIND: /usr/lib/x86_64-linux-gnu/libunwind.so
-- Found LibUnwind as a dependency of glog::glog, include=/usr/include/x86_64-linux-gnu, libs=/usr/lib/x86_64-linux-gnu/libunwind.so
-- Found DoubleConversion: /usr/lib/x86_64-linux-gnu/libdouble-conversion.so
-- Found Threads: TRUE
CMake Warning (dev) at /usr/share/cmake-3.22/Modules/FindPackageHandleStandardArgs.cmake:438 (message):
The package name passed to `find_package_handle_standard_args` (ZSTD) does
not match the name of the calling package (Zstd). This can lead to
problems in calling code that expects `find_package` result variables
(e.g., `_FOUND`) to follow a certain pattern.
Call Stack (most recent call first):
/home/zhang/Downloads/quantumsafe/fizz/build/fbcode_builder/CMake/FindZstd.cmake:32 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
CMakeLists.txt:56 (find_package)
This warning is for project developers. Use -Wno-dev to suppress it.
-- Found ZSTD: /usr/lib/x86_64-linux-gnu/libzstd.so
-- Found Zstd: /usr/lib/x86_64-linux-gnu/libzstd.so
CMake Warning (dev) at /usr/share/cmake-3.22/Modules/FindPackageHandleStandardArgs.cmake:438 (message):
The package name passed to `find_package_handle_standard_args` (librt) does
not match the name of the calling package (Librt). This can lead to
problems in calling code that expects `find_package` result variables
(e.g., `_FOUND`) to follow a certain pattern.
Call Stack (most recent call first):
cmake/FindLibrt.cmake:12 (find_package_handle_standard_args)
CMakeLists.txt:58 (find_package)
This warning is for project developers. Use -Wno-dev to suppress it.
-- Found librt: /usr/lib/x86_64-linux-gnu/librt.a
-- Performing Test HAVE_CXX_ATOMICS_WITHOUT_LIB
-- Performing Test HAVE_CXX_ATOMICS_WITHOUT_LIB - Success
-- Found Sodium: /usr/lib/x86_64-linux-gnu/libsodium.so
-- Found gflags from package config
-- Found ZLIB: /usr/lib/x86_64-linux-gnu/libz.so (found version "1.2.11")
CMake Warning (dev) at /usr/share/cmake-3.22/Modules/FindPackageHandleStandardArgs.cmake:438 (message):
The package name passed to `find_package_handle_standard_args` (libevent)
does not match the name of the calling package (Libevent). This can lead
to problems in calling code that expects `find_package` result variables
(e.g., `_FOUND`) to follow a certain pattern.
Call Stack (most recent call first):
cmake/FindLibevent.cmake:16 (find_package_handle_standard_args)
CMakeLists.txt:96 (find_package)
This warning is for project developers. Use -Wno-dev to suppress it.
-- Found libevent: /usr/lib/x86_64-linux-gnu/libevent.so
CMake Warning (dev) at /usr/share/cmake-3.22/Modules/FindPackageHandleStandardArgs.cmake:438 (message):
The package name passed to `find_package_handle_standard_args` (LIBGMOCK)
does not match the name of the calling package (GMock). This can lead to
problems in calling code that expects `find_package` result variables
(e.g., `_FOUND`) to follow a certain pattern.
Call Stack (most recent call first):
cmake/FindGMock.cmake:38 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
CMakeLists.txt:358 (find_package)
This warning is for project developers. Use -Wno-dev to suppress it.
-- Found LIBGMOCK: /usr/lib/x86_64-linux-gnu/libgmock_main.a
-- Found GTest: /usr/lib/x86_64-linux-gnu/cmake/GTest/GTestConfig.cmake (found suitable version "1.11.0", minimum required is "1.8.0")
-- Configuring done
-- Generating done
-- Build files have been written to: /home/zhang/Downloads/quantumsafe/fizz/build
zhang@zhang-virtual-machine:~/Downloads/quantumsafe/fizz/build$ make
Consolidate compiler generated dependencies of target fizz
[ 0%] Building CXX object CMakeFiles/fizz.dir/compression/CertDecompressionManager.cpp.o
[ 0%] Building CXX object CMakeFiles/fizz.dir/compression/ZlibCertificateCompressor.cpp.o
[ 1%] Building CXX object CMakeFiles/fizz.dir/compression/ZlibCertificateDecompressor.cpp.o
[ 1%] Building CXX object CMakeFiles/fizz.dir/compression/ZstdCertificateCompressor.cpp.o
[ 1%] Building CXX object CMakeFiles/fizz.dir/compression/ZstdCertificateDecompressor.cpp.o
[ 2%] Building CXX object CMakeFiles/fizz.dir/crypto/Utils.cpp.o
[ 2%] Building CXX object CMakeFiles/fizz.dir/crypto/exchange/HybridKeyExchange.cpp.o
[ 2%] Building CXX object CMakeFiles/fizz.dir/crypto/exchange/X25519.cpp.o
[ 3%] Building CXX object CMakeFiles/fizz.dir/backend/openssl/crypto/aead/OpenSSLEVPCipher.cpp.o
[ 3%] Building CXX object CMakeFiles/fizz.dir/crypto/aead/IOBufUtil.cpp.o
[ 3%] Building CXX object CMakeFiles/fizz.dir/crypto/aead/AEGISCipher.cpp.o
[ 4%] Building CXX object CMakeFiles/fizz.dir/backend/openssl/crypto/signature/Signature.cpp.o
[ 4%] Building CXX object CMakeFiles/fizz.dir/crypto/Hkdf.cpp.o
[ 4%] Building CXX object CMakeFiles/fizz.dir/crypto/KeyDerivation.cpp.o
[ 5%] Building CXX object CMakeFiles/fizz.dir/backend/openssl/crypto/Sha256.cpp.o
[ 5%] Building CXX object CMakeFiles/fizz.dir/backend/openssl/crypto/Sha384.cpp.o
[ 5%] Building CXX object CMakeFiles/fizz.dir/crypto/hpke/Context.cpp.o
[ 6%] Building CXX object CMakeFiles/fizz.dir/crypto/hpke/DHKEM.cpp.o
[ 6%] Building CXX object CMakeFiles/fizz.dir/crypto/hpke/Hkdf.cpp.o
[ 6%] Building CXX object CMakeFiles/fizz.dir/crypto/hpke/Hpke.cpp.o
[ 7%] Building CXX object CMakeFiles/fizz.dir/crypto/hpke/Utils.cpp.o
[ 7%] Building CXX object CMakeFiles/fizz.dir/backend/openssl/crypto/OpenSSLKeyUtils.cpp.o
/home/zhang/Downloads/quantumsafe/fizz/fizz/backend/openssl/crypto/OpenSSLKeyUtils.cpp: In function ‘void fizz::openssl::detail::validateECKey(const EvpPkeyUniquePtr&, int)’:
/home/zhang/Downloads/quantumsafe/fizz/fizz/backend/openssl/crypto/OpenSSLKeyUtils.cpp:24:56: warning: ‘ec_key_st* EVP_PKEY_get1_EC_KEY(EVP_PKEY*)’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
24 | folly::ssl::EcKeyUniquePtr ecKey(EVP_PKEY_get1_EC_KEY(key.get()));
| ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~
In file included from /usr/local/include/folly/portability/OpenSSL.h:38,
from /usr/local/include/folly/ssl/OpenSSLPtrTypes.h:22,
from /home/zhang/Downloads/quantumsafe/fizz/fizz/backend/openssl/crypto/OpenSSLKeyUtils.h:14,
from /home/zhang/Downloads/quantumsafe/fizz/fizz/backend/openssl/crypto/OpenSSLKeyUtils.cpp:9:
/usr/local/include/openssl/evp.h:1384:19: note: declared here
1384 | struct ec_key_st *EVP_PKEY_get1_EC_KEY(EVP_PKEY *pkey);
| ^~~~~~~~~~~~~~~~~~~~
/home/zhang/Downloads/quantumsafe/fizz/fizz/backend/openssl/crypto/OpenSSLKeyUtils.cpp:28:23: warning: ‘int EC_KEY_check_key(const EC_KEY*)’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
28 | if (EC_KEY_check_key(ecKey.get()) != 1) {
| ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~
In file included from /usr/local/include/openssl/x509.h:33,
from /usr/local/include/openssl/ssl.h:32,
from /usr/local/include/folly/portability/OpenSSL.h:43,
from /usr/local/include/folly/ssl/OpenSSLPtrTypes.h:22,
from /home/zhang/Downloads/quantumsafe/fizz/fizz/backend/openssl/crypto/OpenSSLKeyUtils.h:14,
from /home/zhang/Downloads/quantumsafe/fizz/fizz/backend/openssl/crypto/OpenSSLKeyUtils.cpp:9:
/usr/local/include/openssl/ec.h:1126:27: note: declared here
1126 | OSSL_DEPRECATEDIN_3_0 int EC_KEY_check_key(const EC_KEY *key);
| ^~~~~~~~~~~~~~~~
/home/zhang/Downloads/quantumsafe/fizz/fizz/backend/openssl/crypto/OpenSSLKeyUtils.cpp:35:36: warning: ‘const EC_GROUP* EC_KEY_get0_group(const EC_KEY*)’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
35 | auto keyGroup = EC_KEY_get0_group(ecKey.get());
| ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~
In file included from /usr/local/include/openssl/x509.h:33,
from /usr/local/include/openssl/ssl.h:32,
from /usr/local/include/folly/portability/OpenSSL.h:43,
from /usr/local/include/folly/ssl/OpenSSLPtrTypes.h:22,
from /home/zhang/Downloads/quantumsafe/fizz/fizz/backend/openssl/crypto/OpenSSLKeyUtils.h:14,
from /home/zhang/Downloads/quantumsafe/fizz/fizz/backend/openssl/crypto/OpenSSLKeyUtils.cpp:9:
/usr/local/include/openssl/ec.h:1053:39: note: declared here
1053 | OSSL_DEPRECATEDIN_3_0 const EC_GROUP *EC_KEY_get0_group(const EC_KEY *key);
| ^~~~~~~~~~~~~~~~~
/home/zhang/Downloads/quantumsafe/fizz/fizz/backend/openssl/crypto/OpenSSLKeyUtils.cpp: In function ‘folly::ssl::EvpPkeyUniquePtr fizz::openssl::detail::generateECKeyPair(int)’:
/home/zhang/Downloads/quantumsafe/fizz/fizz/backend/openssl/crypto/OpenSSLKeyUtils.cpp:78:65: warning: ‘EC_KEY* EC_KEY_new_by_curve_name(int)’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
78 | folly::ssl::EcKeyUniquePtr ecParamKey(EC_KEY_new_by_curve_name(curveNid));
| ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~
In file included from /usr/local/include/openssl/x509.h:33,
from /usr/local/include/openssl/ssl.h:32,
from /usr/local/include/folly/portability/OpenSSL.h:43,
from /usr/local/include/folly/ssl/OpenSSLPtrTypes.h:22,
from /home/zhang/Downloads/quantumsafe/fizz/fizz/backend/openssl/crypto/OpenSSLKeyUtils.h:14,
from /home/zhang/Downloads/quantumsafe/fizz/fizz/backend/openssl/crypto/OpenSSLKeyUtils.cpp:9:
/usr/local/include/openssl/ec.h:1017:31: note: declared here
1017 | OSSL_DEPRECATEDIN_3_0 EC_KEY *EC_KEY_new_by_curve_name(int nid);
| ^~~~~~~~~~~~~~~~~~~~~~~~
/home/zhang/Downloads/quantumsafe/fizz/fizz/backend/openssl/crypto/OpenSSLKeyUtils.cpp:83:27: warning: ‘int EVP_PKEY_set1_EC_KEY(EVP_PKEY*, ec_key_st*)’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
83 | if (EVP_PKEY_set1_EC_KEY(params.get(), ecParamKey.get()) != 1) {
| ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/local/include/folly/portability/OpenSSL.h:38,
from /usr/local/include/folly/ssl/OpenSSLPtrTypes.h:22,
from /home/zhang/Downloads/quantumsafe/fizz/fizz/backend/openssl/crypto/OpenSSLKeyUtils.h:14,
from /home/zhang/Downloads/quantumsafe/fizz/fizz/backend/openssl/crypto/OpenSSLKeyUtils.cpp:9:
/usr/local/include/openssl/evp.h:1380:5: note: declared here
1380 | int EVP_PKEY_set1_EC_KEY(EVP_PKEY *pkey, struct ec_key_st *key);
| ^~~~~~~~~~~~~~~~~~~~
/home/zhang/Downloads/quantumsafe/fizz/fizz/backend/openssl/crypto/OpenSSLKeyUtils.cpp:98:56: warning: ‘ec_key_st* EVP_PKEY_get1_EC_KEY(EVP_PKEY*)’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
98 | folly::ssl::EcKeyUniquePtr ecKey(EVP_PKEY_get1_EC_KEY(evpKey.get()));
| ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~
In file included from /usr/local/include/folly/portability/OpenSSL.h:38,
from /usr/local/include/folly/ssl/OpenSSLPtrTypes.h:22,
from /home/zhang/Downloads/quantumsafe/fizz/fizz/backend/openssl/crypto/OpenSSLKeyUtils.h:14,
from /home/zhang/Downloads/quantumsafe/fizz/fizz/backend/openssl/crypto/OpenSSLKeyUtils.cpp:9:
/usr/local/include/openssl/evp.h:1384:19: note: declared here
1384 | struct ec_key_st *EVP_PKEY_get1_EC_KEY(EVP_PKEY *pkey);
| ^~~~~~~~~~~~~~~~~~~~
/home/zhang/Downloads/quantumsafe/fizz/fizz/backend/openssl/crypto/OpenSSLKeyUtils.cpp: In function ‘folly::ssl::EvpPkeyUniquePtr fizz::openssl::detail::decodeECPublicKey(folly::ByteRange, int)’:
/home/zhang/Downloads/quantumsafe/fizz/fizz/backend/openssl/crypto/OpenSSLKeyUtils.cpp:108:62: warning: ‘EC_KEY* EC_KEY_new_by_curve_name(int)’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
108 | folly::ssl::EcKeyUniquePtr peerKey(EC_KEY_new_by_curve_name(curveNid));
| ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~
In file included from /usr/local/include/openssl/x509.h:33,
from /usr/local/include/openssl/ssl.h:32,
from /usr/local/include/folly/portability/OpenSSL.h:43,
from /usr/local/include/folly/ssl/OpenSSLPtrTypes.h:22,
from /home/zhang/Downloads/quantumsafe/fizz/fizz/backend/openssl/crypto/OpenSSLKeyUtils.h:14,
from /home/zhang/Downloads/quantumsafe/fizz/fizz/backend/openssl/crypto/OpenSSLKeyUtils.cpp:9:
/usr/local/include/openssl/ec.h:1017:31: note: declared here
1017 | OSSL_DEPRECATEDIN_3_0 EC_KEY *EC_KEY_new_by_curve_name(int nid);
| ^~~~~~~~~~~~~~~~~~~~~~~~
/home/zhang/Downloads/quantumsafe/fizz/fizz/backend/openssl/crypto/OpenSSLKeyUtils.cpp:123:29: warning: ‘int EC_KEY_set_public_key(EC_KEY*, const EC_POINT*)’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
123 | if (!EC_KEY_set_public_key(peerKey.get(), point.get())) {
| ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/local/include/openssl/x509.h:33,
from /usr/local/include/openssl/ssl.h:32,
from /usr/local/include/folly/portability/OpenSSL.h:43,
from /usr/local/include/folly/ssl/OpenSSLPtrTypes.h:22,
from /home/zhang/Downloads/quantumsafe/fizz/fizz/backend/openssl/crypto/OpenSSLKeyUtils.h:14,
from /home/zhang/Downloads/quantumsafe/fizz/fizz/backend/openssl/crypto/OpenSSLKeyUtils.cpp:9:
/usr/local/include/openssl/ec.h:1089:27: note: declared here
1089 | OSSL_DEPRECATEDIN_3_0 int EC_KEY_set_public_key(EC_KEY *key, const EC_POINT *pub);
| ^~~~~~~~~~~~~~~~~~~~~
/home/zhang/Downloads/quantumsafe/fizz/fizz/backend/openssl/crypto/OpenSSLKeyUtils.cpp: In function ‘std::unique_ptr<folly::IOBuf> fizz::openssl::detail::encodeECPublicKey(const EvpPkeyUniquePtr&)’:
/home/zhang/Downloads/quantumsafe/fizz/fizz/backend/openssl/crypto/OpenSSLKeyUtils.cpp:135:56: warning: ‘ec_key_st* EVP_PKEY_get1_EC_KEY(EVP_PKEY*)’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
135 | folly::ssl::EcKeyUniquePtr ecKey(EVP_PKEY_get1_EC_KEY(key.get()));
| ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~
In file included from /usr/local/include/folly/portability/OpenSSL.h:38,
from /usr/local/include/folly/ssl/OpenSSLPtrTypes.h:22,
from /home/zhang/Downloads/quantumsafe/fizz/fizz/backend/openssl/crypto/OpenSSLKeyUtils.h:14,
from /home/zhang/Downloads/quantumsafe/fizz/fizz/backend/openssl/crypto/OpenSSLKeyUtils.cpp:9:
/usr/local/include/openssl/evp.h:1384:19: note: declared here
1384 | struct ec_key_st *EVP_PKEY_get1_EC_KEY(EVP_PKEY *pkey);
| ^~~~~~~~~~~~~~~~~~~~
/home/zhang/Downloads/quantumsafe/fizz/fizz/backend/openssl/crypto/OpenSSLKeyUtils.cpp: In function ‘std::unique_ptr<folly::IOBuf> fizz::openssl::detail::encodeECPublicKey(const EcKeyUniquePtr&)’:
/home/zhang/Downloads/quantumsafe/fizz/fizz/backend/openssl/crypto/OpenSSLKeyUtils.cpp:144:38: warning: ‘const EC_POINT* EC_KEY_get0_public_key(const EC_KEY*)’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
144 | auto point = EC_KEY_get0_public_key(ecKey.get());
| ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~
In file included from /usr/local/include/openssl/x509.h:33,
from /usr/local/include/openssl/ssl.h:32,
from /usr/local/include/folly/portability/OpenSSL.h:43,
from /usr/local/include/folly/ssl/OpenSSLPtrTypes.h:22,
from /home/zhang/Downloads/quantumsafe/fizz/fizz/backend/openssl/crypto/OpenSSLKeyUtils.h:14,
from /home/zhang/Downloads/quantumsafe/fizz/fizz/backend/openssl/crypto/OpenSSLKeyUtils.cpp:9:
/usr/local/include/openssl/ec.h:1081:39: note: declared here
1081 | OSSL_DEPRECATEDIN_3_0 const EC_POINT *EC_KEY_get0_public_key(const EC_KEY *key);
| ^~~~~~~~~~~~~~~~~~~~~~
/home/zhang/Downloads/quantumsafe/fizz/fizz/backend/openssl/crypto/OpenSSLKeyUtils.cpp:145:33: warning: ‘const EC_GROUP* EC_KEY_get0_group(const EC_KEY*)’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
145 | auto group = EC_KEY_get0_group(ecKey.get());
| ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~
In file included from /usr/local/include/openssl/x509.h:33,
from /usr/local/include/openssl/ssl.h:32,
from /usr/local/include/folly/portability/OpenSSL.h:43,
from /usr/local/include/folly/ssl/OpenSSLPtrTypes.h:22,
from /home/zhang/Downloads/quantumsafe/fizz/fizz/backend/openssl/crypto/OpenSSLKeyUtils.h:14,
from /home/zhang/Downloads/quantumsafe/fizz/fizz/backend/openssl/crypto/OpenSSLKeyUtils.cpp:9:
/usr/local/include/openssl/ec.h:1053:39: note: declared here
1053 | OSSL_DEPRECATEDIN_3_0 const EC_GROUP *EC_KEY_get0_group(const EC_KEY *key);
| ^~~~~~~~~~~~~~~~~
[ 7%] Building CXX object CMakeFiles/fizz.dir/record/Types.cpp.o
[ 8%] Building CXX object CMakeFiles/fizz.dir/record/RecordLayer.cpp.o
[ 8%] Building CXX object CMakeFiles/fizz.dir/record/EncryptedRecordLayer.cpp.o
[ 8%] Building CXX object CMakeFiles/fizz.dir/record/PlaintextRecordLayer.cpp.o
[ 9%] Building CXX object CMakeFiles/fizz.dir/record/BufAndPaddingPolicy.cpp.o
[ 9%] Building CXX object CMakeFiles/fizz.dir/server/AeadTokenCipher.cpp.o
[ 9%] Building CXX object CMakeFiles/fizz.dir/server/AeadCookieCipher.cpp.o
[ 10%] Building CXX object CMakeFiles/fizz.dir/server/FizzServerContext.cpp.o
[ 10%] Building CXX object CMakeFiles/fizz.dir/server/ServerProtocol.cpp.o
[ 10%] Building CXX object CMakeFiles/fizz.dir/server/CertManager.cpp.o
[ 11%] Building CXX object CMakeFiles/fizz.dir/server/State.cpp.o
[ 11%] Building CXX object CMakeFiles/fizz.dir/server/FizzServer.cpp.o
[ 11%] Building CXX object CMakeFiles/fizz.dir/server/TicketCodec.cpp.o
[ 12%] Building CXX object CMakeFiles/fizz.dir/server/CookieCipher.cpp.o
[ 12%] Building CXX object CMakeFiles/fizz.dir/server/ReplayCache.cpp.o
[ 12%] Building CXX object CMakeFiles/fizz.dir/server/SlidingBloomReplayCache.cpp.o
[ 13%] Building CXX object CMakeFiles/fizz.dir/protocol/AsyncFizzBase.cpp.o
[ 13%] Building CXX object CMakeFiles/fizz.dir/protocol/Types.cpp.o
[ 14%] Building CXX object CMakeFiles/fizz.dir/protocol/Exporter.cpp.o
[ 14%] Building CXX object CMakeFiles/fizz.dir/protocol/DefaultCertificateVerifier.cpp.o
[ 14%] Building CXX object CMakeFiles/fizz.dir/protocol/Events.cpp.o
[ 15%] Building CXX object CMakeFiles/fizz.dir/protocol/KeyScheduler.cpp.o
[ 15%] Building CXX object CMakeFiles/fizz.dir/protocol/Certificate.cpp.o
[ 15%] Building CXX object CMakeFiles/fizz.dir/backend/openssl/certificate/CertUtils.cpp.o
/home/zhang/Downloads/quantumsafe/fizz/fizz/backend/openssl/certificate/CertUtils.cpp: In function ‘int {anonymous}::getCurveName(EVP_PKEY*)’:
/home/zhang/Downloads/quantumsafe/fizz/fizz/backend/openssl/certificate/CertUtils.cpp:18:36: warning: ‘const ec_key_st* EVP_PKEY_get0_EC_KEY(const EVP_PKEY*)’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
18 | auto ecKey = EVP_PKEY_get0_EC_KEY(key);
| ~~~~~~~~~~~~~~~~~~~~^~~~~
In file included from /usr/local/include/folly/portability/OpenSSL.h:38,
from /usr/local/include/folly/ssl/OpenSSLPtrTypes.h:22,
from /home/zhang/Downloads/quantumsafe/fizz/fizz/backend/openssl/crypto/signature/Signature.h:14,
from /home/zhang/Downloads/quantumsafe/fizz/fizz/backend/openssl/certificate/CertUtils.h:11,
from /home/zhang/Downloads/quantumsafe/fizz/fizz/backend/openssl/certificate/CertUtils.cpp:9:
/usr/local/include/openssl/evp.h:1382:25: note: declared here
1382 | const struct ec_key_st *EVP_PKEY_get0_EC_KEY(const EVP_PKEY *pkey);
| ^~~~~~~~~~~~~~~~~~~~
/home/zhang/Downloads/quantumsafe/fizz/fizz/backend/openssl/certificate/CertUtils.cpp:20:53: warning: ‘const EC_GROUP* EC_KEY_get0_group(const EC_KEY*)’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
20 | return EC_GROUP_get_curve_name(EC_KEY_get0_group(ecKey));
| ~~~~~~~~~~~~~~~~~^~~~~~~
In file included from /usr/local/include/openssl/x509.h:33,
from /usr/local/include/openssl/ssl.h:32,
from /usr/local/include/folly/portability/OpenSSL.h:43,
from /usr/local/include/folly/ssl/OpenSSLPtrTypes.h:22,
from /home/zhang/Downloads/quantumsafe/fizz/fizz/backend/openssl/crypto/signature/Signature.h:14,
from /home/zhang/Downloads/quantumsafe/fizz/fizz/backend/openssl/certificate/CertUtils.h:11,
from /home/zhang/Downloads/quantumsafe/fizz/fizz/backend/openssl/certificate/CertUtils.cpp:9:
/usr/local/include/openssl/ec.h:1053:39: note: declared here
1053 | OSSL_DEPRECATEDIN_3_0 const EC_GROUP *EC_KEY_get0_group(const EC_KEY *key);
| ^~~~~~~~~~~~~~~~~
[ 16%] Building CXX object CMakeFiles/fizz.dir/backend/openssl/OpenSSLFactory.cpp.o
[ 16%] Building CXX object CMakeFiles/fizz.dir/protocol/Params.cpp.o
[ 16%] Building CXX object CMakeFiles/fizz.dir/protocol/clock/SystemClock.cpp.o
[ 17%] Building CXX object CMakeFiles/fizz.dir/protocol/ech/Decrypter.cpp.o
[ 17%] Building CXX object CMakeFiles/fizz.dir/protocol/ech/Encryption.cpp.o
[ 17%] Building CXX object CMakeFiles/fizz.dir/extensions/delegatedcred/DelegatedCredentialCertManager.cpp.o
[ 18%] Building CXX object CMakeFiles/fizz.dir/extensions/delegatedcred/DelegatedCredentialClientExtension.cpp.o
[ 18%] Building CXX object CMakeFiles/fizz.dir/extensions/delegatedcred/DelegatedCredentialFactory.cpp.o
[ 18%] Building CXX object CMakeFiles/fizz.dir/extensions/delegatedcred/DelegatedCredentialUtils.cpp.o
[ 19%] Building CXX object CMakeFiles/fizz.dir/extensions/delegatedcred/Types.cpp.o
[ 19%] Building CXX object CMakeFiles/fizz.dir/extensions/exportedauth/ExportedAuthenticator.cpp.o
[ 19%] Building CXX object CMakeFiles/fizz.dir/extensions/tokenbinding/Types.cpp.o
[ 20%] Building CXX object CMakeFiles/fizz.dir/extensions/tokenbinding/TokenBindingConstructor.cpp.o
/home/zhang/Downloads/quantumsafe/fizz/fizz/extensions/tokenbinding/TokenBindingConstructor.cpp: In static member function ‘static fizz::extensions::TokenBinding fizz::extensions::TokenBindingConstructor::createTokenBinding(EVP_PKEY&, const Buf&, fizz::extensions::TokenBindingKeyParameters, fizz::extensions::TokenBindingType)’:
/home/zhang/Downloads/quantumsafe/fizz/fizz/extensions/tokenbinding/TokenBindingConstructor.cpp:31:44: warning: ‘ec_key_st* EVP_PKEY_get1_EC_KEY(EVP_PKEY*)’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
31 | EcKeyUniquePtr ecKey(EVP_PKEY_get1_EC_KEY(&keyPair));
| ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~
In file included from /usr/local/include/folly/portability/OpenSSL.h:38,
from /usr/local/include/folly/ssl/OpenSSLPtrTypes.h:22,
from /home/zhang/Downloads/quantumsafe/fizz/fizz/extensions/tokenbinding/TokenBindingConstructor.h:12,
from /home/zhang/Downloads/quantumsafe/fizz/fizz/extensions/tokenbinding/TokenBindingConstructor.cpp:11:
/usr/local/include/openssl/evp.h:1384:19: note: declared here
1384 | struct ec_key_st *EVP_PKEY_get1_EC_KEY(EVP_PKEY *pkey);
| ^~~~~~~~~~~~~~~~~~~~
/home/zhang/Downloads/quantumsafe/fizz/fizz/extensions/tokenbinding/TokenBindingConstructor.cpp: In static member function ‘static fizz::Buf fizz::extensions::TokenBindingConstructor::signWithEcKey(const EcKeyUniquePtr&, const Buf&)’:
/home/zhang/Downloads/quantumsafe/fizz/fizz/extensions/tokenbinding/TokenBindingConstructor.cpp:60:20: warning: ‘ECDSA_SIG* ECDSA_do_sign(const unsigned char*, int, EC_KEY*)’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
60 | ECDSA_do_sign(hashedMessage.data(), hashedMessage.size(), key.get()));
| ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/local/include/openssl/x509.h:33,
from /usr/local/include/openssl/ssl.h:32,
from /usr/local/include/folly/portability/OpenSSL.h:43,
from /usr/local/include/folly/ssl/OpenSSLPtrTypes.h:22,
from /home/zhang/Downloads/quantumsafe/fizz/fizz/extensions/tokenbinding/TokenBindingConstructor.h:12,
from /home/zhang/Downloads/quantumsafe/fizz/fizz/extensions/tokenbinding/TokenBindingConstructor.cpp:11:
/usr/local/include/openssl/ec.h:1384:34: note: declared here
1384 | OSSL_DEPRECATEDIN_3_0 ECDSA_SIG *ECDSA_do_sign(const unsigned char *dgst,
| ^~~~~~~~~~~~~
[ 20%] Building CXX object CMakeFiles/fizz.dir/extensions/tokenbinding/TokenBindingClientExtension.cpp.o
[ 20%] Building CXX object CMakeFiles/fizz.dir/extensions/tokenbinding/Validator.cpp.o
/home/zhang/Downloads/quantumsafe/fizz/fizz/extensions/tokenbinding/Validator.cpp: In static member function ‘static void fizz::extensions::Validator::verify(const fizz::extensions::TokenBindingKeyParameters&, const Buf&, const Buf&, const Buf&)’:
/home/zhang/Downloads/quantumsafe/fizz/fizz/extensions/tokenbinding/Validator.cpp:85:24: warning: ‘int ECDSA_do_verify(const unsigned char*, int, const ECDSA_SIG*, EC_KEY*)’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
85 | if (ECDSA_do_verify(
| ~~~~~~~~~~~~~~~^
86 | hashedMessage.data(),
| ~~~~~~~~~~~~~~~~~~~~~
87 | hashedMessage.size(),
| ~~~~~~~~~~~~~~~~~~~~~
88 | ecdsa.get(),
| ~~~~~~~~~~~~
89 | pkey.get()) != 1) {
| ~~~~~~~~~~~
In file included from /usr/local/include/openssl/x509.h:33,
from /usr/local/include/openssl/ssl.h:32,
from /usr/local/include/folly/portability/OpenSSL.h:43,
from /usr/local/include/folly/ssl/OpenSSLHash.h:26,
from /home/zhang/Downloads/quantumsafe/fizz/fizz/backend/openssl/crypto/Sha.h:13,
from /home/zhang/Downloads/quantumsafe/fizz/fizz/backend/openssl/crypto/Sha256.h:11,
from /home/zhang/Downloads/quantumsafe/fizz/fizz/backend/openssl/OpenSSLFactory.h:12,
from /home/zhang/Downloads/quantumsafe/fizz/fizz/backend/openssl/OpenSSL.h:14,
from /home/zhang/Downloads/quantumsafe/fizz/fizz/extensions/tokenbinding/Validator.h:11,
from /home/zhang/Downloads/quantumsafe/fizz/fizz/extensions/tokenbinding/Validator.cpp:9:
/usr/local/include/openssl/ec.h:1410:27: note: declared here
1410 | OSSL_DEPRECATEDIN_3_0 int ECDSA_do_verify(const unsigned char *dgst, int dgst_len,
| ^~~~~~~~~~~~~~~
/home/zhang/Downloads/quantumsafe/fizz/fizz/extensions/tokenbinding/Validator.cpp: In static member function ‘static folly::ssl::EcKeyUniquePtr fizz::extensions::Validator::constructEcKeyFromBuf(const Buf&)’:
/home/zhang/Downloads/quantumsafe/fizz/fizz/extensions/tokenbinding/Validator.cpp:183:48: warning: ‘ec_key_st* EVP_PKEY_get1_EC_KEY(EVP_PKEY*)’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
183 | EcKeyUniquePtr publicKey(EVP_PKEY_get1_EC_KEY(evpKey.get()));
| ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~
In file included from /home/zhang/Downloads/quantumsafe/fizz/fizz/backend/openssl/crypto/ECCurve.h:11,
from /home/zhang/Downloads/quantumsafe/fizz/fizz/backend/openssl/OpenSSLFactory.h:11,
from /home/zhang/Downloads/quantumsafe/fizz/fizz/backend/openssl/OpenSSL.h:14,
from /home/zhang/Downloads/quantumsafe/fizz/fizz/extensions/tokenbinding/Validator.h:11,
from /home/zhang/Downloads/quantumsafe/fizz/fizz/extensions/tokenbinding/Validator.cpp:9:
/usr/local/include/openssl/evp.h:1384:19: note: declared here
1384 | struct ec_key_st *EVP_PKEY_get1_EC_KEY(EVP_PKEY *pkey);
| ^~~~~~~~~~~~~~~~~~~~
[ 21%] Building CXX object CMakeFiles/fizz.dir/experimental/client/BatchSignaturePeerCert.cpp.o
[ 21%] Building CXX object CMakeFiles/fizz.dir/experimental/protocol/BatchSignatureTypes.cpp.o
[ 21%] Building CXX object CMakeFiles/fizz.dir/experimental/ktls/AsyncFizzBaseKTLS.cpp.o
[ 22%] Building CXX object CMakeFiles/fizz.dir/experimental/ktls/FizzKTLSCallback.cpp.o
[ 22%] Building CXX object CMakeFiles/fizz.dir/experimental/ktls/AsyncKTLSSocket.cpp.o
[ 22%] Building CXX object CMakeFiles/fizz.dir/experimental/ktls/KTLS.cpp.o
[ 23%] Building CXX object CMakeFiles/fizz.dir/client/FizzClientContext.cpp.o
[ 23%] Building CXX object CMakeFiles/fizz.dir/client/State.cpp.o
[ 23%] Building CXX object CMakeFiles/fizz.dir/client/ClientProtocol.cpp.o
In file included from /home/zhang/Downloads/quantumsafe/fizz/fizz/client/PskCache.h:12,
from /home/zhang/Downloads/quantumsafe/fizz/fizz/client/Actions.h:11,
from /home/zhang/Downloads/quantumsafe/fizz/fizz/client/ClientProtocol.h:11,
from /home/zhang/Downloads/quantumsafe/fizz/fizz/client/ClientProtocol.cpp:9:
/home/zhang/Downloads/quantumsafe/fizz/fizz/protocol/Types.h: In function ‘bool fizz::isPskAccepted(fizz::PskType)’:
/home/zhang/Downloads/quantumsafe/fizz/fizz/protocol/Types.h:40:1: warning: control reaches end of non-void function [-Wreturn-type]
40 | }
| ^
[ 24%] Building CXX object CMakeFiles/fizz.dir/client/PskSerializationUtils.cpp.o
[ 24%] Building CXX object CMakeFiles/fizz.dir/client/SynchronizedLruPskCache.cpp.o
[ 24%] Building CXX object CMakeFiles/fizz.dir/client/EarlyDataRejectionPolicy.cpp.o
[ 25%] Building CXX object CMakeFiles/fizz.dir/tool/FizzCommandCommon.cpp.o
[ 25%] Building CXX object CMakeFiles/fizz.dir/util/FizzUtil.cpp.o
[ 25%] Building CXX object CMakeFiles/fizz.dir/util/Tracing.cpp.o
[ 26%] Building CXX object CMakeFiles/fizz.dir/experimental/crypto/exchange/OQSKeyExchange.cpp.o
[ 26%] Linking CXX static library lib/libfizz.a
[ 26%] Built target fizz
Consolidate compiler generated dependencies of target fizz_test_support
[ 26%] Building CXX object CMakeFiles/fizz_test_support.dir/crypto/aead/test/TestUtil.cpp.o
[ 27%] Building CXX object CMakeFiles/fizz_test_support.dir/crypto/test/TestUtil.cpp.o
[ 27%] Building CXX object CMakeFiles/fizz_test_support.dir/protocol/ech/test/TestUtil.cpp.o
[ 28%] Linking CXX static library lib/libfizz_test_support.a
[ 28%] Built target fizz_test_support
Consolidate compiler generated dependencies of target SyncronizedLruPskCacheTest
[ 29%] Building CXX object CMakeFiles/SyncronizedLruPskCacheTest.dir/client/test/SynchronizedLruPskCacheTest.cpp.o
[ 29%] Building CXX object CMakeFiles/SyncronizedLruPskCacheTest.dir/test/CMakeTestMain.cpp.o
[ 29%] Linking CXX executable bin/SyncronizedLruPskCacheTest
[ 29%] Built target SyncronizedLruPskCacheTest
Consolidate compiler generated dependencies of target AsyncFizzClientTest
[ 29%] Building CXX object CMakeFiles/AsyncFizzClientTest.dir/client/test/AsyncFizzClientTest.cpp.o
[ 29%] Building CXX object CMakeFiles/AsyncFizzClientTest.dir/test/CMakeTestMain.cpp.o
[ 30%] Linking CXX executable bin/AsyncFizzClientTest
[ 30%] Built target AsyncFizzClientTest
Consolidate compiler generated dependencies of target ClientProtocolTest
[ 31%] Building CXX object CMakeFiles/ClientProtocolTest.dir/client/test/ClientProtocolTest.cpp.o
In file included from /usr/include/gmock/gmock.h:59,
from /usr/local/include/folly/portability/GMock.h:32,
from /home/zhang/Downloads/quantumsafe/fizz/fizz/client/test/ClientProtocolTest.cpp:9:
/usr/include/gmock/gmock-actions.h: In instantiation of ‘testing::internal::ReturnAction<R>::Impl<R_, F>::Impl(const std::shared_ptr<_Tp>&) [with R_ = std::unique_ptr<fizz::test::MockPeerCert, std::default_delete<fizz::test::MockPeerCert> >; F = std::unique_ptr<fizz::PeerCert>(fizz::CertificateEntry&, bool); R = std::unique_ptr<fizz::test::MockPeerCert, std::default_delete<fizz::test::MockPeerCert> >]’:
/usr/include/gmock/gmock-actions.h:662:22: required from ‘testing::internal::ReturnAction<R>::operator testing::Action<Func>() const [with F = std::unique_ptr<fizz::PeerCert>(fizz::CertificateEntry&, bool); R = std::unique_ptr<fizz::test::MockPeerCert, std::default_delete<fizz::test::MockPeerCert> >]’
/home/zhang/Downloads/quantumsafe/fizz/fizz/client/test/ClientProtocolTest.cpp:3747:16: required from here
/usr/include/gmock/gmock-actions.h:682:40: error: could not convert ‘((testing::internal::ReturnAction<std::unique_ptr<fizz::test::MockPeerCert, std::default_delete<fizz::test::MockPeerCert> > >::Impl<std::unique_ptr<fizz::test::MockPeerCert, std::default_delete<fizz::test::MockPeerCert> >, std::unique_ptr<fizz::PeerCert>(fizz::CertificateEntry&, bool)>*)this)->testing::internal::ReturnAction<std::unique_ptr<fizz::test::MockPeerCert, std::default_delete<fizz::test::MockPeerCert> > >::Impl<std::unique_ptr<fizz::test::MockPeerCert, std::default_delete<fizz::test::MockPeerCert> >, std::unique_ptr<fizz::PeerCert>(fizz::CertificateEntry&, bool)>::value_before_cast_’ from ‘unique_ptr<fizz::test::MockPeerCert,default_delete<fizz::test::MockPeerCert>>’ to ‘unique_ptr<fizz::PeerCert,default_delete<fizz::PeerCert>>’
682 | value_(ImplicitCast_<Result>(value_before_cast_)) {}
| ^~~~~~~~~~~~~~~~~~
| |
| unique_ptr<fizz::test::MockPeerCert,default_delete<fizz::test::MockPeerCert>>
/usr/include/gmock/gmock-actions.h:681:11: error: use of deleted function ‘std::unique_ptr<_Tp, _Dp>::unique_ptr(const std::unique_ptr<_Tp, _Dp>&) [with _Tp = fizz::test::MockPeerCert; _Dp = std::default_delete<fizz::test::MockPeerCert>]’
681 | : value_before_cast_(*value),
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/c++/11/memory:76,
from /usr/include/gmock/gmock-actions.h:139,
from /usr/include/gmock/gmock.h:59,
from /usr/local/include/folly/portability/GMock.h:32,
from /home/zhang/Downloads/quantumsafe/fizz/fizz/client/test/ClientProtocolTest.cpp:9:
/usr/include/c++/11/bits/unique_ptr.h:468:7: note: declared here
468 | unique_ptr(const unique_ptr&) = delete;
| ^~~~~~~~~~
In file included from /usr/include/gmock/gmock.h:59,
from /usr/local/include/folly/portability/GMock.h:32,
from /home/zhang/Downloads/quantumsafe/fizz/fizz/client/test/ClientProtocolTest.cpp:9:
/usr/include/gmock/gmock-actions.h: In instantiation of ‘testing::internal::ReturnAction<R>::Impl<R_, F>::Result testing::internal::ReturnAction<R>::Impl<R_, F>::Perform(const ArgumentTuple&) [with R_ = std::unique_ptr<fizz::test::MockPeerCert, std::default_delete<fizz::test::MockPeerCert> >; F = std::unique_ptr<fizz::PeerCert>(fizz::CertificateEntry&, bool); R = std::unique_ptr<fizz::test::MockPeerCert, std::default_delete<fizz::test::MockPeerCert> >; testing::internal::ReturnAction<R>::Impl<R_, F>::Result = std::unique_ptr<fizz::PeerCert>; testing::internal::ReturnAction<R>::Impl<R_, F>::ArgumentTuple = std::tuple<fizz::CertificateEntry&, bool>]’:
/usr/include/gmock/gmock-actions.h:684:12: required from here
/usr/include/gmock/gmock-actions.h:684:60: error: use of deleted function ‘std::unique_ptr<_Tp, _Dp>::unique_ptr(const std::unique_ptr<_Tp, _Dp>&) [with _Tp = fizz::PeerCert; _Dp = std::default_delete<fizz::PeerCert>]’
684 | Result Perform(const ArgumentTuple&) override { return value_; }
| ^~~~~~
In file included from /usr/include/c++/11/memory:76,
from /usr/include/gmock/gmock-actions.h:139,
from /usr/include/gmock/gmock.h:59,
from /usr/local/include/folly/portability/GMock.h:32,
from /home/zhang/Downloads/quantumsafe/fizz/fizz/client/test/ClientProtocolTest.cpp:9:
/usr/include/c++/11/bits/unique_ptr.h:468:7: note: declared here
468 | unique_ptr(const unique_ptr&) = delete;
| ^~~~~~~~~~
cc1plus: note: unrecognized command-line option ‘-Wno-inconsistent-missing-override’ may have been intended to silence earlier diagnostics
make[2]: *** [CMakeFiles/ClientProtocolTest.dir/build.make:76: CMakeFiles/ClientProtocolTest.dir/client/test/ClientProtocolTest.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:330: CMakeFiles/ClientProtocolTest.dir/all] Error 2
make: *** [Makefile:166: all] Error 2