Skip to content

magick@0.0.1 install: `node-gyp rebuild Error #1

Description

@bmanojkumar

I'm using Kubuntu 15.10 and python 2.7.10 and node 5.0.0 and npm 3.3.6
When i tried to do npm install imagine, it throws the following error:

In file included from /home/manoj/.node-gyp/5.0.0/include/node/node.h:42:0,
                 from ../src/file.h:4,
                 from ../src/file.cc:2:
/home/manoj/.node-gyp/5.0.0/include/node/v8.h:2496:25: note: candidate: static v8::Local<v8::Integer> v8::Integer::New(v8::Isolate*, int32_t)
   static Local<Integer> New(Isolate* isolate, int32_t value);
                         ^
/home/manoj/.node-gyp/5.0.0/include/node/v8.h:2496:25: note:   candidate expects 2 arguments, 1 provided
../src/file.cc:73:72: error: no matching function for call to ‘v8::Integer::New(int)’
     { slowBuffer->handle_, v8::Integer::New(length), v8::Integer::New(0) };
                                                                        ^
In file included from /home/manoj/.node-gyp/5.0.0/include/node/node.h:42:0,
                 from ../src/file.h:4,
                 from ../src/file.cc:2:
/home/manoj/.node-gyp/5.0.0/include/node/v8.h:2496:25: note: candidate: static v8::Local<v8::Integer> v8::Integer::New(v8::Isolate*, int32_t)
   static Local<Integer> New(Isolate* isolate, int32_t value);
                         ^
/home/manoj/.node-gyp/5.0.0/include/node/v8.h:2496:25: note:   candidate expects 2 arguments, 1 provided
/home/manoj/.node-gyp/5.0.0/include/node/v8.h:889:13: error: ‘v8::HandleScope::HandleScope()’ is protected
   V8_INLINE HandleScope() {}
             ^
../src/file.cc:79:19: error: within this context
   v8::HandleScope scope;
                   ^
../src/file.cc:80:16: error: ‘class v8::HandleScope’ has no member named ‘Close’
   return scope.Close(actualBuffer);
                ^
../src/file.cc: At global scope:
../src/file.cc:83:47: error: ‘Arguments’ in namespace ‘v8’ does not name a type
 v8::Handle<v8::Value> File::Release(const v8::Arguments &args) {
                                               ^
../src/file.cc: In static member function ‘static v8::Handle<v8::Value> File::Release(const int&)’:
../src/file.cc:84:25: error: ‘node::ObjectWrap’ has not been declared
   File *thisOne = node::ObjectWrap::Unwrap<File>(args.This());
                         ^
../src/file.cc:84:48: error: expected primary-expression before ‘>’ token
   File *thisOne = node::ObjectWrap::Unwrap<File>(args.This());
                                                ^
../src/file.cc:84:55: error: request for member ‘This’ in ‘args’, which is of non-class type ‘const int’
   File *thisOne = node::ObjectWrap::Unwrap<File>(args.This());
                                                       ^
In file included from /home/manoj/.node-gyp/5.0.0/include/node/node.h:42:0,
                 from ../src/file.h:4,
                 from ../src/file.cc:2:
/home/manoj/.node-gyp/5.0.0/include/node/v8.h:889:13: error: ‘v8::HandleScope::HandleScope()’ is protected
   V8_INLINE HandleScope() {}
             ^
../src/file.cc:86:19: error: within this context
   v8::HandleScope scope;
                   ^
../src/file.cc:87:16: error: ‘class v8::HandleScope’ has no member named ‘Close’
   return scope.Close(v8::Undefined());
                ^
../src/file.cc:87:36: error: too few arguments to function ‘v8::Local<v8::Primitive> v8::Undefined(v8::Isolate*)’
   return scope.Close(v8::Undefined());
                                    ^
In file included from /home/manoj/.node-gyp/5.0.0/include/node/node.h:42:0,
                 from ../src/file.h:4,
                 from ../src/file.cc:2:
/home/manoj/.node-gyp/5.0.0/include/node/v8.h:315:27: note: declared here
   friend Local<Primitive> Undefined(Isolate* isolate);
                           ^
../src/file.cc: At global scope:
../src/file.cc:90:50: error: ‘Arguments’ in namespace ‘v8’ does not name a type
 v8::Handle<v8::Value> File::Dimensions(const v8::Arguments &args) {
                                                  ^
../src/file.cc: In static member function ‘static v8::Handle<v8::Value> File::Dimensions(const int&)’:
../src/file.cc:91:25: error: ‘node::ObjectWrap’ has not been declared
   File *thisOne = node::ObjectWrap::Unwrap<File>(args.This());
                         ^
../src/file.cc:91:48: error: expected primary-expression before ‘>’ token
   File *thisOne = node::ObjectWrap::Unwrap<File>(args.This());
                                                ^
../src/file.cc:91:55: error: request for member ‘This’ in ‘args’, which is of non-class type ‘const int’
   File *thisOne = node::ObjectWrap::Unwrap<File>(args.This());
                                                       ^
../src/file.cc:95:31: error: ‘New’ is not a member of ‘v8::String’
   v8::Local<v8::String> dim = v8::String::New(orig);
                               ^
In file included from /home/manoj/.node-gyp/5.0.0/include/node/node.h:42:0,
                 from ../src/file.h:4,
                 from ../src/file.cc:2:
/home/manoj/.node-gyp/5.0.0/include/node/v8.h:889:13: error: ‘v8::HandleScope::HandleScope()’ is protected
   V8_INLINE HandleScope() {}
             ^
../src/file.cc:98:19: error: within this context
   v8::HandleScope scope;
                   ^
../src/file.cc:99:16: error: ‘class v8::HandleScope’ has no member named ‘Close’
   return scope.Close(dim);
                ^
../src/file.cc: At global scope:
../src/file.cc:102:49: error: ‘Arguments’ in namespace ‘v8’ does not name a type
 v8::Handle<v8::Value> File::SetFormat(const v8::Arguments &args) {
                                                 ^
../src/file.cc: In static member function ‘static v8::Handle<v8::Value> File::SetFormat(const int&)’:
../src/file.cc:103:25: error: ‘node::ObjectWrap’ has not been declared
   File *thisOne = node::ObjectWrap::Unwrap<File>(args.This());
                         ^
../src/file.cc:103:48: error: expected primary-expression before ‘>’ token
   File *thisOne = node::ObjectWrap::Unwrap<File>(args.This());
                                                ^
../src/file.cc:103:55: error: request for member ‘This’ in ‘args’, which is of non-class type ‘const int’
   File *thisOne = node::ObjectWrap::Unwrap<File>(args.This());
                                                       ^
../src/file.cc:105:3: error: ‘AsciiValue’ is not a member of ‘v8::String’
   v8::String::AsciiValue format(args[0]);
   ^
../src/file.cc:106:30: error: ‘format’ was not declared in this scope
   thisOne->image->SetFormat(*format);
                              ^
In file included from /home/manoj/.node-gyp/5.0.0/include/node/node.h:42:0,
                 from ../src/file.h:4,
                 from ../src/file.cc:2:
/home/manoj/.node-gyp/5.0.0/include/node/v8.h:889:13: error: ‘v8::HandleScope::HandleScope()’ is protected
   V8_INLINE HandleScope() {}
             ^
../src/file.cc:108:19: error: within this context
   v8::HandleScope scope;
                   ^
../src/file.cc:109:16: error: ‘class v8::HandleScope’ has no member named ‘Close’
   return scope.Close(v8::Undefined());
                ^
../src/file.cc:109:36: error: too few arguments to function ‘v8::Local<v8::Primitive> v8::Undefined(v8::Isolate*)’
   return scope.Close(v8::Undefined());
                                    ^
In file included from /home/manoj/.node-gyp/5.0.0/include/node/node.h:42:0,
                 from ../src/file.h:4,
                 from ../src/file.cc:2:
/home/manoj/.node-gyp/5.0.0/include/node/v8.h:315:27: note: declared here
   friend Local<Primitive> Undefined(Isolate* isolate);
                           ^
../src/file.cc: At global scope:
../src/file.cc:112:46: error: ‘Arguments’ in namespace ‘v8’ does not name a type
 v8::Handle<v8::Value> File::Resize(const v8::Arguments &args) {
                                              ^
../src/file.cc: In static member function ‘static v8::Handle<v8::Value> File::Resize(const int&)’:
../src/file.cc:113:28: error: invalid types ‘const int[int]’ for array subscript
   int desiredWidth = args[0]->NumberValue();
                            ^
../src/file.cc:114:29: error: invalid types ‘const int[int]’ for array subscript
   int desiredHeight = args[1]->NumberValue();
                             ^
../src/file.cc:115:25: error: ‘node::ObjectWrap’ has not been declared
   File *thisOne = node::ObjectWrap::Unwrap<File>(args.This());
                         ^
../src/file.cc:115:48: error: expected primary-expression before ‘>’ token
   File *thisOne = node::ObjectWrap::Unwrap<File>(args.This());
                                                ^
../src/file.cc:115:55: error: request for member ‘This’ in ‘args’, which is of non-class type ‘const int’
   File *thisOne = node::ObjectWrap::Unwrap<File>(args.This());
                                                       ^
In file included from /home/manoj/.node-gyp/5.0.0/include/node/node.h:42:0,
                 from ../src/file.h:4,
                 from ../src/file.cc:2:
/home/manoj/.node-gyp/5.0.0/include/node/v8.h:889:13: error: ‘v8::HandleScope::HandleScope()’ is protected
   V8_INLINE HandleScope() {}
             ^
../src/file.cc:119:19: error: within this context
   v8::HandleScope scope;
                   ^
../src/file.cc:120:16: error: ‘class v8::HandleScope’ has no member named ‘Close’
   return scope.Close(v8::Undefined());
                ^
../src/file.cc:120:36: error: too few arguments to function ‘v8::Local<v8::Primitive> v8::Undefined(v8::Isolate*)’
   return scope.Close(v8::Undefined());
                                    ^
In file included from /home/manoj/.node-gyp/5.0.0/include/node/node.h:42:0,
                 from ../src/file.h:4,
                 from ../src/file.cc:2:
/home/manoj/.node-gyp/5.0.0/include/node/v8.h:315:27: note: declared here
   friend Local<Primitive> Undefined(Isolate* isolate);
                           ^
../src/file.cc: At global scope:
../src/file.cc:123:44: error: ‘Arguments’ in namespace ‘v8’ does not name a type
 v8::Handle<v8::Value> File::Crop(const v8::Arguments &args) {
                                            ^
../src/file.cc: In static member function ‘static v8::Handle<v8::Value> File::Crop(const int&)’:
../src/file.cc:124:28: error: invalid types ‘const int[int]’ for array subscript
   int desiredWidth = args[0]->NumberValue();
                            ^
../src/file.cc:125:29: error: invalid types ‘const int[int]’ for array subscript
   int desiredHeight = args[1]->NumberValue();
                             ^
../src/file.cc:126:25: error: ‘node::ObjectWrap’ has not been declared
   File *thisOne = node::ObjectWrap::Unwrap<File>(args.This());
                         ^
../src/file.cc:126:48: error: expected primary-expression before ‘>’ token
   File *thisOne = node::ObjectWrap::Unwrap<File>(args.This());
                                                ^
../src/file.cc:126:55: error: request for member ‘This’ in ‘args’, which is of non-class type ‘const int’
   File *thisOne = node::ObjectWrap::Unwrap<File>(args.This());
                                                       ^
In file included from /home/manoj/.node-gyp/5.0.0/include/node/node.h:42:0,
                 from ../src/file.h:4,
                 from ../src/file.cc:2:
/home/manoj/.node-gyp/5.0.0/include/node/v8.h:889:13: error: ‘v8::HandleScope::HandleScope()’ is protected
   V8_INLINE HandleScope() {}
             ^
../src/file.cc:130:19: error: within this context
   v8::HandleScope scope;
                   ^
../src/file.cc:131:16: error: ‘class v8::HandleScope’ has no member named ‘Close’
   return scope.Close(v8::Undefined());
                ^
../src/file.cc:131:36: error: too few arguments to function ‘v8::Local<v8::Primitive> v8::Undefined(v8::Isolate*)’
   return scope.Close(v8::Undefined());
                                    ^
In file included from /home/manoj/.node-gyp/5.0.0/include/node/node.h:42:0,
                 from ../src/file.h:4,
                 from ../src/file.cc:2:
/home/manoj/.node-gyp/5.0.0/include/node/v8.h:315:27: note: declared here
   friend Local<Primitive> Undefined(Isolate* isolate);
                           ^
../src/file.cc: At global scope:
../src/file.cc:134:52: error: ‘Arguments’ in namespace ‘v8’ does not name a type
 v8::Handle<v8::Value> File::ResizeToFill(const v8::Arguments &args) {
                                                    ^
../src/file.cc: In static member function ‘static v8::Handle<v8::Value> File::ResizeToFill(const int&)’:
../src/file.cc:135:28: error: invalid types ‘const int[int]’ for array subscript
   int desiredWidth = args[0]->NumberValue();
                            ^
../src/file.cc:136:29: error: invalid types ‘const int[int]’ for array subscript
   int desiredHeight = args[1]->NumberValue();
                             ^
../src/file.cc:137:25: error: ‘node::ObjectWrap’ has not been declared
   File *thisOne = node::ObjectWrap::Unwrap<File>(args.This());
                         ^
../src/file.cc:137:48: error: expected primary-expression before ‘>’ token
   File *thisOne = node::ObjectWrap::Unwrap<File>(args.This());
                                                ^
../src/file.cc:137:55: error: request for member ‘This’ in ‘args’, which is of non-class type ‘const int’
   File *thisOne = node::ObjectWrap::Unwrap<File>(args.This());
                                                       ^
In file included from /home/manoj/.node-gyp/5.0.0/include/node/node.h:42:0,
                 from ../src/file.h:4,
                 from ../src/file.cc:2:
/home/manoj/.node-gyp/5.0.0/include/node/v8.h:889:13: error: ‘v8::HandleScope::HandleScope()’ is protected
   V8_INLINE HandleScope() {}
             ^
../src/file.cc:141:19: error: within this context
   v8::HandleScope scope;
                   ^
../src/file.cc:142:16: error: ‘class v8::HandleScope’ has no member named ‘Close’
   return scope.Close(v8::Undefined());
                ^
../src/file.cc:142:36: error: too few arguments to function ‘v8::Local<v8::Primitive> v8::Undefined(v8::Isolate*)’
   return scope.Close(v8::Undefined());
                                    ^
In file included from /home/manoj/.node-gyp/5.0.0/include/node/node.h:42:0,
                 from ../src/file.h:4,
                 from ../src/file.cc:2:
/home/manoj/.node-gyp/5.0.0/include/node/v8.h:315:27: note: declared here
   friend Local<Primitive> Undefined(Isolate* isolate);
                           ^
../src/file.cc: At global scope:
../src/file.cc:145:47: error: ‘Arguments’ in namespace ‘v8’ does not name a type
 v8::Handle<v8::Value> File::Opacity(const v8::Arguments &args) {
                                               ^
../src/file.cc: In static member function ‘static v8::Handle<v8::Value> File::Opacity(const int&)’:
../src/file.cc:146:32: error: invalid types ‘const int[int]’ for array subscript
   float desiredOpacity = args[1]->NumberValue();
                                ^
../src/file.cc:147:25: error: ‘node::ObjectWrap’ has not been declared
   File *thisOne = node::ObjectWrap::Unwrap<File>(args.This());
                         ^
../src/file.cc:147:48: error: expected primary-expression before ‘>’ token
   File *thisOne = node::ObjectWrap::Unwrap<File>(args.This());
                                                ^
../src/file.cc:147:55: error: request for member ‘This’ in ‘args’, which is of non-class type ‘const int’
   File *thisOne = node::ObjectWrap::Unwrap<File>(args.This());
                                                       ^
In file included from /home/manoj/.node-gyp/5.0.0/include/node/node.h:42:0,
                 from ../src/file.h:4,
                 from ../src/file.cc:2:
/home/manoj/.node-gyp/5.0.0/include/node/v8.h:889:13: error: ‘v8::HandleScope::HandleScope()’ is protected
   V8_INLINE HandleScope() {}
             ^
../src/file.cc:151:19: error: within this context
   v8::HandleScope scope;
                   ^
../src/file.cc:152:16: error: ‘class v8::HandleScope’ has no member named ‘Close’
   return scope.Close(v8::Undefined());
                ^
../src/file.cc:152:36: error: too few arguments to function ‘v8::Local<v8::Primitive> v8::Undefined(v8::Isolate*)’
   return scope.Close(v8::Undefined());
                                    ^
In file included from /home/manoj/.node-gyp/5.0.0/include/node/node.h:42:0,
                 from ../src/file.h:4,
                 from ../src/file.cc:2:
/home/manoj/.node-gyp/5.0.0/include/node/v8.h:315:27: note: declared here
   friend Local<Primitive> Undefined(Isolate* isolate);
                           ^
../src/file.cc: At global scope:
../src/file.cc:155:44: error: ‘Arguments’ in namespace ‘v8’ does not name a type
 v8::Handle<v8::Value> File::Blur(const v8::Arguments &args) {
                                            ^
../src/file.cc: In static member function ‘static v8::Handle<v8::Value> File::Blur(const int&)’:
../src/file.cc:156:21: error: invalid types ‘const int[int]’ for array subscript
   int sigma = args[0]->NumberValue();
                     ^
../src/file.cc:158:13: error: invalid types ‘const int[int]’ for array subscript
   if (args[1]->IsNumber()) {
             ^
../src/file.cc:159:20: error: invalid types ‘const int[int]’ for array subscript
     radius = args[1]->NumberValue();
                    ^
../src/file.cc:161:25: error: ‘node::ObjectWrap’ has not been declared
   File *thisOne = node::ObjectWrap::Unwrap<File>(args.This());
                         ^
../src/file.cc:161:48: error: expected primary-expression before ‘>’ token
   File *thisOne = node::ObjectWrap::Unwrap<File>(args.This());
                                                ^
../src/file.cc:161:55: error: request for member ‘This’ in ‘args’, which is of non-class type ‘const int’
   File *thisOne = node::ObjectWrap::Unwrap<File>(args.This());
                                                       ^
In file included from /home/manoj/.node-gyp/5.0.0/include/node/node.h:42:0,
                 from ../src/file.h:4,
                 from ../src/file.cc:2:
/home/manoj/.node-gyp/5.0.0/include/node/v8.h:889:13: error: ‘v8::HandleScope::HandleScope()’ is protected
   V8_INLINE HandleScope() {}
             ^
../src/file.cc:165:19: error: within this context
   v8::HandleScope scope;
                   ^
../src/file.cc:166:16: error: ‘class v8::HandleScope’ has no member named ‘Close’
   return scope.Close(v8::Undefined());
                ^
../src/file.cc:166:36: error: too few arguments to function ‘v8::Local<v8::Primitive> v8::Undefined(v8::Isolate*)’
   return scope.Close(v8::Undefined());
                                    ^
In file included from /home/manoj/.node-gyp/5.0.0/include/node/node.h:42:0,
                 from ../src/file.h:4,
                 from ../src/file.cc:2:
/home/manoj/.node-gyp/5.0.0/include/node/v8.h:315:27: note: declared here
   friend Local<Primitive> Undefined(Isolate* isolate);
                           ^
../src/file.cc: At global scope:
../src/file.cc:169:48: error: ‘Arguments’ in namespace ‘v8’ does not name a type
 v8::Handle<v8::Value> File::Charcoal(const v8::Arguments &args) {
                                                ^
../src/file.cc: In static member function ‘static v8::Handle<v8::Value> File::Charcoal(const int&)’:
../src/file.cc:170:21: error: invalid types ‘const int[int]’ for array subscript
   int sigma = args[0]->NumberValue();
                     ^
../src/file.cc:172:13: error: invalid types ‘const int[int]’ for array subscript
   if (args[1]->IsNumber()) {
             ^
../src/file.cc:173:20: error: invalid types ‘const int[int]’ for array subscript
     radius = args[1]->NumberValue();
                    ^
../src/file.cc:175:25: error: ‘node::ObjectWrap’ has not been declared
   File *thisOne = node::ObjectWrap::Unwrap<File>(args.This());
                         ^
../src/file.cc:175:48: error: expected primary-expression before ‘>’ token
   File *thisOne = node::ObjectWrap::Unwrap<File>(args.This());
                                                ^
../src/file.cc:175:55: error: request for member ‘This’ in ‘args’, which is of non-class type ‘const int’
   File *thisOne = node::ObjectWrap::Unwrap<File>(args.This());
                                                       ^
In file included from /home/manoj/.node-gyp/5.0.0/include/node/node.h:42:0,
                 from ../src/file.h:4,
                 from ../src/file.cc:2:
/home/manoj/.node-gyp/5.0.0/include/node/v8.h:889:13: error: ‘v8::HandleScope::HandleScope()’ is protected
   V8_INLINE HandleScope() {}
             ^
../src/file.cc:179:19: error: within this context
   v8::HandleScope scope;
                   ^
../src/file.cc:180:16: error: ‘class v8::HandleScope’ has no member named ‘Close’
   return scope.Close(v8::Undefined());
                ^
../src/file.cc:180:36: error: too few arguments to function ‘v8::Local<v8::Primitive> v8::Undefined(v8::Isolate*)’
   return scope.Close(v8::Undefined());
                                    ^
In file included from /home/manoj/.node-gyp/5.0.0/include/node/node.h:42:0,
                 from ../src/file.h:4,
                 from ../src/file.cc:2:
/home/manoj/.node-gyp/5.0.0/include/node/v8.h:315:27: note: declared here
   friend Local<Primitive> Undefined(Isolate* isolate);
                           ^
../src/file.cc: At global scope:
../src/file.cc:183:45: error: ‘Arguments’ in namespace ‘v8’ does not name a type
 v8::Handle<v8::Value> File::Paint(const v8::Arguments &args) {
                                             ^
../src/file.cc: In static member function ‘static v8::Handle<v8::Value> File::Paint(const int&)’:
../src/file.cc:185:13: error: invalid types ‘const int[int]’ for array subscript
   if (args[0]->IsNumber()) {
             ^
../src/file.cc:186:20: error: invalid types ‘const int[int]’ for array subscript
     radius = args[0]->NumberValue();
                    ^
../src/file.cc:188:25: error: ‘node::ObjectWrap’ has not been declared
   File *thisOne = node::ObjectWrap::Unwrap<File>(args.This());
                         ^
../src/file.cc:188:48: error: expected primary-expression before ‘>’ token
   File *thisOne = node::ObjectWrap::Unwrap<File>(args.This());
                                                ^
../src/file.cc:188:55: error: request for member ‘This’ in ‘args’, which is of non-class type ‘const int’
   File *thisOne = node::ObjectWrap::Unwrap<File>(args.This());
                                                       ^
In file included from /home/manoj/.node-gyp/5.0.0/include/node/node.h:42:0,
                 from ../src/file.h:4,
                 from ../src/file.cc:2:
/home/manoj/.node-gyp/5.0.0/include/node/v8.h:889:13: error: ‘v8::HandleScope::HandleScope()’ is protected
   V8_INLINE HandleScope() {}
             ^
../src/file.cc:192:19: error: within this context
   v8::HandleScope scope;
                   ^
../src/file.cc:193:16: error: ‘class v8::HandleScope’ has no member named ‘Close’
   return scope.Close(v8::Undefined());
                ^
../src/file.cc:193:36: error: too few arguments to function ‘v8::Local<v8::Primitive> v8::Undefined(v8::Isolate*)’
   return scope.Close(v8::Undefined());
                                    ^
In file included from /home/manoj/.node-gyp/5.0.0/include/node/node.h:42:0,
                 from ../src/file.h:4,
                 from ../src/file.cc:2:
/home/manoj/.node-gyp/5.0.0/include/node/v8.h:315:27: note: declared here
   friend Local<Primitive> Undefined(Isolate* isolate);
                           ^
../src/file.cc: At global scope:
../src/file.cc:196:45: error: ‘Arguments’ in namespace ‘v8’ does not name a type
 v8::Handle<v8::Value> File::Sepia(const v8::Arguments &args) {
                                             ^
../src/file.cc: In static member function ‘static v8::Handle<v8::Value> File::Sepia(const int&)’:
../src/file.cc:197:25: error: invalid types ‘const int[int]’ for array subscript
   int threshold = args[0]->NumberValue();
                         ^
../src/file.cc:198:25: error: ‘node::ObjectWrap’ has not been declared
   File *thisOne = node::ObjectWrap::Unwrap<File>(args.This());
                         ^
../src/file.cc:198:48: error: expected primary-expression before ‘>’ token
   File *thisOne = node::ObjectWrap::Unwrap<File>(args.This());
                                                ^
../src/file.cc:198:55: error: request for member ‘This’ in ‘args’, which is of non-class type ‘const int’
   File *thisOne = node::ObjectWrap::Unwrap<File>(args.This());
                                                       ^
In file included from /home/manoj/.node-gyp/5.0.0/include/node/node.h:42:0,
                 from ../src/file.h:4,
                 from ../src/file.cc:2:
/home/manoj/.node-gyp/5.0.0/include/node/v8.h:889:13: error: ‘v8::HandleScope::HandleScope()’ is protected
   V8_INLINE HandleScope() {}
             ^
../src/file.cc:202:19: error: within this context
   v8::HandleScope scope;
                   ^
../src/file.cc:203:16: error: ‘class v8::HandleScope’ has no member named ‘Close’
   return scope.Close(v8::Undefined());
                ^
../src/file.cc:203:36: error: too few arguments to function ‘v8::Local<v8::Primitive> v8::Undefined(v8::Isolate*)’
   return scope.Close(v8::Undefined());
                                    ^
In file included from /home/manoj/.node-gyp/5.0.0/include/node/node.h:42:0,
                 from ../src/file.h:4,
                 from ../src/file.cc:2:
/home/manoj/.node-gyp/5.0.0/include/node/v8.h:315:27: note: declared here
   friend Local<Primitive> Undefined(Isolate* isolate);
                           ^
../src/file.cc: At global scope:
../src/file.cc:206:43: error: ‘Arguments’ in namespace ‘v8’ does not name a type
 v8::Handle<v8::Value> File::New(const v8::Arguments &args) {
                                           ^
../src/file.cc: In static member function ‘static v8::Handle<v8::Value> File::New(const int&)’:
../src/file.cc:208:12: error: ‘class File’ has no member named ‘Wrap’
   thisOne->Wrap(args.This());
            ^
../src/file.cc:208:22: error: request for member ‘This’ in ‘args’, which is of non-class type ‘const int’
   thisOne->Wrap(args.This());
                      ^
../src/file.cc:210:40: error: invalid types ‘const int[int]’ for array subscript
   v8::Local<v8::Object> buffer = args[0]->ToObject();
                                        ^
../src/file.cc:215:15: error: request for member ‘This’ in ‘args’, which is of non-class type ‘const int’
   return args.This();
               ^
make: *** [Release/obj.target/magick/src/file.o] Error 1
gyp ERR! build error 
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack     at ChildProcess.onExit (/home/manoj/.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 4.2.0-16-generic
gyp ERR! command "/home/manoj/.nvm/versions/node/v5.0.0/bin/node" "/home/manoj/.nvm/versions/node/v5.0.0/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /home/manoj/zwork/node_modules/magick
gyp ERR! node -v v5.0.0
gyp ERR! node-gyp -v v3.0.3
gyp ERR! not ok 
npm WARN install:magick magick@0.0.1 install: `node-gyp rebuild`
npm WARN install:magick Exit status 1

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions