Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.bugs.dist > #1094741
| From | Sebastian Andrzej Siewior <sebastian@breakpoint.cc> |
|---|---|
| Newsgroups | linux.debian.bugs.dist |
| Subject | Bug#1006517: openrct2: FTBFS with OpenSSL 3.0 |
| Date | 2022-02-26 18:20 +0100 |
| Message-ID | <DV8TD-4vQe-3@gated-at.bofh.it> (permalink) |
| Organization | linux.* mail to news gateway |
Source: openrct2 Version: 0.3.5.1+ds-3 Severity: important Tags: bookworm sid User: pkg-openssl-devel@lists.alioth.debian.org Usertags: ftbfs-3.0 Your package is failing to build using OpenSSL 3.0 with the following error: | [ 22%] Building CXX object CMakeFiles/libopenrct2.dir/src/openrct2/core/Crypt.OpenSSL.cpp.o | /usr/bin/c++ -DOPENGL_NO_LINK -DUSE_BENCHMARK -D__WARN_SUGGEST_FINAL_METHODS__ -D__WARN_SUGGEST_FINAL_TYPES__ -I/<<PKGBUILDDIR>> -I/<<PKGBUILDDIR>>/libopenrct2 -isystem /usr/include/freetype2 -isystem /usr/include/libpng16 -isystem /usr/include/uuid -isystem /<<PKGBUILDDIR>>/src/openrct2/../thirdparty -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -DNDEBUG -Wdate-time -D_FORTIFY_SOURCE=2 -fstrict-overflow -fstrict-aliasing -Werror -Wundef -Wmissing-declarations -Winit-self -Wall -Wextra -Wshadow -Wno-unknown-pragmas -Wno-missing-braces -Wno-comment -Wnonnull -Wno-unused-parameter -DDEBUG=0 -fPIC -Wsuggest-override -Wduplicated-cond -Wnon-virtual-dtor -Wduplicated-branches -Wrestrict -Wmissing-field-initializers -Wlogical-op -Wold-style-cast -Wunused-const-variable=1 -Wno-clobbered -Wredundant-decls -Wnull-dereference -Wsuggest-final-types -Wsuggest-final-methods -Wignored-qualifiers -Wstrict-overflow=1 -D__ENABLE_LIGHTFX__ -DENABLE_SCRIPTING -std=gnu++17 -MD -MT CMakeFiles/libopenrct2.dir/src/openrct2/core/Crypt.OpenSSL.cpp.o -MF CMakeFiles/libopenrct2.dir/src/openrct2/core/Crypt.OpenSSL.cpp.o.d -o CMakeFiles/libopenrct2.dir/src/openrct2/core/Crypt.OpenSSL.cpp.o -c /<<PKGBUILDDIR>>/src/openrct2/core/Crypt.OpenSSL.cpp | /<<PKGBUILDDIR>>/src/openrct2/core/Crypt.OpenSSL.cpp: In member function ‘void OpenSSLRsaKey::SetKey(std::string_view, bool)’: | /<<PKGBUILDDIR>>/src/openrct2/core/Crypt.OpenSSL.cpp:191:58: error: ‘RSA* PEM_read_bio_RSAPrivateKey(BIO*, RSA**, int (*)(char*, int, int, void*), void*)’ is deprecated: Since OpenSSL 3.0 [-Werror=deprecated-declarations] | 191 | auto rsa = isPrivate ? PEM_read_bio_RSAPrivateKey(bio, nullptr, nullptr, nullptr) | | ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | In file included from /<<PKGBUILDDIR>>/src/openrct2/core/Crypt.OpenSSL.cpp:15: | /usr/include/openssl/pem.h:447:1: note: declared here | 447 | DECLARE_PEM_rw_cb_attr(OSSL_DEPRECATEDIN_3_0, RSAPrivateKey, RSA) | | ^~~~~~~~~~~~~~~~~~~~~~ | /<<PKGBUILDDIR>>/src/openrct2/core/Crypt.OpenSSL.cpp:192:57: error: ‘RSA* PEM_read_bio_RSAPublicKey(BIO*, RSA**, int (*)(char*, int, int, void*), void*)’ is deprecated: Since OpenSSL 3.0 [-Werror=deprecated-declarations] | 192 | : PEM_read_bio_RSAPublicKey(bio, nullptr, nullptr, nullptr); | | ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | In file included from /<<PKGBUILDDIR>>/src/openrct2/core/Crypt.OpenSSL.cpp:15: | /usr/include/openssl/pem.h:448:1: note: declared here | 448 | DECLARE_PEM_rw_attr(OSSL_DEPRECATEDIN_3_0, RSAPublicKey, RSA) | | ^~~~~~~~~~~~~~~~~~~ | /<<PKGBUILDDIR>>/src/openrct2/core/Crypt.OpenSSL.cpp:201:40: error: ‘int RSA_check_key(const RSA*)’ is deprecated: Since OpenSSL 3.0 [-Werror=deprecated-declarations] | 201 | if (isPrivate && !RSA_check_key(rsa)) | | ~~~~~~~~~~~~~^~~~~ | In file included from /usr/include/openssl/x509.h:36, | from /usr/include/openssl/pem.h:23, | from /<<PKGBUILDDIR>>/src/openrct2/core/Crypt.OpenSSL.cpp:15: | /usr/include/openssl/rsa.h:278:27: note: declared here | 278 | OSSL_DEPRECATEDIN_3_0 int RSA_check_key(const RSA *); | | ^~~~~~~~~~~~~ | /<<PKGBUILDDIR>>/src/openrct2/core/Crypt.OpenSSL.cpp:203:21: error: ‘void RSA_free(RSA*)’ is deprecated: Since OpenSSL 3.0 [-Werror=deprecated-declarations] | 203 | RSA_free(rsa); | | ~~~~~~~~^~~~~ | In file included from /usr/include/openssl/x509.h:36, | from /usr/include/openssl/pem.h:23, | from /<<PKGBUILDDIR>>/src/openrct2/core/Crypt.OpenSSL.cpp:15: | /usr/include/openssl/rsa.h:293:28: note: declared here | 293 | OSSL_DEPRECATEDIN_3_0 void RSA_free(RSA *r); | | ^~~~~~~~ | /<<PKGBUILDDIR>>/src/openrct2/core/Crypt.OpenSSL.cpp:210:26: error: ‘int EVP_PKEY_set1_RSA(EVP_PKEY*, rsa_st*)’ is deprecated: Since OpenSSL 3.0 [-Werror=deprecated-declarations] | 210 | EVP_PKEY_set1_RSA(_evpKey, rsa); | | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~ | In file included from /<<PKGBUILDDIR>>/src/openrct2/core/Crypt.OpenSSL.cpp:14: | /usr/include/openssl/evp.h:1344:5: note: declared here | 1344 | int EVP_PKEY_set1_RSA(EVP_PKEY *pkey, struct rsa_st *key); | | ^~~~~~~~~~~~~~~~~ | /<<PKGBUILDDIR>>/src/openrct2/core/Crypt.OpenSSL.cpp:211:17: error: ‘void RSA_free(RSA*)’ is deprecated: Since OpenSSL 3.0 [-Werror=deprecated-declarations] | 211 | RSA_free(rsa); | | ~~~~~~~~^~~~~ | In file included from /usr/include/openssl/x509.h:36, | from /usr/include/openssl/pem.h:23, | from /<<PKGBUILDDIR>>/src/openrct2/core/Crypt.OpenSSL.cpp:15: | /usr/include/openssl/rsa.h:293:28: note: declared here | 293 | OSSL_DEPRECATEDIN_3_0 void RSA_free(RSA *r); | | ^~~~~~~~ | /<<PKGBUILDDIR>>/src/openrct2/core/Crypt.OpenSSL.cpp: In member function ‘std::string OpenSSLRsaKey::GetKey(bool)’: | /<<PKGBUILDDIR>>/src/openrct2/core/Crypt.OpenSSL.cpp:221:37: error: ‘rsa_st* EVP_PKEY_get1_RSA(EVP_PKEY*)’ is deprecated: Since OpenSSL 3.0 [-Werror=deprecated-declarations] | 221 | auto rsa = EVP_PKEY_get1_RSA(_evpKey); | | ~~~~~~~~~~~~~~~~~^~~~~~~~~ | In file included from /<<PKGBUILDDIR>>/src/openrct2/core/Crypt.OpenSSL.cpp:14: | /usr/include/openssl/evp.h:1348:16: note: declared here | 1348 | struct rsa_st *EVP_PKEY_get1_RSA(EVP_PKEY *pkey); | | ^~~~~~~~~~~~~~~~~ | /<<PKGBUILDDIR>>/src/openrct2/core/Crypt.OpenSSL.cpp:233:62: error: ‘int PEM_write_bio_RSAPrivateKey(BIO*, const RSA*, const EVP_CIPHER*, const unsigned char*, int, int (*)(char*, int, int, void*), void*)’ is deprecated: Since OpenSSL 3.0 [-Werror=deprecated-declarations] | 233 | auto status = isPrivate ? PEM_write_bio_RSAPrivateKey(bio, rsa, nullptr, nullptr, 0, nullptr, nullptr) | | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | In file included from /<<PKGBUILDDIR>>/src/openrct2/core/Crypt.OpenSSL.cpp:15: | /usr/include/openssl/pem.h:447:1: note: declared here | 447 | DECLARE_PEM_rw_cb_attr(OSSL_DEPRECATEDIN_3_0, RSAPrivateKey, RSA) | | ^~~~~~~~~~~~~~~~~~~~~~ | /<<PKGBUILDDIR>>/src/openrct2/core/Crypt.OpenSSL.cpp:234:61: error: ‘int PEM_write_bio_RSAPublicKey(BIO*, const RSA*)’ is deprecated: Since OpenSSL 3.0 [-Werror=deprecated-declarations] | 234 | : PEM_write_bio_RSAPublicKey(bio, rsa); | | ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~ | In file included from /<<PKGBUILDDIR>>/src/openrct2/core/Crypt.OpenSSL.cpp:15: | /usr/include/openssl/pem.h:448:1: note: declared here | 448 | DECLARE_PEM_rw_attr(OSSL_DEPRECATEDIN_3_0, RSAPublicKey, RSA) | | ^~~~~~~~~~~~~~~~~~~ | /<<PKGBUILDDIR>>/src/openrct2/core/Crypt.OpenSSL.cpp:238:21: error: ‘void RSA_free(RSA*)’ is deprecated: Since OpenSSL 3.0 [-Werror=deprecated-declarations] | 238 | RSA_free(rsa); | | ~~~~~~~~^~~~~ | In file included from /usr/include/openssl/x509.h:36, | from /usr/include/openssl/pem.h:23, | from /<<PKGBUILDDIR>>/src/openrct2/core/Crypt.OpenSSL.cpp:15: | /usr/include/openssl/rsa.h:293:28: note: declared here | 293 | OSSL_DEPRECATEDIN_3_0 void RSA_free(RSA *r); | | ^~~~~~~~ | /<<PKGBUILDDIR>>/src/openrct2/core/Crypt.OpenSSL.cpp:241:17: error: ‘void RSA_free(RSA*)’ is deprecated: Since OpenSSL 3.0 [-Werror=deprecated-declarations] | 241 | RSA_free(rsa); | | ~~~~~~~~^~~~~ | In file included from /usr/include/openssl/x509.h:36, | from /usr/include/openssl/pem.h:23, | from /<<PKGBUILDDIR>>/src/openrct2/core/Crypt.OpenSSL.cpp:15: | /usr/include/openssl/rsa.h:293:28: note: declared here | 293 | OSSL_DEPRECATEDIN_3_0 void RSA_free(RSA *r); | | ^~~~~~~~ | cc1plus: all warnings being treated as errors | make[3]: *** [CMakeFiles/libopenrct2.dir/build.make:1829: CMakeFiles/libopenrct2.dir/src/openrct2/core/Crypt.OpenSSL.cpp.o] Error 1 | make[3]: Leaving directory '/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu' | make[2]: *** [CMakeFiles/Makefile2:92: CMakeFiles/libopenrct2.dir/all] Error 2 | make[2]: Leaving directory '/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu' | make[1]: *** [Makefile:139: all] Error 2 | make[1]: Leaving directory '/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu' | dh_auto_build: error: cd obj-x86_64-linux-gnu && make -j1 "INSTALL=install --strip-program=true" VERBOSE=1 returned exit code 2 | make: *** [debian/rules:9: binary] Error 25 For more information see: https://www.openssl.org/docs/man3.0/man7/migration_guide.html Sebastian
Back to linux.debian.bugs.dist | Previous | Next — Next in thread | Find similar | Unroll thread
Bug#1006517: openrct2: FTBFS with OpenSSL 3.0 Sebastian Andrzej Siewior <sebastian@breakpoint.cc> - 2022-02-26 18:20 +0100 Bug#1006517: openrct2: FTBFS with OpenSSL 3.0 Mathias Gibbens <mathias@calenhad.com> - 2022-02-26 18:50 +0100
csiph-web