Skip to content
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

http ioengine uses deprecated functions #1810

Open
vincentkfu opened this issue Aug 26, 2024 · 0 comments
Open

http ioengine uses deprecated functions #1810

vincentkfu opened this issue Aug 26, 2024 · 0 comments

Comments

@vincentkfu
Copy link
Collaborator

The http ioengine no longer builds on newer distributions because it uses deprecated functions. Here is the related config.log output:

Compiling test case curl-new-ssl
gcc -D_GNU_SOURCE -include config-host.h -Werror -Werror-implicit-function-declaration -o /tmp/fio-conf-14769-21457-3596.exe /tmp/fio-conf-18565-21457-27555.c -lcurl -lssl -lcrypto -lnuma -lz
/tmp/fio-conf-18565-21457-27555.c: In function 'main':
/tmp/fio-conf-18565-21457-27555.c:12:3: error: 'HMAC_CTX_new' is deprecated: Since OpenSSL 3.0 [-Werror=deprecated-declarations]
   12 |   ctx = HMAC_CTX_new();
      |   ^~~
In file included from /tmp/fio-conf-18565-21457-27555.c:2:
/usr/include/openssl/hmac.h:33:33: note: declared here
   33 | OSSL_DEPRECATEDIN_3_0 HMAC_CTX *HMAC_CTX_new(void);
      |                                 ^~~~~~~~~~~~
/tmp/fio-conf-18565-21457-27555.c:13:3: error: 'HMAC_CTX_reset' is deprecated: Since OpenSSL 3.0 [-Werror=deprecated-declarations]
   13 |   HMAC_CTX_reset(ctx);
      |   ^~~~~~~~~~~~~~
/usr/include/openssl/hmac.h:34:27: note: declared here
   34 | OSSL_DEPRECATEDIN_3_0 int HMAC_CTX_reset(HMAC_CTX *ctx);
      |                           ^~~~~~~~~~~~~~
/tmp/fio-conf-18565-21457-27555.c:14:3: error: 'HMAC_CTX_free' is deprecated: Since OpenSSL 3.0 [-Werror=deprecated-declarations]
   14 |   HMAC_CTX_free(ctx);
      |   ^~~~~~~~~~~~~
/usr/include/openssl/hmac.h:35:28: note: declared here
   35 | OSSL_DEPRECATEDIN_3_0 void HMAC_CTX_free(HMAC_CTX *ctx);
      |                            ^~~~~~~~~~~~~
cc1: all warnings being treated as errors
Compiling test case curl-old-ssl
gcc -D_GNU_SOURCE -include config-host.h -Werror -Werror-implicit-function-declaration -o /tmp/fio-conf-14769-21457-3596.exe /tmp/fio-conf-18565-21457-27555.c -lcurl -lssl -lcrypto -lnuma -lz
/tmp/fio-conf-18565-21457-27555.c: In function 'main':
FIO_VERSION = fio-3.37
/tmp/fio-conf-18565-21457-27555.c:7:12: error: storage size of 'ctx' isn't known
    7 |   HMAC_CTX ctx;
      |            ^~~
/tmp/fio-conf-18565-21457-27555.c:12:3: error: implicit declaration of function 'HMAC_CTX_init'; did you mean 'HMAC_CTX_new'? [-Wimplicit-function-declaration]
   12 |   HMAC_CTX_init(&ctx);
      |   ^~~~~~~~~~~~~
      |   HMAC_CTX_new
/tmp/fio-conf-18565-21457-27555.c:13:3: error: implicit declaration of function 'HMAC_CTX_cleanup' [-Wimplicit-function-declaration]
   13 |   HMAC_CTX_cleanup(&ctx);
      |   ^~~~~~~~~~~~~~~~

Someone who uses this ioengine should update it to stop using deprecated functions and update the configure script.

Repository owner deleted a comment Aug 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants
@vincentkfu and others