gemini-testing / png-img

Lite libpng wrapper for node.js
MIT License
29 stars 13 forks source link

Support node 5.0 #21

Closed tadatuta closed 8 years ago

tadatuta commented 8 years ago

Here's what we've got ATM:

> png-img@1.1.4 install /home/travis/build/bem/bem-components/node_modules/png-img

> node-gyp rebuild

make: Entering directory `/home/travis/build/bem/bem-components/node_modules/png-img/build'

  CC(target) Release/obj.target/libpng/third_party/libpng/png.o

  CC(target) Release/obj.target/libpng/third_party/libpng/pngerror.o

  CC(target) Release/obj.target/libpng/third_party/libpng/pngget.o

  CC(target) Release/obj.target/libpng/third_party/libpng/pngmem.o

  CC(target) Release/obj.target/libpng/third_party/libpng/pngpread.o

  CC(target) Release/obj.target/libpng/third_party/libpng/pngread.o

  CC(target) Release/obj.target/libpng/third_party/libpng/pngrio.o

  CC(target) Release/obj.target/libpng/third_party/libpng/pngrtran.o

  CC(target) Release/obj.target/libpng/third_party/libpng/pngrutil.o

  CC(target) Release/obj.target/libpng/third_party/libpng/pngset.o

  CC(target) Release/obj.target/libpng/third_party/libpng/pngtest.o

  CC(target) Release/obj.target/libpng/third_party/libpng/pngtrans.o

  CC(target) Release/obj.target/libpng/third_party/libpng/pngwio.o

  CC(target) Release/obj.target/libpng/third_party/libpng/pngwrite.o

  CC(target) Release/obj.target/libpng/third_party/libpng/pngwtran.o

  CC(target) Release/obj.target/libpng/third_party/libpng/pngwutil.o

  AR(target) Release/obj.target/third_party/libpng/png.a

  COPY Release/png.a

  CC(target) Release/obj.target/zlib/third_party/zlib/adler32.o

  CC(target) Release/obj.target/zlib/third_party/zlib/compress.o

  CC(target) Release/obj.target/zlib/third_party/zlib/crc32.o

  CC(target) Release/obj.target/zlib/third_party/zlib/deflate.o

  CC(target) Release/obj.target/zlib/third_party/zlib/gzclose.o

  CC(target) Release/obj.target/zlib/third_party/zlib/gzlib.o

  CC(target) Release/obj.target/zlib/third_party/zlib/gzread.o

  CC(target) Release/obj.target/zlib/third_party/zlib/gzwrite.o

  CC(target) Release/obj.target/zlib/third_party/zlib/infback.o

  CC(target) Release/obj.target/zlib/third_party/zlib/inffast.o

  CC(target) Release/obj.target/zlib/third_party/zlib/inflate.o

  CC(target) Release/obj.target/zlib/third_party/zlib/inftrees.o

  CC(target) Release/obj.target/zlib/third_party/zlib/trees.o

  CC(target) Release/obj.target/zlib/third_party/zlib/uncompr.o

  CC(target) Release/obj.target/zlib/third_party/zlib/zutil.o

  AR(target) Release/obj.target/third_party/zlib/zlib.a

  COPY Release/zlib.a

  CXX(target) Release/obj.target/png_img/src/init.o

In file included from ../src/init.cc:1:0:

../../nan/nan.h:41:3: error: #error This version of node/NAN/v8 requires a C++11 compiler

In file included from /home/travis/.node-gyp/5.0.0/include/node/node.h:42:0,

                 from ../../nan/nan.h:45,

                 from ../src/init.cc:1:

/home/travis/.node-gyp/5.0.0/include/node/v8.h:336:1: error: expected unqualified-id before ‘using’

/home/travis/.node-gyp/5.0.0/include/node/v8.h:469:1: error: expected unqualified-id before ‘using’

/home/travis/.node-gyp/5.0.0/include/node/v8.h:856:1: error: expected unqualified-id before ‘using’

In file included from ../../nan/nan.h:194:0,

                 from ../src/init.cc:1:

../../nan/nan_maybe_43_inl.h:13:1: error: expected unqualified-id before ‘using’

../../nan/nan_maybe_43_inl.h:16:1: error: expected unqualified-id before ‘using’

../../nan/nan_maybe_43_inl.h:19:12: error: ‘Maybe’ does not name a type

../../nan/nan_maybe_43_inl.h:24:12: error: ‘Maybe’ does not name a type

../../nan/nan_maybe_43_inl.h:31:1: error: ‘MaybeLocal’ does not name a type

../../nan/nan_maybe_43_inl.h:36:1: error: ‘MaybeLocal’ does not name a type

../../nan/nan_maybe_43_inl.h:41:1: error: ‘Maybe’ does not name a type

../../nan/nan_maybe_43_inl.h:46:1: error: ‘MaybeLocal’ does not name a type

../../nan/nan_maybe_43_inl.h:51:1: error: ‘MaybeLocal’ does not name a type

../../nan/nan_maybe_43_inl.h:60:1: error: ‘MaybeLocal’ does not name a type

../../nan/nan_maybe_43_inl.h:65:12: error: ‘MaybeLocal’ does not name a type

../../nan/nan_maybe_43_inl.h:70:12: error: ‘Maybe’ does not name a type

../../nan/nan_maybe_43_inl.h:77:12: error: ‘Maybe’ does not name a type

../../nan/nan_maybe_43_inl.h:84:12: error: ‘Maybe’ does not name a type

../../nan/nan_maybe_43_inl.h:92:12: error: ‘MaybeLocal’ does not name a type

../../nan/nan_maybe_43_inl.h:99:1: error: ‘MaybeLocal’ does not name a type

../../nan/nan_maybe_43_inl.h:109:12: error: ‘Maybe’ does not name a type

../../nan/nan_maybe_43_inl.h:115:12: error: ‘Maybe’ does not name a type

../../nan/nan_maybe_43_inl.h:119:12: error: ‘Maybe’ does not name a type

../../nan/nan_maybe_43_inl.h:126:1: error: ‘Maybe’ does not name a type

../../nan/nan_maybe_43_inl.h:131:1: error: ‘MaybeLocal’ does not name a type

../../nan/nan_maybe_43_inl.h:136:1: error: ‘MaybeLocal’ does not name a type

../../nan/nan_maybe_43_inl.h:140:12: error: ‘Maybe’ does not name a type

../../nan/nan_maybe_43_inl.h:146:12: error: ‘MaybeLocal’ does not name a type

../../nan/nan_maybe_43_inl.h:151:12: error: ‘Maybe’ does not name a type

../../nan/nan_maybe_43_inl.h:157:12: error: ‘Maybe’ does not name a type

../../nan/nan_maybe_43_inl.h:163:12: error: ‘Maybe’ does not name a type

../../nan/nan_maybe_43_inl.h:169:12: error: ‘Maybe’ does not name a type

../../nan/nan_maybe_43_inl.h:175:12: error: ‘MaybeLocal’ does not name a type

../../nan/nan_maybe_43_inl.h:181:12: error: ‘MaybeLocal’ does not name a type

../../nan/nan_maybe_43_inl.h:187:12: error: ‘MaybeLocal’ does not name a type

../../nan/nan_maybe_43_inl.h:195:12: error: ‘MaybeLocal’ does not name a type

../../nan/nan_maybe_43_inl.h:202:1: error: ‘MaybeLocal’ does not name a type

../../nan/nan_maybe_43_inl.h:206:12: error: ‘Maybe’ does not name a type

../../nan/nan_maybe_43_inl.h:210:12: error: ‘Maybe’ does not name a type

../../nan/nan_maybe_43_inl.h:214:12: error: ‘Maybe’ does not name a type

../../nan/nan_maybe_43_inl.h:218:12: error: ‘MaybeLocal’ does not name a type

In file included from ../../nan/nan.h:199:0,

                 from ../src/init.cc:1:

../../nan/nan_converters.h:14:11: error: ‘MaybeLocal’ does not name a type

../../nan/nan_converters.h:16:56: error: ‘Maybe’ does not name a type

../../nan/nan_converters.h:26:1: error: ‘return_t’ does not name a type

../../nan/nan_converters.h:27:1: error: ‘return_t’ does not name a type

../../nan/nan_converters.h:28:1: error: ‘return_t’ does not name a type

../../nan/nan_converters.h:29:1: error: ‘return_t’ does not name a type

../../nan/nan_converters.h:30:1: error: ‘return_t’ does not name a type

../../nan/nan_converters.h:31:1: error: ‘return_t’ does not name a type

../../nan/nan_converters.h:32:1: error: ‘return_t’ does not name a type

../../nan/nan_converters.h:42:1: error: ‘return_t’ does not name a type

../../nan/nan_converters.h:43:1: error: ‘return_t’ does not name a type

../../nan/nan_converters.h:44:1: error: ‘return_t’ does not name a type

../../nan/nan_converters.h:45:1: error: ‘return_t’ does not name a type

../../nan/nan_converters.h:46:1: error: ‘return_t’ does not name a type

In file included from ../../nan/nan_converters.h:59:0,

                 from ../../nan/nan.h:199,

                 from ../src/init.cc:1:

../../nan/nan_converters_43_inl.h:18:1: error: ‘return_t’ in ‘struct Nan::imp::ToFactory<v8::Boolean>’ does not name a type

../../nan/nan_converters_43_inl.h:19:1: error: ‘return_t’ in ‘struct Nan::imp::ToFactory<v8::Number>’ does not name a type

../../nan/nan_converters_43_inl.h:20:1: error: ‘return_t’ in ‘struct Nan::imp::ToFactory<v8::String>’ does not name a type

../../nan/nan_converters_43_inl.h:21:1: error: ‘return_t’ in ‘struct Nan::imp::ToFactory<v8::Object>’ does not name a type

../../nan/nan_converters_43_inl.h:22:1: error: ‘return_t’ in ‘struct Nan::imp::ToFactory<v8::Integer>’ does not name a type

../../nan/nan_converters_43_inl.h:23:1: error: ‘return_t’ in ‘struct Nan::imp::ToFactory<v8::Uint32>’ does not name a type

../../nan/nan_converters_43_inl.h:24:1: error: ‘return_t’ in ‘struct Nan::imp::ToFactory<v8::Int32>’ does not name a type

../../nan/nan_converters_43_inl.h:34:1: error: ‘return_t’ in ‘struct Nan::imp::ToFactory<bool>’ does not name a type

../../nan/nan_converters_43_inl.h:35:1: error: ‘return_t’ in ‘struct Nan::imp::ToFactory<double>’ does not name a type

../../nan/nan_converters_43_inl.h:36:1: error: ‘return_t’ in ‘struct Nan::imp::ToFactory<long int>’ does not name a type

../../nan/nan_converters_43_inl.h:37:1: error: ‘return_t’ in ‘struct Nan::imp::ToFactory<unsigned int>’ does not name a type

../../nan/nan_converters_43_inl.h:38:1: error: ‘return_t’ in ‘struct Nan::imp::ToFactory<int>’ does not name a type

In file included from ../../nan/nan.h:200:0,

                 from ../src/init.cc:1:

../../nan/nan_new.h: In function ‘v8::Local<T> Nan::imp::To(v8::Local<v8::Integer>) [with T = v8::Integer]’:

../../nan/nan_new.h:21:32: error: no matching function for call to ‘To(v8::Local<v8::Integer>&)’

../../nan/nan_new.h:21:32: note: candidate is:

../../nan/nan_converters.h:53:38: note: template<class T> typename Nan::imp::ToFactory::return_t Nan::To(v8::Local<v8::Value>)

../../nan/nan_new.h: In function ‘v8::Local<T> Nan::imp::To(v8::Local<v8::Integer>) [with T = v8::Int32]’:

../../nan/nan_new.h:28:30: error: no matching function for call to ‘To(v8::Local<v8::Integer>&)’

../../nan/nan_new.h:28:30: note: candidate is:

../../nan/nan_converters.h:53:38: note: template<class T> typename Nan::imp::ToFactory::return_t Nan::To(v8::Local<v8::Value>)

../../nan/nan_new.h: In function ‘v8::Local<T> Nan::imp::To(v8::Local<v8::Integer>) [with T = v8::Uint32]’:

../../nan/nan_new.h:35:31: error: no matching function for call to ‘To(v8::Local<v8::Integer>&)’

../../nan/nan_new.h:35:31: note: candidate is:

../../nan/nan_converters.h:53:38: note: template<class T> typename Nan::imp::ToFactory::return_t Nan::To(v8::Local<v8::Value>)

../../nan/nan_new.h: At global scope:

../../nan/nan_new.h:43:11: error: ‘MaybeLocal’ does not name a type

../../nan/nan_new.h:75:17: error: ‘return_t’ does not name a type

../../nan/nan_new.h:141:17: error: ‘return_t’ does not name a type

../../nan/nan_new.h:147:17: error: ‘return_t’ does not name a type

../../nan/nan_new.h:148:17: error: ‘return_t’ does not name a type

../../nan/nan_new.h:160:17: error: ‘return_t’ does not name a type

../../nan/nan_new.h:161:17: error: ‘return_t’ does not name a type

../../nan/nan_new.h:162:17: error: ‘return_t’ does not name a type

../../nan/nan_new.h:163:17: error: ‘return_t’ does not name a type

../../nan/nan_new.h:165:17: error: ‘return_t’ does not name a type

../../nan/nan_new.h:166:17: error: ‘return_t’ does not name a type

../../nan/nan_new.h:182:17: error: ‘return_t’ does not name a type

../../nan/nan_new.h:183:17: error: ‘return_t’ does not name a type

In file included from ../../nan/nan_new.h:189:0,

                 from ../../nan/nan.h:200,

                 from ../src/init.cc:1:

../../nan/nan_implementation_12_inl.h:56:1: error: ‘return_t’ in ‘struct Nan::imp::Factory<v8::Date>’ does not name a type

../../nan/nan_implementation_12_inl.h: In static member function ‘static Nan::imp::FactoryBase<v8::Function>::return_t Nan::imp::Factory<v8::Function>::New(Nan::FunctionCallback, v8::Local<v8::Value>)’:

../../nan/nan_implementation_12_inl.h:90:46: error: ‘NewInstance’ was not declared in this scope

../../nan/nan_implementation_12_inl.h: In static member function ‘static Nan::imp::FactoryBase<v8::FunctionTemplate>::return_t Nan::imp::Factory<v8::FunctionTemplate>::New(Nan::FunctionCallback, v8::Local<v8::Value>, v8::Local<v8::Signature>)’:

../../nan/nan_implementation_12_inl.h:118:48: error: ‘NewInstance’ was not declared in this scope

../../nan/nan_implementation_12_inl.h: At global scope:

../../nan/nan_implementation_12_inl.h:197:1: error: ‘return_t’ in ‘struct Nan::imp::Factory<v8::RegExp>’ does not name a type

../../nan/nan_implementation_12_inl.h:216:1: error: ‘return_t’ in ‘struct Nan::imp::Factory<v8::Script>’ does not name a type

../../nan/nan_implementation_12_inl.h:222:1: error: ‘return_t’ in ‘struct Nan::imp::Factory<v8::Script>’ does not name a type

../../nan/nan_implementation_12_inl.h:254:1: error: ‘return_t’ in ‘struct Nan::imp::Factory<v8::String>’ does not name a type

../../nan/nan_implementation_12_inl.h:262:1: error: ‘return_t’ in ‘struct Nan::imp::Factory<v8::String>’ does not name a type

../../nan/nan_implementation_12_inl.h:268:1: error: ‘return_t’ in ‘struct Nan::imp::Factory<v8::String>’ does not name a type

../../nan/nan_implementation_12_inl.h:275:1: error: ‘return_t’ in ‘struct Nan::imp::Factory<v8::String>’ does not name a type

../../nan/nan_implementation_12_inl.h:281:1: error: ‘return_t’ in ‘struct Nan::imp::Factory<v8::String>’ does not name a type

../../nan/nan_implementation_12_inl.h:286:1: error: ‘return_t’ in ‘struct Nan::imp::Factory<v8::String>’ does not name a type

../../nan/nan_implementation_12_inl.h:347:1: error: ‘return_t’ in ‘struct Nan::imp::Factory<v8::UnboundScript>’ does not name a type

../../nan/nan_implementation_12_inl.h:354:1: error: ‘return_t’ in ‘struct Nan::imp::Factory<v8::UnboundScript>’ does not name a type

In file included from ../../nan/nan.h:200:0,

                 from ../src/init.cc:1:

../../nan/nan_new.h:293:1: error: ‘return_t’ in ‘struct Nan::imp::Factory<v8::String>’ does not name a type

../../nan/nan_new.h:299:1: error: ‘return_t’ in ‘struct Nan::imp::Factory<v8::String>’ does not name a type

../../nan/nan_new.h:305:1: error: ‘return_t’ in ‘struct Nan::imp::Factory<v8::String>’ does not name a type

../../nan/nan_new.h:311:1: error: ‘return_t’ in ‘struct Nan::imp::Factory<v8::String>’ does not name a type

../../nan/nan_new.h:317:1: error: ‘return_t’ in ‘struct Nan::imp::Factory<v8::String>’ does not name a type

../../nan/nan_new.h:323:1: error: ‘return_t’ in ‘struct Nan::imp::Factory<v8::String>’ does not name a type

../../nan/nan_new.h:329:1: error: ‘return_t’ in ‘struct Nan::imp::Factory<v8::String>’ does not name a type

../../nan/nan_new.h:335:1: error: ‘return_t’ in ‘struct Nan::imp::Factory<v8::RegExp>’ does not name a type

In file included from ../src/init.cc:1:0:

../../nan/nan.h: In function ‘v8::Local<v8::Value> Nan::Error(const char*)’:

../../nan/nan.h:651:3: error: ‘Nan::imp::FactoryBase<v8::Boolean>::return_t’ has no member named ‘ToLocalChecked’

../../nan/nan.h: In function ‘void Nan::ThrowError(const char*)’:

../../nan/nan.h:651:3: error: ‘Nan::imp::FactoryBase<v8::Boolean>::return_t’ has no member named ‘ToLocalChecked’

../../nan/nan.h: In function ‘v8::Local<v8::Value> Nan::RangeError(const char*)’:

../../nan/nan.h:652:3: error: ‘Nan::imp::FactoryBase<v8::Boolean>::return_t’ has no member named ‘ToLocalChecked’

../../nan/nan.h: In function ‘void Nan::ThrowRangeError(const char*)’:

../../nan/nan.h:652:3: error: ‘Nan::imp::FactoryBase<v8::Boolean>::return_t’ has no member named ‘ToLocalChecked’

../../nan/nan.h: In function ‘v8::Local<v8::Value> Nan::ReferenceError(const char*)’:

../../nan/nan.h:653:3: error: ‘Nan::imp::FactoryBase<v8::Boolean>::return_t’ has no member named ‘ToLocalChecked’

../../nan/nan.h: In function ‘void Nan::ThrowReferenceError(const char*)’:

../../nan/nan.h:653:3: error: ‘Nan::imp::FactoryBase<v8::Boolean>::return_t’ has no member named ‘ToLocalChecked’

../../nan/nan.h: In function ‘v8::Local<v8::Value> Nan::SyntaxError(const char*)’:

../../nan/nan.h:654:3: error: ‘Nan::imp::FactoryBase<v8::Boolean>::return_t’ has no member named ‘ToLocalChecked’

../../nan/nan.h: In function ‘void Nan::ThrowSyntaxError(const char*)’:

../../nan/nan.h:654:3: error: ‘Nan::imp::FactoryBase<v8::Boolean>::return_t’ has no member named ‘ToLocalChecked’

../../nan/nan.h: In function ‘v8::Local<v8::Value> Nan::TypeError(const char*)’:

../../nan/nan.h:655:3: error: ‘Nan::imp::FactoryBase<v8::Boolean>::return_t’ has no member named ‘ToLocalChecked’

../../nan/nan.h: In function ‘void Nan::ThrowTypeError(const char*)’:

../../nan/nan.h:655:3: error: ‘Nan::imp::FactoryBase<v8::Boolean>::return_t’ has no member named ‘ToLocalChecked’

../../nan/nan.h: At global scope:

../../nan/nan.h:663:14: error: ‘MaybeLocal’ does not name a type

../../nan/nan.h:685:14: error: ‘MaybeLocal’ does not name a type

../../nan/nan.h:701:14: error: ‘MaybeLocal’ does not name a type

../../nan/nan.h:714:14: error: ‘MaybeLocal’ does not name a type

../../nan/nan.h:731:14: error: ‘MaybeLocal’ does not name a type

../../nan/nan.h:737:14: error: ‘MaybeLocal’ does not name a type

../../nan/nan.h:745:14: error: ‘MaybeLocal’ does not name a type

../../nan/nan.h:752:14: error: ‘MaybeLocal’ does not name a type

../../nan/nan.h:758:14: error: ‘MaybeLocal’ does not name a type

../../nan/nan.h: In member function ‘void Nan::Callback::SetFunction(const v8::Local<v8::Function>&)’:

../../nan/nan.h:1394:40: error: ‘Set’ was not declared in this scope

../../nan/nan.h:1394:40: note: suggested alternative:

/home/travis/.node-gyp/5.0.0/include/node/v8.h:3019:17: note:   ‘v8::Set’

../../nan/nan.h: In member function ‘void Nan::AsyncWorker::SaveToPersistent(const char*, const v8::Local<v8::Value>&)’:

../../nan/nan.h:1516:41: error: ‘Nan::imp::FactoryBase<v8::Boolean>::return_t’ has no member named ‘ToLocalChecked’

../../nan/nan.h: In member function ‘v8::Local<v8::Value> Nan::AsyncWorker::GetFromPersistent(const char*) const’:

../../nan/nan.h:1534:45: error: ‘Nan::imp::FactoryBase<v8::Boolean>::return_t’ has no member named ‘ToLocalChecked’

../../nan/nan.h: In member function ‘virtual void Nan::AsyncWorker::HandleErrorCallback()’:

../../nan/nan.h:1568:58: error: no matching function for call to ‘New(const char*)’

../../nan/nan.h:1568:58: note: candidates are:

../../nan/nan_implementation_12_inl.h:390:21: note: template<class T, class M> v8::Local<T> Nan::New(const v8::Persistent<S, M>&)

../../nan/nan_implementation_12_inl.h:395:21: note: template<class T, class M> v8::Local<T> Nan::New(const Nan::Persistent<T, M>&)

../../nan/nan_implementation_12_inl.h:400:21: note: template<class T> v8::Local<T> Nan::New(const Nan::Global<T>&)

../../nan/nan_new.h:201:1: note: template<class T> typename Nan::imp::Factory::return_t Nan::New()

../../nan/nan_new.h:207:1: note: template<class T, class A0> typename Nan::imp::Factory<T>::return_t Nan::New(A0)

../../nan/nan_new.h:213:1: note: template<class T, class A0, class A1> typename Nan::imp::Factory<T>::return_t Nan::New(A0, A1)

../../nan/nan_new.h:219:1: note: template<class T, class A0, class A1, class A2> typename Nan::imp::Factory<T>::return_t Nan::New(A0, A1, A2)

../../nan/nan_new.h:225:1: note: template<class T, class A0, class A1, class A2, class A3> typename Nan::imp::Factory<T>::return_t Nan::New(A0, A1, A2, A3)

../../nan/nan_new.h:237:1: note: template<class T> typename Nan::imp::Factory::return_t Nan::New(Nan::FunctionCallback, v8::Local<v8::Value>)

../../nan/nan_new.h:245:1: note: template<class T, class A2> typename Nan::imp::Factory<T>::return_t Nan::New(Nan::FunctionCallback, v8::Local<v8::Value>, A2)

../../nan/nan.h: In function ‘void Nan::SetMethod(const T&, const char*, Nan::FunctionCallback)’:

../../nan/nan.h:1857:16: error: there are no arguments to ‘GetFunction’ that depend on a template parameter, so a declaration of ‘GetFunction’ must be available [-fpermissive]

../../nan/nan.h:1857:16: note: (if you use ‘-fpermissive’, G++ will accept your code, but allowing the use of an undeclared name is deprecated)

../../nan/nan.h:1858:45: error: ‘Nan::imp::FactoryBase<v8::Boolean>::return_t’ has no member named ‘ToLocalChecked’

../../nan/nan.h: In function ‘void Nan::SetPrototypeMethod(v8::Local<v8::FunctionTemplate>, const char*, Nan::FunctionCallback)’:

../../nan/nan.h:1870:32: error: ‘GetFunction’ was not declared in this scope

../../nan/nan.h:1871:45: error: ‘Nan::imp::FactoryBase<v8::Boolean>::return_t’ has no member named ‘ToLocalChecked’

../../nan/nan.h: In function ‘void Nan::SetAccessor(v8::Local<v8::ObjectTemplate>, v8::Local<v8::String>, Nan::GetterCallback, Nan::SetterCallback, v8::Local<v8::Value>, v8::AccessControl, v8::PropertyAttribute, Nan::imp::Sig)’:

../../nan/nan.h:1896:47: error: ‘NewInstance’ was not declared in this scope

../../nan/nan.h: In function ‘bool Nan::SetAccessor(v8::Local<v8::Object>, v8::Local<v8::String>, Nan::GetterCallback, Nan::SetterCallback, v8::Local<v8::Value>, v8::AccessControl, v8::PropertyAttribute)’:

../../nan/nan.h:1939:51: error: ‘NewInstance’ was not declared in this scope

../../nan/nan.h: In function ‘void Nan::SetNamedPropertyHandler(v8::Local<v8::ObjectTemplate>, Nan::PropertyGetterCallback, Nan::PropertySetterCallback, Nan::PropertyQueryCallback, Nan::PropertyDeleterCallback, Nan::PropertyEnumeratorCallback, v8::Local<v8::Value>)’:

../../nan/nan.h:1987:47: error: ‘NewInstance’ was not declared in this scope

../../nan/nan.h: In function ‘void Nan::SetIndexedPropertyHandler(v8::Local<v8::ObjectTemplate>, Nan::IndexGetterCallback, Nan::IndexSetterCallback, Nan::IndexQueryCallback, Nan::IndexDeleterCallback, Nan::IndexEnumeratorCallback, v8::Local<v8::Value>)’:

../../nan/nan.h:2057:47: error: ‘NewInstance’ was not declared in this scope

../../nan/nan.h: In function ‘void Nan::SetCallHandler(v8::Local<v8::FunctionTemplate>, Nan::FunctionCallback, v8::Local<v8::Value>)’:

../../nan/nan.h:2112:47: error: ‘NewInstance’ was not declared in this scope

../../nan/nan.h: In function ‘void Nan::SetCallAsFunctionHandler(v8::Local<v8::ObjectTemplate>, Nan::FunctionCallback, v8::Local<v8::Value>)’:

../../nan/nan.h:2134:47: error: ‘NewInstance’ was not declared in this scope

In file included from ../src/init.cc:1:0:

../../nan/nan.h: In function ‘void Nan::Export(Nan::ADDON_REGISTER_FUNCTION_ARGS_TYPE, const char*, Nan::FunctionCallback)’:

../../nan/nan.h:2161:35: error: no matching function for call to ‘New(const char*&)’

../../nan/nan.h:2161:35: note: candidates are:

../../nan/nan_implementation_12_inl.h:390:21: note: template<class T, class M> v8::Local<T> Nan::New(const v8::Persistent<S, M>&)

../../nan/nan_implementation_12_inl.h:395:21: note: template<class T, class M> v8::Local<T> Nan::New(const Nan::Persistent<T, M>&)

../../nan/nan_implementation_12_inl.h:400:21: note: template<class T> v8::Local<T> Nan::New(const Nan::Global<T>&)

../../nan/nan_new.h:201:1: note: template<class T> typename Nan::imp::Factory::return_t Nan::New()

../../nan/nan_new.h:207:1: note: template<class T, class A0> typename Nan::imp::Factory<T>::return_t Nan::New(A0)

../../nan/nan_new.h:213:1: note: template<class T, class A0, class A1> typename Nan::imp::Factory<T>::return_t Nan::New(A0, A1)

../../nan/nan_new.h:219:1: note: template<class T, class A0, class A1, class A2> typename Nan::imp::Factory<T>::return_t Nan::New(A0, A1, A2)

../../nan/nan_new.h:225:1: note: template<class T, class A0, class A1, class A2, class A3> typename Nan::imp::Factory<T>::return_t Nan::New(A0, A1, A2, A3)

../../nan/nan_new.h:237:1: note: template<class T> typename Nan::imp::Factory::return_t Nan::New(Nan::FunctionCallback, v8::Local<v8::Value>)

../../nan/nan_new.h:245:1: note: template<class T, class A2> typename Nan::imp::Factory<T>::return_t Nan::New(Nan::FunctionCallback, v8::Local<v8::Value>, A2)

../../nan/nan.h:2162:47: error: ‘GetFunction’ was not declared in this scope

../../nan/nan.h:2162:65: error: ‘Set’ was not declared in this scope

../../nan/nan.h:2162:65: note: suggested alternative:

/home/travis/.node-gyp/5.0.0/include/node/v8.h:3019:17: note:   ‘v8::Set’

../../nan/nan.h: In constructor ‘Nan::Tap::Tap(v8::Local<v8::Value>)’:

../../nan/nan.h:2169:30: error: no matching function for call to ‘To(v8::Local<v8::Value>&)’

../../nan/nan.h:2169:30: note: candidate is:

../../nan/nan_converters.h:53:38: note: template<class T> typename Nan::imp::ToFactory::return_t Nan::To(v8::Local<v8::Value>)

../../nan/nan.h: In member function ‘void Nan::Tap::ok(bool, const char*)’:

../../nan/nan.h:2182:33: error: ‘Nan::imp::FactoryBase<v8::Boolean>::return_t’ has no member named ‘ToLocalChecked’

../../nan/nan.h: In member function ‘void Nan::Tap::pass(const char*)’:

../../nan/nan.h:2188:30: error: ‘Nan::imp::FactoryBase<v8::Boolean>::return_t’ has no member named ‘ToLocalChecked’

../../nan/nan.h: At global scope:

../../nan/nan.h:2212:10: error: ‘MaybeLocal’ does not name a type

../../nan/nan.h:2217:40: error: ‘MaybeLocal’ was not declared in this scope

../../nan/nan.h:2217:40: note: suggested alternative:

/home/travis/.node-gyp/5.0.0/include/node/v8.h:111:7: note:   ‘v8::MaybeLocal’

../../nan/nan.h:2217:52: error: template argument 1 is invalid

../../nan/nan.h:2217:54: error: expected unqualified-id before ‘>’ token

../../nan/nan.h:2226:1: error: ‘MaybeLocal’ does not name a type

../src/init.cc: In function ‘void InitAll(Nan::ADDON_REGISTER_FUNCTION_ARGS_TYPE)’:

../src/init.cc:10:5: error: ‘Set’ is not a member of ‘Nan’

../src/init.cc:10:5: note: suggested alternatives:

/home/travis/.node-gyp/5.0.0/include/node/v8.h:3019:17: note:   ‘v8::Set’

/home/travis/.node-gyp/5.0.0/include/node/v8.h:3019:17: note:   ‘v8::Set’

../src/init.cc:10:42: error: no matching function for call to ‘New(const char [7])’

../src/init.cc:10:42: note: candidates are:

../../nan/nan_implementation_12_inl.h:390:21: note: template<class T, class M> v8::Local<T> Nan::New(const v8::Persistent<S, M>&)

../../nan/nan_implementation_12_inl.h:395:21: note: template<class T, class M> v8::Local<T> Nan::New(const Nan::Persistent<T, M>&)

../../nan/nan_implementation_12_inl.h:400:21: note: template<class T> v8::Local<T> Nan::New(const Nan::Global<T>&)

../../nan/nan_new.h:201:1: note: template<class T> typename Nan::imp::Factory::return_t Nan::New()

../../nan/nan_new.h:207:1: note: template<class T, class A0> typename Nan::imp::Factory<T>::return_t Nan::New(A0)

../../nan/nan_new.h:213:1: note: template<class T, class A0, class A1> typename Nan::imp::Factory<T>::return_t Nan::New(A0, A1)

../../nan/nan_new.h:219:1: note: template<class T, class A0, class A1, class A2> typename Nan::imp::Factory<T>::return_t Nan::New(A0, A1, A2)

../../nan/nan_new.h:225:1: note: template<class T, class A0, class A1, class A2, class A3> typename Nan::imp::Factory<T>::return_t Nan::New(A0, A1, A2, A3)

../../nan/nan_new.h:237:1: note: template<class T> typename Nan::imp::Factory::return_t Nan::New(Nan::FunctionCallback, v8::Local<v8::Value>)

../../nan/nan_new.h:245:1: note: template<class T, class A2> typename Nan::imp::Factory<T>::return_t Nan::New(Nan::FunctionCallback, v8::Local<v8::Value>, A2)

make: *** [Release/obj.target/png_img/src/init.o] Error 1

make: Leaving directory `/home/travis/build/bem/bem-components/node_modules/png-img/build'

gyp ERR! build error 

gyp ERR! stack Error: `make` failed with exit code: 2

gyp ERR! stack     at ChildProcess.onExit (/home/travis/.nvm/versions/node/v5.0.0/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:270:23)

gyp ERR! stack     at emitTwo (events.js:87:13)

gyp ERR! stack     at ChildProcess.emit (events.js:172:7)

gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:200:12)

gyp ERR! System Linux 3.13.0-40-generic

gyp ERR! command "/home/travis/.nvm/versions/node/v5.0.0/bin/node" "/home/travis/.nvm/versions/node/v5.0.0/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"

gyp ERR! cwd /home/travis/build/bem/bem-components/node_modules/png-img

gyp ERR! node -v v5.0.0

gyp ERR! node-gyp -v v3.0.3

gyp ERR! not ok 
j0tunn commented 8 years ago

Вон же там ошибка: error: #error This version of node/NAN/v8 requires a C++11 compiler Нужен g++4.8 или выше

tadatuta commented 8 years ago

Подскажи, пожалуйста, его можно поставить на тревисе при условии, что сборка запускается в контейнере (без sudo)?

tadatuta commented 8 years ago

Увидел https://github.com/gemini-testing/png-img/blob/master/.travis.yml#L9, вопрос снимаю.