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

Unable to statically link to libmongocrypt due to missing libbson symbols

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • None
    • None
    • None
    • None

    Description

      When statically linking to libmongocrypt for the node binding, we run into the following segfaults during test execution:

      [mbroadst@gorgor node-mongodb-crypt (master ✗)]$ npm test
       
      > mongodb-crypt@0.0.1 test /Users/mbroadst/Development/mongo/node-mongodb-crypt
      > mocha test
       
       
       
        AutoEncrypter
          state machine
      dyld: lazy symbol binding failed: Symbol not found: _bson_malloc0
        Referenced from: /Users/mbroadst/Development/mongo/node-mongodb-crypt/build/Release/mongocrypt.node
        Expected in: flat namespace
       
      dyld: Symbol not found: _bson_malloc0
        Referenced from: /Users/mbroadst/Development/mongo/node-mongodb-crypt/build/Release/mongocrypt.node
        Expected in: flat namespace
      

      it seems like libbson's symbols are missing.

      Attachments

        Activity

          People

            roberto.sanchez@mongodb.com Roberto Sanchez
            matt.broadstone@mongodb.com Matt Broadstone
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: