[CDRIVER-1934] Darwin Secure Transport build warning Created: 22/Nov/16  Updated: 23/Nov/16  Resolved: 23/Nov/16

Status: Closed
Project: C Driver
Component/s: None
Affects Version/s: 1.4.0, 1.5.0
Fix Version/s: 1.5.0

Type: Bug Priority: Major - P3
Reporter: Hannes Magnusson Assignee: Hannes Magnusson
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

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.



 Comments   
Comment by Githook User [ 23/Nov/16 ]

Author:

{u'username': u'bjori', u'name': u'Hannes Magnusson', u'email': u'bjori@php.net'}

Message: CDRIVER-1934 Darwin Secure Transport build warning
Branch: master
https://github.com/mongodb/mongo-c-driver/commit/5261371c50ffe80274bfbad1d73790ddf2fff12d

Comment by Hannes Magnusson [ 22/Nov/16 ]

https://mongodbcr.appspot.com/100960001/

Generated at Wed Feb 07 21:13:39 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.