Uploaded image for project: 'Node.js Driver'
  1. Node.js Driver
  2. NODE-489

Failed to load c++ bson extension

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 2.0.34
    • Affects Version/s: 2.0.33
    • Component/s: None
    • Environment:
      iojs 2.3

      Hello,
      find below the details...
      I know that this is an evergreen error, since it is a moving target, but at least provide some details with which iojs version it worked last for you. Maybe there could be somewhere a table nodejs/iojs version | working mongodb version...
      Thanks
      Ognian

      OS X 10.9

      npm install

      > kerberos@0.0.12 install /storage/safe/ogi-it/Projekte/LIMS/LIMS_src/LIMS_eval/node_modules/mongodb/node_modules/mongodb-core/node_modules/kerberos
      > (node-gyp rebuild 2> builderror.log) || (exit 0)

      CXX(target) Release/obj.target/kerberos/lib/kerberos.o
      CXX(target) Release/obj.target/kerberos/lib/worker.o
      CC(target) Release/obj.target/kerberos/lib/kerberosgss.o
      CC(target) Release/obj.target/kerberos/lib/base64.o
      CXX(target) Release/obj.target/kerberos/lib/kerberos_context.o
      SOLINK_MODULE(target) Release/kerberos.node
      npm WARN installMany nopt was bundled with node-pre-gyp@0.6.4, but bundled package wasn't found in unpacked tree
      npm WARN installMany npmlog was bundled with node-pre-gyp@0.6.4, but bundled package wasn't found in unpacked tree
      npm WARN installMany request was bundled with node-pre-gyp@0.6.4, but bundled package wasn't found in unpacked tree
      npm WARN installMany semver was bundled with node-pre-gyp@0.6.4, but bundled package wasn't found in unpacked tree
      npm WARN installMany tar was bundled with node-pre-gyp@0.6.4, but bundled package wasn't found in unpacked tree
      npm WARN installMany tar-pack was bundled with node-pre-gyp@0.6.4, but bundled package wasn't found in unpacked tree
      npm WARN installMany mkdirp was bundled with node-pre-gyp@0.6.4, but bundled package wasn't found in unpacked tree
      npm WARN installMany rc was bundled with node-pre-gyp@0.6.4, but bundled package wasn't found in unpacked tree
      npm WARN installMany rimraf was bundled with node-pre-gyp@0.6.4, but bundled package wasn't found in unpacked tree

      > bson-ext@0.1.8 install /storage/safe/ogi-it/Projekte/LIMS/LIMS_src/LIMS_eval/node_modules/mongodb/node_modules/mongodb-core/node_modules/bson/node_modules/bson-ext
      > (node-pre-gyp install --fallback-to-build) || (node-gyp rebuild 2> builderror.log) || (exit 0)

      CXX(target) Release/obj.target/bson/ext/bson.o
      ../ext/bson.cc:803:17: warning: 'DecodeBytes' is deprecated: Use DecodeBytes(isolate, ...) [-Wdeprecated-declarations]
      ssize_t len = DecodeBytes(args[0], BINARY);
      ^
      /Users/ogi/.node-gyp/2.3.0/src/node.h:318:32: note: 'DecodeBytes' has been explicitly marked deprecated here
      inline ssize_t DecodeBytes(
      ^
      /Users/ogi/.node-gyp/2.3.0/src/node.h:66:42: note: expanded from macro 'NODE_DEPRECATED'
      _attribute_((deprecated(message))) declarator
      ^
      ../ext/bson.cc:811:3: warning: 'DecodeWrite' is deprecated: Use DecodeWrite(isolate, ...) [-Wdeprecated-declarations]
      DecodeWrite(data, len, args[0], BINARY);
      ^
      /Users/ogi/.node-gyp/2.3.0/src/node.h:331:32: note: 'DecodeWrite' has been explicitly marked deprecated here
      inline ssize_t DecodeWrite(char* buf,
      ^
      /Users/ogi/.node-gyp/2.3.0/src/node.h:66:42: note: expanded from macro 'NODE_DEPRECATED'
      _attribute_((deprecated(message))) declarator
      ^
      ../ext/bson.cc:905:28: warning: 'Encode' is deprecated: Use Encode(isolate, ...) [-Wdeprecated-declarations]
      Local<Value> bin_value = Encode(serialized_object, object_size, BINARY)->ToString();
      ^
      /Users/ogi/.node-gyp/2.3.0/src/node.h:299:45: note: 'Encode' has been explicitly marked deprecated here
      inline v8::Local<v8::Value> Encode(
      ^
      /Users/ogi/.node-gyp/2.3.0/src/node.h:66:42: note: expanded from macro 'NODE_DEPRECATED'
      _attribute_((deprecated(message))) declarator
      ^
      3 warnings generated.
      SOLINK_MODULE(target) Release/bson.node
      mongodb@2.0.33 node_modules/mongodb
      ├── readable-stream@1.0.31 (inherits@2.0.1, isarray@0.0.1, string_decoder@0.10.31, core-util-is@1.0.1)
      └── mongodb-core@1.1.32 (kerberos@0.0.12, bson@0.3.2)

            Assignee:
            christkv Christian Amor Kvalheim
            Reporter:
            ognian.tschakalov@ogi-it.com Ognian Tschakalov
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: