Your package is failing to build using OpenSSL 3.0 with the
following error:
| cc -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -Wformat-security -Werror -Wstrict-prototypes -Wextra -Winit-self -Wswitch-default -Wunused-parameter -Wwrite-strings -Wlogical-op -Wno-missing-field-initializers -Wno-address-of-packed-member -fno-strict-aliasing -std=gnu99 -Wno-array-bounds -O2 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -m64 -I/<<PKGBUILDDIR>>/safestringlib/include -Wall -Wformat-security -Werror -Wstrict-prototypes -Wextra -Winit-self -Wswitch-default -Wunused-parameter -Wwrite-strings -Wlogical-op -Wno-missing-field-initializers -Wno-address-of-packed-member -fno-strict-aliasing -std=gnu99 -Wno-array-bounds -O2 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -m64 -I/<<PKGBUILDDIR>>/safestringlib/include -Wall -Wformat-security -Werror -Wstrict-prototypes -Wextra -Winit-self -Wswitch-default -Wunused-parameter -Wwrite-strings -Wlogical-op -Wno-missing-field-initializers -Wno-address-of-packed-member -fno-strict-aliasing -std=gnu99 -Wno-array-bounds -O2 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -m64 -I/<<PKGBUILDDIR>>/safestringlib/include -DNO_TBOOT_LOGLVL -c pollist2.c -o pollist2.o
| pollist2.c: In function ‘read_rsa_pubkey_file’:
| pollist2.c:825:5: error: ‘PEM_read_RSA_PUBKEY’ is deprecated: Since OpenSSL 3.0 [-Werror=deprecated-declarations]
| 825 | RSA *pubkey = PEM_read_RSA_PUBKEY(fp, NULL, NULL, NULL);
| | ^~~
| In file included from /usr/include/openssl/ui.h:30,
| from /usr/include/openssl/engine.h:30,
| from pollist2.c:44:
| /usr/include/openssl/pem.h:449:1: note: declared here
| 449 | DECLARE_PEM_rw_attr(OSSL_DEPRECATEDIN_3_0, RSA_PUBKEY, RSA)
| | ^~~~~~~~~~~~~~~~~~~
| pollist2.c:835:5: error: ‘RSA_size’ is deprecated: Since OpenSSL 3.0 [-Werror=deprecated-declarations]
| 835 | unsigned int keysize = RSA_size(pubkey);
| | ^~~~~~~~
| In file included from pollist2.c:43:
| /usr/include/openssl/rsa.h:204:27: note: declared here
| 204 | OSSL_DEPRECATEDIN_3_0 int RSA_size(const RSA *rsa);
| | ^~~~~~~~
| pollist2.c:838:9: error: ‘RSA_free’ is deprecated: Since OpenSSL 3.0 [-Werror=deprecated-declarations]
| 838 | RSA_free(pubkey);
| | ^~~~~~~~
| In file included from pollist2.c:43:
| /usr/include/openssl/rsa.h:293:28: note: declared here
| 293 | OSSL_DEPRECATEDIN_3_0 void RSA_free(RSA *r);
| | ^~~~~~~~
| pollist2.c:846:9: error: ‘RSA_free’ is deprecated: Since OpenSSL 3.0 [-Werror=deprecated-declarations]
| 846 | RSA_free(pubkey);
| | ^~~~~~~~
| In file included from pollist2.c:43:
| /usr/include/openssl/rsa.h:293:28: note: declared here
| 293 | OSSL_DEPRECATEDIN_3_0 void RSA_free(RSA *r);
| | ^~~~~~~~
| pollist2.c:857:9: error: ‘RSA_get0_key’ is deprecated: Since OpenSSL 3.0 [-Werror=deprecated-declarations]
| 857 | RSA_get0_key(pubkey, &modulus, NULL, NULL);
| | ^~~~~~~~~~~~
| In file included from pollist2.c:43:
| /usr/include/openssl/rsa.h:217:28: note: declared here
| 217 | OSSL_DEPRECATEDIN_3_0 void RSA_get0_key(const RSA *r,
| | ^~~~~~~~~~~~
| pollist2.c:875:5: error: ‘RSA_free’ is deprecated: Since OpenSSL 3.0 [-Werror=deprecated-declarations]
| 875 | RSA_free(pubkey);
| | ^~~~~~~~
| In file included from pollist2.c:43:
| /usr/include/openssl/rsa.h:293:28: note: declared here
| 293 | OSSL_DEPRECATEDIN_3_0 void RSA_free(RSA *r);
| | ^~~~~~~~
| pollist2.c: In function ‘read_ecdsa_pubkey’:
| pollist2.c:903:5: error: ‘PEM_read_EC_PUBKEY’ is deprecated: Since OpenSSL 3.0 [-Werror=deprecated-declarations]
| 903 | pubkey = PEM_read_EC_PUBKEY(fp, NULL, NULL, NULL);
| | ^~~~~~
| In file included from /usr/include/openssl/ui.h:30,
| from /usr/include/openssl/engine.h:30,
| from pollist2.c:44:
| /usr/include/openssl/pem.h:463:1: note: declared here
| 463 | DECLARE_PEM_rw_attr(OSSL_DEPRECATEDIN_3_0, EC_PUBKEY, EC_KEY)
| | ^~~~~~~~~~~~~~~~~~~
| pollist2.c:911:5: error: ‘EC_KEY_get0_public_key’ is deprecated: Since OpenSSL 3.0 [-Werror=deprecated-declarations]
| 911 | pubpoint = EC_KEY_get0_public_key(pubkey);
| | ^~~~~~~~
| In file included from /usr/include/openssl/engine.h:28,
| from pollist2.c:44:
| /usr/include/openssl/ec.h:1060:39: note: declared here
| 1060 | OSSL_DEPRECATEDIN_3_0 const EC_POINT *EC_KEY_get0_public_key(const EC_KEY *key);
| | ^~~~~~~~~~~~~~~~~~~~~~
| pollist2.c:915:5: error: ‘EC_KEY_get0_group’ is deprecated: Since OpenSSL 3.0 [-Werror=deprecated-declarations]
| 915 | pubgroup = EC_KEY_get0_group(pubkey);
| | ^~~~~~~~
| In file included from /usr/include/openssl/engine.h:28,
| from pollist2.c:44:
| /usr/include/openssl/ec.h:1032:39: note: declared here
| 1032 | OSSL_DEPRECATEDIN_3_0 const EC_GROUP *EC_KEY_get0_group(const EC_KEY *key);
| | ^~~~~~~~~~~~~~~~~
| pollist2.c:926:5: error: ‘EC_POINT_get_affine_coordinates_GFp’ is deprecated: Since OpenSSL 3.0 [-Werror=deprecated-declarations]
| 926 | result = EC_POINT_get_affine_coordinates_GFp(pubgroup, pubpoint, x, y, ctx);
| | ^~~~~~
| In file included from /usr/include/openssl/engine.h:28,
| from pollist2.c:44:
| /usr/include/openssl/ec.h:657:27: note: declared here
| 657 | OSSL_DEPRECATEDIN_3_0 int EC_POINT_get_affine_coordinates_GFp
| | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| cc1: all warnings being treated as errors
| make[3]: *** [Makefile:96: pollist2.o] Error 1
For more information see:
https://www.openssl.org/docs/man3.0/man7/migration_guide.html
Sebastian