我有一个正在尝试在 macOS 上编译的 linux 应用程序。它依赖于 Cyrus SASL 库。
在编译期间,我收到与 SASL 相关的弃用警告,但该应用程序可以编译并且似乎可以工作。
/Users/travis/build/apache/qpid-proton/c/src/sasl/cyrus_sasl.c:101:30: warning: 'sasl_errdetail' is deprecated: first deprecated in macOS 10.11 [-Wdeprecated-declarations]
const char* err = conn ? sasl_errdetail(conn) : sasl_errstring(r, NULL, NULL);
linux 上的 Cyrus SASL 带有实用程序saslpasswd2
。这似乎在 macOS 上不存在。
我想问一下 Apple 推荐的在 macOS 上提供 SASL 的方法是什么,它可以为我提供编译库和saslpasswd2
实用程序。