Skip to content

drop deprecated call with OpenSSL 3.0 #519

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

Closed
wants to merge 1 commit into from

Conversation

remicollet
Copy link
Contributor

This make build fails on Fedora >= 36 and RHEL / CentOS 9

[ 99%] Building CXX object src/CMakeFiles/cassandra.dir/gssapi/dse_auth_gssapi.cpp.o
cd /builddir/build/BUILD/cpp-driver-698a1b01801ddf150d9f8793faa8548877f5f7f5/x86_64-redhat-linux-gnu/src && /usr/bin/g++ -DCASS_BUILDING -Dcassandra_EXPORTS -I/builddir/build/BUILD/cpp-driver-698a1b01801ddf150d9f8793faa8548877f5f7f5/src/gssapi -I/builddir/build/BUILD/cpp-driver-698a1b01801ddf150d9f8793faa8548877f5f7f5/src/third_party/curl -I/builddir/build/BUILD/cpp-driver-698a1b01801ddf150d9f8793faa8548877f5f7f5/src/third_party/hdr_histogram -I/builddir/build/BUILD/cpp-driver-698a1b01801ddf150d9f8793faa8548877f5f7f5/src/third_party/http-parser -I/builddir/build/BUILD/cpp-driver-698a1b01801ddf150d9f8793faa8548877f5f7f5/src/third_party/minizip -I/builddir/build/BUILD/cpp-driver-698a1b01801ddf150d9f8793faa8548877f5f7f5/src/third_party/mt19937_64 -I/builddir/build/BUILD/cpp-driver-698a1b01801ddf150d9f8793faa8548877f5f7f5/src/third_party/rapidjson/rapidjson -I/builddir/build/BUILD/cpp-driver-698a1b01801ddf150d9f8793faa8548877f5f7f5/src/third_party/sparsehash/src -I/builddir/build/BUILD/cpp-driver-698a1b01801ddf150d9f8793faa8548877f5f7f5/include -I/builddir/build/BUILD/cpp-driver-698a1b01801ddf150d9f8793faa8548877f5f7f5/src -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -Wno-implicit-fallthrough  -std=c++11 -Wall -pedantic -Wextra -Wno-long-long -Wno-unused-parameter -Wno-variadic-macros -Wno-unused-local-typedefs -Werror -fPIC -MD -MT src/CMakeFiles/cassandra.dir/gssapi/dse_auth_gssapi.cpp.o -MF CMakeFiles/cassandra.dir/gssapi/dse_auth_gssapi.cpp.o.d -o CMakeFiles/cassandra.dir/gssapi/dse_auth_gssapi.cpp.o -c /builddir/build/BUILD/cpp-driver-698a1b01801ddf150d9f8793faa8548877f5f7f5/src/gssapi/dse_auth_gssapi.cpp
/builddir/build/BUILD/cpp-driver-698a1b01801ddf150d9f8793faa8548877f5f7f5/src/ssl/ssl_openssl_impl.cpp: In function 'void ssl_log_errors(const char*)':
/builddir/build/BUILD/cpp-driver-698a1b01801ddf150d9f8793faa8548877f5f7f5/src/ssl/ssl_openssl_impl.cpp:94:40: error: 'long unsigned int ERR_get_error_line_data(const char**, int*, const char**, int*)' is deprecated: Since OpenSSL 3.0 [-Werror=deprecated-declarations]
   94 |   while ((err = ERR_get_error_line_data(NULL, NULL, &data, &flags)) != 0) {
      |                 ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/openssl/engine.h:31,
                 from /builddir/build/BUILD/cpp-driver-698a1b01801ddf150d9f8793faa8548877f5f7f5/src/ssl/ssl_openssl_impl.cpp:25:
/usr/include/openssl/err.h:413:15: note: declared here
  413 | unsigned long ERR_get_error_line_data(const char **file, int *line,
      |               ^~~~~~~~~~~~~~~~~~~~~~~
/builddir/build/BUILD/cpp-driver-698a1b01801ddf150d9f8793faa8548877f5f7f5/src/ssl/ssl_openssl_impl.cpp: In function 'datastax::String ssl_error_string()':
/builddir/build/BUILD/cpp-driver-698a1b01801ddf150d9f8793faa8548877f5f7f5/src/ssl/ssl_openssl_impl.cpp:107:40: error: 'long unsigned int ERR_get_error_line_data(const char**, int*, const char**, int*)' is deprecated: Since OpenSSL 3.0 [-Werror=deprecated-declarations]
  107 |   while ((err = ERR_get_error_line_data(NULL, NULL, &data, &flags)) != 0) {
      |                 ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/openssl/engine.h:31,
                 from /builddir/build/BUILD/cpp-driver-698a1b01801ddf150d9f8793faa8548877f5f7f5/src/ssl/ssl_openssl_impl.cpp:25:
/usr/include/openssl/err.h:413:15: note: declared here
  413 | unsigned long ERR_get_error_line_data(const char **file, int *line,
      |               ^~~~~~~~~~~~~~~~~~~~~~~
cc1plus: all warnings being treated as errors

@remicollet
Copy link
Contributor Author

looks like I miss PR #518

@remicollet remicollet closed this Nov 10, 2021
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

Successfully merging this pull request may close these issues.

1 participant