You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Compilation on Arch Linux fails with "openssl_hsm_pkey.c:193:5: error: ‘EVP_PKEY_get1_RSA’ is deprecated: Since OpenSSL 3.0 [-Werror=deprecated-declarations]"
#89
Open
schaiba opened this issue
Jun 27, 2024
· 3 comments
I'm on Ubuntu 22.04. I was drawn here by a similar error, so I ran ./configure CFLAGS='-w' to suppress the warnings. The build process got further, before terminating with:
libtool: compile: gcc -I. -I../../src/libpki -I.. -DENABLE_ECDSA=1 -D__LIB_BUILD__ -I/usr/include -w -maccumulate-outgoing-args -Werror -Wfatal-errors -Wunused-variable -Wno-switch -DENABLE_ECDSA=1 -I/usr/include/libxml2 -I/usr/include/mysql -DLINUX -w -maccumulate-outgoing-args -Werror -Wfatal-errors -Wunused-variable -MT libpki_openssl_la-pki_id.lo -MD -MP -MF .deps/libpki_openssl_la-pki_id.Tpo -c pki_id.c -fPIC -DPIC -o .libs/libpki_openssl_la-pki_id.o
pki_id.c: In function ‘PKI_ID_is_composite’:
pki_id.c:86:25: error: ‘OPENCA_ALG_PKEY_EXP_COMP_NAME’ undeclared (first use in this function)
86 | if (OBJ_txt2nid(OPENCA_ALG_PKEY_EXP_COMP_NAME) == id) {
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated due to -Wfatal-errors.
If there was a bertter way to "remove -Wfatal-errors" I would be happy to try it. Please just provide those instructions
I'm on Ubuntu 22.04. I was drawn here by a similar error, so I ran ./configure CFLAGS='-w' to suppress the warnings. The build process got further, before terminating with:
libtool: compile: gcc -I. -I../../src/libpki -I.. -DENABLE_ECDSA=1 -D__LIB_BUILD__ -I/usr/include -w -maccumulate-outgoing-args -Werror -Wfatal-errors -Wunused-variable -Wno-switch -DENABLE_ECDSA=1 -I/usr/include/libxml2 -I/usr/include/mysql -DLINUX -w -maccumulate-outgoing-args -Werror -Wfatal-errors -Wunused-variable -MT libpki_openssl_la-pki_id.lo -MD -MP -MF .deps/libpki_openssl_la-pki_id.Tpo -c pki_id.c -fPIC -DPIC -o .libs/libpki_openssl_la-pki_id.o
pki_id.c: In function ‘PKI_ID_is_composite’:
pki_id.c:86:25: error: ‘OPENCA_ALG_PKEY_EXP_COMP_NAME’ undeclared (first use in this function)
86 | if (OBJ_txt2nid(OPENCA_ALG_PKEY_EXP_COMP_NAME) == id) {
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated due to -Wfatal-errors.
If there was a bertter way to "remove -Wfatal-errors" I would be happy to try it. Please just provide those instructions
resolved with
./configure CFLAGS='-w' --enable-extra-checks --enable-composite
make
Hey,
Arch Linux up-to-date amd64, gcc version 14.1.1, and the complete error is this :
The text was updated successfully, but these errors were encountered: