Mock Version: 1.2.17 ENTER ['do'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target armv7hl --nodeps /builddir/build/SPECS/nodejs-bson.spec'], chrootPath='/var/lib/mock/epel-1-armhfp-8a51c59b394b1cff22c893a4a132d5ce4c4e6242/root'shell=FalseprintOutput=Falseenv={'LANG': 'en_US.UTF-8', 'TERM': 'vt100', 'SHELL': '/bin/bash', 'PROMPT_COMMAND': 'printf "\x1b]0;\x07"', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'HOME': '/builddir', 'HOSTNAME': 'mock'}gid=135user='mockbuild'timeout=0logger=uid=996) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target armv7hl --nodeps /builddir/build/SPECS/nodejs-bson.spec'] with env {'LANG': 'en_US.UTF-8', 'TERM': 'vt100', 'SHELL': '/bin/bash', 'PROMPT_COMMAND': 'printf "\x1b]0;\x07"', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'HOME': '/builddir', 'HOSTNAME': 'mock'} and shell False Building target platforms: armv7hl Building for target armv7hl Wrote: /builddir/build/SRPMS/nodejs-bson-0.2.9-1.el7.src.rpm Child return code was: 0 ENTER ['do'](['bash', '--login', '-c', u'/usr/bin/rpmbuild -bb --target armv7hl --nodeps /builddir/build/SPECS/nodejs-bson.spec'], chrootPath='/var/lib/mock/epel-1-armhfp-8a51c59b394b1cff22c893a4a132d5ce4c4e6242/root'shell=Falseuid=996env={'LANG': 'en_US.UTF-8', 'TERM': 'vt100', 'SHELL': '/bin/bash', 'PROMPT_COMMAND': 'printf "\x1b]0;\x07"', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'HOME': '/builddir', 'HOSTNAME': 'mock'}gid=135user='mockbuild'timeout=0private_network=Truelogger=printOutput=False) Executing command: ['bash', '--login', '-c', u'/usr/bin/rpmbuild -bb --target armv7hl --nodeps /builddir/build/SPECS/nodejs-bson.spec'] with env {'LANG': 'en_US.UTF-8', 'TERM': 'vt100', 'SHELL': '/bin/bash', 'PROMPT_COMMAND': 'printf "\x1b]0;\x07"', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'HOME': '/builddir', 'HOSTNAME': 'mock'} and shell False Building target platforms: armv7hl Building for target armv7hl Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.pWhWa0 + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf package + /usr/bin/gzip -dc /builddir/build/SOURCES/bson-0.2.9.tgz + /usr/bin/tar -xf - + STATUS=0 + '[' 0 -ne 0 ']' + cd package + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + /usr/lib/rpm/nodejs-fixdep --caret nan + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.fUhyx7 + umask 022 + cd /builddir/build/BUILD + cd package + export 'CXXFLAGS=-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=hard' + CXXFLAGS='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=hard' + export NODE_PATH=/usr/lib/node_modules/ + NODE_PATH=/usr/lib/node_modules/ + node-gyp rebuild gyp info it worked if it ends with ok gyp info using node-gyp@0.10.6 gyp info using node@6.12.0 | linux | arm gyp info spawn python gyp info spawn args [ '/usr/bin/gyp', gyp info spawn args 'binding.gyp', gyp info spawn args '-f', gyp info spawn args 'make', gyp info spawn args '-I', gyp info spawn args '/builddir/build/BUILD/package/build/config.gypi', gyp info spawn args '-I', gyp info spawn args '/usr/lib/node_modules/node-gyp/addon-rpm.gypi', gyp info spawn args '-I', gyp info spawn args '/usr/share/node/common.gypi', gyp info spawn args '-Dlibrary=shared_library', gyp info spawn args '-Dvisibility=default', gyp info spawn args '-Dnode_root_dir=/usr/share/node', gyp info spawn args '-Dmodule_root_dir=/builddir/build/BUILD/package', gyp info spawn args '--depth=.', gyp info spawn args '--generator-output', gyp info spawn args 'build', gyp info spawn args '-Goutput_dir=.' ] (node:2417) DeprecationWarning: child_process: options.customFds option is deprecated. Use options.stdio instead. gyp info spawn make gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ] make: Entering directory `/builddir/build/BUILD/package/build' CXX(target) Release/obj.target/bson/ext/bson.o ../ext/bson.cc: In member function 'void BSONSerializer::SerializeValue(void*, v8::Handle&)': ../ext/bson.cc:199:46: error: there are no arguments to 'NanNew' that depend on a template parameter, so a declaration of 'NanNew' must be available [-fpermissive] if(object->Has(NanNew(bson->_bsontypeString))) ^ ../ext/bson.cc:199:46: note: (if you use '-fpermissive', G++ will accept your code, but allowing the use of an undeclared name is deprecated) ../ext/bson.cc:202:30: error: there are no arguments to 'NanNew' that depend on a template parameter, so a declaration of 'NanNew' must be available [-fpermissive] if(NanNew(bson->longString)->StrictEquals(constructorString)) ^ ../ext/bson.cc:205:57: error: there are no arguments to 'NanNew' that depend on a template parameter, so a declaration of 'NanNew' must be available [-fpermissive] this->WriteInt32(object, NanNew(bson->_longLowString)); ^ ../ext/bson.cc:206:58: error: there are no arguments to 'NanNew' that depend on a template parameter, so a declaration of 'NanNew' must be available [-fpermissive] this->WriteInt32(object, NanNew(bson->_longHighString)); ^ ../ext/bson.cc:208:40: error: there are no arguments to 'NanNew' that depend on a template parameter, so a declaration of 'NanNew' must be available [-fpermissive] else if(NanNew(bson->timestampString)->StrictEquals(constructorString)) ^ ../ext/bson.cc:211:57: error: there are no arguments to 'NanNew' that depend on a template parameter, so a declaration of 'NanNew' must be available [-fpermissive] this->WriteInt32(object, NanNew(bson->_longLowString)); ^ ../ext/bson.cc:212:58: error: there are no arguments to 'NanNew' that depend on a template parameter, so a declaration of 'NanNew' must be available [-fpermissive] this->WriteInt32(object, NanNew(bson->_longHighString)); ^ ../ext/bson.cc:214:39: error: there are no arguments to 'NanNew' that depend on a template parameter, so a declaration of 'NanNew' must be available [-fpermissive] else if(NanNew(bson->objectIDString)->StrictEquals(constructorString)) ^ ../ext/bson.cc:217:63: error: there are no arguments to 'NanNew' that depend on a template parameter, so a declaration of 'NanNew' must be available [-fpermissive] this->WriteObjectId(object, NanNew(bson->_objectIDidString)); ^ ../ext/bson.cc:219:37: error: there are no arguments to 'NanNew' that depend on a template parameter, so a declaration of 'NanNew' must be available [-fpermissive] else if(NanNew(bson->binaryString)->StrictEquals(constructorString)) ^ ../ext/bson.cc:223:69: error: there are no arguments to 'NanNew' that depend on a template parameter, so a declaration of 'NanNew' must be available [-fpermissive] uint32_t length = object->Get(NanNew(bson->_binaryPositionString))->Uint32Value(); ^ ../ext/bson.cc:224:75: error: there are no arguments to 'NanNew' that depend on a template parameter, so a declaration of 'NanNew' must be available [-fpermissive] Local bufferObj = object->Get(NanNew(bson->_binaryBufferString))->ToObject(); ^ ../ext/bson.cc:227:62: error: there are no arguments to 'NanNew' that depend on a template parameter, so a declaration of 'NanNew' must be available [-fpermissive] this->WriteByte(object, NanNew(bson->_binarySubTypeString)); // write subtype ^ ../ext/bson.cc:229:53: error: there are no arguments to 'NanNew' that depend on a template parameter, so a declaration of 'NanNew' must be available [-fpermissive] if(object->Get(NanNew(bson->_binarySubTypeString))->Int32Value() == 0x02) { ^ ../ext/bson.cc:235:37: error: there are no arguments to 'NanNew' that depend on a template parameter, so a declaration of 'NanNew' must be available [-fpermissive] else if(NanNew(bson->doubleString)->StrictEquals(constructorString)) ^ ../ext/bson.cc:238:62: error: there are no arguments to 'NanNew' that depend on a template parameter, so a declaration of 'NanNew' must be available [-fpermissive] this->WriteDouble(object, NanNew(bson->_doubleValueString)); ^ ../ext/bson.cc:240:37: error: there are no arguments to 'NanNew' that depend on a template parameter, so a declaration of 'NanNew' must be available [-fpermissive] else if(NanNew(bson->symbolString)->StrictEquals(constructorString)) ^ ../ext/bson.cc:243:80: error: there are no arguments to 'NanNew' that depend on a template parameter, so a declaration of 'NanNew' must be available [-fpermissive] this->WriteLengthPrefixedString(object->Get(NanNew(bson->_symbolValueString))->ToString()); ^ ../ext/bson.cc:245:35: error: there are no arguments to 'NanNew' that depend on a template parameter, so a declaration of 'NanNew' must be available [-fpermissive] else if(NanNew(bson->codeString)->StrictEquals(constructorString)) ^ ../ext/bson.cc:247:77: error: there are no arguments to 'NanNew' that depend on a template parameter, so a declaration of 'NanNew' must be available [-fpermissive] const Local& function = object->Get(NanNew(bson->_codeCodeString))->ToString(); ^ ../ext/bson.cc:248:75: error: there are no arguments to 'NanNew' that depend on a template parameter, so a declaration of 'NanNew' must be available [-fpermissive] const Local& scope = object->Get(NanNew(bson->_codeScopeString))->ToObject(); ^ ../ext/bson.cc:271:36: error: there are no arguments to 'NanNew' that depend on a template parameter, so a declaration of 'NanNew' must be available [-fpermissive] else if(NanNew(bson->dbrefString)->StrictEquals(constructorString)) ^ ../ext/bson.cc:279:75: error: there are no arguments to 'NanNew' that depend on a template parameter, so a declaration of 'NanNew' must be available [-fpermissive] SerializeValue(refType, object->Get(NanNew(bson->_dbRefNamespaceString))); ^ ../ext/bson.cc:283:68: error: there are no arguments to 'NanNew' that depend on a template parameter, so a declaration of 'NanNew' must be available [-fpermissive] SerializeValue(idType, object->Get(NanNew(bson->_dbRefOidString))); ^ ../ext/bson.cc:285:77: error: there are no arguments to 'NanNew' that depend on a template parameter, so a declaration of 'NanNew' must be available [-fpermissive] const Local& refDbValue = object->Get(NanNew(bson->_dbRefDbString)); ^ ../ext/bson.cc:296:37: error: there are no arguments to 'NanNew' that depend on a template parameter, so a declaration of 'NanNew' must be available [-fpermissive] else if(NanNew(bson->minKeyString)->StrictEquals(constructorString)) ^ ../ext/bson.cc:300:37: error: there are no arguments to 'NanNew' that depend on a template parameter, so a declaration of 'NanNew' must be available [-fpermissive] else if(NanNew(bson->maxKeyString)->StrictEquals(constructorString)) ^ ../ext/bson.cc: In member function 'v8::Handle BSONDeserializer::ReadCString()': ../ext/bson.cc:358:18: error: 'NanNull' was not declared in this scope return NanNull(); ^ ../ext/bson.cc:360:9: error: 'NanNew' was not declared in this scope return NanNew(start, (int32_t) (p-start-1) ); ^ ../ext/bson.cc:360:22: error: expected primary-expression before '>' token return NanNew(start, (int32_t) (p-start-1) ); ^ ../ext/bson.cc:360:51: warning: left operand of comma operator has no effect [-Wunused-value] return NanNew(start, (int32_t) (p-start-1) ); ^ ../ext/bson.cc: In member function 'v8::Local BSONDeserializer::ReadString()': ../ext/bson.cc:395:9: error: 'NanNew' was not declared in this scope return NanNew(start, length-1); ^ ../ext/bson.cc:395:22: error: expected primary-expression before '>' token return NanNew(start, length-1); ^ ../ext/bson.cc:395:38: warning: left operand of comma operator has no effect [-Wunused-value] return NanNew(start, length-1); ^ ../ext/bson.cc: In member function 'v8::Local BSONDeserializer::ReadObjectId()': ../ext/bson.cc:405:9: error: 'NanNew' was not declared in this scope return NanNew(objectId, 12); ^ ../ext/bson.cc:405:22: error: expected primary-expression before '>' token return NanNew(objectId, 12); ^ ../ext/bson.cc:405:34: warning: left operand of comma operator has no effect [-Wunused-value] return NanNew(objectId, 12); ^ ../ext/bson.cc: In member function 'v8::Handle BSONDeserializer::DeserializeDocumentInternal(bool)': ../ext/bson.cc:419:31: error: 'NanNew' was not declared in this scope Local returnObject = NanNew(); ^ ../ext/bson.cc:419:44: error: expected primary-expression before '>' token Local returnObject = NanNew(); ^ ../ext/bson.cc:419:46: error: expected primary-expression before ')' token Local returnObject = NanNew(); ^ ../ext/bson.cc: In member function 'v8::Handle BSONDeserializer::DeserializeArrayInternal(bool)': ../ext/bson.cc:456:29: error: 'NanNew' was not declared in this scope Local returnArray = NanNew(); ^ ../ext/bson.cc:456:41: error: expected primary-expression before '>' token Local returnArray = NanNew(); ^ ../ext/bson.cc:456:43: error: expected primary-expression before ')' token Local returnArray = NanNew(); ^ ../ext/bson.cc: In member function 'v8::Handle BSONDeserializer::DeserializeValue(BsonType, bool)': ../ext/bson.cc:478:10: error: 'NanNew' was not declared in this scope return NanNew(ReadInt32()); ^ ../ext/bson.cc:478:24: error: expected primary-expression before '>' token return NanNew(ReadInt32()); ^ ../ext/bson.cc:481:23: error: expected primary-expression before '>' token return NanNew(ReadDouble()); ^ ../ext/bson.cc:484:18: error: 'NanNull' was not declared in this scope return NanNull(); ^ ../ext/bson.cc:487:23: error: 'NanUndefined' was not declared in this scope return NanUndefined(); ^ ../ext/bson.cc:493:40: error: expected primary-expression before '>' token Local argv[] = { NanNew(lowBits), NanNew(highBits) }; ^ ../ext/bson.cc:493:64: error: expected primary-expression before '>' token Local argv[] = { NanNew(lowBits), NanNew(highBits) }; ^ ../ext/bson.cc:498:38: error: 'NanTrue' was not declared in this scope return (ReadByte() != 0) ? NanTrue() : NanFalse(); ^ ../ext/bson.cc:498:51: error: 'NanFalse' was not declared in this scope return (ReadByte() != 0) ? NanTrue() : NanFalse(); ^ ../ext/bson.cc:505:24: error: expected primary-expression before '>' token return NanNew(regex->ToString(), (RegExp::Flags) options); ^ ../ext/bson.cc:511:45: error: expected primary-expression before '>' token const Local& scope = NanNew(); ^ ../ext/bson.cc:511:47: error: expected primary-expression before ')' token const Local& scope = NanNew(); ^ ../ext/bson.cc:539:55: error: 'NanNewBufferHandle' was not declared in this scope Local buffer = NanNewBufferHandle(p, length); ^ ../ext/bson.cc:542:50: error: expected primary-expression before '>' token Handle argv[] = { buffer, NanNew(subType) }; ^ ../ext/bson.cc:560:26: error: expected primary-expression before '>' token return NanNew(finalValue); ^ ../ext/bson.cc:565:40: error: expected primary-expression before '>' token Local argv[] = { NanNew(lowBits), NanNew(highBits) }; ^ ../ext/bson.cc:565:64: error: expected primary-expression before '>' token Local argv[] = { NanNew(lowBits), NanNew(highBits) }; ^ ../ext/bson.cc:570:21: error: expected primary-expression before '>' token return NanNew((double) ReadInt64()); ^ ../ext/bson.cc:595:17: error: 'NanNull' was not declared in this scope return NanNull(); ^ ../ext/bson.cc: In constructor 'BSON::BSON()': ../ext/bson.cc:603:46: error: 'NanNew' was not declared in this scope NanAssignPersistent(_bsontypeString, NanNew("_bsontype")); ^ ../ext/bson.cc:603:59: error: expected primary-expression before '>' token NanAssignPersistent(_bsontypeString, NanNew("_bsontype")); ^ ../ext/bson.cc:603:73: error: 'NanAssignPersistent' was not declared in this scope NanAssignPersistent(_bsontypeString, NanNew("_bsontype")); ^ ../ext/bson.cc:604:58: error: expected primary-expression before '>' token NanAssignPersistent(_longLowString, NanNew("low_")); ^ ../ext/bson.cc:605:59: error: expected primary-expression before '>' token NanAssignPersistent(_longHighString, NanNew("high_")); ^ ../ext/bson.cc:606:61: error: expected primary-expression before '>' token NanAssignPersistent(_objectIDidString, NanNew("id")); ^ ../ext/bson.cc:607:65: error: expected primary-expression before '>' token NanAssignPersistent(_binaryPositionString, NanNew("position")); ^ ../ext/bson.cc:608:64: error: expected primary-expression before '>' token NanAssignPersistent(_binarySubTypeString, NanNew("sub_type")); ^ ../ext/bson.cc:609:63: error: expected primary-expression before '>' token NanAssignPersistent(_binaryBufferString, NanNew("buffer")); ^ ../ext/bson.cc:610:62: error: expected primary-expression before '>' token NanAssignPersistent(_doubleValueString, NanNew("value")); ^ ../ext/bson.cc:611:62: error: expected primary-expression before '>' token NanAssignPersistent(_symbolValueString, NanNew("value")); ^ ../ext/bson.cc:612:59: error: expected primary-expression before '>' token NanAssignPersistent(_dbRefRefString, NanNew("$ref")); ^ ../ext/bson.cc:613:61: error: expected primary-expression before '>' token NanAssignPersistent(_dbRefIdRefString, NanNew("$id")); ^ ../ext/bson.cc:614:61: error: expected primary-expression before '>' token NanAssignPersistent(_dbRefDbRefString, NanNew("$db")); ^ ../ext/bson.cc:615:65: error: expected primary-expression before '>' token NanAssignPersistent(_dbRefNamespaceString, NanNew("namespace")); ^ ../ext/bson.cc:616:58: error: expected primary-expression before '>' token NanAssignPersistent(_dbRefDbString, NanNew("db")); ^ ../ext/bson.cc:617:59: error: expected primary-expression before '>' token NanAssignPersistent(_dbRefOidString, NanNew("oid")); ^ ../ext/bson.cc:618:59: error: expected primary-expression before '>' token NanAssignPersistent(_codeCodeString, NanNew("code")); ^ ../ext/bson.cc:619:60: error: expected primary-expression before '>' token NanAssignPersistent(_codeScopeString, NanNew("scope")); ^ ../ext/bson.cc:620:57: error: expected primary-expression before '>' token NanAssignPersistent(_toBSONString, NanNew("toBSON")); ^ ../ext/bson.cc:622:54: error: expected primary-expression before '>' token NanAssignPersistent(longString, NanNew("Long")); ^ ../ext/bson.cc:623:58: error: expected primary-expression before '>' token NanAssignPersistent(objectIDString, NanNew("ObjectID")); ^ ../ext/bson.cc:624:56: error: expected primary-expression before '>' token NanAssignPersistent(binaryString, NanNew("Binary")); ^ ../ext/bson.cc:625:54: error: expected primary-expression before '>' token NanAssignPersistent(codeString, NanNew("Code")); ^ ../ext/bson.cc:626:55: error: expected primary-expression before '>' token NanAssignPersistent(dbrefString, NanNew("DBRef")); ^ ../ext/bson.cc:627:56: error: expected primary-expression before '>' token NanAssignPersistent(symbolString, NanNew("Symbol")); ^ ../ext/bson.cc:628:56: error: expected primary-expression before '>' token NanAssignPersistent(doubleString, NanNew("Double")); ^ ../ext/bson.cc:629:59: error: expected primary-expression before '>' token NanAssignPersistent(timestampString, NanNew("Timestamp")); ^ ../ext/bson.cc:630:56: error: expected primary-expression before '>' token NanAssignPersistent(minKeyString, NanNew("MinKey")); ^ ../ext/bson.cc:631:56: error: expected primary-expression before '>' token NanAssignPersistent(maxKeyString, NanNew("MaxKey")); ^ ../ext/bson.cc: In static member function 'static void BSON::Initialize(v8::Handle)': ../ext/bson.cc:637:11: error: 'NanScope' was not declared in this scope NanScope(); ^ ../ext/bson.cc:639:30: error: 'NanNew' was not declared in this scope Local t = NanNew(New); ^ ../ext/bson.cc:639:53: error: expected primary-expression before '>' token Local t = NanNew(New); ^ ../ext/bson.cc:641:34: error: 'NanSymbol' was not declared in this scope t->SetClassName(NanSymbol("BSON")); ^ ../ext/bson.cc:644:73: error: invalid conversion from 'Nan::NAN_METHOD_RETURN_TYPE (*)(Nan::NAN_METHOD_ARGS_TYPE) {aka void (*)(const Nan::FunctionCallbackInfo&)}' to 'v8::FunctionCallback {aka void (*)(const v8::FunctionCallbackInfo&)}' [-fpermissive] NODE_SET_PROTOTYPE_METHOD(t, "calculateObjectSize", CalculateObjectSize); ^ In file included from ../ext/bson.cc:22:0: /usr/include/node/node.h:275:13: error: initializing argument 3 of 'void node::NODE_SET_PROTOTYPE_METHOD(v8::Local, const char*, v8::FunctionCallback)' [-fpermissive] inline void NODE_SET_PROTOTYPE_METHOD(v8::Local recv, ^ ../ext/bson.cc:645:57: error: invalid conversion from 'Nan::NAN_METHOD_RETURN_TYPE (*)(Nan::NAN_METHOD_ARGS_TYPE) {aka void (*)(const Nan::FunctionCallbackInfo&)}' to 'v8::FunctionCallback {aka void (*)(const v8::FunctionCallbackInfo&)}' [-fpermissive] NODE_SET_PROTOTYPE_METHOD(t, "serialize", BSONSerialize); ^ In file included from ../ext/bson.cc:22:0: /usr/include/node/node.h:275:13: error: initializing argument 3 of 'void node::NODE_SET_PROTOTYPE_METHOD(v8::Local, const char*, v8::FunctionCallback)' [-fpermissive] inline void NODE_SET_PROTOTYPE_METHOD(v8::Local recv, ^ ../ext/bson.cc:646:89: error: invalid conversion from 'Nan::NAN_METHOD_RETURN_TYPE (*)(Nan::NAN_METHOD_ARGS_TYPE) {aka void (*)(const Nan::FunctionCallbackInfo&)}' to 'v8::FunctionCallback {aka void (*)(const v8::FunctionCallbackInfo&)}' [-fpermissive] NODE_SET_PROTOTYPE_METHOD(t, "serializeWithBufferAndIndex", SerializeWithBufferAndIndex); ^ In file included from ../ext/bson.cc:22:0: /usr/include/node/node.h:275:13: error: initializing argument 3 of 'void node::NODE_SET_PROTOTYPE_METHOD(v8::Local, const char*, v8::FunctionCallback)' [-fpermissive] inline void NODE_SET_PROTOTYPE_METHOD(v8::Local recv, ^ ../ext/bson.cc:647:61: error: invalid conversion from 'Nan::NAN_METHOD_RETURN_TYPE (*)(Nan::NAN_METHOD_ARGS_TYPE) {aka void (*)(const Nan::FunctionCallbackInfo&)}' to 'v8::FunctionCallback {aka void (*)(const v8::FunctionCallbackInfo&)}' [-fpermissive] NODE_SET_PROTOTYPE_METHOD(t, "deserialize", BSONDeserialize); ^ In file included from ../ext/bson.cc:22:0: /usr/include/node/node.h:275:13: error: initializing argument 3 of 'void node::NODE_SET_PROTOTYPE_METHOD(v8::Local, const char*, v8::FunctionCallback)' [-fpermissive] inline void NODE_SET_PROTOTYPE_METHOD(v8::Local recv, ^ ../ext/bson.cc:648:73: error: invalid conversion from 'Nan::NAN_METHOD_RETURN_TYPE (*)(Nan::NAN_METHOD_ARGS_TYPE) {aka void (*)(const Nan::FunctionCallbackInfo&)}' to 'v8::FunctionCallback {aka void (*)(const v8::FunctionCallbackInfo&)}' [-fpermissive] NODE_SET_PROTOTYPE_METHOD(t, "deserializeStream", BSONDeserializeStream); ^ In file included from ../ext/bson.cc:22:0: /usr/include/node/node.h:275:13: error: initializing argument 3 of 'void node::NODE_SET_PROTOTYPE_METHOD(v8::Local, const char*, v8::FunctionCallback)' [-fpermissive] inline void NODE_SET_PROTOTYPE_METHOD(v8::Local recv, ^ ../ext/bson.cc:650:45: error: 'NanAssignPersistent' was not declared in this scope NanAssignPersistent(constructor_template, t); ^ ../ext/bson.cc: In static member function 'static Nan::NAN_METHOD_RETURN_TYPE BSON::New(Nan::NAN_METHOD_ARGS_TYPE)': ../ext/bson.cc:658:11: error: 'NanScope' was not declared in this scope NanScope(); ^ ../ext/bson.cc:661:5: error: 'args' was not declared in this scope if(args.Length() == 1 && args[0]->IsArray()) ^ ../ext/bson.cc:680:58: error: 'NanNew' was not declared in this scope if(functionName->StrictEquals(NanNew(bson->longString))) { ^ ../ext/bson.cc:681:53: error: 'NanAssignPersistent' was not declared in this scope NanAssignPersistent(bson->longConstructor, func); ^ ../ext/bson.cc:684:57: error: 'NanAssignPersistent' was not declared in this scope NanAssignPersistent(bson->objectIDConstructor, func); ^ ../ext/bson.cc:687:55: error: 'NanAssignPersistent' was not declared in this scope NanAssignPersistent(bson->binaryConstructor, func); ^ ../ext/bson.cc:690:53: error: 'NanAssignPersistent' was not declared in this scope NanAssignPersistent(bson->codeConstructor, func); ^ ../ext/bson.cc:693:54: error: 'NanAssignPersistent' was not declared in this scope NanAssignPersistent(bson->dbrefConstructor, func); ^ ../ext/bson.cc:696:55: error: 'NanAssignPersistent' was not declared in this scope NanAssignPersistent(bson->symbolConstructor, func); ^ ../ext/bson.cc:699:55: error: 'NanAssignPersistent' was not declared in this scope NanAssignPersistent(bson->doubleConstructor, func); ^ ../ext/bson.cc:702:58: error: 'NanAssignPersistent' was not declared in this scope NanAssignPersistent(bson->timestampConstructor, func); ^ ../ext/bson.cc:705:55: error: 'NanAssignPersistent' was not declared in this scope NanAssignPersistent(bson->minKeyConstructor, func); ^ ../ext/bson.cc:708:55: error: 'NanAssignPersistent' was not declared in this scope NanAssignPersistent(bson->maxKeyConstructor, func); ^ ../ext/bson.cc:716:139: error: 'NanThrowError' was not declared in this scope return NanThrowError("Missing function constructor for either [Long/ObjectID/Binary/Code/DbRef/Symbol/Double/Timestamp/MinKey/MaxKey]"); ^ ../ext/bson.cc:716:139: error: return-statement with a value, in function returning 'void' [-fpermissive] ../ext/bson.cc:719:31: error: 'NanReturnValue' was not declared in this scope NanReturnValue(args.This()); ^ ../ext/bson.cc:724:45: error: 'NanThrowError' was not declared in this scope return NanThrowError("No types passed in"); ^ ../ext/bson.cc:724:45: error: return-statement with a value, in function returning 'void' [-fpermissive] ../ext/bson.cc:729:74: error: 'NanThrowTypeError' was not declared in this scope return NanThrowTypeError("Argument passed in must be an array of types"); ^ ../ext/bson.cc:729:74: error: return-statement with a value, in function returning 'void' [-fpermissive] ../ext/bson.cc: In static member function 'static Nan::NAN_METHOD_RETURN_TYPE BSON::BSONDeserialize(Nan::NAN_METHOD_ARGS_TYPE)': ../ext/bson.cc:740:11: error: 'NanScope' was not declared in this scope NanScope(); ^ ../ext/bson.cc:743:5: error: 'args' was not declared in this scope if(args.Length() > 1 && !args[0]->IsString() && !Buffer::HasInstance(args[0])) ^ ../ext/bson.cc:744:68: error: 'NanThrowError' was not declared in this scope return NanThrowError("First Argument must be a Buffer or String."); ^ ../ext/bson.cc:744:68: error: return-statement with a value, in function returning 'void' [-fpermissive] ../ext/bson.cc:750:5: error: 'args' was not declared in this scope if(args.Length() == 2 && args[1]->IsObject()) { ^ ../ext/bson.cc:753:19: error: 'NanNew' was not declared in this scope if(options->Has(NanNew("promoteLongs"))) { ^ ../ext/bson.cc:753:32: error: expected primary-expression before '>' token if(options->Has(NanNew("promoteLongs"))) { ^ ../ext/bson.cc:754:45: error: expected primary-expression before '>' token promoteLongs = options->Get(NanNew("promoteLongs"))->ToBoolean()->Value(); ^ ../ext/bson.cc:759:22: error: 'args' was not declared in this scope Local obj = args[0]->ToObject(); ^ ../ext/bson.cc:777:76: error: 'NanThrowError' was not declared in this scope if(length < 5) return NanThrowError("corrupt bson message < 5 bytes long"); ^ ../ext/bson.cc:777:76: error: return-statement with a value, in function returning 'void' [-fpermissive] ../ext/bson.cc:783:65: error: 'NanReturnValue' was not declared in this scope NanReturnValue(deserializer.DeserializeDocument(promoteLongs)); ^ ../ext/bson.cc:787:26: error: 'NanNew' was not declared in this scope Local error = NanNew(exception); ^ ../ext/bson.cc:787:39: error: expected primary-expression before '>' token Local error = NanNew(exception); ^ ../ext/bson.cc:789:30: error: 'NanThrowError' was not declared in this scope return NanThrowError(error); ^ ../ext/bson.cc:789:30: error: return-statement with a value, in function returning 'void' [-fpermissive] ../ext/bson.cc:799:73: error: 'NanThrowError' was not declared in this scope if(len < 5) return NanThrowError("corrupt bson message < 5 bytes long"); ^ ../ext/bson.cc:799:73: error: return-statement with a value, in function returning 'void' [-fpermissive] ../ext/bson.cc:811:25: error: 'NanReturnValue' was not declared in this scope NanReturnValue(result); ^ ../ext/bson.cc:816:26: error: 'NanNew' was not declared in this scope Local error = NanNew(exception); ^ ../ext/bson.cc:816:39: error: expected primary-expression before '>' token Local error = NanNew(exception); ^ ../ext/bson.cc:819:30: error: 'NanThrowError' was not declared in this scope return NanThrowError(error); ^ ../ext/bson.cc:819:30: error: return-statement with a value, in function returning 'void' [-fpermissive] ../ext/bson.cc: In member function 'v8::Local BSON::GetSerializeObject(v8::Handle&)': ../ext/bson.cc:827:37: error: 'NanNew' was not declared in this scope if(object->Has(NanNew(_toBSONString))) ^ ../ext/bson.cc: In static member function 'static Nan::NAN_METHOD_RETURN_TYPE BSON::BSONSerialize(Nan::NAN_METHOD_ARGS_TYPE)': ../ext/bson.cc:844:11: error: 'NanScope' was not declared in this scope NanScope(); ^ ../ext/bson.cc:846:5: error: 'args' was not declared in this scope if(args.Length() == 1 && !args[0]->IsObject()) return NanThrowError("One, two or tree arguments required - [object] or [object, boolean] or [object, boolean, boolean]"); ^ ../ext/bson.cc:846:169: error: 'NanThrowError' was not declared in this scope if(args.Length() == 1 && !args[0]->IsObject()) return NanThrowError("One, two or tree arguments required - [object] or [object, boolean] or [object, boolean, boolean]"); ^ ../ext/bson.cc:846:169: error: return-statement with a value, in function returning 'void' [-fpermissive] ../ext/bson.cc:847:5: error: 'args' was not declared in this scope if(args.Length() == 2 && !args[0]->IsObject() && !args[1]->IsBoolean()) return NanThrowError("One, two or tree arguments required - [object] or [object, boolean] or [object, boolean, boolean]"); ^ ../ext/bson.cc:847:194: error: 'NanThrowError' was not declared in this scope if(args.Length() == 2 && !args[0]->IsObject() && !args[1]->IsBoolean()) return NanThrowError("One, two or tree arguments required - [object] or [object, boolean] or [object, boolean, boolean]"); ^ ../ext/bson.cc:847:194: error: return-statement with a value, in function returning 'void' [-fpermissive] ../ext/bson.cc:848:5: error: 'args' was not declared in this scope if(args.Length() == 3 && !args[0]->IsObject() && !args[1]->IsBoolean() && !args[2]->IsBoolean()) return NanThrowError("One, two or tree arguments required - [object] or [object, boolean] or [object, boolean, boolean]"); ^ ../ext/bson.cc:848:219: error: 'NanThrowError' was not declared in this scope if(args.Length() == 3 && !args[0]->IsObject() && !args[1]->IsBoolean() && !args[2]->IsBoolean()) return NanThrowError("One, two or tree arguments required - [object] or [object, boolean] or [object, boolean, boolean]"); ^ ../ext/bson.cc:848:219: error: return-statement with a value, in function returning 'void' [-fpermissive] ../ext/bson.cc:849:5: error: 'args' was not declared in this scope if(args.Length() == 4 && !args[0]->IsObject() && !args[1]->IsBoolean() && !args[2]->IsBoolean() && !args[3]->IsBoolean()) return NanThrowError("One, two or tree arguments required - [object] or [object, boolean] or [object, boolean, boolean] or [object, boolean, boolean, boolean]"); ^ ../ext/bson.cc:849:283: error: 'NanThrowError' was not declared in this scope if(args.Length() == 4 && !args[0]->IsObject() && !args[1]->IsBoolean() && !args[2]->IsBoolean() && !args[3]->IsBoolean()) return NanThrowError("One, two or tree arguments required - [object] or [object, boolean] or [object, boolean, boolean] or [object, boolean, boolean, boolean]"); ^ ../ext/bson.cc:849:283: error: return-statement with a value, in function returning 'void' [-fpermissive] ../ext/bson.cc:850:5: error: 'args' was not declared in this scope if(args.Length() > 4) return NanThrowError("One, two, tree or four arguments required - [object] or [object, boolean] or [object, boolean, boolean] or [object, boolean, boolean, boolean]"); ^ ../ext/bson.cc:850:189: error: 'NanThrowError' was not declared in this scope if(args.Length() > 4) return NanThrowError("One, two, tree or four arguments required - [object] or [object, boolean] or [object, boolean, boolean] or [object, boolean, boolean, boolean]"); ^ ../ext/bson.cc:850:189: error: return-statement with a value, in function returning 'void' [-fpermissive] ../ext/bson.cc:853:5: error: 'args' was not declared in this scope if(args[0]->IsArray()) return NanThrowError("Only javascript objects supported"); ^ ../ext/bson.cc:853:81: error: 'NanThrowError' was not declared in this scope if(args[0]->IsArray()) return NanThrowError("Only javascript objects supported"); ^ ../ext/bson.cc:853:81: error: return-statement with a value, in function returning 'void' [-fpermissive] ../ext/bson.cc:856:40: error: 'args' was not declared in this scope BSON *bson = ObjectWrap::Unwrap(args.This()); ^ ../ext/bson.cc:883:25: error: 'NanNew' was not declared in this scope Local error = NanNew(err_msg); ^ ../ext/bson.cc:883:38: error: expected primary-expression before '>' token Local error = NanNew(err_msg); ^ ../ext/bson.cc:885:29: error: 'NanThrowError' was not declared in this scope return NanThrowError(error); ^ ../ext/bson.cc:885:29: error: return-statement with a value, in function returning 'void' [-fpermissive] ../ext/bson.cc:891:75: error: 'NanNewBufferHandle' was not declared in this scope Local buffer = NanNewBufferHandle(serialized_object, object_size); ^ ../ext/bson.cc:893:24: error: 'NanReturnValue' was not declared in this scope NanReturnValue(buffer); ^ ../ext/bson.cc:897:73: warning: 'v8::Local node::Encode(const void*, size_t, node::encoding)' is deprecated (declared at /usr/include/node/node.h:322): Use Encode(isolate, ...) [-Wdeprecated-declarations] Local bin_value = Encode(serialized_object, object_size, BINARY)->ToString(); ^ ../ext/bson.cc:899:27: error: 'NanReturnValue' was not declared in this scope NanReturnValue(bin_value); ^ ../ext/bson.cc: In static member function 'static Nan::NAN_METHOD_RETURN_TYPE BSON::CalculateObjectSize(Nan::NAN_METHOD_ARGS_TYPE)': ../ext/bson.cc:905:11: error: 'NanScope' was not declared in this scope NanScope(); ^ ../ext/bson.cc:907:5: error: 'args' was not declared in this scope if(args.Length() == 1 && !args[0]->IsObject()) return NanThrowError("One argument required - [object]"); ^ ../ext/bson.cc:907:104: error: 'NanThrowError' was not declared in this scope if(args.Length() == 1 && !args[0]->IsObject()) return NanThrowError("One argument required - [object]"); ^ ../ext/bson.cc:907:104: error: return-statement with a value, in function returning 'void' [-fpermissive] ../ext/bson.cc:908:5: error: 'args' was not declared in this scope if(args.Length() == 2 && !args[0]->IsObject() && !args[1]->IsBoolean()) return NanThrowError("Two arguments required - [object, boolean]"); ^ ../ext/bson.cc:908:140: error: 'NanThrowError' was not declared in this scope if(args.Length() == 2 && !args[0]->IsObject() && !args[1]->IsBoolean()) return NanThrowError("Two arguments required - [object, boolean]"); ^ ../ext/bson.cc:908:140: error: return-statement with a value, in function returning 'void' [-fpermissive] ../ext/bson.cc:909:5: error: 'args' was not declared in this scope if(args.Length() > 3) return NanThrowError("One or two arguments required - [object] or [object, boolean]"); ^ ../ext/bson.cc:909:108: error: 'NanThrowError' was not declared in this scope if(args.Length() > 3) return NanThrowError("One or two arguments required - [object] or [object, boolean]"); ^ ../ext/bson.cc:909:108: error: return-statement with a value, in function returning 'void' [-fpermissive] ../ext/bson.cc:912:40: error: 'args' was not declared in this scope BSON *bson = ObjectWrap::Unwrap(args.This()); ^ ../ext/bson.cc:918:17: error: 'NanNew' was not declared in this scope NanReturnValue(NanNew((uint32_t) countSerializer.GetSerializeSize())); ^ ../ext/bson.cc:918:30: error: expected primary-expression before '>' token NanReturnValue(NanNew((uint32_t) countSerializer.GetSerializeSize())); ^ ../ext/bson.cc:918:78: error: 'NanReturnValue' was not declared in this scope NanReturnValue(NanNew((uint32_t) countSerializer.GetSerializeSize())); ^ ../ext/bson.cc: In static member function 'static Nan::NAN_METHOD_RETURN_TYPE BSON::SerializeWithBufferAndIndex(Nan::NAN_METHOD_ARGS_TYPE)': ../ext/bson.cc:923:11: error: 'NanScope' was not declared in this scope NanScope(); ^ ../ext/bson.cc:927:5: error: 'args' was not declared in this scope if(args.Length() > 5) return NanThrowError("Four or five parameters required [object, boolean, Buffer, int] or [object, boolean, Buffer, int, boolean]"); ^ ../ext/bson.cc:927:153: error: 'NanThrowError' was not declared in this scope if(args.Length() > 5) return NanThrowError("Four or five parameters required [object, boolean, Buffer, int] or [object, boolean, Buffer, int, boolean]"); ^ ../ext/bson.cc:927:153: error: return-statement with a value, in function returning 'void' [-fpermissive] ../ext/bson.cc:928:5: error: 'args' was not declared in this scope if(args.Length() == 4 && !args[0]->IsObject() && !args[1]->IsBoolean() && !Buffer::HasInstance(args[2]) && !args[3]->IsUint32()) return NanThrowError("Four parameters required [object, boolean, Buffer, int]"); ^ ../ext/bson.cc:928:209: error: 'NanThrowError' was not declared in this scope if(args.Length() == 4 && !args[0]->IsObject() && !args[1]->IsBoolean() && !Buffer::HasInstance(args[2]) && !args[3]->IsUint32()) return NanThrowError("Four parameters required [object, boolean, Buffer, int]"); ^ ../ext/bson.cc:928:209: error: return-statement with a value, in function returning 'void' [-fpermissive] ../ext/bson.cc:929:5: error: 'args' was not declared in this scope if(args.Length() == 5 && !args[0]->IsObject() && !args[1]->IsBoolean() && !Buffer::HasInstance(args[2]) && !args[3]->IsUint32() && !args[4]->IsBoolean()) return NanThrowError("Four parameters required [object, boolean, Buffer, int, boolean]"); ^ ../ext/bson.cc:929:243: error: 'NanThrowError' was not declared in this scope if(args.Length() == 5 && !args[0]->IsObject() && !args[1]->IsBoolean() && !Buffer::HasInstance(args[2]) && !args[3]->IsUint32() && !args[4]->IsBoolean()) return NanThrowError("Four parameters required [object, boolean, Buffer, int, boolean]"); ^ ../ext/bson.cc:929:243: error: return-statement with a value, in function returning 'void' [-fpermissive] ../ext/bson.cc:936:41: error: 'args' was not declared in this scope BSON *bson = ObjectWrap::Unwrap(args.This()); ^ ../ext/bson.cc:950:94: error: 'NanThrowError' was not declared in this scope if(object_size + index > length) return NanThrowError("Serious error - overflowed buffer!!"); ^ ../ext/bson.cc:950:94: error: return-statement with a value, in function returning 'void' [-fpermissive] ../ext/bson.cc:954:25: error: 'NanNew' was not declared in this scope Local error = NanNew(exception); ^ ../ext/bson.cc:954:38: error: expected primary-expression before '>' token Local error = NanNew(exception); ^ ../ext/bson.cc:956:43: error: 'NanThrowError' was not declared in this scope return NanThrowError(error); ^ ../ext/bson.cc:956:43: error: return-statement with a value, in function returning 'void' [-fpermissive] ../ext/bson.cc:959:17: error: 'NanNew' was not declared in this scope NanReturnValue(NanNew((uint32_t) (index + object_size - 1))); ^ ../ext/bson.cc:959:30: error: expected primary-expression before '>' token NanReturnValue(NanNew((uint32_t) (index + object_size - 1))); ^ ../ext/bson.cc:959:69: error: 'NanReturnValue' was not declared in this scope NanReturnValue(NanNew((uint32_t) (index + object_size - 1))); ^ ../ext/bson.cc: In static member function 'static Nan::NAN_METHOD_RETURN_TYPE BSON::BSONDeserializeStream(Nan::NAN_METHOD_ARGS_TYPE)': ../ext/bson.cc:964:11: error: 'NanScope' was not declared in this scope NanScope(); ^ ../ext/bson.cc:967:5: error: 'args' was not declared in this scope if(args.Length() < 5) return NanThrowError("Arguments required (Buffer(data), Number(index in data), Number(number of documents to deserialize), Array(results), Number(index in the array), Object(optional))"); ^ ../ext/bson.cc:967:209: error: 'NanThrowError' was not declared in this scope if(args.Length() < 5) return NanThrowError("Arguments required (Buffer(data), Number(index in data), Number(number of documents to deserialize), Array(results), Number(index in the array), Object(optional))"); ^ ../ext/bson.cc:967:209: error: return-statement with a value, in function returning 'void' [-fpermissive] ../ext/bson.cc:970:5: error: 'args' was not declared in this scope if(args.Length() >= 5) ^ ../ext/bson.cc:972:98: error: 'NanThrowError' was not declared in this scope if(!Buffer::HasInstance(args[0])) return NanThrowError("First argument must be Buffer instance"); ^ ../ext/bson.cc:972:98: error: return-statement with a value, in function returning 'void' [-fpermissive] ../ext/bson.cc:973:98: error: 'NanThrowError' was not declared in this scope if(!args[1]->IsUint32()) return NanThrowError("Second argument must be a positive index number"); ^ ../ext/bson.cc:973:98: error: return-statement with a value, in function returning 'void' [-fpermissive] ../ext/bson.cc:974:119: error: 'NanThrowError' was not declared in this scope if(!args[2]->IsUint32()) return NanThrowError("Third argument must be a positive number of documents to deserialize"); ^ ../ext/bson.cc:974:119: error: return-statement with a value, in function returning 'void' [-fpermissive] ../ext/bson.cc:975:119: error: 'NanThrowError' was not declared in this scope if(!args[3]->IsArray()) return NanThrowError("Fourth argument must be an array the size of documents to deserialize"); ^ ../ext/bson.cc:975:119: error: return-statement with a value, in function returning 'void' [-fpermissive] ../ext/bson.cc:976:97: error: 'NanThrowError' was not declared in this scope if(!args[4]->IsUint32()) return NanThrowError("Sixth argument must be a positive index number"); ^ ../ext/bson.cc:976:97: error: return-statement with a value, in function returning 'void' [-fpermissive] ../ext/bson.cc:980:5: error: 'args' was not declared in this scope if(args.Length() == 6 && !args[5]->IsObject()) return NanThrowError("Fifth argument must be an object with options"); ^ ../ext/bson.cc:980:117: error: 'NanThrowError' was not declared in this scope if(args.Length() == 6 && !args[5]->IsObject()) return NanThrowError("Fifth argument must be an object with options"); ^ ../ext/bson.cc:980:117: error: return-statement with a value, in function returning 'void' [-fpermissive] ../ext/bson.cc:983:22: error: 'args' was not declared in this scope Local obj = args[0]->ToObject(); ^ ../ext/bson.cc:994:19: error: 'NanNew' was not declared in this scope if(options->Has(NanNew("promoteLongs"))) { ^ ../ext/bson.cc:994:32: error: expected primary-expression before '>' token if(options->Has(NanNew("promoteLongs"))) { ^ ../ext/bson.cc:995:45: error: expected primary-expression before '>' token promoteLongs = options->Get(NanNew("promoteLongs"))->ToBoolean()->Value(); ^ ../ext/bson.cc:1024:33: error: 'NanNew' was not declared in this scope Local error = NanNew(exception); ^ ../ext/bson.cc:1024:46: error: expected primary-expression before '>' token Local error = NanNew(exception); ^ ../ext/bson.cc:1026:30: error: 'NanThrowError' was not declared in this scope return NanThrowError(error); ^ ../ext/bson.cc:1026:30: error: return-statement with a value, in function returning 'void' [-fpermissive] ../ext/bson.cc:1031:17: error: 'NanNew' was not declared in this scope NanReturnValue(NanNew((uint32_t) (index + deserializer.GetSerializeSize()))); ^ ../ext/bson.cc:1031:30: error: expected primary-expression before '>' token NanReturnValue(NanNew((uint32_t) (index + deserializer.GetSerializeSize()))); ^ ../ext/bson.cc:1031:85: error: 'NanReturnValue' was not declared in this scope NanReturnValue(NanNew((uint32_t) (index + deserializer.GetSerializeSize()))); ^ ../ext/bson.cc: In function 'void init(v8::Handle)': ../ext/bson.cc:1037:11: error: 'NanScope' was not declared in this scope NanScope(); ^ ../ext/bson.cc: In instantiation of 'void BSONSerializer::SerializeValue(void*, v8::Handle&) [with T = CountStream; v8::Handle = v8::Local]': ../ext/bson.cc:112:46: required from 'void BSONSerializer::SerializeDocument(v8::Handle&) [with T = CountStream; v8::Handle = v8::Local]' ../ext/bson.cc:869:35: required from here ../ext/bson.cc:199:46: error: 'NanNew' was not declared in this scope if(object->Has(NanNew(bson->_bsontypeString))) ^ ../ext/bson.cc:202:30: error: 'NanNew' was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive] if(NanNew(bson->longString)->StrictEquals(constructorString)) ^ ../ext/bson.cc:199:46: note: 'NanNew' declared here, later in the translation unit if(object->Has(NanNew(bson->_bsontypeString))) ^ ../ext/bson.cc:205:57: error: 'NanNew' was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive] this->WriteInt32(object, NanNew(bson->_longLowString)); ^ ../ext/bson.cc:199:46: note: 'NanNew' declared here, later in the translation unit if(object->Has(NanNew(bson->_bsontypeString))) ^ ../ext/bson.cc:206:58: error: 'NanNew' was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive] this->WriteInt32(object, NanNew(bson->_longHighString)); ^ ../ext/bson.cc:199:46: note: 'NanNew' declared here, later in the translation unit if(object->Has(NanNew(bson->_bsontypeString))) ^ ../ext/bson.cc:208:40: error: 'NanNew' was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive] else if(NanNew(bson->timestampString)->StrictEquals(constructorString)) ^ ../ext/bson.cc:199:46: note: 'NanNew' declared here, later in the translation unit if(object->Has(NanNew(bson->_bsontypeString))) ^ ../ext/bson.cc:211:57: error: 'NanNew' was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive] this->WriteInt32(object, NanNew(bson->_longLowString)); ^ ../ext/bson.cc:199:46: note: 'NanNew' declared here, later in the translation unit if(object->Has(NanNew(bson->_bsontypeString))) ^ ../ext/bson.cc:212:58: error: 'NanNew' was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive] this->WriteInt32(object, NanNew(bson->_longHighString)); ^ ../ext/bson.cc:199:46: note: 'NanNew' declared here, later in the translation unit if(object->Has(NanNew(bson->_bsontypeString))) ^ ../ext/bson.cc:214:39: error: 'NanNew' was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive] else if(NanNew(bson->objectIDString)->StrictEquals(constructorString)) ^ ../ext/bson.cc:199:46: note: 'NanNew' declared here, later in the translation unit if(object->Has(NanNew(bson->_bsontypeString))) ^ ../ext/bson.cc:217:63: error: 'NanNew' was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive] this->WriteObjectId(object, NanNew(bson->_objectIDidString)); ^ ../ext/bson.cc:199:46: note: 'NanNew' declared here, later in the translation unit if(object->Has(NanNew(bson->_bsontypeString))) ^ ../ext/bson.cc:219:37: error: 'NanNew' was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive] else if(NanNew(bson->binaryString)->StrictEquals(constructorString)) ^ ../ext/bson.cc:199:46: note: 'NanNew' declared here, later in the translation unit if(object->Has(NanNew(bson->_bsontypeString))) ^ ../ext/bson.cc:223:69: error: 'NanNew' was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive] uint32_t length = object->Get(NanNew(bson->_binaryPositionString))->Uint32Value(); ^ ../ext/bson.cc:199:46: note: 'NanNew' declared here, later in the translation unit if(object->Has(NanNew(bson->_bsontypeString))) ^ ../ext/bson.cc:224:75: error: 'NanNew' was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive] Local bufferObj = object->Get(NanNew(bson->_binaryBufferString))->ToObject(); ^ ../ext/bson.cc:199:46: note: 'NanNew' declared here, later in the translation unit if(object->Has(NanNew(bson->_bsontypeString))) ^ ../ext/bson.cc:227:62: error: 'NanNew' was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive] this->WriteByte(object, NanNew(bson->_binarySubTypeString)); // write subtype ^ ../ext/bson.cc:199:46: note: 'NanNew' declared here, later in the translation unit if(object->Has(NanNew(bson->_bsontypeString))) ^ ../ext/bson.cc:229:53: error: 'NanNew' was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive] if(object->Get(NanNew(bson->_binarySubTypeString))->Int32Value() == 0x02) { ^ ../ext/bson.cc:199:46: note: 'NanNew' declared here, later in the translation unit if(object->Has(NanNew(bson->_bsontypeString))) ^ ../ext/bson.cc:235:37: error: 'NanNew' was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive] else if(NanNew(bson->doubleString)->StrictEquals(constructorString)) ^ ../ext/bson.cc:199:46: note: 'NanNew' declared here, later in the translation unit if(object->Has(NanNew(bson->_bsontypeString))) ^ ../ext/bson.cc:238:62: error: 'NanNew' was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive] this->WriteDouble(object, NanNew(bson->_doubleValueString)); ^ ../ext/bson.cc:199:46: note: 'NanNew' declared here, later in the translation unit if(object->Has(NanNew(bson->_bsontypeString))) ^ ../ext/bson.cc:240:37: error: 'NanNew' was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive] else if(NanNew(bson->symbolString)->StrictEquals(constructorString)) ^ ../ext/bson.cc:199:46: note: 'NanNew' declared here, later in the translation unit if(object->Has(NanNew(bson->_bsontypeString))) ^ ../ext/bson.cc:243:80: error: 'NanNew' was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive] this->WriteLengthPrefixedString(object->Get(NanNew(bson->_symbolValueString))->ToString()); ^ ../ext/bson.cc:199:46: note: 'NanNew' declared here, later in the translation unit if(object->Has(NanNew(bson->_bsontypeString))) ^ ../ext/bson.cc:245:35: error: 'NanNew' was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive] else if(NanNew(bson->codeString)->StrictEquals(constructorString)) ^ ../ext/bson.cc:199:46: note: 'NanNew' declared here, later in the translation unit if(object->Has(NanNew(bson->_bsontypeString))) ^ ../ext/bson.cc:247:77: error: 'NanNew' was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive] const Local& function = object->Get(NanNew(bson->_codeCodeString))->ToString(); ^ ../ext/bson.cc:199:46: note: 'NanNew' declared here, later in the translation unit if(object->Has(NanNew(bson->_bsontypeString))) ^ ../ext/bson.cc:248:75: error: 'NanNew' was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive] const Local& scope = object->Get(NanNew(bson->_codeScopeString))->ToObject(); ^ ../ext/bson.cc:199:46: note: 'NanNew' declared here, later in the translation unit if(object->Has(NanNew(bson->_bsontypeString))) ^ ../ext/bson.cc:271:36: error: 'NanNew' was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive] else if(NanNew(bson->dbrefString)->StrictEquals(constructorString)) ^ ../ext/bson.cc:199:46: note: 'NanNew' declared here, later in the translation unit if(object->Has(NanNew(bson->_bsontypeString))) ^ ../ext/bson.cc:279:75: error: 'NanNew' was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive] SerializeValue(refType, object->Get(NanNew(bson->_dbRefNamespaceString))); ^ ../ext/bson.cc:199:46: note: 'NanNew' declared here, later in the translation unit if(object->Has(NanNew(bson->_bsontypeString))) ^ ../ext/bson.cc:283:68: error: 'NanNew' was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive] SerializeValue(idType, object->Get(NanNew(bson->_dbRefOidString))); ^ ../ext/bson.cc:199:46: note: 'NanNew' declared here, later in the translation unit if(object->Has(NanNew(bson->_bsontypeString))) ^ ../ext/bson.cc:285:77: error: 'NanNew' was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive] const Local& refDbValue = object->Get(NanNew(bson->_dbRefDbString)); ^ ../ext/bson.cc:199:46: note: 'NanNew' declared here, later in the translation unit if(object->Has(NanNew(bson->_bsontypeString))) ^ ../ext/bson.cc:296:37: error: 'NanNew' was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive] else if(NanNew(bson->minKeyString)->StrictEquals(constructorString)) ^ ../ext/bson.cc:199:46: note: 'NanNew' declared here, later in the translation unit if(object->Has(NanNew(bson->_bsontypeString))) ^ ../ext/bson.cc:300:37: error: 'NanNew' was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive] else if(NanNew(bson->maxKeyString)->StrictEquals(constructorString)) ^ ../ext/bson.cc:199:46: note: 'NanNew' declared here, later in the translation unit if(object->Has(NanNew(bson->_bsontypeString))) ^ ../ext/bson.cc: In instantiation of 'void BSONSerializer::SerializeValue(void*, v8::Handle&) [with T = DataStream; v8::Handle = v8::Local]': ../ext/bson.cc:112:46: required from 'void BSONSerializer::SerializeDocument(v8::Handle&) [with T = DataStream; v8::Handle = v8::Local]' ../ext/bson.cc:878:32: required from here ../ext/bson.cc:199:46: error: 'NanNew' was not declared in this scope ../ext/bson.cc:202:30: error: 'NanNew' was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive] if(NanNew(bson->longString)->StrictEquals(constructorString)) ^ ../ext/bson.cc:199:46: note: 'NanNew' declared here, later in the translation unit if(object->Has(NanNew(bson->_bsontypeString))) ^ ../ext/bson.cc:205:57: error: 'NanNew' was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive] this->WriteInt32(object, NanNew(bson->_longLowString)); ^ ../ext/bson.cc:199:46: note: 'NanNew' declared here, later in the translation unit if(object->Has(NanNew(bson->_bsontypeString))) ^ ../ext/bson.cc:206:58: error: 'NanNew' was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive] this->WriteInt32(object, NanNew(bson->_longHighString)); ^ ../ext/bson.cc:199:46: note: 'NanNew' declared here, later in the translation unit if(object->Has(NanNew(bson->_bsontypeString))) ^ ../ext/bson.cc:208:40: error: 'NanNew' was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive] else if(NanNew(bson->timestampString)->StrictEquals(constructorString)) ^ ../ext/bson.cc:199:46: note: 'NanNew' declared here, later in the translation unit if(object->Has(NanNew(bson->_bsontypeString))) ^ ../ext/bson.cc:211:57: error: 'NanNew' was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive] this->WriteInt32(object, NanNew(bson->_longLowString)); ^ ../ext/bson.cc:199:46: note: 'NanNew' declared here, later in the translation unit if(object->Has(NanNew(bson->_bsontypeString))) ^ ../ext/bson.cc:212:58: error: 'NanNew' was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive] this->WriteInt32(object, NanNew(bson->_longHighString)); ^ ../ext/bson.cc:199:46: note: 'NanNew' declared here, later in the translation unit if(object->Has(NanNew(bson->_bsontypeString))) ^ ../ext/bson.cc:214:39: error: 'NanNew' was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive] else if(NanNew(bson->objectIDString)->StrictEquals(constructorString)) ^ ../ext/bson.cc:199:46: note: 'NanNew' declared here, later in the translation unit if(object->Has(NanNew(bson->_bsontypeString))) ^ ../ext/bson.cc:217:63: error: 'NanNew' was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive] this->WriteObjectId(object, NanNew(bson->_objectIDidString)); ^ ../ext/bson.cc:199:46: note: 'NanNew' declared here, later in the translation unit if(object->Has(NanNew(bson->_bsontypeString))) ^ ../ext/bson.cc:219:37: error: 'NanNew' was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive] else if(NanNew(bson->binaryString)->StrictEquals(constructorString)) ^ ../ext/bson.cc:199:46: note: 'NanNew' declared here, later in the translation unit if(object->Has(NanNew(bson->_bsontypeString))) ^ ../ext/bson.cc:223:69: error: 'NanNew' was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive] uint32_t length = object->Get(NanNew(bson->_binaryPositionString))->Uint32Value(); ^ ../ext/bson.cc:199:46: note: 'NanNew' declared here, later in the translation unit if(object->Has(NanNew(bson->_bsontypeString))) ^ ../ext/bson.cc:224:75: error: 'NanNew' was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive] Local bufferObj = object->Get(NanNew(bson->_binaryBufferString))->ToObject(); ^ ../ext/bson.cc:199:46: note: 'NanNew' declared here, later in the translation unit if(object->Has(NanNew(bson->_bsontypeString))) ^ ../ext/bson.cc:227:62: error: 'NanNew' was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive] this->WriteByte(object, NanNew(bson->_binarySubTypeString)); // write subtype ^ ../ext/bson.cc:199:46: note: 'NanNew' declared here, later in the translation unit if(object->Has(NanNew(bson->_bsontypeString))) ^ ../ext/bson.cc:229:53: error: 'NanNew' was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive] if(object->Get(NanNew(bson->_binarySubTypeString))->Int32Value() == 0x02) { ^ ../ext/bson.cc:199:46: note: 'NanNew' declared here, later in the translation unit if(object->Has(NanNew(bson->_bsontypeString))) ^ ../ext/bson.cc:235:37: error: 'NanNew' was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive] else if(NanNew(bson->doubleString)->StrictEquals(constructorString)) ^ ../ext/bson.cc:199:46: note: 'NanNew' declared here, later in the translation unit if(object->Has(NanNew(bson->_bsontypeString))) ^ ../ext/bson.cc:238:62: error: 'NanNew' was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive] this->WriteDouble(object, NanNew(bson->_doubleValueString)); ^ ../ext/bson.cc:199:46: note: 'NanNew' declared here, later in the translation unit if(object->Has(NanNew(bson->_bsontypeString))) ^ ../ext/bson.cc:240:37: error: 'NanNew' was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive] else if(NanNew(bson->symbolString)->StrictEquals(constructorString)) ^ ../ext/bson.cc:199:46: note: 'NanNew' declared here, later in the translation unit if(object->Has(NanNew(bson->_bsontypeString))) ^ ../ext/bson.cc:243:80: error: 'NanNew' was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive] this->WriteLengthPrefixedString(object->Get(NanNew(bson->_symbolValueString))->ToString()); ^ ../ext/bson.cc:199:46: note: 'NanNew' declared here, later in the translation unit if(object->Has(NanNew(bson->_bsontypeString))) ^ ../ext/bson.cc:245:35: error: 'NanNew' was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive] else if(NanNew(bson->codeString)->StrictEquals(constructorString)) ^ ../ext/bson.cc:199:46: note: 'NanNew' declared here, later in the translation unit if(object->Has(NanNew(bson->_bsontypeString))) ^ ../ext/bson.cc:247:77: error: 'NanNew' was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive] const Local& function = object->Get(NanNew(bson->_codeCodeString))->ToString(); ^ ../ext/bson.cc:199:46: note: 'NanNew' declared here, later in the translation unit if(object->Has(NanNew(bson->_bsontypeString))) ^ ../ext/bson.cc:248:75: error: 'NanNew' was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive] const Local& scope = object->Get(NanNew(bson->_codeScopeString))->ToObject(); ^ ../ext/bson.cc:199:46: note: 'NanNew' declared here, later in the translation unit if(object->Has(NanNew(bson->_bsontypeString))) ^ ../ext/bson.cc:271:36: error: 'NanNew' was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive] else if(NanNew(bson->dbrefString)->StrictEquals(constructorString)) ^ ../ext/bson.cc:199:46: note: 'NanNew' declared here, later in the translation unit if(object->Has(NanNew(bson->_bsontypeString))) ^ ../ext/bson.cc:279:75: error: 'NanNew' was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive] SerializeValue(refType, object->Get(NanNew(bson->_dbRefNamespaceString))); ^ ../ext/bson.cc:199:46: note: 'NanNew' declared here, later in the translation unit if(object->Has(NanNew(bson->_bsontypeString))) ^ ../ext/bson.cc:283:68: error: 'NanNew' was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive] SerializeValue(idType, object->Get(NanNew(bson->_dbRefOidString))); ^ ../ext/bson.cc:199:46: note: 'NanNew' declared here, later in the translation unit if(object->Has(NanNew(bson->_bsontypeString))) ^ ../ext/bson.cc:285:77: error: 'NanNew' was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive] const Local& refDbValue = object->Get(NanNew(bson->_dbRefDbString)); ^ ../ext/bson.cc:199:46: note: 'NanNew' declared here, later in the translation unit if(object->Has(NanNew(bson->_bsontypeString))) ^ ../ext/bson.cc:296:37: error: 'NanNew' was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive] else if(NanNew(bson->minKeyString)->StrictEquals(constructorString)) ^ ../ext/bson.cc:199:46: note: 'NanNew' declared here, later in the translation unit if(object->Has(NanNew(bson->_bsontypeString))) ^ ../ext/bson.cc:300:37: error: 'NanNew' was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive] else if(NanNew(bson->maxKeyString)->StrictEquals(constructorString)) ^ ../ext/bson.cc:199:46: note: 'NanNew' declared here, later in the translation unit if(object->Has(NanNew(bson->_bsontypeString))) ^ make: Leaving directory `/builddir/build/BUILD/package/build' RPM build errors: ../ext/bson.cc: In member function 'v8::Handle BSONDeserializer::ReadCString()': ../ext/bson.cc:361:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ ../ext/bson.cc: In member function 'v8::Local BSONDeserializer::ReadString()': ../ext/bson.cc:396:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ ../ext/bson.cc: In member function 'v8::Local BSONDeserializer::ReadObjectId()': ../ext/bson.cc:406:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ ../ext/bson.cc: In member function 'v8::Handle BSONDeserializer::DeserializeDocumentInternal(bool)': ../ext/bson.cc:443:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ ../ext/bson.cc: In member function 'v8::Handle BSONDeserializer::DeserializeValue(BsonType, bool)': ../ext/bson.cc:596:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ ../ext/bson.cc: In member function 'v8::Local BSON::GetSerializeObject(v8::Handle&)': ../ext/bson.cc:840:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ make: *** [Release/obj.target/bson/ext/bson.o] Error 1 gyp ERR! build error gyp ERR! stack Error: `make` failed with exit code: 2 gyp ERR! stack at ChildProcess.onExit (/usr/lib/node_modules/node-gyp/lib/build.js:267:23) gyp ERR! stack at emitTwo (events.js:106:13) gyp ERR! stack at ChildProcess.emit (events.js:191:7) gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:219:12) gyp ERR! System Linux 4.10.8-fedora-1 gyp ERR! command "/usr/bin/node" "/usr/bin/node-gyp" "rebuild" gyp ERR! cwd /builddir/build/BUILD/package gyp ERR! node -v v6.12.0 gyp ERR! node-gyp -v v0.10.6 gyp ERR! not ok error: Bad exit status from /var/tmp/rpm-tmp.fUhyx7 (%build) Bad exit status from /var/tmp/rpm-tmp.fUhyx7 (%build) Child return code was: 1 EXCEPTION: [Error()] Traceback (most recent call last): File "/usr/lib/python2.7/site-packages/mockbuild/trace_decorator.py", line 88, in trace result = func(*args, **kw) File "/usr/lib/python2.7/site-packages/mockbuild/util.py", line 547, in do raise exception.Error("Command failed. See logs for output.\n # %s" % (command,), child.returncode) Error: Command failed. See logs for output. # bash --login -c /usr/bin/rpmbuild -bb --target armv7hl --nodeps /builddir/build/SPECS/nodejs-bson.spec