Open schaiba opened 5 months ago
You must remove -Wfatal-errors, there are a lot of warnings of deprecated functions after openssl 3
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 :