Uploaded image for project: 'C++ Driver'
  1. C++ Driver
  2. CXX-1441

Build fails on Evergreen because of use of deprecated libmongoc API

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 3.2.0-rc0
    • Affects Version/s: 3.2.0-rc0
    • Component/s: Testing
    • None

      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

            Assignee:
            derick Derick Rethans
            Reporter:
            matt.broadstone@mongodb.com Matt Broadstone
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: