Uploaded image for project: 'Libmongocrypt'
  1. Libmongocrypt
  2. MONGOCRYPT-254

Fix compilation warnings of duplicate symbols on MinGW

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 1.0.4
    • Affects Version/s: None
    • Component/s: None
    • None

      When vendoring kms_message into libmongoc, the following warning was observed on MinGW compile:

      [2020/02/19 16:38:00.709] CMakeFiles\mongoc_shared.dir/objects.a(kms_request.c.obj): In function `strndup':
      [2020/02/19 16:38:00.709] C:/data/mci/4022d9d09543ecc5ea3d07d16c605eb6/mongoc/build-dir/src/kms-message/src/kms_port.h:26: multiple definition of `strndup'
      [2020/02/19 16:38:00.709] CMakeFiles\mongoc_shared.dir/objects.a(kms_kv_list.c.obj):C:/data/mci/4022d9d09543ecc5ea3d07d16c605eb6/mongoc/build-dir/src/kms-message/src/kms_port.h:26: first defined here
      

      Example patch build

            Assignee:
            kevin.albertson@mongodb.com Kevin Albertson
            Reporter:
            kevin.albertson@mongodb.com Kevin Albertson
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: