Uploaded image for project: 'C Driver'
  1. C Driver
  2. CDRIVER-1934

Darwin Secure Transport build warning

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 1.5.0
    • Affects Version/s: 1.4.0, 1.5.0
    • Component/s: None
    • Labels:
      None

      There is a weird build warning breaking our Werror builds on Darwin Secure Transport:

      [2016/11/21 14:22:35.626] src/mongoc/mongoc-stream-tls.c:56:1: error: conflicting types for 'mongoc_stream_tls_handshake'
      [2016/11/21 14:22:35.626] mongoc_stream_tls_handshake (mongoc_stream_t *stream,
      [2016/11/21 14:22:35.626] ^
      [2016/11/21 14:22:35.626] ./src/mongoc/mongoc-stream-tls.h:35:18: note: previous declaration is here
      [2016/11/21 14:22:35.626] bool             mongoc_stream_tls_handshake     (mongoc_stream_t  *stream,
      [2016/11/21 14:22:35.626]                  ^
      [2016/11/21 14:22:35.626] src/mongoc/mongoc-stream-tls.c:73:1: error: conflicting types for 'mongoc_stream_tls_handshake_block'
      [2016/11/21 14:22:35.627] mongoc_stream_tls_handshake_block (mongoc_stream_t *stream,
      [2016/11/21 14:22:35.627] ^
      [2016/11/21 14:22:35.627] ./src/mongoc/mongoc-stream-tls.h:41:18: note: previous declaration is here
      [2016/11/21 14:22:35.627] bool             mongoc_stream_tls_handshake_block (mongoc_stream_t  *stream,
      [2016/11/21 14:22:35.627]                  ^
      [2016/11/21 14:22:35.627] src/mongoc/mongoc-stream-tls.c:138:1: error: conflicting types for 'mongoc_stream_tls_do_handshake'
      [2016/11/21 14:22:35.627] mongoc_stream_tls_do_handshake (mongoc_stream_t *stream,
      [2016/11/21 14:22:35.627] ^
      [2016/11/21 14:22:35.627] ./src/mongoc/mongoc-stream-tls.h:46:18: note: previous declaration is here
      [2016/11/21 14:22:35.627] bool             mongoc_stream_tls_do_handshake  (mongoc_stream_t  *stream,
      [2016/11/21 14:22:35.627]                  ^
      [2016/11/21 14:22:35.627] src/mongoc/mongoc-stream-tls.c:155:1: error: conflicting types for 'mongoc_stream_tls_check_cert'
      [2016/11/21 14:22:35.627] mongoc_stream_tls_check_cert (mongoc_stream_t *stream,
      [2016/11/21 14:22:35.627] ^
      [2016/11/21 14:22:35.627] ./src/mongoc/mongoc-stream-tls.h:49:18: note: previous declaration is here
      [2016/11/21 14:22:35.627] bool             mongoc_stream_tls_check_cert    (mongoc_stream_t  *stream,
      [2016/11/21 14:22:35.627]                  ^
      [2016/11/21 14:22:35.630] 4 errors generated.
      [2016/11/21 14:22:35.634] make[1]: *** [src/mongoc/libmongoc_1_0_la-mongoc-stream-tls.lo] Error 
      

      It looks like one of the Security system headers also have a bool emulation, which conflicts with our.

            Assignee:
            bjori Hannes Magnusson
            Reporter:
            bjori Hannes Magnusson
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: