Skip to content
This repository has been archived by the owner on Dec 9, 2018. It is now read-only.

Installation of contextify@0.1.6 fails on OSX 10.9 (node v0.11.8) #91

Closed
evandrix opened this issue Nov 3, 2013 · 12 comments
Closed

Installation of contextify@0.1.6 fails on OSX 10.9 (node v0.11.8) #91

evandrix opened this issue Nov 3, 2013 · 12 comments

Comments

@evandrix
Copy link

evandrix commented Nov 3, 2013

The following compile errors are presented:

npm http GET https://registry.npmjs.org/contextify
npm http 304 https://registry.npmjs.org/contextify
npm http GET https://registry.npmjs.org/bindings
npm http 304 https://registry.npmjs.org/bindings

> contextify@0.1.6 install /opt/local/lib/node_modules/contextify
> node-gyp rebuild

  CXX(target) Release/obj.target/contextify/src/contextify.o
In file included from /Users/evandrix/.node-gyp/0.11.8/src/node.h:61:0,
                 from ../src/contextify.cc:1:
/Users/evandrix/.node-gyp/0.11.8/deps/v8/include/v8.h: In member function 'void v8::ReturnValue<T>::Set(uint32_t)':
/Users/evandrix/.node-gyp/0.11.8/deps/v8/include/v8.h:5780:31: warning: typedef 'I' locally defined but not used [-Wunused-local-typedefs]
   typedef internal::Internals I;
                               ^
../src/contextify.cc: At global scope:
../src/contextify.cc:12:38: error: expected class-name before '{' token
 class ContextifyContext : ObjectWrap {
                                      ^
../src/contextify.cc:94:36: error: 'Arguments' does not name a type
     static Handle<Value> New(const Arguments& args) {
                                    ^
../src/contextify.cc:109:36: error: 'Arguments' does not name a type
     static Handle<Value> Run(const Arguments& args) {
                                    ^
../src/contextify.cc:146:42: error: 'Arguments' does not name a type
     static Handle<Value> GetGlobal(const Arguments& args) {
                                          ^
../src/contextify.cc:167:54: error: 'AccessorInfo' does not name a type
                                                const AccessorInfo &accessInfo) {
                                                      ^
../src/contextify.cc:180:54: error: 'AccessorInfo' does not name a type
                                                const AccessorInfo &accessInfo) {
                                                      ^
../src/contextify.cc:189:54: error: 'AccessorInfo' does not name a type
                                                const AccessorInfo &accessInfo) {
                                                      ^
../src/contextify.cc:201:56: error: 'AccessorInfo' does not name a type
                                                  const AccessorInfo &accessInfo) {
                                                        ^
../src/contextify.cc:212:57: error: 'AccessorInfo' does not name a type
     static Handle<Array> GlobalPropertyEnumerator(const AccessorInfo &accessInfo) {
                                                         ^
../src/contextify.cc: In constructor 'ContextifyContext::ContextifyContext(v8::Local<v8::Object>)':
../src/contextify.cc:21:21: error: no matching function for call to 'v8::HandleScope::HandleScope()'
         HandleScope scope;
                     ^
../src/contextify.cc:21:21: note: candidates are:
In file included from /Users/evandrix/.node-gyp/0.11.8/src/node.h:61:0,
                 from ../src/contextify.cc:1:
/Users/evandrix/.node-gyp/0.11.8/deps/v8/include/v8.h:783:3: note: v8::HandleScope::HandleScope(const v8::HandleScope&)
   HandleScope(const HandleScope&);
   ^
/Users/evandrix/.node-gyp/0.11.8/deps/v8/include/v8.h:783:3: note:   candidate expects 1 argument, 0 provided
/Users/evandrix/.node-gyp/0.11.8/deps/v8/include/v8.h:756:3: note: v8::HandleScope::HandleScope(v8::Isolate*)
   HandleScope(Isolate* isolate);
   ^
/Users/evandrix/.node-gyp/0.11.8/deps/v8/include/v8.h:756:3: note:   candidate expects 1 argument, 0 provided
../src/contextify.cc:22:47: error: no matching function for call to 'v8::Persistent<v8::Object>::New(v8::Local<v8::Object>&)'
         sandbox = Persistent<Object>::New(sbox);
                                               ^
../src/contextify.cc:22:47: note: candidate is:
In file included from /Users/evandrix/.node-gyp/0.11.8/src/node.h:61:0,
                 from ../src/contextify.cc:1:
/Users/evandrix/.node-gyp/0.11.8/deps/v8/include/v8.h:5555:4: note: static T* v8::Persistent<T, M>::New(v8::Isolate*, T*) [with T = v8::Object; M = v8::NonCopyablePersistentTraits<v8::Object>]
 T* Persistent<T, M>::New(Isolate* isolate, T* that) {
    ^
/Users/evandrix/.node-gyp/0.11.8/deps/v8/include/v8.h:5555:4: note:   candidate expects 2 arguments, 1 provided
../src/contextify.cc: In member function 'void ContextifyContext::Wrap(v8::Handle<v8::Object>)':
../src/contextify.cc:39:9: error: 'ObjectWrap' has not been declared
         ObjectWrap::Wrap(handle);
         ^
../src/contextify.cc:41:54: error: base operand of '->' has non-pointer type 'v8::Persistent<v8::Context>'
         proxyGlobal = Persistent<Object>::New(context->Global());
                                                      ^
../src/contextify.cc: In member function 'v8::Local<v8::Object> ContextifyContext::createDataWrapper()':
../src/contextify.cc:50:21: error: no matching function for call to 'v8::HandleScope::HandleScope()'
         HandleScope scope;
                     ^
../src/contextify.cc:50:21: note: candidates are:
In file included from /Users/evandrix/.node-gyp/0.11.8/src/node.h:61:0,
                 from ../src/contextify.cc:1:
/Users/evandrix/.node-gyp/0.11.8/deps/v8/include/v8.h:783:3: note: v8::HandleScope::HandleScope(const v8::HandleScope&)
   HandleScope(const HandleScope&);
   ^
/Users/evandrix/.node-gyp/0.11.8/deps/v8/include/v8.h:783:3: note:   candidate expects 1 argument, 0 provided
/Users/evandrix/.node-gyp/0.11.8/deps/v8/include/v8.h:756:3: note: v8::HandleScope::HandleScope(v8::Isolate*)
   HandleScope(Isolate* isolate);
   ^
/Users/evandrix/.node-gyp/0.11.8/deps/v8/include/v8.h:756:3: note:   candidate expects 1 argument, 0 provided
../src/contextify.cc:51:48: error: base operand of '->' has non-pointer type 'v8::Persistent<v8::Function, v8::NonCopyablePersistentTraits<v8::Function> >'
         Local<Object> wrapper = dataWrapperCtor->NewInstance();
                                                ^
../src/contextify.cc: In member function 'v8::Persistent<v8::Context> ContextifyContext::createV8Context()':
../src/contextify.cc:61:21: error: no matching function for call to 'v8::HandleScope::HandleScope()'
         HandleScope scope;
                     ^
../src/contextify.cc:61:21: note: candidates are:
In file included from /Users/evandrix/.node-gyp/0.11.8/src/node.h:61:0,
                 from ../src/contextify.cc:1:
/Users/evandrix/.node-gyp/0.11.8/deps/v8/include/v8.h:783:3: note: v8::HandleScope::HandleScope(const v8::HandleScope&)
   HandleScope(const HandleScope&);
   ^
/Users/evandrix/.node-gyp/0.11.8/deps/v8/include/v8.h:783:3: note:   candidate expects 1 argument, 0 provided
/Users/evandrix/.node-gyp/0.11.8/deps/v8/include/v8.h:756:3: note: v8::HandleScope::HandleScope(v8::Isolate*)
   HandleScope(Isolate* isolate);
   ^
/Users/evandrix/.node-gyp/0.11.8/deps/v8/include/v8.h:756:3: note:   candidate expects 1 argument, 0 provided
../src/contextify.cc:64:36: error: base operand of '->' has non-pointer type 'v8::Persistent<v8::Object>'
         ftmpl->SetClassName(sandbox->GetConstructorName());
                                    ^
../src/contextify.cc:71:59: error: invalid conversion from 'v8::Handle<v8::Value> (*)(v8::Local<v8::String>, const int&)' to 'v8::NamedPropertyGetterCallback {aka void (*)(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>&)}' [-fpermissive]
                                        createDataWrapper());
                                                           ^
In file included from /Users/evandrix/.node-gyp/0.11.8/src/node.h:61:0,
                 from ../src/contextify.cc:1:
/Users/evandrix/.node-gyp/0.11.8/deps/v8/include/v8.h:3458:8: note: initializing argument 1 of 'void v8::ObjectTemplate::SetNamedPropertyHandler(v8::NamedPropertyGetterCallback, v8::NamedPropertySetterCallback, v8::NamedPropertyQueryCallback, v8::NamedPropertyDeleterCallback, v8::NamedPropertyEnumeratorCallback, v8::Handle<v8::Value>)'
   void SetNamedPropertyHandler(
        ^
../src/contextify.cc:71:59: error: invalid conversion from 'v8::Handle<v8::Value> (*)(v8::Local<v8::String>, v8::Local<v8::Value>, const int&)' to 'v8::NamedPropertySetterCallback {aka void (*)(v8::Local<v8::String>, v8::Local<v8::Value>, const v8::PropertyCallbackInfo<v8::Value>&)}' [-fpermissive]
                                        createDataWrapper());
                                                           ^
In file included from /Users/evandrix/.node-gyp/0.11.8/src/node.h:61:0,
                 from ../src/contextify.cc:1:
/Users/evandrix/.node-gyp/0.11.8/deps/v8/include/v8.h:3458:8: note: initializing argument 2 of 'void v8::ObjectTemplate::SetNamedPropertyHandler(v8::NamedPropertyGetterCallback, v8::NamedPropertySetterCallback, v8::NamedPropertyQueryCallback, v8::NamedPropertyDeleterCallback, v8::NamedPropertyEnumeratorCallback, v8::Handle<v8::Value>)'
   void SetNamedPropertyHandler(
        ^
../src/contextify.cc:71:59: error: invalid conversion from 'v8::Handle<v8::Integer> (*)(v8::Local<v8::String>, const int&)' to 'v8::NamedPropertyQueryCallback {aka void (*)(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Integer>&)}' [-fpermissive]
                                        createDataWrapper());
                                                           ^
In file included from /Users/evandrix/.node-gyp/0.11.8/src/node.h:61:0,
                 from ../src/contextify.cc:1:
/Users/evandrix/.node-gyp/0.11.8/deps/v8/include/v8.h:3458:8: note: initializing argument 3 of 'void v8::ObjectTemplate::SetNamedPropertyHandler(v8::NamedPropertyGetterCallback, v8::NamedPropertySetterCallback, v8::NamedPropertyQueryCallback, v8::NamedPropertyDeleterCallback, v8::NamedPropertyEnumeratorCallback, v8::Handle<v8::Value>)'
   void SetNamedPropertyHandler(
        ^
../src/contextify.cc:71:59: error: invalid conversion from 'v8::Handle<v8::Boolean> (*)(v8::Local<v8::String>, const int&)' to 'v8::NamedPropertyDeleterCallback {aka void (*)(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Boolean>&)}' [-fpermissive]
                                        createDataWrapper());
                                                           ^
In file included from /Users/evandrix/.node-gyp/0.11.8/src/node.h:61:0,
                 from ../src/contextify.cc:1:
/Users/evandrix/.node-gyp/0.11.8/deps/v8/include/v8.h:3458:8: note: initializing argument 4 of 'void v8::ObjectTemplate::SetNamedPropertyHandler(v8::NamedPropertyGetterCallback, v8::NamedPropertySetterCallback, v8::NamedPropertyQueryCallback, v8::NamedPropertyDeleterCallback, v8::NamedPropertyEnumeratorCallback, v8::Handle<v8::Value>)'
   void SetNamedPropertyHandler(
        ^
../src/contextify.cc:71:59: error: invalid conversion from 'v8::Handle<v8::Array> (*)(const int&)' to 'v8::NamedPropertyEnumeratorCallback {aka void (*)(const v8::PropertyCallbackInfo<v8::Array>&)}' [-fpermissive]
                                        createDataWrapper());
                                                           ^
In file included from /Users/evandrix/.node-gyp/0.11.8/src/node.h:61:0,
                 from ../src/contextify.cc:1:
/Users/evandrix/.node-gyp/0.11.8/deps/v8/include/v8.h:3458:8: note: initializing argument 5 of 'void v8::ObjectTemplate::SetNamedPropertyHandler(v8::NamedPropertyGetterCallback, v8::NamedPropertySetterCallback, v8::NamedPropertyQueryCallback, v8::NamedPropertyDeleterCallback, v8::NamedPropertyEnumeratorCallback, v8::Handle<v8::Value>)'
   void SetNamedPropertyHandler(
        ^
../src/contextify.cc:74:40: warning: 'static v8::Persistent<v8::Context> v8::Context::New(v8::ExtensionConfiguration*, v8::Handle<v8::ObjectTemplate>, v8::Handle<v8::Value>)' is deprecated (declared at /Users/evandrix/.node-gyp/0.11.8/deps/v8/include/v8.h:4903) [-Wdeprecated-declarations]
         return Context::New(NULL, otmpl);
                                        ^
../src/contextify.cc: In static member function 'static void ContextifyContext::Init(v8::Handle<v8::Object>)':
../src/contextify.cc:78:21: error: no matching function for call to 'v8::HandleScope::HandleScope()'
         HandleScope scope;
                     ^
../src/contextify.cc:78:21: note: candidates are:
In file included from /Users/evandrix/.node-gyp/0.11.8/src/node.h:61:0,
                 from ../src/contextify.cc:1:
/Users/evandrix/.node-gyp/0.11.8/deps/v8/include/v8.h:783:3: note: v8::HandleScope::HandleScope(const v8::HandleScope&)
   HandleScope(const HandleScope&);
   ^
/Users/evandrix/.node-gyp/0.11.8/deps/v8/include/v8.h:783:3: note:   candidate expects 1 argument, 0 provided
/Users/evandrix/.node-gyp/0.11.8/deps/v8/include/v8.h:756:3: note: v8::HandleScope::HandleScope(v8::Isolate*)
   HandleScope(Isolate* isolate);
   ^
/Users/evandrix/.node-gyp/0.11.8/deps/v8/include/v8.h:756:3: note:   candidate expects 1 argument, 0 provided
../src/contextify.cc:79:84: error: no matching function for call to 'v8::Persistent<v8::FunctionTemplate, v8::NonCopyablePersistentTraits<v8::FunctionTemplate> >::New(v8::Local<v8::FunctionTemplate>)'
         dataWrapperTmpl = Persistent<FunctionTemplate>::New(FunctionTemplate::New());
                                                                                    ^
../src/contextify.cc:79:84: note: candidate is:
In file included from /Users/evandrix/.node-gyp/0.11.8/src/node.h:61:0,
                 from ../src/contextify.cc:1:
/Users/evandrix/.node-gyp/0.11.8/deps/v8/include/v8.h:5555:4: note: static T* v8::Persistent<T, M>::New(v8::Isolate*, T*) [with T = v8::FunctionTemplate; M = v8::NonCopyablePersistentTraits<v8::FunctionTemplate>]
 T* Persistent<T, M>::New(Isolate* isolate, T* that) {
    ^
/Users/evandrix/.node-gyp/0.11.8/deps/v8/include/v8.h:5555:4: note:   candidate expects 2 arguments, 1 provided
../src/contextify.cc:80:24: error: base operand of '->' has non-pointer type 'v8::Persistent<v8::FunctionTemplate, v8::NonCopyablePersistentTraits<v8::FunctionTemplate> >'
         dataWrapperTmpl->InstanceTemplate()->SetInternalFieldCount(1);
                        ^
../src/contextify.cc:81:68: error: base operand of '->' has non-pointer type 'v8::Persistent<v8::FunctionTemplate, v8::NonCopyablePersistentTraits<v8::FunctionTemplate> >'
         dataWrapperCtor = Persistent<Function>::New(dataWrapperTmpl->GetFunction());
                                                                    ^
../src/contextify.cc:83:77: error: invalid conversion from 'v8::Handle<v8::Value> (*)(const int&)' to 'v8::FunctionCallback {aka void (*)(const v8::FunctionCallbackInfo<v8::Value>&)}' [-fpermissive]
         jsTmpl = Persistent<FunctionTemplate>::New(FunctionTemplate::New(New));
                                                                             ^
In file included from /Users/evandrix/.node-gyp/0.11.8/src/node.h:61:0,
                 from ../src/contextify.cc:1:
/Users/evandrix/.node-gyp/0.11.8/deps/v8/include/v8.h:3311:34: note: initializing argument 1 of 'static v8::Local<v8::FunctionTemplate> v8::FunctionTemplate::New(v8::FunctionCallback, v8::Handle<v8::Value>, v8::Handle<v8::Signature>, int)'
   static Local<FunctionTemplate> New(
                                  ^
../src/contextify.cc:83:78: error: no matching function for call to 'v8::Persistent<v8::FunctionTemplate, v8::NonCopyablePersistentTraits<v8::FunctionTemplate> >::New(v8::Local<v8::FunctionTemplate>)'
         jsTmpl = Persistent<FunctionTemplate>::New(FunctionTemplate::New(New));
                                                                              ^
../src/contextify.cc:83:78: note: candidate is:
In file included from /Users/evandrix/.node-gyp/0.11.8/src/node.h:61:0,
                 from ../src/contextify.cc:1:
/Users/evandrix/.node-gyp/0.11.8/deps/v8/include/v8.h:5555:4: note: static T* v8::Persistent<T, M>::New(v8::Isolate*, T*) [with T = v8::FunctionTemplate; M = v8::NonCopyablePersistentTraits<v8::FunctionTemplate>]
 T* Persistent<T, M>::New(Isolate* isolate, T* that) {
    ^
/Users/evandrix/.node-gyp/0.11.8/deps/v8/include/v8.h:5555:4: note:   candidate expects 2 arguments, 1 provided
../src/contextify.cc:84:15: error: base operand of '->' has non-pointer type 'v8::Persistent<v8::FunctionTemplate, v8::NonCopyablePersistentTraits<v8::FunctionTemplate> >'
         jsTmpl->InstanceTemplate()->SetInternalFieldCount(1);
               ^
../src/contextify.cc:85:15: error: base operand of '->' has non-pointer type 'v8::Persistent<v8::FunctionTemplate, v8::NonCopyablePersistentTraits<v8::FunctionTemplate> >'
         jsTmpl->SetClassName(String::NewSymbol("ContextifyContext"));
               ^
../src/contextify.cc:87:78: error: could not convert 'ContextifyContext::jsTmpl' from 'v8::Persistent<v8::FunctionTemplate, v8::NonCopyablePersistentTraits<v8::FunctionTemplate> >' to 'v8::Handle<v8::FunctionTemplate>'
         NODE_SET_PROTOTYPE_METHOD(jsTmpl, "run",       ContextifyContext::Run);
                                                                              ^
../src/contextify.cc:88:84: error: could not convert 'ContextifyContext::jsTmpl' from 'v8::Persistent<v8::FunctionTemplate, v8::NonCopyablePersistentTraits<v8::FunctionTemplate> >' to 'v8::Handle<v8::FunctionTemplate>'
         NODE_SET_PROTOTYPE_METHOD(jsTmpl, "getGlobal", ContextifyContext::GetGlobal);
                                                                                    ^
../src/contextify.cc:90:67: error: base operand of '->' has non-pointer type 'v8::Persistent<v8::FunctionTemplate, v8::NonCopyablePersistentTraits<v8::FunctionTemplate> >'
         target->Set(String::NewSymbol("ContextifyContext"), jsTmpl->GetFunction());
                                                                   ^
../src/contextify.cc: In static member function 'static v8::Handle<v8::Value> ContextifyContext::New(const int&)':
../src/contextify.cc:95:21: error: no matching function for call to 'v8::HandleScope::HandleScope()'
         HandleScope scope;
                     ^
../src/contextify.cc:95:21: note: candidates are:
In file included from /Users/evandrix/.node-gyp/0.11.8/src/node.h:61:0,
                 from ../src/contextify.cc:1:
/Users/evandrix/.node-gyp/0.11.8/deps/v8/include/v8.h:783:3: note: v8::HandleScope::HandleScope(const v8::HandleScope&)
   HandleScope(const HandleScope&);
   ^
/Users/evandrix/.node-gyp/0.11.8/deps/v8/include/v8.h:783:3: note:   candidate expects 1 argument, 0 provided
/Users/evandrix/.node-gyp/0.11.8/deps/v8/include/v8.h:756:3: note: v8::HandleScope::HandleScope(v8::Isolate*)
   HandleScope(Isolate* isolate);
   ^
/Users/evandrix/.node-gyp/0.11.8/deps/v8/include/v8.h:756:3: note:   candidate expects 1 argument, 0 provided
../src/contextify.cc:96:18: error: request for member 'Length' in 'args', which is of non-class type 'const int'
         if (args.Length() < 1) {
                  ^
../src/contextify.cc:100:20: error: invalid types 'const int[int]' for array subscript
         if (!args[0]->IsObject()) {
                    ^
../src/contextify.cc:104:62: error: invalid types 'const int[int]' for array subscript
         ContextifyContext* ctx = new ContextifyContext(args[0]->ToObject());
                                                              ^
../src/contextify.cc:105:24: error: request for member 'This' in 'args', which is of non-class type 'const int'
         ctx->Wrap(args.This());
                        ^
../src/contextify.cc:106:21: error: request for member 'This' in 'args', which is of non-class type 'const int'
         return args.This();
                     ^
../src/contextify.cc: In static member function 'static v8::Handle<v8::Value> ContextifyContext::Run(const int&)':
../src/contextify.cc:110:21: error: no matching function for call to 'v8::HandleScope::HandleScope()'
         HandleScope scope;
                     ^
../src/contextify.cc:110:21: note: candidates are:
In file included from /Users/evandrix/.node-gyp/0.11.8/src/node.h:61:0,
                 from ../src/contextify.cc:1:
/Users/evandrix/.node-gyp/0.11.8/deps/v8/include/v8.h:783:3: note: v8::HandleScope::HandleScope(const v8::HandleScope&)
   HandleScope(const HandleScope&);
   ^
/Users/evandrix/.node-gyp/0.11.8/deps/v8/include/v8.h:783:3: note:   candidate expects 1 argument, 0 provided
/Users/evandrix/.node-gyp/0.11.8/deps/v8/include/v8.h:756:3: note: v8::HandleScope::HandleScope(v8::Isolate*)
   HandleScope(Isolate* isolate);
   ^
/Users/evandrix/.node-gyp/0.11.8/deps/v8/include/v8.h:756:3: note:   candidate expects 1 argument, 0 provided
../src/contextify.cc:111:18: error: request for member 'Length' in 'args', which is of non-class type 'const int'
         if (args.Length() == 0) {
                  ^
../src/contextify.cc:115:20: error: invalid types 'const int[int]' for array subscript
         if (!args[0]->IsString()) {
                    ^
../src/contextify.cc:119:34: error: 'ObjectWrap' has not been declared
         ContextifyContext* ctx = ObjectWrap::Unwrap<ContextifyContext>(args.This());
                                  ^
../src/contextify.cc:119:70: error: expected primary-expression before '>' token
         ContextifyContext* ctx = ObjectWrap::Unwrap<ContextifyContext>(args.This());
                                                                      ^
../src/contextify.cc:119:77: error: request for member 'This' in 'args', which is of non-class type 'const int'
         ContextifyContext* ctx = ObjectWrap::Unwrap<ContextifyContext>(args.This());
                                                                             ^
../src/contextify.cc:121:16: error: base operand of '->' has non-pointer type 'v8::Persistent<v8::Context>'
         context->Enter();
                ^
../src/contextify.cc:122:36: error: invalid types 'const int[int]' for array subscript
         Local<String> code = args[0]->ToString();
                                    ^
../src/contextify.cc:125:18: error: request for member 'Length' in 'args', which is of non-class type 'const int'
         if (args.Length() > 1 && args[1]->IsString()) {
                  ^
../src/contextify.cc:125:40: error: invalid types 'const int[int]' for array subscript
         if (args.Length() > 1 && args[1]->IsString()) {
                                        ^
../src/contextify.cc:126:50: error: invalid types 'const int[int]' for array subscript
             script = Script::Compile(code, args[1]->ToString());
                                                  ^
../src/contextify.cc:131:18: error: base operand of '->' has non-pointer type 'v8::Persistent<v8::Context>'
           context->Exit();
                  ^
../src/contextify.cc:135:16: error: base operand of '->' has non-pointer type 'v8::Persistent<v8::Context>'
         context->Exit();
                ^
../src/contextify.cc: In static member function 'static bool ContextifyContext::InstanceOf(v8::Handle<v8::Value>)':
../src/contextify.cc:143:40: error: base operand of '->' has non-pointer type 'v8::Persistent<v8::FunctionTemplate, v8::NonCopyablePersistentTraits<v8::FunctionTemplate> >'
       return !value.IsEmpty() && jsTmpl->HasInstance(value);
                                        ^
../src/contextify.cc: In static member function 'static v8::Handle<v8::Value> ContextifyContext::GetGlobal(const int&)':
../src/contextify.cc:147:21: error: no matching function for call to 'v8::HandleScope::HandleScope()'
         HandleScope scope;
                     ^
../src/contextify.cc:147:21: note: candidates are:
In file included from /Users/evandrix/.node-gyp/0.11.8/src/node.h:61:0,
                 from ../src/contextify.cc:1:
/Users/evandrix/.node-gyp/0.11.8/deps/v8/include/v8.h:783:3: note: v8::HandleScope::HandleScope(const v8::HandleScope&)
   HandleScope(const HandleScope&);
   ^
/Users/evandrix/.node-gyp/0.11.8/deps/v8/include/v8.h:783:3: note:   candidate expects 1 argument, 0 provided
/Users/evandrix/.node-gyp/0.11.8/deps/v8/include/v8.h:756:3: note: v8::HandleScope::HandleScope(v8::Isolate*)
   HandleScope(Isolate* isolate);
   ^
/Users/evandrix/.node-gyp/0.11.8/deps/v8/include/v8.h:756:3: note:   candidate expects 1 argument, 0 provided
../src/contextify.cc:148:34: error: 'ObjectWrap' has not been declared
         ContextifyContext* ctx = ObjectWrap::Unwrap<ContextifyContext>(args.This());
                                  ^
../src/contextify.cc:148:70: error: expected primary-expression before '>' token
         ContextifyContext* ctx = ObjectWrap::Unwrap<ContextifyContext>(args.This());
                                                                      ^
../src/contextify.cc:148:77: error: request for member 'This' in 'args', which is of non-class type 'const int'
         ContextifyContext* ctx = ObjectWrap::Unwrap<ContextifyContext>(args.This());
                                                                             ^
../src/contextify.cc:149:21: error: could not convert 'ctx->ContextifyContext::proxyGlobal' from 'v8::Persistent<v8::Object>' to 'v8::Handle<v8::Value>'
         return ctx->proxyGlobal;
                     ^
../src/contextify.cc: In static member function 'static v8::Handle<v8::Value> ContextifyContext::GlobalPropertyGetter(v8::Local<v8::String>, const int&)':
../src/contextify.cc:168:21: error: no matching function for call to 'v8::HandleScope::HandleScope()'
         HandleScope scope;
                     ^
../src/contextify.cc:168:21: note: candidates are:
In file included from /Users/evandrix/.node-gyp/0.11.8/src/node.h:61:0,
                 from ../src/contextify.cc:1:
/Users/evandrix/.node-gyp/0.11.8/deps/v8/include/v8.h:783:3: note: v8::HandleScope::HandleScope(const v8::HandleScope&)
   HandleScope(const HandleScope&);
   ^
/Users/evandrix/.node-gyp/0.11.8/deps/v8/include/v8.h:783:3: note:   candidate expects 1 argument, 0 provided
/Users/evandrix/.node-gyp/0.11.8/deps/v8/include/v8.h:756:3: note: v8::HandleScope::HandleScope(v8::Isolate*)
   HandleScope(Isolate* isolate);
   ^
/Users/evandrix/.node-gyp/0.11.8/deps/v8/include/v8.h:756:3: note:   candidate expects 1 argument, 0 provided
../src/contextify.cc:169:41: error: request for member 'Data' in 'accessInfo', which is of non-class type 'const int'
         Local<Object> data = accessInfo.Data()->ToObject();
                                         ^
../src/contextify.cc:170:34: error: 'ObjectWrap' has not been declared
         ContextifyContext* ctx = ObjectWrap::Unwrap<ContextifyContext>(data);
                                  ^
../src/contextify.cc:170:70: error: expected primary-expression before '>' token
         ContextifyContext* ctx = ObjectWrap::Unwrap<ContextifyContext>(data);
                                                                      ^
../src/contextify.cc:171:39: error: base operand of '->' has non-pointer type 'v8::Persistent<v8::Object>'
         Local<Value> rv = ctx->sandbox->GetRealNamedProperty(property);
                                       ^
../src/contextify.cc:173:34: error: base operand of '->' has non-pointer type 'v8::Persistent<v8::Object>'
             rv = ctx->proxyGlobal->GetRealNamedProperty(property);
                                  ^
../src/contextify.cc: In static member function 'static v8::Handle<v8::Value> ContextifyContext::GlobalPropertySetter(v8::Local<v8::String>, v8::Local<v8::Value>, const int&)':
../src/contextify.cc:181:21: error: no matching function for call to 'v8::HandleScope::HandleScope()'
         HandleScope scope;
                     ^
../src/contextify.cc:181:21: note: candidates are:
In file included from /Users/evandrix/.node-gyp/0.11.8/src/node.h:61:0,
                 from ../src/contextify.cc:1:
/Users/evandrix/.node-gyp/0.11.8/deps/v8/include/v8.h:783:3: note: v8::HandleScope::HandleScope(const v8::HandleScope&)
   HandleScope(const HandleScope&);
   ^
/Users/evandrix/.node-gyp/0.11.8/deps/v8/include/v8.h:783:3: note:   candidate expects 1 argument, 0 provided
/Users/evandrix/.node-gyp/0.11.8/deps/v8/include/v8.h:756:3: note: v8::HandleScope::HandleScope(v8::Isolate*)
   HandleScope(Isolate* isolate);
   ^
/Users/evandrix/.node-gyp/0.11.8/deps/v8/include/v8.h:756:3: note:   candidate expects 1 argument, 0 provided
../src/contextify.cc:182:41: error: request for member 'Data' in 'accessInfo', which is of non-class type 'const int'
         Local<Object> data = accessInfo.Data()->ToObject();
                                         ^
../src/contextify.cc:183:34: error: 'ObjectWrap' has not been declared
         ContextifyContext* ctx = ObjectWrap::Unwrap<ContextifyContext>(data);
                                  ^
../src/contextify.cc:183:70: error: expected primary-expression before '>' token
         ContextifyContext* ctx = ObjectWrap::Unwrap<ContextifyContext>(data);
                                                                      ^
../src/contextify.cc:184:21: error: base operand of '->' has non-pointer type 'v8::Persistent<v8::Object>'
         ctx->sandbox->Set(property, value);
                     ^
../src/contextify.cc: In static member function 'static v8::Handle<v8::Integer> ContextifyContext::GlobalPropertyQuery(v8::Local<v8::String>, const int&)':
../src/contextify.cc:190:21: error: no matching function for call to 'v8::HandleScope::HandleScope()'
         HandleScope scope;
                     ^
../src/contextify.cc:190:21: note: candidates are:
In file included from /Users/evandrix/.node-gyp/0.11.8/src/node.h:61:0,
                 from ../src/contextify.cc:1:
/Users/evandrix/.node-gyp/0.11.8/deps/v8/include/v8.h:783:3: note: v8::HandleScope::HandleScope(const v8::HandleScope&)
   HandleScope(const HandleScope&);
   ^
/Users/evandrix/.node-gyp/0.11.8/deps/v8/include/v8.h:783:3: note:   candidate expects 1 argument, 0 provided
/Users/evandrix/.node-gyp/0.11.8/deps/v8/include/v8.h:756:3: note: v8::HandleScope::HandleScope(v8::Isolate*)
   HandleScope(Isolate* isolate);
   ^
/Users/evandrix/.node-gyp/0.11.8/deps/v8/include/v8.h:756:3: note:   candidate expects 1 argument, 0 provided
../src/contextify.cc:191:41: error: request for member 'Data' in 'accessInfo', which is of non-class type 'const int'
         Local<Object> data = accessInfo.Data()->ToObject();
                                         ^
../src/contextify.cc:192:34: error: 'ObjectWrap' has not been declared
         ContextifyContext* ctx = ObjectWrap::Unwrap<ContextifyContext>(data);
                                  ^
../src/contextify.cc:192:70: error: expected primary-expression before '>' token
         ContextifyContext* ctx = ObjectWrap::Unwrap<ContextifyContext>(data);
                                                                      ^
../src/contextify.cc:193:26: error: base operand of '->' has non-pointer type 'v8::Persistent<v8::Object>'
         if (!ctx->sandbox->GetRealNamedProperty(property).IsEmpty() ||
                          ^
../src/contextify.cc:194:30: error: base operand of '->' has non-pointer type 'v8::Persistent<v8::Object>'
             !ctx->proxyGlobal->GetRealNamedProperty(property).IsEmpty()) {
                              ^
../src/contextify.cc: In static member function 'static v8::Handle<v8::Boolean> ContextifyContext::GlobalPropertyDeleter(v8::Local<v8::String>, const int&)':
../src/contextify.cc:202:21: error: no matching function for call to 'v8::HandleScope::HandleScope()'
         HandleScope scope;
                     ^
../src/contextify.cc:202:21: note: candidates are:
In file included from /Users/evandrix/.node-gyp/0.11.8/src/node.h:61:0,
                 from ../src/contextify.cc:1:
/Users/evandrix/.node-gyp/0.11.8/deps/v8/include/v8.h:783:3: note: v8::HandleScope::HandleScope(const v8::HandleScope&)
   HandleScope(const HandleScope&);
   ^
/Users/evandrix/.node-gyp/0.11.8/deps/v8/include/v8.h:783:3: note:   candidate expects 1 argument, 0 provided
/Users/evandrix/.node-gyp/0.11.8/deps/v8/include/v8.h:756:3: note: v8::HandleScope::HandleScope(v8::Isolate*)
   HandleScope(Isolate* isolate);
   ^
/Users/evandrix/.node-gyp/0.11.8/deps/v8/include/v8.h:756:3: note:   candidate expects 1 argument, 0 provided
../src/contextify.cc:203:41: error: request for member 'Data' in 'accessInfo', which is of non-class type 'const int'
         Local<Object> data = accessInfo.Data()->ToObject();
                                         ^
../src/contextify.cc:204:34: error: 'ObjectWrap' has not been declared
         ContextifyContext* ctx = ObjectWrap::Unwrap<ContextifyContext>(data);
                                  ^
../src/contextify.cc:204:70: error: expected primary-expression before '>' token
         ContextifyContext* ctx = ObjectWrap::Unwrap<ContextifyContext>(data);
                                                                      ^
../src/contextify.cc:205:36: error: base operand of '->' has non-pointer type 'v8::Persistent<v8::Object>'
         bool success = ctx->sandbox->Delete(property);
                                    ^
../src/contextify.cc:207:39: error: base operand of '->' has non-pointer type 'v8::Persistent<v8::Object>'
             success = ctx->proxyGlobal->Delete(property);
                                       ^
../src/contextify.cc: In static member function 'static v8::Handle<v8::Array> ContextifyContext::GlobalPropertyEnumerator(const int&)':
../src/contextify.cc:213:21: error: no matching function for call to 'v8::HandleScope::HandleScope()'
         HandleScope scope;
                     ^
../src/contextify.cc:213:21: note: candidates are:
In file included from /Users/evandrix/.node-gyp/0.11.8/src/node.h:61:0,
                 from ../src/contextify.cc:1:
/Users/evandrix/.node-gyp/0.11.8/deps/v8/include/v8.h:783:3: note: v8::HandleScope::HandleScope(const v8::HandleScope&)
   HandleScope(const HandleScope&);
   ^
/Users/evandrix/.node-gyp/0.11.8/deps/v8/include/v8.h:783:3: note:   candidate expects 1 argument, 0 provided
/Users/evandrix/.node-gyp/0.11.8/deps/v8/include/v8.h:756:3: note: v8::HandleScope::HandleScope(v8::Isolate*)
   HandleScope(Isolate* isolate);
   ^
/Users/evandrix/.node-gyp/0.11.8/deps/v8/include/v8.h:756:3: note:   candidate expects 1 argument, 0 provided
../src/contextify.cc:214:41: error: request for member 'Data' in 'accessInfo', which is of non-class type 'const int'
         Local<Object> data = accessInfo.Data()->ToObject();
                                         ^
../src/contextify.cc:215:34: error: 'ObjectWrap' has not been declared
         ContextifyContext* ctx = ObjectWrap::Unwrap<ContextifyContext>(data);
                                  ^
../src/contextify.cc:215:70: error: expected primary-expression before '>' token
         ContextifyContext* ctx = ObjectWrap::Unwrap<ContextifyContext>(data);
                                                                      ^
../src/contextify.cc:216:40: error: base operand of '->' has non-pointer type 'v8::Persistent<v8::Object>'
         return scope.Close(ctx->sandbox->GetPropertyNames());
                                        ^
../src/contextify.cc: At global scope:
../src/contextify.cc:220:37: error: expected class-name before '{' token
 class ContextifyScript : ObjectWrap {
                                     ^
../src/contextify.cc:237:36: error: 'Arguments' does not name a type
     static Handle<Value> New(const Arguments& args) {
                                    ^
../src/contextify.cc:270:45: error: 'Arguments' does not name a type
     static Handle<Value> RunInContext(const Arguments& args) {
                                             ^
../src/contextify.cc: In static member function 'static void ContextifyScript::Init(v8::Handle<v8::Object>)':
../src/contextify.cc:226:21: error: no matching function for call to 'v8::HandleScope::HandleScope()'
         HandleScope scope;
                     ^
../src/contextify.cc:226:21: note: candidates are:
In file included from /Users/evandrix/.node-gyp/0.11.8/src/node.h:61:0,
                 from ../src/contextify.cc:1:
/Users/evandrix/.node-gyp/0.11.8/deps/v8/include/v8.h:783:3: note: v8::HandleScope::HandleScope(const v8::HandleScope&)
   HandleScope(const HandleScope&);
   ^
/Users/evandrix/.node-gyp/0.11.8/deps/v8/include/v8.h:783:3: note:   candidate expects 1 argument, 0 provided
/Users/evandrix/.node-gyp/0.11.8/deps/v8/include/v8.h:756:3: note: v8::HandleScope::HandleScope(v8::Isolate*)
   HandleScope(Isolate* isolate);
   ^
/Users/evandrix/.node-gyp/0.11.8/deps/v8/include/v8.h:756:3: note:   candidate expects 1 argument, 0 provided
../src/contextify.cc:227:81: error: invalid conversion from 'v8::Handle<v8::Value> (*)(const int&)' to 'v8::FunctionCallback {aka void (*)(const v8::FunctionCallbackInfo<v8::Value>&)}' [-fpermissive]
         scriptTmpl = Persistent<FunctionTemplate>::New(FunctionTemplate::New(New));
                                                                                 ^
In file included from /Users/evandrix/.node-gyp/0.11.8/src/node.h:61:0,
                 from ../src/contextify.cc:1:
/Users/evandrix/.node-gyp/0.11.8/deps/v8/include/v8.h:3311:34: note: initializing argument 1 of 'static v8::Local<v8::FunctionTemplate> v8::FunctionTemplate::New(v8::FunctionCallback, v8::Handle<v8::Value>, v8::Handle<v8::Signature>, int)'
   static Local<FunctionTemplate> New(
                                  ^
../src/contextify.cc:227:82: error: no matching function for call to 'v8::Persistent<v8::FunctionTemplate, v8::NonCopyablePersistentTraits<v8::FunctionTemplate> >::New(v8::Local<v8::FunctionTemplate>)'
         scriptTmpl = Persistent<FunctionTemplate>::New(FunctionTemplate::New(New));
                                                                                  ^
../src/contextify.cc:227:82: note: candidate is:
In file included from /Users/evandrix/.node-gyp/0.11.8/src/node.h:61:0,
                 from ../src/contextify.cc:1:
/Users/evandrix/.node-gyp/0.11.8/deps/v8/include/v8.h:5555:4: note: static T* v8::Persistent<T, M>::New(v8::Isolate*, T*) [with T = v8::FunctionTemplate; M = v8::NonCopyablePersistentTraits<v8::FunctionTemplate>]
 T* Persistent<T, M>::New(Isolate* isolate, T* that) {
    ^
/Users/evandrix/.node-gyp/0.11.8/deps/v8/include/v8.h:5555:4: note:   candidate expects 2 arguments, 1 provided
../src/contextify.cc:228:19: error: base operand of '->' has non-pointer type 'v8::Persistent<v8::FunctionTemplate, v8::NonCopyablePersistentTraits<v8::FunctionTemplate> >'
         scriptTmpl->InstanceTemplate()->SetInternalFieldCount(1);
                   ^
../src/contextify.cc:229:19: error: base operand of '->' has non-pointer type 'v8::Persistent<v8::FunctionTemplate, v8::NonCopyablePersistentTraits<v8::FunctionTemplate> >'
         scriptTmpl->SetClassName(String::NewSymbol("ContextifyScript"));
                   ^
../src/contextify.cc:231:75: error: could not convert 'ContextifyScript::scriptTmpl' from 'v8::Persistent<v8::FunctionTemplate, v8::NonCopyablePersistentTraits<v8::FunctionTemplate> >' to 'v8::Handle<v8::FunctionTemplate>'
         NODE_SET_PROTOTYPE_METHOD(scriptTmpl, "runInContext", RunInContext);
                                                                           ^
../src/contextify.cc:234:31: error: base operand of '->' has non-pointer type 'v8::Persistent<v8::FunctionTemplate, v8::NonCopyablePersistentTraits<v8::FunctionTemplate> >'
                     scriptTmpl->GetFunction());
                               ^
../src/contextify.cc: In static member function 'static v8::Handle<v8::Value> ContextifyScript::New(const int&)':
../src/contextify.cc:238:19: error: no matching function for call to 'v8::HandleScope::HandleScope()'
       HandleScope scope;
                   ^
../src/contextify.cc:238:19: note: candidates are:
In file included from /Users/evandrix/.node-gyp/0.11.8/src/node.h:61:0,
                 from ../src/contextify.cc:1:
/Users/evandrix/.node-gyp/0.11.8/deps/v8/include/v8.h:783:3: note: v8::HandleScope::HandleScope(const v8::HandleScope&)
   HandleScope(const HandleScope&);
   ^
/Users/evandrix/.node-gyp/0.11.8/deps/v8/include/v8.h:783:3: note:   candidate expects 1 argument, 0 provided
/Users/evandrix/.node-gyp/0.11.8/deps/v8/include/v8.h:756:3: note: v8::HandleScope::HandleScope(v8::Isolate*)
   HandleScope(Isolate* isolate);
   ^
/Users/evandrix/.node-gyp/0.11.8/deps/v8/include/v8.h:756:3: note:   candidate expects 1 argument, 0 provided
../src/contextify.cc:241:26: error: 'class ContextifyScript' has no member named 'Wrap'
       contextify_script->Wrap(args.Holder());
                          ^
../src/contextify.cc:241:36: error: request for member 'Holder' in 'args', which is of non-class type 'const int'
       contextify_script->Wrap(args.Holder());
                                    ^
../src/contextify.cc:243:16: error: request for member 'Length' in 'args', which is of non-class type 'const int'
       if (args.Length() < 1) {
                ^
../src/contextify.cc:248:34: error: invalid types 'const int[int]' for array subscript
       Local<String> code = args[0]->ToString();
                                  ^
../src/contextify.cc:249:37: error: request for member 'Length' in 'args', which is of non-class type 'const int'
       Local<String> filename = args.Length() > 1
                                     ^
../src/contextify.cc:250:40: error: invalid types 'const int[int]' for array subscript
                                ? args[1]->ToString()
                                        ^
../src/contextify.cc:265:68: error: no matching function for call to 'v8::Persistent<v8::Script, v8::NonCopyablePersistentTraits<v8::Script> >::New(v8::Handle<v8::Script>&)'
       contextify_script->script = Persistent<Script>::New(v8_script);
                                                                    ^
../src/contextify.cc:265:68: note: candidate is:
In file included from /Users/evandrix/.node-gyp/0.11.8/src/node.h:61:0,
                 from ../src/contextify.cc:1:
/Users/evandrix/.node-gyp/0.11.8/deps/v8/include/v8.h:5555:4: note: static T* v8::Persistent<T, M>::New(v8::Isolate*, T*) [with T = v8::Script; M = v8::NonCopyablePersistentTraits<v8::Script>]
 T* Persistent<T, M>::New(Isolate* isolate, T* that) {
    ^
/Users/evandrix/.node-gyp/0.11.8/deps/v8/include/v8.h:5555:4: note:   candidate expects 2 arguments, 1 provided
../src/contextify.cc:267:19: error: request for member 'This' in 'args', which is of non-class type 'const int'
       return args.This();
                   ^
../src/contextify.cc: In static member function 'static v8::Handle<v8::Value> ContextifyScript::RunInContext(const int&)':
../src/contextify.cc:271:21: error: no matching function for call to 'v8::HandleScope::HandleScope()'
         HandleScope scope;
                     ^
../src/contextify.cc:271:21: note: candidates are:
In file included from /Users/evandrix/.node-gyp/0.11.8/src/node.h:61:0,
                 from ../src/contextify.cc:1:
/Users/evandrix/.node-gyp/0.11.8/deps/v8/include/v8.h:783:3: note: v8::HandleScope::HandleScope(const v8::HandleScope&)
   HandleScope(const HandleScope&);
   ^
/Users/evandrix/.node-gyp/0.11.8/deps/v8/include/v8.h:783:3: note:   candidate expects 1 argument, 0 provided
/Users/evandrix/.node-gyp/0.11.8/deps/v8/include/v8.h:756:3: note: v8::HandleScope::HandleScope(v8::Isolate*)
   HandleScope(Isolate* isolate);
   ^
/Users/evandrix/.node-gyp/0.11.8/deps/v8/include/v8.h:756:3: note:   candidate expects 1 argument, 0 provided
../src/contextify.cc:272:18: error: request for member 'Length' in 'args', which is of non-class type 'const int'
         if (args.Length() == 0) {
                  ^
../src/contextify.cc:276:50: error: invalid types 'const int[int]' for array subscript
         if (!ContextifyContext::InstanceOf(args[0]->ToObject())) {
                                                  ^
../src/contextify.cc:280:34: error: 'ObjectWrap' has not been declared
         ContextifyContext* ctx = ObjectWrap::Unwrap<ContextifyContext>(args[0]->ToObject());
                                  ^
../src/contextify.cc:280:70: error: expected primary-expression before '>' token
         ContextifyContext* ctx = ObjectWrap::Unwrap<ContextifyContext>(args[0]->ToObject());
                                                                      ^
../src/contextify.cc:280:78: error: invalid types 'const int[int]' for array subscript
         ContextifyContext* ctx = ObjectWrap::Unwrap<ContextifyContext>(args[0]->ToObject());
                                                                              ^
../src/contextify.cc:282:16: error: base operand of '->' has non-pointer type 'v8::Persistent<v8::Context>'
         context->Enter();
                ^
../src/contextify.cc:283:44: error: 'ObjectWrap' has not been declared
         ContextifyScript* wrapped_script = ObjectWrap::Unwrap<ContextifyScript>(args.This());
                                            ^
../src/contextify.cc:283:79: error: expected primary-expression before '>' token
         ContextifyScript* wrapped_script = ObjectWrap::Unwrap<ContextifyScript>(args.This());
                                                                               ^
../src/contextify.cc:283:86: error: request for member 'This' in 'args', which is of non-class type 'const int'
         ContextifyScript* wrapped_script = ObjectWrap::Unwrap<ContextifyScript>(args.This());
                                                                                      ^
../src/contextify.cc:284:49: error: conversion from 'v8::Persistent<v8::Script, v8::NonCopyablePersistentTraits<v8::Script> >' to non-scalar type 'v8::Handle<v8::Script>' requested
         Handle<Script> script = wrapped_script->script;
                                                 ^
../src/contextify.cc:287:18: error: base operand of '->' has non-pointer type 'v8::Persistent<v8::Context>'
           context->Exit();
                  ^
../src/contextify.cc:291:16: error: base operand of '->' has non-pointer type 'v8::Persistent<v8::Context>'
         context->Exit();
                ^
In file included from /Users/evandrix/.node-gyp/0.11.8/src/node.h:61:0,
                 from ../src/contextify.cc:1:
/Users/evandrix/.node-gyp/0.11.8/deps/v8/include/v8.h: In instantiation of 'static void v8::NonCopyablePersistentTraits<T>::Uncompilable() [with O = v8::Object; T = v8::Context]':
/Users/evandrix/.node-gyp/0.11.8/deps/v8/include/v8.h:473:17:   required from 'static void v8::NonCopyablePersistentTraits<T>::Copy(const v8::Persistent<S, M>&, v8::NonCopyablePersistentTraits<T>::NonCopyablePersistent*) [with S = v8::Context; M = v8::NonCopyablePersistentTraits<v8::Context>; T = v8::Context; v8::NonCopyablePersistentTraits<T>::NonCopyablePersistent = v8::Persistent<v8::Context>]'
/Users/evandrix/.node-gyp/0.11.8/deps/v8/include/v8.h:5572:21:   required from 'void v8::Persistent<T, M>::Copy(const v8::Persistent<S, M>&) [with S = v8::Context; M2 = v8::NonCopyablePersistentTraits<v8::Context>; T = v8::Context; M = v8::NonCopyablePersistentTraits<v8::Context>]'
/Users/evandrix/.node-gyp/0.11.8/deps/v8/include/v8.h:536:14:   required from 'v8::Persistent<T, M>& v8::Persistent<T, M>::operator=(const v8::Persistent<T, M>&) [with T = v8::Context; M = v8::NonCopyablePersistentTraits<v8::Context>]'
../src/contextify.cc:40:21:   required from here
/Users/evandrix/.node-gyp/0.11.8/deps/v8/include/v8.h:180:37: error: cannot convert 'v8::Primitive*' to 'v8::Object* volatile' in assignment
     *(static_cast<T* volatile*>(0)) = static_cast<S*>(0);      \
                                     ^
/Users/evandrix/.node-gyp/0.11.8/deps/v8/include/v8.h:477:5: note: in expansion of macro 'TYPE_CHECK'
     TYPE_CHECK(O, Primitive);
     ^
make: *** [Release/obj.target/contextify/src/contextify.o] Error 1
gyp ERR! build error 
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack     at ChildProcess.onExit (/opt/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:267:23)
gyp ERR! stack     at ChildProcess.EventEmitter.emit (events.js:106:17)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (child_process.js:827:12)
gyp ERR! System Darwin 13.0.0
gyp ERR! command "node" "/opt/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /opt/local/lib/node_modules/contextify
gyp ERR! node -v v0.11.8
gyp ERR! node-gyp -v v0.11.0
gyp ERR! not ok 
npm ERR! contextify@0.1.6 install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the contextify@0.1.6 install script.
npm ERR! This is most likely a problem with the contextify package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node-gyp rebuild
npm ERR! You can get their info via:
npm ERR!     npm owner ls contextify
npm ERR! There is likely additional logging output above.

npm ERR! System Darwin 13.0.0
npm ERR! command "/opt/local/bin/node" "/opt/local/bin/npm" "install" "-g" "contextify"
npm ERR! cwd /Users/evandrix/Downloads
npm ERR! node -v v0.11.8
npm ERR! npm -v 1.3.13
npm ERR! code ELIFECYCLE
npm ERR! 
npm ERR! Additional logging details can be found in:
npm ERR!     /Users/evandrix/Downloads/npm-debug.log
npm ERR! not ok code 0
''''
@kmentch
Copy link

kmentch commented Nov 5, 2013

+1 , same issue here.

@boccob
Copy link

boccob commented Nov 5, 2013

+1, also have this issue (on ubuntu)
but works well with stable version of node

@JohnMcLear
Copy link

+1

@brianmcd
Copy link
Owner

brianmcd commented Nov 8, 2013

As of node 0.11.7, Contextify has basically been merged into node itself. Can you use the built-in vm module instead? If not, does applying this patch fix the issue? I've held off merging that because it introduced so much new code, and Contextify is going to be obsolete in the next stable node. It didn't seem worth changing the codebase so much to support a few minor versions of an unstable version of node.

@JohnMcLear
Copy link

We have to support 0.6+ though so not really an option

Brian McDaniel notifications@github.com wrote:

@adam-s
Copy link

adam-s commented Jan 4, 2014

I'm not too sure what is meant by Contextify being merged into node. However, I get the same exact errors as listed above. I'm using D3 which has a dependency jsdom which has a dependency on Contextify. I found a solution in the node-gyp issue queue -- nodejs/node-gyp#363 (comment). Contextify can be used if python2.6 is used instead of python2.7.

EDIT: No I don't have the same errors as listed above. Not sure where this comment belongs.

@briatte
Copy link

briatte commented Jan 19, 2014

Same type of error, here's the log.

@bcherny
Copy link

bcherny commented Jan 21, 2014

+1

@adam-s I'm attempting to install d3 on OSX, and downgrading to 2.6.9 doesn't work for me.

npm install d3
...
npm ERR! contextify@0.1.6 install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the contextify@0.1.6 install script.
npm ERR! This is most likely a problem with the contextify package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node-gyp rebuild
npm ERR! You can get their info via:
npm ERR!     npm owner ls contextify
npm ERR! There is likely additional logging output above.

npm ERR! System Darwin 13.0.0
npm ERR! command "/Users/boris/.nvm/v0.11.10/bin/node" "/Users/boris/.nvm/v0.11.10/bin/npm" "install" "--save" "git://github.com/mbostock/d3.git"
npm ERR! cwd /Users/boris/Sites/perfci
npm ERR! node -v v0.11.10
npm ERR! npm -v 1.3.22
npm ERR! code ELIFECYCLE
npm ERR! 
npm ERR! Additional logging details can be found in:
npm ERR!     /Users/boris/Sites/perfci/npm-debug.log
npm ERR! not ok code 0

@JeffML
Copy link

JeffML commented Jan 21, 2014

+1

@svalaskevicius
Copy link

+1

npm ERR! node -v v0.11.9
npm ERR! npm -v 1.3.15

@svalaskevicius
Copy link

as for the PR #81 - yes:

npm install kkoopa/contextify
npm install d3

is working as a workaround :)

@brianmcd
Copy link
Owner

brianmcd commented Mar 6, 2014

merged @kkoopa's PR and pushed 0.1.7 which should work with node 0.11.

@brianmcd brianmcd closed this as completed Mar 6, 2014
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

10 participants