Unable to statically link to libmongocrypt due to missing libbson symbols

XMLWordPrintableJSON

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

      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.

            Assignee:
            Roberto Sanchez
            Reporter:
            Matt Broadstone
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: