[CXX-1441] Build fails on Evergreen because of use of deprecated libmongoc API Created: 27/Sep/17  Updated: 28/Oct/23  Resolved: 04/Oct/17

Status: Closed
Project: C++ Driver
Component/s: Testing
Affects Version/s: 3.2.0-rc0
Fix Version/s: 3.2.0-rc0

Type: Bug Priority: Major - P3
Reporter: Matt Broadstone Assignee: Derick Rethans
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

All of the evergreen builds are broken, the informative section of the failure is:

[2017/09/08 12:38:05.388] In file included from /data/mci/b26488cef5a8f5b96174d8fa4a5e320a/mongo-cxx-driver/src/mongocxx/exception/private/mongoc_error.hh:19:0,
[2017/09/08 12:38:05.388]                  from /data/mci/b26488cef5a8f5b96174d8fa4a5e320a/mongo-cxx-driver/src/mongocxx/bulk_write.cpp:22:
[2017/09/08 12:38:05.388] /data/mci/b26488cef5a8f5b96174d8fa4a5e320a/mongo-cxx-driver/src/mongocxx/private/libmongoc.hh:51:63: error: ‘bool mongoc_collection_create_index(mongoc_collection_t*, const bson_t*, const mongoc_index_opt_t*, bson_error_t*)’ is deprecated (declared at /data/mci/b26488cef5a8f5b96174d8fa4a5e320a/mongoc/include/libmongoc-1.0/mongoc-collection.h:123) [-Werror=deprecated-declarations]
[2017/09/08 12:38:05.388]  #define MONGOCXX_LIBMONGOC_SYMBOL(name) constexpr auto name = mongoc_##name;
[2017/09/08 12:38:05.388]                                                                ^
[2017/09/08 12:38:05.388] /data/mci/b26488cef5a8f5b96174d8fa4a5e320a/mongo-cxx-driver/src/mongocxx/private/libmongoc_symbols.hh:54:1: note: in expansion of macro ‘MONGOCXX_LIBMONGOC_SYMBOL’
[2017/09/08 12:38:05.388]  MONGOCXX_LIBMONGOC_SYMBOL(collection_create_index)
[2017/09/08 12:38:05.389]  ^
[2017/09/08 12:38:05.756] cc1plus: error: unrecognized command line option "-Wno-expansion-to-defined" [-Werror]
[2017/09/08 12:38:05.756] cc1plus: all warnings being treated as errors

{collection_create_index}

should not be used, and instead the driver should use a raw command



 Comments   
Comment by Githook User [ 04/Oct/17 ]

Author:

{'email': 'github@derickrethans.nl', 'name': 'Derick Rethans', 'username': 'derickr'}

Message: Fixed CXX-1441: build failing because of use of deprecated libmongoc api
Branch: master
https://github.com/mongodb/mongo-cxx-driver/commit/8bdec27c965814a63e17307cdf86957390ec3f98

Comment by Derick Rethans [ 03/Oct/17 ]

https://github.com/mongodb/mongo-cxx-driver/pull/591

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