Support 0.11.5 #18

Closed
Raynos opened this Issue Aug 15, 2013 · 3 comments

Comments

Projects
None yet
3 participants

Raynos commented Aug 15, 2013

When trying to compile my application that uses weak (through dnode) I get the following error

make: Entering directory `/home/raynos/Documents/event-log-server/node_modules/fleet/node_modules/propagit/node_modules/upnode/node_modules/dnode/node_modules/weak/build'
  CXX(target) Release/obj.target/weakref/src/weakref.o
../src/weakref.cc: In function ‘v8::Handle<v8::Object> {anonymous}::Unwrap(v8::Handle<v8::Object>)’:
../src/weakref.cc:58:16: error: could not convert ‘cont->{anonymous}::proxy_container::target’ from ‘v8::Persistent<v8::Object>’ to ‘v8::Handle<v8::Object>’
../src/weakref.cc: In function ‘v8::Handle<v8::Array> {anonymous}::GetCallbacks(v8::Handle<v8::Object>)’:
../src/weakref.cc:69:16: error: could not convert ‘cont->{anonymous}::proxy_container::callbacks’ from ‘v8::Persistent<v8::Array>’ to ‘v8::Handle<v8::Array>’
In file included from ../src/weakref.cc:18:0:
/home/raynos/.node-gyp/0.11.5/deps/v8/include/v8.h: In function ‘void {anonymous}::TargetCallback(v8::Persistent<v8::Value>, void*)’:
/home/raynos/.node-gyp/0.11.5/deps/v8/include/v8.h:771:3: error: ‘T* v8::Persistent<T>::operator->() const [with T = v8::Array]’ is private
../src/weakref.cc:158:33: error: within this context
../src/weakref.cc:160:13: error: no match for ‘operator=’ in ‘argv[0] = target’
../src/weakref.cc:160:13: note: candidate is:
In file included from ../src/weakref.cc:18:0:
/home/raynos/.node-gyp/0.11.5/deps/v8/include/v8.h:249:26: note: v8::Handle<v8::Value>& v8::Handle<v8::Value>::operator=(const v8::Handle<v8::Value>&)
/home/raynos/.node-gyp/0.11.5/deps/v8/include/v8.h:249:26: note:   no known conversion for argument 1 from ‘v8::Persistent<v8::Value>’ to ‘const v8::Handle<v8::Value>&’
/home/raynos/.node-gyp/0.11.5/deps/v8/include/v8.h:771:3: error: ‘T* v8::Persistent<T>::operator->() const [with T = v8::Array]’ is private
../src/weakref.cc:164:24: error: within this context
In file included from ../src/weakref.cc:18:0:
/home/raynos/.node-gyp/0.11.5/deps/v8/include/v8.h:771:3: error: ‘T* v8::Persistent<T>::operator->() const [with T = v8::Value]’ is private
../src/weakref.cc:168:20: error: within this context
In file included from ../src/weakref.cc:18:0:
/home/raynos/.node-gyp/0.11.5/deps/v8/include/v8.h:771:3: error: ‘T* v8::Persistent<T>::operator->() const [with T = v8::Object]’ is private
../src/weakref.cc:176:14: error: within this context
../src/weakref.cc: In function ‘v8::Handle<v8::Value> {anonymous}::Create(const v8::Arguments&)’:
../src/weakref.cc:201:61: error: no matching function for call to ‘v8::Persistent<v8::Object>::New(v8::Local<v8::Object>)’
../src/weakref.cc:201:61: note: candidate is:
In file included from ../src/weakref.cc:18:0:
/home/raynos/.node-gyp/0.11.5/deps/v8/include/v8.h:5621:4: note: static T* v8::Persistent<T>::New(v8::Isolate*, T*) [with T = v8::Object]
/home/raynos/.node-gyp/0.11.5/deps/v8/include/v8.h:5621:4: note:   candidate expects 2 arguments, 1 provided
../src/weakref.cc:202:56: error: no matching function for call to ‘v8::Persistent<v8::Array>::New(v8::Local<v8::Array>)’
../src/weakref.cc:202:56: note: candidate is:
In file included from ../src/weakref.cc:18:0:
/home/raynos/.node-gyp/0.11.5/deps/v8/include/v8.h:5621:4: note: static T* v8::Persistent<T>::New(v8::Isolate*, T*) [with T = v8::Array]
/home/raynos/.node-gyp/0.11.5/deps/v8/include/v8.h:5621:4: note:   candidate expects 2 arguments, 1 provided
/home/raynos/.node-gyp/0.11.5/deps/v8/include/v8.h:771:3: error: ‘T* v8::Persistent<T>::operator->() const [with T = v8::ObjectTemplate]’ is private
../src/weakref.cc:204:51: error: within this context
../src/weakref.cc:204:66: error: no matching function for call to ‘v8::Persistent<v8::Object>::New(v8::Local<v8::Object>)’
../src/weakref.cc:204:66: note: candidate is:
In file included from ../src/weakref.cc:18:0:
/home/raynos/.node-gyp/0.11.5/deps/v8/include/v8.h:5621:4: note: static T* v8::Persistent<T>::New(v8::Isolate*, T*) [with T = v8::Object]
/home/raynos/.node-gyp/0.11.5/deps/v8/include/v8.h:5621:4: note:   candidate expects 2 arguments, 1 provided
/home/raynos/.node-gyp/0.11.5/deps/v8/include/v8.h:771:3: error: ‘T* v8::Persistent<T>::operator->() const [with T = v8::Object]’ is private
../src/weakref.cc:206:14: error: within this context
../src/weakref.cc:211:45: error: invalid conversion from ‘void (*)(v8::Persistent<v8::Value>, void*)’ to ‘v8::WeakReferenceCallbacks<v8::Object, {anonymous}::proxy_container>::Revivable {aka void (*)(v8::Isolate*, v8::Persistent<v8::Object>*, {anonymous}::proxy_container*)}’ [-fpermissive]
In file included from ../src/weakref.cc:18:0:
/home/raynos/.node-gyp/0.11.5/deps/v8/include/v8.h:5682:6: error:   initializing argument 2 of ‘void v8::Persistent<T>::MakeWeak(P*, typename v8::WeakReferenceCallbacks<T, P>::Revivable) [with P = {anonymous}::proxy_container; T = v8::Object; typename v8::WeakReferenceCallbacks<T, P>::Revivable = void (*)(v8::Isolate*, v8::Persistent<v8::Object>*, {anonymous}::proxy_container*)]’ [-fpermissive]
../src/weakref.cc:214:61: error: could not convert ‘cont->{anonymous}::proxy_container::proxy’ from ‘v8::Persistent<v8::Object>’ to ‘v8::Handle<v8::Object>’
../src/weakref.cc:217:16: error: could not convert ‘cont->{anonymous}::proxy_container::proxy’ from ‘v8::Persistent<v8::Object>’ to ‘v8::Handle<v8::Value>’
../src/weakref.cc: In function ‘void {anonymous}::Initialize(v8::Handle<v8::Object>)’:
../src/weakref.cc:315:69: error: no matching function for call to ‘v8::Persistent<v8::ObjectTemplate>::New(v8::Local<v8::ObjectTemplate>)’
../src/weakref.cc:315:69: note: candidate is:
In file included from ../src/weakref.cc:18:0:
/home/raynos/.node-gyp/0.11.5/deps/v8/include/v8.h:5621:4: note: static T* v8::Persistent<T>::New(v8::Isolate*, T*) [with T = v8::ObjectTemplate]
/home/raynos/.node-gyp/0.11.5/deps/v8/include/v8.h:5621:4: note:   candidate expects 2 arguments, 1 provided
/home/raynos/.node-gyp/0.11.5/deps/v8/include/v8.h:771:3: error: ‘T* v8::Persistent<T>::operator->() const [with T = v8::ObjectTemplate]’ is private
../src/weakref.cc:316:13: error: within this context
../src/weakref.cc:320:61: warning: ‘void v8::ObjectTemplate::SetNamedPropertyHandler(v8::NamedPropertyGetter, v8::NamedPropertySetter, v8::NamedPropertyQuery, v8::NamedPropertyDeleter, v8::NamedPropertyEnumerator, v8::Handle<v8::Value>)’ is deprecated (declared at /home/raynos/.node-gyp/0.11.5/deps/v8/include/v8.h:3460) [-Wdeprecated-declarations]
In file included from ../src/weakref.cc:18:0:
/home/raynos/.node-gyp/0.11.5/deps/v8/include/v8.h:771:3: error: ‘T* v8::Persistent<T>::operator->() const [with T = v8::ObjectTemplate]’ is private
../src/weakref.cc:321:13: error: within this context
../src/weakref.cc:325:63: warning: ‘void v8::ObjectTemplate::SetIndexedPropertyHandler(v8::IndexedPropertyGetter, v8::IndexedPropertySetter, v8::IndexedPropertyQuery, v8::IndexedPropertyDeleter, v8::IndexedPropertyEnumerator, v8::Handle<v8::Value>)’ is deprecated (declared at /home/raynos/.node-gyp/0.11.5/deps/v8/include/v8.h:3491) [-Wdeprecated-declarations]
In file included from ../src/weakref.cc:18:0:
/home/raynos/.node-gyp/0.11.5/deps/v8/include/v8.h:771:3: error: ‘T* v8::Persistent<T>::operator->() const [with T = v8::ObjectTemplate]’ is private
../src/weakref.cc:326:13: error: within this context
../src/weakref.cc:328:37: error: no matching function for call to ‘NODE_SET_METHOD(v8::Handle<v8::Object>&, const char [4], v8::Handle<v8::Value> (&)(const v8::Arguments&))’
../src/weakref.cc:328:37: note: candidate is:
In file included from ../src/weakref.cc:19:0:
/home/raynos/.node-gyp/0.11.5/src/node.h:140:13: note: template<class TypeName> void node::NODE_SET_METHOD(const TypeName&, const char*, v8::FunctionCallback)
/home/raynos/.node-gyp/0.11.5/src/node.h:140:13: note:   template argument deduction/substitution failed:
../src/weakref.cc:328:37: note:   cannot convert ‘{anonymous}::Get’ (type ‘v8::Handle<v8::Value>(const v8::Arguments&)’) to type ‘v8::FunctionCallback {aka void (*)(const v8::FunctionCallbackInfo<v8::Value>&)}’
../src/weakref.cc:329:43: error: no matching function for call to ‘NODE_SET_METHOD(v8::Handle<v8::Object>&, const char [7], v8::Handle<v8::Value> (&)(const v8::Arguments&))’
../src/weakref.cc:329:43: note: candidate is:
In file included from ../src/weakref.cc:19:0:
/home/raynos/.node-gyp/0.11.5/src/node.h:140:13: note: template<class TypeName> void node::NODE_SET_METHOD(const TypeName&, const char*, v8::FunctionCallback)
/home/raynos/.node-gyp/0.11.5/src/node.h:140:13: note:   template argument deduction/substitution failed:
../src/weakref.cc:329:43: note:   cannot convert ‘{anonymous}::Create’ (type ‘v8::Handle<v8::Value>(const v8::Arguments&)’) to type ‘v8::FunctionCallback {aka void (*)(const v8::FunctionCallbackInfo<v8::Value>&)}’
../src/weakref.cc:330:49: error: no matching function for call to ‘NODE_SET_METHOD(v8::Handle<v8::Object>&, const char [10], v8::Handle<v8::Value> (&)(const v8::Arguments&))’
../src/weakref.cc:330:49: note: candidate is:
In file included from ../src/weakref.cc:19:0:
/home/raynos/.node-gyp/0.11.5/src/node.h:140:13: note: template<class TypeName> void node::NODE_SET_METHOD(const TypeName&, const char*, v8::FunctionCallback)
/home/raynos/.node-gyp/0.11.5/src/node.h:140:13: note:   template argument deduction/substitution failed:
../src/weakref.cc:330:49: note:   cannot convert ‘{anonymous}::IsWeakRef’ (type ‘v8::Handle<v8::Value>(const v8::Arguments&)’) to type ‘v8::FunctionCallback {aka void (*)(const v8::FunctionCallbackInfo<v8::Value>&)}’
../src/weakref.cc:331:53: error: no matching function for call to ‘NODE_SET_METHOD(v8::Handle<v8::Object>&, const char [12], v8::Handle<v8::Value> (&)(const v8::Arguments&))’
../src/weakref.cc:331:53: note: candidate is:
In file included from ../src/weakref.cc:19:0:
/home/raynos/.node-gyp/0.11.5/src/node.h:140:13: note: template<class TypeName> void node::NODE_SET_METHOD(const TypeName&, const char*, v8::FunctionCallback)
/home/raynos/.node-gyp/0.11.5/src/node.h:140:13: note:   template argument deduction/substitution failed:
../src/weakref.cc:331:53: note:   cannot convert ‘{anonymous}::IsNearDeath’ (type ‘v8::Handle<v8::Value>(const v8::Arguments&)’) to type ‘v8::FunctionCallback {aka void (*)(const v8::FunctionCallbackInfo<v8::Value>&)}’
../src/weakref.cc:332:43: error: no matching function for call to ‘NODE_SET_METHOD(v8::Handle<v8::Object>&, const char [7], <unresolved overloaded function type>)’
../src/weakref.cc:332:43: note: candidate is:
In file included from ../src/weakref.cc:19:0:
/home/raynos/.node-gyp/0.11.5/src/node.h:140:13: note: template<class TypeName> void node::NODE_SET_METHOD(const TypeName&, const char*, v8::FunctionCallback)
/home/raynos/.node-gyp/0.11.5/src/node.h:140:13: note:   template argument deduction/substitution failed:
../src/weakref.cc:332:43: note:   cannot convert ‘{anonymous}::IsDead’ (type ‘<unresolved overloaded function type>’) to type ‘v8::FunctionCallback {aka void (*)(const v8::FunctionCallbackInfo<v8::Value>&)}’
../src/weakref.cc:333:49: error: no matching function for call to ‘NODE_SET_METHOD(v8::Handle<v8::Object>&, const char [10], v8::Handle<v8::Value> (&)(const v8::Arguments&))’
../src/weakref.cc:333:49: note: candidate is:
In file included from ../src/weakref.cc:19:0:
/home/raynos/.node-gyp/0.11.5/src/node.h:140:13: note: template<class TypeName> void node::NODE_SET_METHOD(const TypeName&, const char*, v8::FunctionCallback)
/home/raynos/.node-gyp/0.11.5/src/node.h:140:13: note:   template argument deduction/substitution failed:
../src/weakref.cc:333:49: note:   cannot convert ‘{anonymous}::Callbacks’ (type ‘v8::Handle<v8::Value>(const v8::Arguments&)’) to type ‘v8::FunctionCallback {aka void (*)(const v8::FunctionCallbackInfo<v8::Value>&)}’
../src/weakref.cc:334:53: error: no matching function for call to ‘NODE_SET_METHOD(v8::Handle<v8::Object>&, const char [12], <unresolved overloaded function type>)’
../src/weakref.cc:334:53: note: candidate is:
In file included from ../src/weakref.cc:19:0:
/home/raynos/.node-gyp/0.11.5/src/node.h:140:13: note: template<class TypeName> void node::NODE_SET_METHOD(const TypeName&, const char*, v8::FunctionCallback)
/home/raynos/.node-gyp/0.11.5/src/node.h:140:13: note:   template argument deduction/substitution failed:
../src/weakref.cc:334:53: note:   cannot convert ‘{anonymous}::AddCallback’ (type ‘<unresolved overloaded function type>’) to type ‘v8::FunctionCallback {aka void (*)(const v8::FunctionCallbackInfo<v8::Value>&)}’
../src/weakref.cc: In function ‘v8::Handle<v8::Object> {anonymous}::Unwrap(v8::Handle<v8::Object>)’:
../src/weakref.cc:59:1: warning: control reaches end of non-void function [-Wreturn-type]
make: *** [Release/obj.target/weakref/src/weakref.o] Error 1
make: Leaving directory `/home/raynos/Documents/event-log-server/node_modules/fleet/node_modules/propagit/node_modules/upnode/node_modules/dnode/node_modules/weak/build'
gyp ERR! build error 
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack     at ChildProcess.onExit (/home/raynos/nvm/v0.11.5/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:267:23)
gyp ERR! stack     at ChildProcess.EventEmitter.emit (events.js:103:17)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (child_process.js:794:12)
gyp ERR! System Linux 3.8.0-27-generic
gyp ERR! command "node" "/home/raynos/nvm/v0.11.5/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /home/raynos/Documents/event-log-server/node_modules/fleet/node_modules/propagit/node_modules/upnode/node_modules/dnode/node_modules/weak
gyp ERR! node -v v0.11.5
gyp ERR! node-gyp -v v0.10.6
gyp ERR! not ok 
npm ERR! weird error 1
npm ERR! not ok code 0

Consider using nan for compat with 0.11, 0.10 & 0.8

evandrix commented Nov 9, 2013

+1. facing the same issue on OSX 10.9, nodejs v0.11.8

@TooTallNate TooTallNate added a commit that referenced this issue Nov 9, 2013

@TooTallNate TooTallNate wip refactor to nan #18
I believe I need bindings for the "indexed" getter/setter/delete/etc. functions.
/cc @rvagg
392a8e4
Owner

TooTallNate commented Nov 9, 2013

I've started the refactor here: master...refactor/nan

Doesn't build on v0.11.x quite yet, but close...

TooTallNate referenced this issue in nodejs/nan Nov 10, 2013

Merged

nan.h: add NAN_INDEX_* macros #35

@TooTallNate TooTallNate added a commit that referenced this issue Nov 10, 2013

@TooTallNate TooTallNate wip refactor to nan #18
I believe I need bindings for the "indexed" getter/setter/delete/etc. functions.
/cc @rvagg
e82b63e
Owner

TooTallNate commented Nov 18, 2013

node-weak v0.3.0 works with node v0.11.x now. Cheers!

maximivanov referenced this issue in amir20/phantomjs-node Mar 21, 2014

Closed

Update dnode dependency to 1.2.0 #146

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