-
Notifications
You must be signed in to change notification settings - Fork 23
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
compiling error. rror: ‘EVP_PKEY_cmp’ is deprecated #130
Comments
I also face this error. how can solve it? |
I have the same problem. I am running Debian 12. config.status: creating Makefile |
facing this error! anyone?
In function ‘mg_uri_to_local_path’,
inlined from ‘mg_serve_http’ at util/src/mongoose.c:8415:7:
util/src/mongoose.c:518:7: warning: ‘%.*s’ directive argument is null [-Wformat-overflow=]
518 | cs_log_printf x;
| ^
util/src/mongoose.c:8167:3: note: in expansion of macro ‘LOG’
8167 | LOG(LL_DEBUG,
| ^~~
util/src/mongoose.c: In function ‘mg_serve_http’:
util/src/mongoose.c:8168:27: note: format string is defined here
8168 | ("'%.*s' -> '%s' + '%.*s'", (int) hm->uri.len, hm->uri.p,
| ^~~~
CC src/stir_shaken.lo
src/stir_shaken.c: In function ‘stir_shaken_is_key_trusted’:
src/stir_shaken.c:726:9: error: ‘EVP_PKEY_cmp’ is deprecated: Since OpenSSL 3.0 [-Werror=deprecated-declarations]
726 | if (!EVP_PKEY_cmp(pkey, candidate_pkey)) {
| ^~
In file included from /usr/include/openssl/x509.h:29,
from /usr/include/openssl/ssl.h:31,
from /usr/include/libks/ks_ssl.h:25,
from /usr/include/libks/ks.h:79,
from include/stir_shaken.h:15,
from src/stir_shaken.c:1:
/usr/include/openssl/evp.h:1418:5: note: declared here
1418 | int EVP_PKEY_cmp(const EVP_PKEY *a, const EVP_PKEY *b);
| ^~~~~~~~~~~~
src/stir_shaken.c: At top level:
cc1: note: unrecognized command-line option ‘-Wno-gnu-zero-variadic-macro-arguments’ may have been intended to silence earlier diagnostics
cc1: all warnings being treated as errors
make: *** [Makefile:1336: src/stir_shaken.lo] Error 1
root@test-Latitude-5490:/libstirshaken#
The text was updated successfully, but these errors were encountered: