Mongoose (kerberos) module native code build error with recent Node.js versions
remote: npm info install [email protected]
remote:
remote: > [email protected] install /var/lib/openshift/56226d8e89f5cf9628000216/app-root/runtime/repo/node_modules/kerberos
remote: > (node-gyp rebuild) || (exit 0)
remote:
remote: gyp info it worked if it ends with ok
remote: gyp info using [email protected]
remote: gyp info using [email protected] | linux | x64
remote: gyp http GET https://nodejs.org/download/release/v4.2.1/node-v4.2.1-headers.tar.gz
remote: gyp http 200 https://nodejs.org/download/release/v4.2.1/node-v4.2.1-headers.tar.gz
remote: gyp http GET https://nodejs.org/download/release/v4.2.1/SHASUMS256.txt
remote: gyp http 200 https://nodejs.org/download/release/v4.2.1/SHASUMS256.txt
remote: gyp info spawn python2
remote: gyp info spawn args [ '/var/lib/openshift/56226d8e89f5cf9628000216/app-root/data/node-v4.2.1-linux-x64/lib/node_modules/npm/node_modules/node-gyp/gyp/gyp_main.py',
remote: gyp info spawn args 'binding.gyp',
remote: gyp info spawn args '-f',
remote: gyp info spawn args 'make',
remote: gyp info spawn args '-I',
remote: gyp info spawn args '/var/lib/openshift/56226d8e89f5cf9628000216/app-root/runtime/repo/node_modules/kerberos/build/config.gypi',
remote: gyp info spawn args '-I',
remote: gyp info spawn args '/var/lib/openshift/56226d8e89f5cf9628000216/app-root/data/node-v4.2.1-linux-x64/lib/node_modules/npm/node_modules/node-gyp/addon.gypi',
remote: gyp info spawn args '-I',
remote: gyp info spawn args '/var/lib/openshift/56226d8e89f5cf9628000216/.node-gyp/4.2.1/include/node/common.gypi',
remote: gyp info spawn args '-Dlibrary=shared_library',
remote: gyp info spawn args '-Dvisibility=default',
remote: gyp info spawn args '-Dnode_root_dir=/var/lib/openshift/56226d8e89f5cf9628000216/.node-gyp/4.2.1',
remote: gyp info spawn args '-Dnode_gyp_dir=/var/lib/openshift/56226d8e89f5cf9628000216/app-root/data/node-v4.2.1-linux-x64/lib/node_modules/npm/node_modules/node-gyp',
remote: gyp info spawn args '-Dnode_lib_file=node.lib',
remote: gyp info spawn args '-Dmodule_root_dir=/var/lib/openshift/56226d8e89f5cf9628000216/app-root/runtime/repo/node_modules/kerberos',
remote: gyp info spawn args '--depth=.',
remote: gyp info spawn args '--no-parallel',
remote: gyp info spawn args '--generator-output',
remote: gyp info spawn args 'build',
remote: gyp info spawn args '-Goutput_dir=.' ]
remote: gyp info spawn make
remote: gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ]
remote: make: Entering directory `/var/lib/openshift/56226d8e89f5cf9628000216/app-root/runtime/repo/node_modules/kerberos/build'
remote: CXX(target) Release/obj.target/kerberos/lib/kerberos.o
remote: In file included from /var/lib/openshift/56226d8e89f5cf9628000216/.node-gyp/4.2.1/include/node/node.h:42,
remote: from ../lib/kerberos.h:4,
remote: from ../lib/kerberos.cc:1:
remote: /var/lib/openshift/56226d8e89f5cf9628000216/.node-gyp/4.2.1/include/node/v8.h:336: error: expected unqualified-id before 'using'
remote: /var/lib/openshift/56226d8e89f5cf9628000216/.node-gyp/4.2.1/include/node/v8.h: In constructor 'v8::MaybeLocal<T>::MaybeLocal()':
remote: /var/lib/openshift/56226d8e89f5cf9628000216/.node-gyp/4.2.1/include/node/v8.h:353: error: 'nullptr' was not declared in this scope
remote: /var/lib/openshift/56226d8e89f5cf9628000216/.node-gyp/4.2.1/include/node/v8.h: In member function 'bool v8::MaybeLocal<T>::IsEmpty() const':
remote: /var/lib/openshift/56226d8e89f5cf9628000216/.node-gyp/4.2.1/include/node/v8.h:360: error: 'nullptr' was not declared in this scope
remote: /var/lib/openshift/56226d8e89f5cf9628000216/.node-gyp/4.2.1/include/node/v8.h: In member function 'bool v8::MaybeLocal<T>::ToLocal(v8::Local<S>*) const':
remote: /var/lib/openshift/56226d8e89f5cf9628000216/.node-gyp/4.2.1/include/node/v8.h:364: error: 'nullptr' was not declared in this scope
remote: /var/lib/openshift/56226d8e89f5cf9628000216/.node-gyp/4.2.1/include/node/v8.h: In member function 'bool v8::WeakCallbackInfo<T>::IsFirstPass() const':
remote: /var/lib/openshift/56226d8e89f5cf9628000216/.node-gyp/4.2.1/include/node/v8.h:430: error: 'nullptr' was not declared in this scope
remote: /var/lib/openshift/56226d8e89f5cf9628000216/.node-gyp/4.2.1/include/node/v8.h: At global scope:
remote: /var/lib/openshift/56226d8e89f5cf9628000216/.node-gyp/4.2.1/include/node/v8.h:469: error: expected unqualified-id before 'using'
remote: /var/lib/openshift/56226d8e89f5cf9628000216/.node-gyp/4.2.1/include/node/v8.h: In constructor 'v8::Global<T>::Global()':
remote: /var/lib/openshift/56226d8e89f5cf9628000216/.node-gyp/4.2.1/include/node/v8.h:790: error: 'nullptr' was not declared in this scope
remote: /var/lib/openshift/56226d8e89f5cf9628000216/.node-gyp/4.2.1/include/node/v8.h: In constructor 'v8::Global<T>::Global(v8::Global<T>&&)':
remote: /var/lib/openshift/56226d8e89f5cf9628000216/.node-gyp/4.2.1/include/node/v8.h:815: error: 'nullptr' was not declared in this scope
remote: /var/lib/openshift/56226d8e89f5cf9628000216/.node-gyp/4.2.1/include/node/v8.h: In member function 'v8::Global<T>& v8::Global<T>::operator=(v8::Global<S>&&)':
remote: /var/lib/openshift/56226d8e89f5cf9628000216/.node-gyp/4.2.1/include/node/v8.h:827: error: 'nullptr' was not declared in this scope
remote: /var/lib/openshift/56226d8e89f5cf9628000216/.node-gyp/4.2.1/include/node/v8.h: At global scope:
remote: /var/lib/openshift/56226d8e89f5cf9628000216/.node-gyp/4.2.1/include/node/v8.h:852: error: expected unqualified-id before 'using'
remote: /var/lib/openshift/56226d8e89f5cf9628000216/.node-gyp/4.2.1/include/node/v8.h:1089: error: 'nullptr' was not declared in this scope
remote: /var/lib/openshift/56226d8e89f5cf9628000216/.node-gyp/4.2.1/include/node/v8.h:1095: error: 'nullptr' was not declared in this scope
remote: /var/lib/openshift/56226d8e89f5cf9628000216/.node-gyp/4.2.1/include/node/v8.h: In member function 'v8::MaybeLocal<v8::Object> v8::Function::NewInstance(v8::Local<v8::Context>) const':
remote: /var/lib/openshift/56226d8e89f5cf9628000216/.node-gyp/4.2.1/include/node/v8.h:3205: error: 'nullptr' was not declared in this scope
remote: /var/lib/openshift/56226d8e89f5cf9628000216/.node-gyp/4.2.1/include/node/v8.h: In member function 'v8::Local<T> v8::MaybeLocal<T>::ToLocalChecked()':
remote: /var/lib/openshift/56226d8e89f5cf9628000216/.node-gyp/4.2.1/include/node/v8.h:7164: error: 'nullptr' was not declared in this scope
remote: In file included from ../node_modules/nan/nan.h:182,
remote: from ../lib/kerberos.h:9,
remote: from ../lib/kerberos.cc:1:
remote: ../node_modules/nan/nan_maybe_43_inl.h: At global scope:
remote: ../node_modules/nan/nan_maybe_43_inl.h:13: error: expected unqualified-id before 'using'
remote: ../node_modules/nan/nan_maybe_43_inl.h:16: error: expected unqualified-id before 'using'
remote: ../node_modules/nan/nan_maybe_43_inl.h:19: error: expected initializer before '<' token
remote: ../node_modules/nan/nan_maybe_43_inl.h:24: error: expected initializer before '<' token
remote: ../node_modules/nan/nan_maybe_43_inl.h:31: error: expected initializer before '<' token
remote: ../node_modules/nan/nan_maybe_43_inl.h:36: error: expected initializer before '<' token
remote: ../node_modules/nan/nan_maybe_43_inl.h:41: error: expected initializer before '<' token
remote: ../node_modules/nan/nan_maybe_43_inl.h:46: error: expected initializer before '<' token
remote: ../node_modules/nan/nan_maybe_43_inl.h:51: error: expected initializer before '<' token
remote: ../node_modules/nan/nan_maybe_43_inl.h:60: error: expected initializer before '<' token
remote: ../node_modules/nan/nan_maybe_43_inl.h:65: error: expected initializer before '<' token
remote: ../node_modules/nan/nan_maybe_43_inl.h:70: error: expected initializer before '<' token
remote: ../node_modules/nan/nan_maybe_43_inl.h:77: error: expected initializer before '<' token
remote: ../node_modules/nan/nan_maybe_43_inl.h:84: error: expected initializer before '<' token
remote: ../node_modules/nan/nan_maybe_43_inl.h:92: error: expected initializer before '<' token
remote: ../node_modules/nan/nan_maybe_43_inl.h:99: error: expected initializer before '<' token
remote: ../node_modules/nan/nan_maybe_43_inl.h:109: error: expected initializer before '<' token
remote: ../node_modules/nan/nan_maybe_43_inl.h:115: error: expected initializer before '<' token
remote: ../node_modules/nan/nan_maybe_43_inl.h:119: error: expected initializer before '<' token
remote: ../node_modules/nan/nan_maybe_43_inl.h:126: error: expected initializer before '<' token
remote: ../node_modules/nan/nan_maybe_43_inl.h:131: error: expected initializer before '<' token
remote: ../node_modules/nan/nan_maybe_43_inl.h:136: error: expected initializer before '<' token
remote: ../node_modules/nan/nan_maybe_43_inl.h:140: error: expected initializer before '<' token
remote: ../node_modules/nan/nan_maybe_43_inl.h:146: error: expected initializer before '<' token
remote: ../node_modules/nan/nan_maybe_43_inl.h:151: error: expected initializer before '<' token
remote: ../node_modules/nan/nan_maybe_43_inl.h:157: error: expected initializer before '<' token
remote: ../node_modules/nan/nan_maybe_43_inl.h:163: error: expected initializer before '<' token
remote: ../node_modules/nan/nan_maybe_43_inl.h:169: error: expected initializer before '<' token
remote: ../node_modules/nan/nan_maybe_43_inl.h:175: error: expected initializer before '<' token
remote: ../node_modules/nan/nan_maybe_43_inl.h:181: error: expected initializer before '<' token
remote: ../node_modules/nan/nan_maybe_43_inl.h:187: error: expected initializer before '<' token
remote: ../node_modules/nan/nan_maybe_43_inl.h:195: error: expected initializer before '<' token
remote: ../node_modules/nan/nan_maybe_43_inl.h:202: error: expected initializer before '<' token
remote: ../node_modules/nan/nan_maybe_43_inl.h:206: error: expected initializer before '<' token
remote: ../node_modules/nan/nan_maybe_43_inl.h:210: error: expected initializer before '<' token
remote: ../node_modules/nan/nan_maybe_43_inl.h:214: error: expected initializer before '<' token
remote: ../node_modules/nan/nan_maybe_43_inl.h:218: error: expected initializer before '<' token
remote: In file included from ../node_modules/nan/nan.h:187,
remote: from ../lib/kerberos.h:9,
remote: from ../lib/kerberos.cc:1:
remote: ../node_modules/nan/nan_converters.h:14: error: ISO C++ forbids declaration of 'MaybeLocal' with no type
remote: ../node_modules/nan/nan_converters.h:14: error: expected ';' before '<' token
remote: ../node_modules/nan/nan_converters.h:16: error: ISO C++ forbids declaration of 'Maybe' with no type
remote: ../node_modules/nan/nan_converters.h:16: error: expected ';' before '<' token
remote: ../node_modules/nan/nan_converters.h:26: error: 'return_t' does not name a type
remote: ../node_modules/nan/nan_converters.h:27: error: 'return_t' does not name a type
remote: ../node_modules/nan/nan_converters.h:28: error: 'return_t' does not name a type
remote: ../node_modules/nan/nan_converters.h:29: error: 'return_t' does not name a type
remote: ../node_modules/nan/nan_converters.h:30: error: 'return_t' does not name a type
remote: ../node_modules/nan/nan_converters.h:31: error: 'return_t' does not name a type
remote: ../node_modules/nan/nan_converters.h:32: error: 'return_t' does not name a type
remote: ../node_modules/nan/nan_converters.h:42: error: 'return_t' does not name a type
remote: ../node_modules/nan/nan_converters.h:43: error: 'return_t' does not name a type
remote: ../node_modules/nan/nan_converters.h:44: error: 'return_t' does not name a type
remote: ../node_modules/nan/nan_converters.h:45: error: 'return_t' does not name a type
remote: ../node_modules/nan/nan_converters.h:46: error: 'return_t' does not name a type
remote: In file included from ../node_modules/nan/nan_converters.h:59,
remote: from ../node_modules/nan/nan.h:187,
remote: from ../lib/kerberos.h:9,
remote: from ../lib/kerberos.cc:1:
remote: ../node_modules/nan/nan_converters_43_inl.h:18: error: 'return_t' in class 'Nan::imp::ToFactory<v8::Boolean>' does not name a type
remote: ../node_modules/nan/nan_converters_43_inl.h:19: error: 'return_t' in class 'Nan::imp::ToFactory<v8::Number>' does not name a type
remote: ../node_modules/nan/nan_converters_43_inl.h:20: error: 'return_t' in class 'Nan::imp::ToFactory<v8::String>' does not name a type
remote: ../node_modules/nan/nan_converters_43_inl.h:21: error: 'return_t' in class 'Nan::imp::ToFactory<v8::Object>' does not name a type
remote: ../node_modules/nan/nan_converters_43_inl.h:22: error: 'return_t' in class 'Nan::imp::ToFactory<v8::Integer>' does not name a type
remote: ../node_modules/nan/nan_converters_43_inl.h:23: error: 'return_t' in class 'Nan::imp::ToFactory<v8::Uint32>' does not name a type
remote: ../node_modules/nan/nan_converters_43_inl.h:24: error: 'return_t' in class 'Nan::imp::ToFactory<v8::Int32>' does not name a type
remote: ../node_modules/nan/nan_converters_43_inl.h:34: error: 'return_t' in class 'Nan::imp::ToFactory<bool>' does not name a type
remote: ../node_modules/nan/nan_converters_43_inl.h:35: error: 'return_t' in class 'Nan::imp::ToFactory<double>' does not name a type
remote: ../node_modules/nan/nan_converters_43_inl.h:36: error: 'return_t' in class 'Nan::imp::ToFactory<long int>' does not name a type
remote: ../node_modules/nan/nan_converters_43_inl.h:37: error: 'return_t' in class 'Nan::imp::ToFactory<unsigned int>' does not name a type
remote: ../node_modules/nan/nan_converters_43_inl.h:38: error: 'return_t' in class 'Nan::imp::ToFactory<int>' does not name a type
remote: In file included from ../node_modules/nan/nan.h:188,
remote: from ../lib/kerberos.h:9,
remote: from ../lib/kerberos.cc:1:
remote: ../node_modules/nan/nan_new.h: In function 'v8::Local<T> Nan::imp::To(v8::Local<v8::Integer>) [with T = v8::Integer]':
remote: ../node_modules/nan/nan_new.h:21: error: no matching function for call to 'To(v8::Local<v8::Integer>&)'
remote: ../node_modules/nan/nan_new.h: In function 'v8::Local<T> Nan::imp::To(v8::Local<v8::Integer>) [with T = v8::Int32]':
remote: ../node_modules/nan/nan_new.h:28: error: no matching function for call to 'To(v8::Local<v8::Integer>&)'
remote: ../node_modules/nan/nan_new.h: In function 'v8::Local<T> Nan::imp::To(v8::Local<v8::Integer>) [with T = v8::Uint32]':
remote: ../node_modules/nan/nan_new.h:35: error: no matching function for call to 'To(v8::Local<v8::Integer>&)'
remote: ../node_modules/nan/nan_new.h: At global scope:
remote: ../node_modules/nan/nan_new.h:43: error: ISO C++ forbids declaration of 'MaybeLocal' with no type
remote: ../node_modules/nan/nan_new.h:43: error: expected ';' before '<' token
remote: ../node_modules/nan/nan_new.h:75: error: 'return_t' does not name a type
remote: ../node_modules/nan/nan_new.h:141: error: 'return_t' does not name a type
remote: ../node_modules/nan/nan_new.h:147: error: 'return_t' does not name a type
remote: ../node_modules/nan/nan_new.h:148: error: 'return_t' does not name a type
remote: ../node_modules/nan/nan_new.h:160: error: 'return_t' does not name a type
remote: ../node_modules/nan/nan_new.h:161: error: 'return_t' does not name a type
remote: ../node_modules/nan/nan_new.h:162: error: 'return_t' does not name a type
remote: ../node_modules/nan/nan_new.h:163: error: 'return_t' does not name a type
remote: ../node_modules/nan/nan_new.h:165: error: 'return_t' does not name a type
remote: ../node_modules/nan/nan_new.h:166: error: 'return_t' does not name a type
remote: ../node_modules/nan/nan_new.h:182: error: 'return_t' does not name a type
remote: ../node_modules/nan/nan_new.h:183: error: 'return_t' does not name a type
remote: In file included from ../node_modules/nan/nan_new.h:189,
remote: from ../node_modules/nan/nan.h:188,
remote: from ../lib/kerberos.h:9,
remote: from ../lib/kerberos.cc:1:
remote: ../node_modules/nan/nan_implementation_12_inl.h:56: error: 'return_t' in class 'Nan::imp::Factory<v8::Date>' does not name a type
remote: ../node_modules/nan/nan_implementation_12_inl.h: In static member function 'static v8::Local<v8::Function> Nan::imp::Factory<v8::Function>::New(void (*)(const Nan::FunctionCallbackInfo<v8::Value>&), v8::Local<v8::Value>)':
remote: ../node_modules/nan/nan_implementation_12_inl.h:90: error: 'NewInstance' was not declared in this scope
remote: ../node_modules/nan/nan_implementation_12_inl.h: In static member function 'static v8::Local<v8::FunctionTemplate> Nan::imp::Factory<v8::FunctionTemplate>::New(void (*)(const Nan::FunctionCallbackInfo<v8::Value>&), v8::Local<v8::Value>, v8::Local<v8::Signature>)':
remote: ../node_modules/nan/nan_implementation_12_inl.h:118: error: 'NewInstance' was not declared in this scope
remote: ../node_modules/nan/nan_implementation_12_inl.h: At global scope:
remote: ../node_modules/nan/nan_implementation_12_inl.h:197: error: 'return_t' in class 'Nan::imp::Factory<v8::RegExp>' does not name a type
remote: ../node_modules/nan/nan_implementation_12_inl.h:216: error: 'return_t' in class 'Nan::imp::Factory<v8::Script>' does not name a type
remote: ../node_modules/nan/nan_implementation_12_inl.h:222: error: 'return_t' in class 'Nan::imp::Factory<v8::Script>' does not name a type
remote: ../node_modules/nan/nan_implementation_12_inl.h:254: error: 'return_t' in class 'Nan::imp::Factory<v8::String>' does not name a type
remote: ../node_modules/nan/nan_implementation_12_inl.h:262: error: 'return_t' in class 'Nan::imp::Factory<v8::String>' does not name a type
remote: ../node_modules/nan/nan_implementation_12_inl.h:268: error: 'return_t' in class 'Nan::imp::Factory<v8::String>' does not name a type
remote: ../node_modules/nan/nan_implementation_12_inl.h:275: error: 'return_t' in class 'Nan::imp::Factory<v8::String>' does not name a type
remote: ../node_modules/nan/nan_implementation_12_inl.h:281: error: 'return_t' in class 'Nan::imp::Factory<v8::String>' does not name a type
remote: ../node_modules/nan/nan_implementation_12_inl.h:286: error: 'return_t' in class 'Nan::imp::Factory<v8::String>' does not name a type
remote: ../node_modules/nan/nan_implementation_12_inl.h:347: error: 'return_t' in class 'Nan::imp::Factory<v8::UnboundScript>' does not name a type
remote: ../node_modules/nan/nan_implementation_12_inl.h:354: error: 'return_t' in class 'Nan::imp::Factory<v8::UnboundScript>' does not name a type
remote: In file included from ../node_modules/nan/nan.h:188,
remote: from ../lib/kerberos.h:9,
remote: from ../lib/kerberos.cc:1:
remote: ../node_modules/nan/nan_new.h:291: error: 'return_t' in class 'Nan::imp::Factory<v8::String>' does not name a type
remote: ../node_modules/nan/nan_new.h:297: error: 'return_t' in class 'Nan::imp::Factory<v8::String>' does not name a type
remote: ../node_modules/nan/nan_new.h:303: error: 'return_t' in class 'Nan::imp::Factory<v8::String>' does not name a type
remote: ../node_modules/nan/nan_new.h:309: error: 'return_t' in class 'Nan::imp::Factory<v8::String>' does not name a type
remote: ../node_modules/nan/nan_new.h:315: error: 'return_t' in class 'Nan::imp::Factory<v8::String>' does not name a type
remote: ../node_modules/nan/nan_new.h:321: error: 'return_t' in class 'Nan::imp::Factory<v8::String>' does not name a type
remote: ../node_modules/nan/nan_new.h:327: error: 'return_t' in class 'Nan::imp::Factory<v8::RegExp>' does not name a type
remote: In file included from ../lib/kerberos.h:9,
remote: from ../lib/kerberos.cc:1:
remote: ../node_modules/nan/nan.h: In function 'v8::Local<v8::Value> Nan::Error(const char*)':
remote: ../node_modules/nan/nan.h:639: error: 'class v8::Local<v8::Boolean>' has no member named 'ToLocalChecked'
remote: ../node_modules/nan/nan.h: In function 'void Nan::ThrowError(const char*)':
remote: ../node_modules/nan/nan.h:639: error: 'class v8::Local<v8::Boolean>' has no member named 'ToLocalChecked'
remote: ../node_modules/nan/nan.h: In function 'v8::Local<v8::Value> Nan::RangeError(const char*)':
remote: ../node_modules/nan/nan.h:640: error: 'class v8::Local<v8::Boolean>' has no member named 'ToLocalChecked'
remote: ../node_modules/nan/nan.h: In function 'void Nan::ThrowRangeError(const char*)':
remote: ../node_modules/nan/nan.h:640: error: 'class v8::Local<v8::Boolean>' has no member named 'ToLocalChecked'
remote: ../node_modules/nan/nan.h: In function 'v8::Local<v8::Value> Nan::ReferenceError(const char*)':
remote: ../node_modules/nan/nan.h:641: error: 'class v8::Local<v8::Boolean>' has no member named 'ToLocalChecked'
remote: ../node_modules/nan/nan.h: In function 'void Nan::ThrowReferenceError(const char*)':
remote: ../node_modules/nan/nan.h:641: error: 'class v8::Local<v8::Boolean>' has no member named 'ToLocalChecked'
remote: ../node_modules/nan/nan.h: In function 'v8::Local<v8::Value> Nan::SyntaxError(const char*)':
remote: ../node_modules/nan/nan.h:642: error: 'class v8::Local<v8::Boolean>' has no member named 'ToLocalChecked'
remote: ../node_modules/nan/nan.h: In function 'void Nan::ThrowSyntaxError(const char*)':
remote: ../node_modules/nan/nan.h:642: error: 'class v8::Local<v8::Boolean>' has no member named 'ToLocalChecked'
remote: ../node_modules/nan/nan.h: In function 'v8::Local<v8::Value> Nan::TypeError(const char*)':
remote: ../node_modules/nan/nan.h:643: error: 'class v8::Local<v8::Boolean>' has no member named 'ToLocalChecked'
remote: ../node_modules/nan/nan.h: In function 'void Nan::ThrowTypeError(const char*)':
remote: ../node_modules/nan/nan.h:643: error: 'class v8::Local<v8::Boolean>' has no member named 'ToLocalChecked'
remote: ../node_modules/nan/nan.h: At global scope:
remote: ../node_modules/nan/nan.h:651: error: expected initializer before '<' token
remote: ../node_modules/nan/nan.h:673: error: expected initializer before '<' token
remote: ../node_modules/nan/nan.h:689: error: expected initializer before '<' token
remote: ../node_modules/nan/nan.h:702: error: expected initializer before '<' token
remote: ../node_modules/nan/nan.h:719: error: expected initializer before '<' token
remote: ../node_modules/nan/nan.h:725: error: expected initializer before '<' token
remote: ../node_modules/nan/nan.h:733: error: expected initializer before '<' token
remote: ../node_modules/nan/nan.h:740: error: expected initializer before '<' token
remote: ../node_modules/nan/nan.h:746: error: expected initializer before '<' token
remote: /var/lib/openshift/56226d8e89f5cf9628000216/.node-gyp/4.2.1/include/node/v8.h: In member function 'void Nan::Callback::SetFunction(const v8::Local<v8::Function>&)':
remote: /var/lib/openshift/56226d8e89f5cf9628000216/.node-gyp/4.2.1/include/node/v8.h:3021: error: argument dependent lookup finds 'class v8::Set'
remote: ../node_modules/nan/nan.h:1366: error: in call to 'Set'
remote: ../node_modules/nan/nan.h: In member function 'void Nan::AsyncWorker::SaveToPersistent(const char*, const v8::Local<v8::Value>&)':
remote: ../node_modules/nan/nan.h:1488: error: 'class v8::Local<v8::Boolean>' has no member named 'ToLocalChecked'
remote: ../node_modules/nan/nan.h: In member function 'v8::Local<v8::Value> Nan::AsyncWorker::GetFromPersistent(const char*) const':
remote: ../node_modules/nan/nan.h:1506: error: 'class v8::Local<v8::Boolean>' has no member named 'ToLocalChecked'
remote: ../node_modules/nan/nan.h: In member function 'virtual void Nan::AsyncWorker::HandleErrorCallback()':
remote: ../node_modules/nan/nan.h:1540: error: no matching function for call to 'New(const char*)'
remote: ../node_modules/nan/nan.h: In function 'void Nan::SetMethod(const T&, const char*, void (*)(const Nan::FunctionCallbackInfo<v8::Value>&))':
remote: ../node_modules/nan/nan.h:1829: error: there are no arguments to 'GetFunction' that depend on a template parameter, so a declaration of 'GetFunction' must be available
remote: ../node_modules/nan/nan.h:1829: note: (if you use '-fpermissive', G++ will accept your code, but allowing the use of an undeclared name is deprecated)
remote: ../node_modules/nan/nan.h:1830: error: 'class v8::Local<v8::Boolean>' has no member named 'ToLocalChecked'
remote: ../node_modules/nan/nan.h: In function 'void Nan::SetPrototypeMethod(v8::Local<v8::FunctionTemplate>, const char*, void (*)(const Nan::FunctionCallbackInfo<v8::Value>&))':
remote: ../node_modules/nan/nan.h:1842: error: 'GetFunction' was not declared in this scope
remote: ../node_modules/nan/nan.h:1843: error: 'class v8::Local<v8::Boolean>' has no member named 'ToLocalChecked'
remote: ../node_modules/nan/nan.h: In function 'void Nan::SetAccessor(v8::Local<v8::ObjectTemplate>, v8::Local<v8::String>, void (*)(v8::Local<v8::String>, const Nan::PropertyCallbackInfo<v8::Value>&), void (*)(v8::Local<v8::String>, v8::Local<v8::Value>, const Nan::PropertyCallbackInfo<void>&), v8::Local<v8::Value>, v8::AccessControl, v8::PropertyAttribute, Nan::imp::Sig)':
remote: ../node_modules/nan/nan.h:1868: error: 'NewInstance' was not declared in this scope
remote: ../node_modules/nan/nan.h: In function 'bool Nan::SetAccessor(v8::Local<v8::Object>, v8::Local<v8::String>, void (*)(v8::Local<v8::String>, const Nan::PropertyCallbackInfo<v8::Value>&), void (*)(v8::Local<v8::String>, v8::Local<v8::Value>, const Nan::PropertyCallbackInfo<void>&), v8::Local<v8::Value>, v8::AccessControl, v8::PropertyAttribute)':
remote: ../node_modules/nan/nan.h:1911: error: 'NewInstance' was not declared in this scope
remote: ../node_modules/nan/nan.h: In function 'void Nan::SetNamedPropertyHandler(v8::Local<v8::ObjectTemplate>, void (*)(v8::Local<v8::String>, const Nan::PropertyCallbackInfo<v8::Value>&), void (*)(v8::Local<v8::String>, v8::Local<v8::Value>, const Nan::PropertyCallbackInfo<v8::Value>&), void (*)(v8::Local<v8::String>, const Nan::PropertyCallbackInfo<v8::Integer>&), void (*)(v8::Local<v8::String>, const Nan::PropertyCallbackInfo<v8::Boolean>&), void (*)(const Nan::PropertyCallbackInfo<v8::Array>&), v8::Local<v8::Value>)':
remote: ../node_modules/nan/nan.h:1959: error: 'NewInstance' was not declared in this scope
remote: ../node_modules/nan/nan.h: In function 'void Nan::SetIndexedPropertyHandler(v8::Local<v8::ObjectTemplate>, void (*)(uint32_t, const Nan::PropertyCallbackInfo<v8::Value>&), void (*)(uint32_t, v8::Local<v8::Value>, const Nan::PropertyCallbackInfo<v8::Value>&), void (*)(uint32_t, const Nan::PropertyCallbackInfo<v8::Integer>&), void (*)(uint32_t, const Nan::PropertyCallbackInfo<v8::Boolean>&), void (*)(const Nan::PropertyCallbackInfo<v8::Array>&), v8::Local<v8::Value>)':
remote: ../node_modules/nan/nan.h:2029: error: 'NewInstance' was not declared in this scope
remote: In file included from ../lib/kerberos.h:9,
remote: from ../lib/kerberos.cc:1:
remote: ../node_modules/nan/nan.h: In function 'void Nan::Export(Nan::ADDON_REGISTER_FUNCTION_ARGS_TYPE, const char*, void (*)(const Nan::FunctionCallbackInfo<v8::Value>&))':
remote: ../node_modules/nan/nan.h:2090: error: no matching function for call to 'New(const char*&)'
remote: ../node_modules/nan/nan.h:2091: error: 'GetFunction' was not declared in this scope
remote: /var/lib/openshift/56226d8e89f5cf9628000216/.node-gyp/4.2.1/include/node/v8.h:3021: error: argument dependent lookup finds 'class v8::Set'
remote: ../node_modules/nan/nan.h:2091: error: in call to 'Set'
remote: ../node_modules/nan/nan.h: In constructor 'Nan::Tap::Tap(v8::Local<v8::Value>)':
remote: ../node_modules/nan/nan.h:2098: error: no matching function for call to 'To(v8::Local<v8::Value>&)'
remote: ../node_modules/nan/nan.h: In member function 'void Nan::Tap::ok(bool, const char*)':
remote: ../node_modules/nan/nan.h:2111: error: 'class v8::Local<v8::Boolean>' has no member named 'ToLocalChecked'
remote: ../node_modules/nan/nan.h: In member function 'void Nan::Tap::pass(const char*)':
remote: ../node_modules/nan/nan.h:2117: error: 'class v8::Local<v8::Boolean>' has no member named 'ToLocalChecked'
remote: ../lib/kerberos.cc: In static member function 'static void Kerberos::Initialize(Nan::ADDON_REGISTER_FUNCTION_ARGS_TYPE)':
remote: ../lib/kerberos.cc:74: error: no matching function for call to 'New(const char [9])'
remote: ../lib/kerberos.cc:89: error: no matching function for call to 'New(const char [9])'
remote: ../lib/kerberos.cc: In static member function 'static void Kerberos::After(uv_work_t*)':
remote: ../lib/kerberos.cc:842: error: no matching function for call to 'New(char*&)'
remote: ../lib/kerberos.cc:844: error: no matching function for call to 'New(const char [5])'
remote: make: *** [Release/obj.target/kerberos/lib/kerberos.o] Error 1
remote: make: Leaving directory `/var/lib/openshift/56226d8e89f5cf9628000216/app-root/runtime/repo/node_modules/kerberos/build'
remote: gyp ERR! build error
remote: gyp ERR! stack Error: `make` failed with exit code: 2
remote: gyp ERR! stack at ChildProcess.onExit (/var/lib/openshift/56226d8e89f5cf9628000216/app-root/data/node-v4.2.1-linux-x64/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:270:23)
remote: gyp ERR! stack at emitTwo (events.js:87:13)
remote: gyp ERR! stack at ChildProcess.emit (events.js:172:7)
remote: gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:200:12)
remote: gyp ERR! System Linux 2.6.32-504.34.1.el6.x86_64
remote: gyp ERR! command "/var/lib/openshift/56226d8e89f5cf9628000216/app-root/data/node-v4.2.1-linux-x64/bin/node" "/var/lib/openshift/56226d8e89f5cf9628000216/app-root/data/node-v4.2.1-linux-x64/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
remote: gyp ERR! cwd /var/lib/openshift/56226d8e89f5cf9628000216/app-root/runtime/repo/node_modules/kerberos
remote: gyp ERR! node -v v4.2.1
remote: gyp ERR! node-gyp -v v3.0.3
remote: gyp ERR! not ok
remote: npm info postinstall [email protected]
remote: npm info build /var/lib/openshift/56226d8e89f5cf9628000216/app-root/runtime/repo
remote: npm info linkStuff [email protected]
remote: npm info install [email protected]
remote: npm info postinstall [email protected]
remote: npm info prepublish [email protected]
remote: [email protected] node_modules/kerberos
remote: └── [email protected]
@kyrylkov first up my apologies for the delay in replying to this - I seem to be missing github notifications on this repo.
Looks like nan requires C++11 version compiler (aka gcc 4.8+ according to this issue: https://github.com/nodejs/nan/issues/435).
Which will be an issue as the default compiler on OpenShift is gcc 4.4.7
The only thing I can suggest is to download a new compiler version and install it on your gear/builder and build the app.
Or alternatively on a local vm running Fedora/RHEL (as an example Fedora 23 has gcc 5.1.1 which would work), install the npm modules causing the problems and then git add that node_modules/
HTH
Facing similar issues with another custom Node.js cartridge due to OpenShift's outdated compiler.
Related to mongoose / mongodb-core, AFAIK they're not relying on kerberos as a mandatory dependency anymore in their latest versions; i.e. mongoose 4.3.4 is installing and working just fine on OpenShift now.
/book-keeping closing this out due to age without prejudice.