-
Type: Bug
-
Resolution: Works as Designed
-
Priority: Major - P3
-
None
-
Affects Version/s: None
-
Component/s: None
-
None
-
Environment:OSX
When building the PHP driver, I received the following mongoc warnings:
/Users/katherinewalker/drivers/driver-mongo-php/src/libbson/src/bson/bson-context.c:53:11: warning: 'syscall' is deprecated: first deprecated in macOS 10.12 - syscall(2) is unsupported; please switch to a supported interface. For SYS_kdebug_trace use kdebug_signpost(). [-Wdeprecated-declarations] return syscall (SYS_gettid); ^ /usr/include/unistd.h:733:6: note: 'syscall' has been explicitly marked deprecated here int syscall(int, ...); ^ 1 warning generated. /Users/katherinewalker/drivers/driver-mongo-php/src/libmongoc/src/mongoc/mongoc-cyrus.c:37:25: warning: 'sasl_global_listmech' is deprecated: first deprecated in macOS 10.11 [-Wdeprecated-declarations] const char **mechs = sasl_global_listmech (); ^ /usr/include/sasl/sasl.h:1081:27: note: 'sasl_global_listmech' has been explicitly marked deprecated here LIBSASL_API const char ** sasl_global_listmech(void) __OSX_AVAILABLE_BUT_DEPRECATED(__MAC_10_0,__MAC_10_11,__IPHONE_NA,__IPHONE_NA); ^ /Users/katherinewalker/drivers/driver-mongo-php/src/libmongoc/src/mongoc/mongoc-cyrus.c:218:7: warning: 'sasl_dispose' is deprecated: first deprecated in macOS 10.11 [-Wdeprecated-declarations] sasl_dispose (&sasl->conn); ^ /usr/include/sasl/sasl.h:746:18: note: 'sasl_dispose' has been explicitly marked deprecated here LIBSASL_API void sasl_dispose(sasl_conn_t **pconn) __OSX_AVAILABLE_BUT_DEPRECATED(__MAC_10_0,__MAC_10_11,__IPHONE_NA,__IPHONE_NA); ^ /Users/katherinewalker/drivers/driver-mongo-php/src/libmongoc/src/mongoc/mongoc-cyrus.c:249:31: warning: 'sasl_global_listmech' is deprecated: first deprecated in macOS 10.11 [-Wdeprecated-declarations] const char **mechs = sasl_global_listmech (); ^ /usr/include/sasl/sasl.h:1081:27: note: 'sasl_global_listmech' has been explicitly marked deprecated here LIBSASL_API const char ** sasl_global_listmech(void) __OSX_AVAILABLE_BUT_DEPRECATED(__MAC_10_0,__MAC_10_11,__IPHONE_NA,__IPHONE_NA); ^ /Users/katherinewalker/drivers/driver-mongo-php/src/libmongoc/src/mongoc/mongoc-cyrus.c:278:26: warning: 'sasl_errstring' is deprecated: first deprecated in macOS 10.11 [-Wdeprecated-declarations] sasl_errstring (status, NULL, NULL)); ^ /usr/include/sasl/sasl.h:757:25: note: 'sasl_errstring' has been explicitly marked deprecated here LIBSASL_API const char *sasl_errstring(int saslerr, ^ /Users/katherinewalker/drivers/driver-mongo-php/src/libmongoc/src/mongoc/mongoc-cyrus.c:314:13: warning: 'sasl_client_new' is deprecated: first deprecated in macOS 10.11 [-Wdeprecated-declarations] status = sasl_client_new ( ^ /usr/include/sasl/sasl.h:947:17: note: 'sasl_client_new' has been explicitly marked deprecated here LIBSASL_API int sasl_client_new(const char *service, ^ /Users/katherinewalker/drivers/driver-mongo-php/src/libmongoc/src/mongoc/mongoc-cyrus.c:322:13: warning: 'sasl_client_start' is deprecated: first deprecated in macOS 10.11 [-Wdeprecated-declarations] status = sasl_client_start (sasl->conn, ^ /usr/include/sasl/sasl.h:972:17: note: 'sasl_client_start' has been explicitly marked deprecated here LIBSASL_API int sasl_client_start(sasl_conn_t *conn, ^ /Users/katherinewalker/drivers/driver-mongo-php/src/libmongoc/src/mongoc/mongoc-cyrus.c:345:13: warning: 'sasl_encode64' is deprecated: first deprecated in macOS 10.11 [-Wdeprecated-declarations] status = sasl_encode64 (raw, raw_len, (char *) outbuf, outbufmax, outbuflen); ^ /usr/include/sasl/saslutil.h:40:17: note: 'sasl_encode64' has been explicitly marked deprecated here LIBSASL_API int sasl_encode64(const char *in, unsigned inlen, ^ /Users/katherinewalker/drivers/driver-mongo-php/src/libmongoc/src/mongoc/mongoc-cyrus.c:391:23: warning: 'sasl_errdetail' is deprecated: first deprecated in macOS 10.11 [-Wdeprecated-declarations] sasl_errdetail (sasl->conn)); ^ /usr/include/sasl/sasl.h:770:25: note: 'sasl_errdetail' has been explicitly marked deprecated here LIBSASL_API const char *sasl_errdetail(sasl_conn_t *conn) __OSX_AVAILABLE_BUT_DEPRECATED(__MAC_10_0,__MAC_10_11,__IPHONE_NA,__IPHONE_NA); ^ /Users/katherinewalker/drivers/driver-mongo-php/src/libmongoc/src/mongoc/mongoc-cyrus.c:395:13: warning: 'sasl_decode64' is deprecated: first deprecated in macOS 10.11 [-Wdeprecated-declarations] status = sasl_decode64 ( ^ /usr/include/sasl/saslutil.h:27:17: note: 'sasl_decode64' has been explicitly marked deprecated here LIBSASL_API int sasl_decode64(const char *in, unsigned inlen, ^ /Users/katherinewalker/drivers/driver-mongo-php/src/libmongoc/src/mongoc/mongoc-cyrus.c:402:13: warning: 'sasl_client_step' is deprecated: first deprecated in macOS 10.11 [-Wdeprecated-declarations] status = sasl_client_step ( ^ /usr/include/sasl/sasl.h:993:17: note: 'sasl_client_step' has been explicitly marked deprecated here LIBSASL_API int sasl_client_step(sasl_conn_t *conn, ^ /Users/katherinewalker/drivers/driver-mongo-php/src/libmongoc/src/mongoc/mongoc-cyrus.c:410:13: warning: 'sasl_encode64' is deprecated: first deprecated in macOS 10.11 [-Wdeprecated-declarations] status = sasl_encode64 (raw, rawlen, (char *) outbuf, outbufmax, outbuflen); ^ /usr/include/sasl/saslutil.h:40:17: note: 'sasl_encode64' has been explicitly marked deprecated here LIBSASL_API int sasl_encode64(const char *in, unsigned inlen, ^ 11 warnings generated. /Users/katherinewalker/drivers/driver-mongo-php/src/libmongoc/src/mongoc/mongoc-init.c:106:4: warning: 'sasl_set_mutex' is deprecated: first deprecated in macOS 10.11 [-Wdeprecated-declarations] sasl_set_mutex (mongoc_cyrus_mutex_alloc, ^ /usr/include/sasl/sasl.h:253:18: note: 'sasl_set_mutex' has been explicitly marked deprecated here LIBSASL_API void sasl_set_mutex(sasl_mutex_alloc_t *, sasl_mutex_lock_t *, ^ /Users/katherinewalker/drivers/driver-mongo-php/src/libmongoc/src/mongoc/mongoc-init.c:111:13: warning: 'sasl_client_init' is deprecated: first deprecated in macOS 10.11 [-Wdeprecated-declarations] status = sasl_client_init (NULL); ^ /usr/include/sasl/sasl.h:924:17: note: 'sasl_client_init' has been explicitly marked deprecated here LIBSASL_API int sasl_client_init(const sasl_callback_t *callbacks) __OSX_AVAILABLE_BUT_DEPRECATED(__MAC_10_0,__MAC_10_11,__IPHONE_NA,__IPHONE_NA); ^ /Users/katherinewalker/drivers/driver-mongo-php/src/libmongoc/src/mongoc/mongoc-init.c:153:4: warning: 'sasl_client_done' is deprecated: first deprecated in macOS 10.11 [-Wdeprecated-declarations] sasl_client_done (); ^ /usr/include/sasl/sasl.h:741:17: note: 'sasl_client_done' has been explicitly marked deprecated here LIBSASL_API int sasl_client_done(void) __OSX_AVAILABLE_BUT_DEPRECATED(__MAC_10_0,__MAC_10_11,__IPHONE_NA,__IPHONE_NA); ^
Here is the output of gcc --verison:
Configured with: --prefix=/Library/Developer/CommandLineTools/usr --with-gxx-include-dir=/usr/include/c++/4.2.1
Apple LLVM version 8.1.0 (clang-802.0.42)
Target: x86_64-apple-darwin16.6.0
Thread model: posix
InstalledDir: /Library/Developer/CommandLineTools/usr/bin
Here are the build flags:
mongodb was configured with the following options: Build configuration: CFLAGS : -g -O2 Extra CFLAGS : -g -O0 -Wall -D_THREAD_SAFE -pthread Developers flags (slow) : -Wmissing-format-attribute -Wduplicate-enum -Wheader-guard -Wlogical-not-parentheses -fno-omit-frame-pointer -fno-optimize-sibling-calls -Wlogical-op-parentheses -Wbool-conversion -Wloop-analysis -Wsizeof-array-argument -Wstring-conversion -Wno-variadic-macros -Wno-sign-compare -fstack-protector -fno-exceptions -Wformat-security -Wformat-nonliteral -Winit-self -Wwrite-strings -Wenum-compare -Wempty-body -Wparentheses -Wdeclaration-after-statement -Werror -Wextra -Wno-unused-parameter -Wno-missing-field-initializers Code Coverage flags (extra slow) : System mongoc : no System libbson : no LDFLAGS : EXTRA_LDFLAGS : MONGODB_SHARED_LIBADD : -lsasl2 -Wl,-rpath,/usr/local/opt/openssl//lib -L/usr/local/opt/openssl//lib -lcrypto -lssl -lcrypto
- depends on
-
PHPC-1142 Prefer native GSSAPI to Cyrus SASL on macOS
- Closed
- is related to
-
CDRIVER-2088 Can't build libbson on tvOS / watchOS
- Closed
- related to
-
CDRIVER-2722 Reimplement macOS TLS layer in terms of non-deprecated APIs
- Backlog
- links to