node-ife
node-ife copied to clipboard
doesn't build on osx
trafficstars
Lots of errors.
c++ '-DNODE_GYP_MODULE_NAME=IFEBinding' '-DUSING_UV_SHARED=1' '-DUSING_V8_SHARED=1' '-DV8_DEPRECATION_WARNINGS=1' '-D_DARWIN_USE_64_BIT_INODE=1' '-D_LARGEFILE_SOURCE' '-D_FILE_OFFSET_BITS=64' '-DBUILDING_NODE_EXTENSION' -I/Users/ak/.node-gyp/7.0.0/include/node -I/Users/ak/.node-gyp/7.0.0/src -I/Users/ak/.node-gyp/7.0.0/deps/uv/include -I/Users/ak/.node-gyp/7.0.0/deps/v8/include -Os -gdwarf-2 -mmacosx-version-min=10.7 -arch x86_64 -Wall -Wendif-labels -W -Wno-unused-parameter -std=gnu++0x -stdlib=libc++ -fno-rtti -fno-exceptions -fno-threadsafe-statics -fno-strict-aliasing -MMD -MF ./Release/.deps/Release/obj.target/IFEBinding/IFE.o.d.raw -c -o Release/obj.target/IFEBinding/IFE.o ../IFE.cc
In file included from ../IFE.cc:12:
../IFEheader.h:29:44: error: no type named 'Arguments' in namespace 'v8'; did
you mean 'v8::internal::Arguments'?
static v8::Handle<v8::Value> New(const v8::Arguments& args);
^~~~~~~~~~~~~
v8::internal::Arguments
/Users/ak/.node-gyp/7.0.0/include/node/v8.h:148:7: note:
'v8::internal::Arguments' declared here
class Arguments;
^
In file included from ../IFE.cc:12:
../IFEheader.h:30:45: error: no type named 'Arguments' in namespace 'v8'; did
you mean 'v8::internal::Arguments'?
static v8::Handle<v8::Value> list(const v8::Arguments& args);
^~~~~~~~~~~~~
v8::internal::Arguments
/Users/ak/.node-gyp/7.0.0/include/node/v8.h:148:7: note:
'v8::internal::Arguments' declared here
class Arguments;
^
In file included from ../IFE.cc:12:
../IFEheader.h:31:43: error: no type named 'Arguments' in namespace 'v8'; did
you mean 'v8::internal::Arguments'?
static v8::Handle<v8::Value> up(const v8::Arguments& args);
^~~~~~~~~~~~~
v8::internal::Arguments
/Users/ak/.node-gyp/7.0.0/include/node/v8.h:148:7: note:
'v8::internal::Arguments' declared here
class Arguments;
^
In file included from ../IFE.cc:12:
../IFEheader.h:32:45: error: no type named 'Arguments' in namespace 'v8'; did
you mean 'v8::internal::Arguments'?
static v8::Handle<v8::Value> down(const v8::Arguments& args);
^~~~~~~~~~~~~
v8::internal::Arguments
/Users/ak/.node-gyp/7.0.0/include/node/v8.h:148:7: note:
'v8::internal::Arguments' declared here
class Arguments;
^
In file included from ../IFE.cc:12:
../IFEheader.h:33:48: error: no type named 'Arguments' in namespace 'v8'; did
you mean 'v8::internal::Arguments'?
static v8::Handle<v8::Value> gratarp(const v8::Arguments& args);
^~~~~~~~~~~~~
v8::internal::Arguments
/Users/ak/.node-gyp/7.0.0/include/node/v8.h:148:7: note:
'v8::internal::Arguments' declared here
class Arguments;
^
In file included from ../IFE.cc:12:
../IFEheader.h:34:49: error: no type named 'Arguments' in namespace 'v8'; did
you mean 'v8::internal::Arguments'?
static v8::Handle<v8::Value> arpcache(const v8::Arguments& args);
^~~~~~~~~~~~~
v8::internal::Arguments
/Users/ak/.node-gyp/7.0.0/include/node/v8.h:148:7: note:
'v8::internal::Arguments' declared here
class Arguments;
^
../IFE.cc:27:36: error: member reference type 'v8::Persistent<v8::Object>' is
not a pointer; did you mean to use '.'?
Local<Value> emit_v = handle_->Get(emit_symbol);
~~~~~~~^~
.
../IFE.cc:27:42: error: no viable conversion from 'Persistent<v8::String>' to
'v8::Isolate *'
Local<Value> emit_v = handle_->Get(emit_symbol);
^~~~~~~~~~~
/Users/ak/.node-gyp/7.0.0/include/node/v8.h:505:35: note: passing argument to
parameter 'isolate' here
V8_INLINE Local<T> Get(Isolate* isolate) const {
^
../IFE.cc:27:29: error: 'handle_' is a private member of 'node::ObjectWrap'
Local<Value> emit_v = handle_->Get(emit_symbol);
^
/Users/ak/.node-gyp/7.0.0/include/node/node_object_wrap.h:106:30: note:
declared private here
v8::Persistent<v8::Object> handle_;
^
../IFE.cc:30:18: warning: 'TryCatch' is deprecated [-Wdeprecated-declarations]
TryCatch tc;
^
/Users/ak/.node-gyp/7.0.0/include/node/v8.h:7015:40: note: 'TryCatch' has been
explicitly marked deprecated here
V8_DEPRECATED("Use isolate version", TryCatch());
^
../IFE.cc:31:20: error: 'handle_' is a private member of 'node::ObjectWrap'
emit->Call(handle_, nargs, args);
^
/Users/ak/.node-gyp/7.0.0/include/node/node_object_wrap.h:106:30: note:
declared private here
v8::Persistent<v8::Object> handle_;
^
../IFE.cc:31:15: error: no matching member function for call to 'Call'
emit->Call(handle_, nargs, args);
~~~~~~^~~~
/Users/ak/.node-gyp/7.0.0/include/node/v8.h:3299:34: note: candidate function
not viable: no known conversion from 'v8::Persistent<v8::Object>' to
'Local<v8::Value>' for 1st argument
Local<Value> Call(Local<Value> recv, int argc,
^
/Users/ak/.node-gyp/7.0.0/include/node/v8config.h:351:48: note: expanded from
macro 'V8_DEPRECATE_SOON'
#define V8_DEPRECATE_SOON(message, declarator) declarator
^
/Users/ak/.node-gyp/7.0.0/include/node/v8.h:3301:43: note: candidate function
not viable: requires 4 arguments, but 3 were provided
V8_WARN_UNUSED_RESULT MaybeLocal<Value> Call(Local<Context> context,
^
../IFE.cc:40:17: error: calling a protected constructor of class
'v8::HandleScope'
HandleScope scope;
^
/Users/ak/.node-gyp/7.0.0/include/node/v8.h:882:13: note: declared protected
here
V8_INLINE HandleScope() {}
^
../IFE.cc:42:55: error: cannot initialize a parameter of type 'v8::Isolate *'
with an lvalue of type 'v8::Handle<v8::Value> (const
v8::internal::Arguments &)' (aka 'v8::Local<v8::Value> (const
v8::internal::Arguments &)')
Local<FunctionTemplate> t = FunctionTemplate::New(IFE::New);
^~~~~~~~
/Users/ak/.node-gyp/7.0.0/include/node/v8.h:4511:16: note: passing argument to
parameter 'isolate' here
Isolate* isolate, FunctionCallback callback = 0,
^
../IFE.cc:43:58: error: 'New' is a private member of
'v8::PersistentBase<v8::FunctionTemplate>'
constructor_template = Persistent<FunctionTemplate>::New(t);
^
/Users/ak/.node-gyp/7.0.0/include/node/v8.h:635:23: note: declared private here
V8_INLINE static T* New(Isolate* isolate, T* that);
^
../IFE.cc:43:63: error: too few arguments to function call, expected 2, have 1
constructor_template = Persistent<FunctionTemplate>::New(t);
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^
/Users/ak/.node-gyp/7.0.0/include/node/v8.h:635:3: note: 'New' declared here
V8_INLINE static T* New(Isolate* isolate, T* that);
^
/Users/ak/.node-gyp/7.0.0/include/node/v8config.h:293:20: note: expanded from
macro 'V8_INLINE'
# define V8_INLINE inline __attribute__((always_inline))
^
../IFE.cc:44:25: error: member reference type 'Persistent<v8::FunctionTemplate>'
is not a pointer; did you mean to use '.'?
constructor_template->InstanceTemplate()->SetInternalFieldCount(1);
~~~~~~~~~~~~~~~~~~~~^~
.
../IFE.cc:44:27: error: no member named 'InstanceTemplate' in
'v8::Persistent<v8::FunctionTemplate,
v8::NonCopyablePersistentTraits<v8::FunctionTemplate> >'
constructor_template->InstanceTemplate()->SetInternalFieldCount(1);
~~~~~~~~~~~~~~~~~~~~ ^
../IFE.cc:45:25: error: member reference type 'Persistent<v8::FunctionTemplate>'
is not a pointer; did you mean to use '.'?
constructor_template->SetClassName(String::NewSymbol("IFE"));
~~~~~~~~~~~~~~~~~~~~^~
.
../IFE.cc:45:27: error: no member named 'SetClassName' in
'v8::Persistent<v8::FunctionTemplate,
v8::NonCopyablePersistentTraits<v8::FunctionTemplate> >'
constructor_template->SetClassName(String::NewSymbol("IFE"));
this isnt a mac os x issue, it is a node 7 issue. patches welcome.