compilation warning with apple clang

Description

getting these compilation warning with APPLE clang. although the compilation is successful on macos.

[3025/3292] Building CXX object plugin/auth_ldap/CMakeFiles/authentication_ldap_simple.dir/src/connection.cc.o
../plugin/auth_ldap/src/connection.cc:26:5: warning: 'ldap_unbind_ext_s' is deprecated: first deprecated in macOS 10.11 - use OpenDirectory Framework [-Wdeprecated-declarations]
ldap_unbind_ext_s(ldap_, nullptr, nullptr);
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk/usr/include/ldap.h:1956:1: note: 'ldap_unbind_ext_s' has been explicitly marked deprecated here
ldap_unbind_ext_s LDAP_P((
^
../plugin/auth_ldap/src/connection.cc:56:7: warning: 'ldap_unbind_ext_s' is deprecated: first deprecated in macOS 10.11 - use OpenDirectory Framework [-Wdeprecated-declarations]
ldap_unbind_ext_s(ldap_, nullptr, nullptr);
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk/usr/include/ldap.h:1956:1: note: 'ldap_unbind_ext_s' has been explicitly marked deprecated here
ldap_unbind_ext_s LDAP_P((
^
../plugin/auth_ldap/src/connection.cc:60:15: warning: 'ldap_set_option' is deprecated: first deprecated in macOS 10.11 - use OpenDirectory Framework [-Wdeprecated-declarations]
int err = ldap_set_option(nullptr, LDAP_OPT_PROTOCOL_VERSION, &version);
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk/usr/include/ldap.h:984:1: note: 'ldap_set_option' has been explicitly marked deprecated here
ldap_set_option LDAP_P((
^
../plugin/auth_ldap/src/connection.cc:68:13: warning: 'ldap_set_option' is deprecated: first deprecated in macOS 10.11 - use OpenDirectory Framework [-Wdeprecated-declarations]
err = ldap_set_option(nullptr, LDAP_OPT_X_TLS_REQUIRE_CERT, &reqCert);
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk/usr/include/ldap.h:984:1: note: 'ldap_set_option' has been explicitly marked deprecated here
ldap_set_option LDAP_P((
^
../plugin/auth_ldap/src/connection.cc:75:13: warning: 'ldap_set_option' is deprecated: first deprecated in macOS 10.11 - use OpenDirectory Framework [-Wdeprecated-declarations]
err = ldap_set_option(nullptr, LDAP_OPT_X_TLS_CACERTFILE,
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk/usr/include/ldap.h:984:1: note: 'ldap_set_option' has been explicitly marked deprecated here
ldap_set_option LDAP_P((
^
../plugin/auth_ldap/src/connection.cc:83:11: warning: 'ldap_set_option' is deprecated: first deprecated in macOS 10.11 - use OpenDirectory Framework [-Wdeprecated-declarations]
err = ldap_set_option(nullptr, LDAP_OPT_X_TLS_NEWCTX, LDAP_OPT_ON);
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk/usr/include/ldap.h:984:1: note: 'ldap_set_option' has been explicitly marked deprecated here
ldap_set_option LDAP_P((
^
../plugin/auth_ldap/src/connection.cc:89:11: warning: 'ldap_initialize' is deprecated: first deprecated in macOS 10.11 - use OpenDirectory Framework [-Wdeprecated-declarations]
err = ldap_initialize(&(ldap_), get_ldap_uri().c_str());
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk/usr/include/ldap.h:1541:1: note: 'ldap_initialize' has been explicitly marked deprecated here
ldap_initialize LDAP_P((
^
../plugin/auth_ldap/src/connection.cc:96:11: warning: 'ldap_set_option' is deprecated: first deprecated in macOS 10.11 - use OpenDirectory Framework [-Wdeprecated-declarations]
err = ldap_set_option(ldap_, LDAP_OPT_REFERRALS, LDAP_OPT_OFF);
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk/usr/include/ldap.h:984:1: note: 'ldap_set_option' has been explicitly marked deprecated here
ldap_set_option LDAP_P((
^
../plugin/auth_ldap/src/connection.cc:102:11: warning: 'ldap_set_option' is deprecated: first deprecated in macOS 10.11 - use OpenDirectory Framework [-Wdeprecated-declarations]
err = ldap_set_option(ldap_, LDAP_OPT_RESTART, LDAP_OPT_ON);
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk/usr/include/ldap.h:984:1: note: 'ldap_set_option' has been explicitly marked deprecated here
ldap_set_option LDAP_P((
^
../plugin/auth_ldap/src/connection.cc:108:13: warning: 'ldap_start_tls_s' is deprecated: first deprecated in macOS 10.11 - use OpenDirectory Framework [-Wdeprecated-declarations]
err = ldap_start_tls_s(ldap_, nullptr, nullptr);
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk/usr/include/ldap.h:1569:1: note: 'ldap_start_tls_s' has been explicitly marked deprecated here
ldap_start_tls_s LDAP_P((
^
../plugin/auth_ldap/src/connection.cc:117:9: warning: 'ber_str2bv' is deprecated: first deprecated in macOS 10.11 - use OpenDirectory Framework [-Wdeprecated-declarations]
ber_str2bv(strdup(bind_pwd.c_str()), 0, 0, nullptr);
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk/usr/include/lber.h:636:1: note: 'ber_str2bv' has been explicitly marked deprecated here
ber_str2bv LDAP_P((
^
../plugin/auth_ldap/src/connection.cc:119:11: warning: 'ldap_sasl_bind_s' is deprecated: first deprecated in macOS 10.11 - use OpenDirectory Framework [-Wdeprecated-declarations]
err = ldap_sasl_bind_s(ldap_, bind_dn.c_str(), LDAP_SASL_SIMPLE, userCreds,
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk/usr/include/ldap.h:1246:1: note: 'ldap_sasl_bind_s' has been explicitly marked deprecated here
ldap_sasl_bind_s LDAP_P((
^
../plugin/auth_ldap/src/connection.cc:122:5: warning: 'ber_bvfree' is deprecated: first deprecated in macOS 10.11 - use OpenDirectory Framework [-Wdeprecated-declarations]
ber_bvfree(userCreds);
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk/usr/include/lber.h:611:1: note: 'ber_bvfree' has been explicitly marked deprecated here
ber_bvfree LDAP_P((
^
../plugin/auth_ldap/src/connection.cc:176:13: warning: 'ldap_search_ext_s' is deprecated: first deprecated in macOS 10.11 - use OpenDirectory Framework [-Wdeprecated-declarations]
int err = ldap_search_ext_s(
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk/usr/include/ldap.h:1901:1: note: 'ldap_search_ext_s' has been explicitly marked deprecated here
ldap_search_ext_s LDAP_P((
^
../plugin/auth_ldap/src/connection.cc:184:9: warning: 'ldap_count_entries' is deprecated: first deprecated in macOS 10.11 - use OpenDirectory Framework [-Wdeprecated-declarations]
if (ldap_count_entries(ldap_, l_result) == 0) {
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk/usr/include/ldap.h:1633:1: note: 'ldap_count_entries' has been explicitly marked deprecated here
ldap_count_entries LDAP_P((
^
../plugin/auth_ldap/src/connection.cc:192:28: warning: 'ldap_first_entry' is deprecated: first deprecated in macOS 10.11 - use OpenDirectory Framework [-Wdeprecated-declarations]
LDAPMessage *entry = ldap_first_entry(ldap_, l_result);
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk/usr/include/ldap.h:1623:1: note: 'ldap_first_entry' has been explicitly marked deprecated here
ldap_first_entry LDAP_P((
^
../plugin/auth_ldap/src/connection.cc:193:18: warning: 'ldap_get_dn' is deprecated: first deprecated in macOS 10.11 - use OpenDirectory Framework [-Wdeprecated-declarations]
char *dn = ldap_get_dn(ldap_, entry);
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk/usr/include/ldap.h:1662:1: note: 'ldap_get_dn' has been explicitly marked deprecated here
ldap_get_dn LDAP_P((
^
../plugin/auth_ldap/src/connection.cc:200:5: warning: 'ldap_msgfree' is deprecated: first deprecated in macOS 10.11 - use OpenDirectory Framework [-Wdeprecated-declarations]
ldap_msgfree(l_result);
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk/usr/include/ldap.h:1869:1: note: 'ldap_msgfree' has been explicitly marked deprecated here
ldap_msgfree LDAP_P((
^
../plugin/auth_ldap/src/connection.cc:204:19: warning: 'ldap_err2string' is deprecated: first deprecated in macOS 10.11 - use OpenDirectory Framework [-Wdeprecated-declarations]
<< ldap_err2string(err);
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk/usr/include/ldap.h:1384:1: note: 'ldap_err2string' has been explicitly marked deprecated here
ldap_err2string LDAP_P((
^
../plugin/auth_ldap/src/connection.cc:232:13: warning: 'ldap_search_ext_s' is deprecated: first deprecated in macOS 10.11 - use OpenDirectory Framework [-Wdeprecated-declarations]
int err = ldap_search_ext_s(
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk/usr/include/ldap.h:1901:1: note: 'ldap_search_ext_s' has been explicitly marked deprecated here
ldap_search_ext_s LDAP_P((
^
../plugin/auth_ldap/src/connection.cc:240:9: warning: 'ldap_count_entries' is deprecated: first deprecated in macOS 10.11 - use OpenDirectory Framework [-Wdeprecated-declarations]
if (ldap_count_entries(ldap_, l_result) == 0) {
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk/usr/include/ldap.h:1633:1: note: 'ldap_count_entries' has been explicitly marked deprecated here
ldap_count_entries LDAP_P((
^
../plugin/auth_ldap/src/connection.cc:249:28: warning: 'ldap_first_entry' is deprecated: first deprecated in macOS 10.11 - use OpenDirectory Framework [-Wdeprecated-declarations]
LDAPMessage *entry = ldap_first_entry(ldap_, l_result);
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk/usr/include/ldap.h:1623:1: note: 'ldap_first_entry' has been explicitly marked deprecated here
ldap_first_entry LDAP_P((
^
../plugin/auth_ldap/src/connection.cc:253:21: warning: 'ldap_first_attribute' is deprecated: first deprecated in macOS 10.11 - use OpenDirectory Framework [-Wdeprecated-declarations]
attribute = ldap_first_attribute(ldap_, entry, &ber);
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk/usr/include/ldap.h:1804:1: note: 'ldap_first_attribute' has been explicitly marked deprecated here
ldap_first_attribute LDAP_P((
^
../plugin/auth_ldap/src/connection.cc:255:18: warning: 'ldap_get_values_len' is deprecated: first deprecated in macOS 10.11 - use OpenDirectory Framework [-Wdeprecated-declarations]
vals = ldap_get_values_len(ldap_, entry, attribute);
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk/usr/include/ldap.h:1820:1: note: 'ldap_get_values_len' has been explicitly marked deprecated here
ldap_get_values_len LDAP_P((
^
../plugin/auth_ldap/src/connection.cc:256:35: warning: 'ldap_count_values_len' is deprecated: first deprecated in macOS 10.11 - use OpenDirectory Framework [-Wdeprecated-declarations]
for (int pos = 0; pos < ldap_count_values_len(vals); pos++) {
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk/usr/include/ldap.h:1826:1: note: 'ldap_count_values_len' has been explicitly marked deprecated here
ldap_count_values_len LDAP_P((
^
../plugin/auth_ldap/src/connection.cc:259:23: warning: 'ldap_next_attribute' is deprecated: first deprecated in macOS 10.11 - use OpenDirectory Framework [-Wdeprecated-declarations]
attribute = ldap_next_attribute(ldap_, entry, ber);
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk/usr/include/ldap.h:1810:1: note: 'ldap_next_attribute' has been explicitly marked deprecated here
ldap_next_attribute LDAP_P((
^
../plugin/auth_ldap/src/connection.cc:261:17: warning: 'ldap_next_entry' is deprecated: first deprecated in macOS 10.11 - use OpenDirectory Framework [-Wdeprecated-declarations]
entry = ldap_next_entry(ldap_, entry);
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk/usr/include/ldap.h:1628:1: note: 'ldap_next_entry' has been explicitly marked deprecated here
ldap_next_entry LDAP_P((
^
../plugin/auth_ldap/src/connection.cc:264:5: warning: 'ldap_msgfree' is deprecated: first deprecated in macOS 10.11 - use OpenDirectory Framework [-Wdeprecated-declarations]
ldap_msgfree(l_result);
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk/usr/include/ldap.h:1869:1: note: 'ldap_msgfree' has been explicitly marked deprecated here
ldap_msgfree LDAP_P((
^
../plugin/auth_ldap/src/connection.cc:268:19: warning: 'ldap_err2string' is deprecated: first deprecated in macOS 10.11 - use OpenDirectory Framework [-Wdeprecated-declarations]
<< ldap_err2string(err);
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk/usr/include/ldap.h:1384:1: note: 'ldap_err2string' has been explicitly marked deprecated here
ldap_err2string LDAP_P((
^
../plugin/auth_ldap/src/connection.cc:291:31: warning: 'ldap_err2string' is deprecated: first deprecated in macOS 10.11 - use OpenDirectory Framework [-Wdeprecated-declarations]
log_stream << str << " " << ldap_err2string(ldap_err);
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk/usr/include/ldap.h:1384:1: note: 'ldap_err2string' has been explicitly marked deprecated here
ldap_err2string LDAP_P((
^
../plugin/auth_ldap/src/connection.cc:296:31: warning: 'ldap_err2string' is deprecated: first deprecated in macOS 10.11 - use OpenDirectory Framework [-Wdeprecated-declarations]
log_stream << str << " " << ldap_err2string(ldap_err);
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk/usr/include/ldap.h:1384:1: note: 'ldap_err2string' has been explicitly marked deprecated here
ldap_err2string LDAP_P((
^
31 warnings generated.
[3059/3292] Building CXX object plugin/data_masking/CMakeFiles/data_masking.dir/src/udf/udf_utils_string.cc.o
../plugin/data_masking/src/udf/udf_utils_string.cc:28:39: warning: 'ptr_fun<int, int>' is deprecated [-Wdeprecated-declarations]
std::not1(std::ptr_fun<int, int>(std::isspace))));
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk/usr/include/c++/v1/functional:1107:1: note: 'ptr_fun<int, int>' has been explicitly marked deprecated here
_LIBCPP_DEPRECATED_IN_CXX11 inline _LIBCPP_INLINE_VISIBILITY
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk/usr/include/c++/v1/__config:1046:39: note: expanded from macro '_LIBCPP_DEPRECATED_IN_CXX11'

  1. define _LIBCPP_DEPRECATED_IN_CXX11 _LIBCPP_DEPRECATED
    ^
    /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk/usr/include/c++/v1/__config:1035:48: note: expanded from macro '_LIBCPP_DEPRECATED'

  2. define _LIBCPP_DEPRECATED _attribute_ ((deprecated))
    ^
    ../plugin/data_masking/src/udf/udf_utils_string.cc:111:39: warning: 'ptr_fun<int, int>' is deprecated [-Wdeprecated-declarations]
    std::not1(std::ptr_fun<int, int>(std::isspace)))
    ^
    /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk/usr/include/c++/v1/functional:1107:1: note: 'ptr_fun<int, int>' has been explicitly marked deprecated here
    _LIBCPP_DEPRECATED_IN_CXX11 inline _LIBCPP_INLINE_VISIBILITY
    ^
    /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk/usr/include/c++/v1/__config:1046:39: note: expanded from macro '_LIBCPP_DEPRECATED_IN_CXX11'

  3. define _LIBCPP_DEPRECATED_IN_CXX11 _LIBCPP_DEPRECATED
    ^
    /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk/usr/include/c++/v1/__config:1035:48: note: expanded from macro '_LIBCPP_DEPRECATED'

  4. define _LIBCPP_DEPRECATED _attribute_ ((deprecated))
    ^
    2 warnings generated.

Environment

None

Smart Checklist

Activity

Show:

Details

Assignee

Reporter

Affects versions

Priority

Smart Checklist

Created May 17, 2021 at 6:17 AM
Updated March 6, 2024 at 10:35 AM