Skip to content

Instantly share code, notes, and snippets.

@bowrocker
Created February 21, 2020 18:23
Show Gist options
  • Save bowrocker/9d9d163855fc14ec59f79b950ec933ab to your computer and use it in GitHub Desktop.
Save bowrocker/9d9d163855fc14ec59f79b950ec933ab to your computer and use it in GitHub Desktop.
g++ '-DNODE_GYP_MODULE_NAME=DTraceProviderBindings' '-DUSING_UV_SHARED=1' '-DUSING_V8_SHARED=1' '-DV8_DEPRECATION_WARNINGS=1' '-D_LARGEFILE_SOURCE' '-D_FILE_OFFSET_BITS=64' '-DBUILDING_NODE_EXTENSION' -I/home/jonran/.cache/node-gyp/8.17.0/include/node -I/home/jonran/.cache/node-gyp/8.17.0/src -I/home/jonran/.cache/node-gyp/8.17.0/deps/openssl/config -I/home/jonran/.cache/node-gyp/8.17.0/deps/openssl/openssl/include -I/home/jonran/.cache/node-gyp/8.17.0/deps/uv/include -I/home/jonran/.cache/node-gyp/8.17.0/deps/zlib -I/home/jonran/.cache/node-gyp/8.17.0/deps/v8/include -I../libusdt -fPIC -Wall -Wextra -Wno-unused-parameter -m64 -pthreads -O3 -fno-omit-frame-pointer -fno-rtti -fno-exceptions -std=gnu++0x -MMD -MF ./Release/.deps/Release/obj.target/DTraceProviderBindings/dtrace_provider.o.d.raw -c -o Release/obj.target/DTraceProviderBindings/dtrace_provider.o ../dtrace_provider.cc
In file included from ../dtrace_provider.cc:1:0:
../dtrace_provider.h:69:48: error: 'Arguments' in namespace 'v8' does not name a type
static v8::Handle<v8::Value> New(const v8::Arguments& args);
^~~~~~~~~
../dtrace_provider.h:70:49: error: 'Arguments' in namespace 'v8' does not name a type
static v8::Handle<v8::Value> Fire(const v8::Arguments& args);
^~~~~~~~~
../dtrace_provider.h:87:48: error: 'Arguments' in namespace 'v8' does not name a type
static v8::Handle<v8::Value> New(const v8::Arguments& args);
^~~~~~~~~
../dtrace_provider.h:88:53: error: 'Arguments' in namespace 'v8' does not name a type
static v8::Handle<v8::Value> AddProbe(const v8::Arguments& args);
^~~~~~~~~
../dtrace_provider.h:89:56: error: 'Arguments' in namespace 'v8' does not name a type
static v8::Handle<v8::Value> RemoveProbe(const v8::Arguments& args);
^~~~~~~~~
../dtrace_provider.h:90:51: error: 'Arguments' in namespace 'v8' does not name a type
static v8::Handle<v8::Value> Enable(const v8::Arguments& args);
^~~~~~~~~
../dtrace_provider.h:91:52: error: 'Arguments' in namespace 'v8' does not name a type
static v8::Handle<v8::Value> Disable(const v8::Arguments& args);
^~~~~~~~~
../dtrace_provider.h:92:49: error: 'Arguments' in namespace 'v8' does not name a type
static v8::Handle<v8::Value> Fire(const v8::Arguments& args);
^~~~~~~~~
../dtrace_provider.cc: In static member function 'static void node::DTraceProvider::Initialize(v8::Handle<v8::Object>)':
../dtrace_provider.cc:23:17: error: 'v8::HandleScope::HandleScope()' is protected within this context
HandleScope scope;
^~~~~
In file included from /home/jonran/.cache/node-gyp/8.17.0/include/node/node.h:63:0,
from ../dtrace_provider.h:1,
from ../dtrace_provider.cc:1:
/home/jonran/.cache/node-gyp/8.17.0/include/node/v8.h:876:13: note: declared protected here
V8_INLINE HandleScope() {}
^~~~~~~~~~~
../dtrace_provider.cc:25:74: error: no matching function for call to 'v8::FunctionTemplate::New(v8::Handle<v8::Value> (&)(const int&))'
Local<FunctionTemplate> t = FunctionTemplate::New(DTraceProvider::New);
^
In file included from /home/jonran/.cache/node-gyp/8.17.0/include/node/node.h:63:0,
from ../dtrace_provider.h:1,
from ../dtrace_provider.cc:1:
/home/jonran/.cache/node-gyp/8.17.0/include/node/v8.h:5495:34: note: candidate: static v8::Local<v8::FunctionTemplate> v8::FunctionTemplate::New(v8::Isolate*, v8::FunctionCallback, v8::Local<v8::Value>, v8::Local<v8::Signature>, int, v8::ConstructorBehavior)
static Local<FunctionTemplate> New(
^~~
/home/jonran/.cache/node-gyp/8.17.0/include/node/v8.h:5495:34: note: no known conversion for argument 1 from 'v8::Handle<v8::Value>(const int&) {aka v8::Local<v8::Value>(const int&)}' to 'v8::Isolate*'
../dtrace_provider.cc:26:63: error: no matching function for call to 'v8::Persistent<v8::FunctionTemplate>::New(v8::Local<v8::FunctionTemplate>&)'
constructor_template = Persistent<FunctionTemplate>::New(t);
^
In file included from /home/jonran/.cache/node-gyp/8.17.0/include/node/node.h:63:0,
from ../dtrace_provider.h:1,
from ../dtrace_provider.cc:1:
/home/jonran/.cache/node-gyp/8.17.0/include/node/v8.h:9227:4: note: candidate: static T* v8::PersistentBase<T>::New(v8::Isolate*, T*) [with T = v8::FunctionTemplate]
T* PersistentBase<T>::New(Isolate* isolate, T* that) {
^~~~~~~~~~~~~~~~~
/home/jonran/.cache/node-gyp/8.17.0/include/node/v8.h:9227:4: note: candidate expects 2 arguments, 1 provided
../dtrace_provider.cc:27:25: error: base operand of '->' has non-pointer type 'v8::Persistent<v8::FunctionTemplate>'
constructor_template->InstanceTemplate()->SetInternalFieldCount(1);
^~
../dtrace_provider.cc:28:25: error: base operand of '->' has non-pointer type 'v8::Persistent<v8::FunctionTemplate>'
constructor_template->SetClassName(String::NewSymbol("DTraceProvider"));
^~
../dtrace_provider.cc:28:48: error: 'NewSymbol' is not a member of 'v8::String'
constructor_template->SetClassName(String::NewSymbol("DTraceProvider"));
^~~~~~~~~
../dtrace_provider.cc:30:89: error: could not convert 'node::DTraceProvider::constructor_template' from 'v8::Persistent<v8::FunctionTemplate>' to 'v8::Local<v8::FunctionTemplate>'
NODE_SET_PROTOTYPE_METHOD(constructor_template, "addProbe", DTraceProvider::AddProbe);
^
../dtrace_provider.cc:31:95: error: could not convert 'node::DTraceProvider::constructor_template' from 'v8::Persistent<v8::FunctionTemplate>' to 'v8::Local<v8::FunctionTemplate>'
NODE_SET_PROTOTYPE_METHOD(constructor_template, "removeProbe", DTraceProvider::RemoveProbe);
^
../dtrace_provider.cc:32:85: error: could not convert 'node::DTraceProvider::constructor_template' from 'v8::Persistent<v8::FunctionTemplate>' to 'v8::Local<v8::FunctionTemplate>'
NODE_SET_PROTOTYPE_METHOD(constructor_template, "enable", DTraceProvider::Enable);
^
../dtrace_provider.cc:33:87: error: could not convert 'node::DTraceProvider::constructor_template' from 'v8::Persistent<v8::FunctionTemplate>' to 'v8::Local<v8::FunctionTemplate>'
NODE_SET_PROTOTYPE_METHOD(constructor_template, "disable", DTraceProvider::Disable);
^
../dtrace_provider.cc:34:81: error: could not convert 'node::DTraceProvider::constructor_template' from 'v8::Persistent<v8::FunctionTemplate>' to 'v8::Local<v8::FunctionTemplate>'
NODE_SET_PROTOTYPE_METHOD(constructor_template, "fire", DTraceProvider::Fire);
^
../dtrace_provider.cc:36:25: error: 'NewSymbol' is not a member of 'v8::String'
target->Set(String::NewSymbol("DTraceProvider"), constructor_template->GetFunction());
^~~~~~~~~
../dtrace_provider.cc:36:74: error: base operand of '->' has non-pointer type 'v8::Persistent<v8::FunctionTemplate>'
target->Set(String::NewSymbol("DTraceProvider"), constructor_template->GetFunction());
^~
../dtrace_provider.cc: At global scope:
../dtrace_provider.cc:41:43: error: 'Arguments' does not name a type
Handle<Value> DTraceProvider::New(const Arguments& args) {
^~~~~~~~~
../dtrace_provider.cc: In static member function 'static v8::Handle<v8::Value> node::DTraceProvider::New(const int&)':
../dtrace_provider.cc:42:17: error: 'v8::HandleScope::HandleScope()' is protected within this context
HandleScope scope;
^~~~~
In file included from /home/jonran/.cache/node-gyp/8.17.0/include/node/node.h:63:0,
from ../dtrace_provider.h:1,
from ../dtrace_provider.cc:1:
/home/jonran/.cache/node-gyp/8.17.0/include/node/v8.h:876:13: note: declared protected here
V8_INLINE HandleScope() {}
^~~~~~~~~~~
../dtrace_provider.cc:46:18: error: request for member 'This' in 'args', which is of non-class type 'const int'
p->Wrap(args.This());
^~~~
../dtrace_provider.cc:48:14: error: request for member 'Length' in 'args', which is of non-class type 'const int'
if (args.Length() < 1 || !args[0]->IsString()) {
^~~~~~
../dtrace_provider.cc:48:37: error: invalid types 'const int[int]' for array subscript
if (args.Length() < 1 || !args[0]->IsString()) {
^
../dtrace_provider.cc:49:54: error: 'New' is not a member of 'v8::String'
return ThrowException(Exception::Error(String::New(
^~~
../dtrace_provider.cc:49:14: error: 'ThrowException' was not declared in this scope
return ThrowException(Exception::Error(String::New(
^~~~~~~~~~~~~~
../dtrace_provider.cc:49:14: note: suggested alternative: 'ErrnoException'
return ThrowException(Exception::Error(String::New(
^~~~~~~~~~~~~~
ErrnoException
../dtrace_provider.cc:53:13: error: 'AsciiValue' is not a member of 'v8::String'
String::AsciiValue name(args[0]->ToString());
^~~~~~~~~~
../dtrace_provider.cc:55:14: error: request for member 'Length' in 'args', which is of non-class type 'const int'
if (args.Length() == 2) {
^~~~~~
../dtrace_provider.cc:56:18: error: invalid types 'const int[int]' for array subscript
if (!args[1]->IsString()) {
^
../dtrace_provider.cc:57:56: error: 'New' is not a member of 'v8::String'
return ThrowException(Exception::Error(String::New(
^~~
../dtrace_provider.cc:57:16: error: 'ThrowException' was not declared in this scope
return ThrowException(Exception::Error(String::New(
^~~~~~~~~~~~~~
../dtrace_provider.cc:57:16: note: suggested alternative: 'ErrnoException'
return ThrowException(Exception::Error(String::New(
^~~~~~~~~~~~~~
ErrnoException
../dtrace_provider.cc:61:15: error: 'AsciiValue' is not a member of 'v8::String'
String::AsciiValue mod(args[1]->ToString());
^~~~~~~~~~
../dtrace_provider.cc:62:55: error: 'mod' was not declared in this scope
(void) snprintf(module, sizeof (module), "%s", *mod);
^~~
../dtrace_provider.cc:62:55: note: suggested alternative: 'mknod'
(void) snprintf(module, sizeof (module), "%s", *mod);
^~~
mknod
../dtrace_provider.cc:63:21: error: request for member 'Length' in 'args', which is of non-class type 'const int'
} else if (args.Length() == 1) {
^~~~~~
../dtrace_provider.cc:68:54: error: 'New' is not a member of 'v8::String'
return ThrowException(Exception::Error(String::New(
^~~
../dtrace_provider.cc:68:14: error: 'ThrowException' was not declared in this scope
return ThrowException(Exception::Error(String::New(
^~~~~~~~~~~~~~
../dtrace_provider.cc:68:14: note: suggested alternative: 'ErrnoException'
return ThrowException(Exception::Error(String::New(
^~~~~~~~~~~~~~
ErrnoException
../dtrace_provider.cc:72:46: error: 'name' was not declared in this scope
if ((p->provider = usdt_create_provider(*name, module)) == NULL) {
^~~~
../dtrace_provider.cc:72:46: note: suggested alternative: 'page'
if ((p->provider = usdt_create_provider(*name, module)) == NULL) {
^~~~
page
../dtrace_provider.cc:73:54: error: 'New' is not a member of 'v8::String'
return ThrowException(Exception::Error(String::New(
^~~
../dtrace_provider.cc:73:14: error: 'ThrowException' was not declared in this scope
return ThrowException(Exception::Error(String::New(
^~~~~~~~~~~~~~
../dtrace_provider.cc:73:14: note: suggested alternative: 'ErrnoException'
return ThrowException(Exception::Error(String::New(
^~~~~~~~~~~~~~
ErrnoException
../dtrace_provider.cc:77:17: error: request for member 'This' in 'args', which is of non-class type 'const int'
return args.This();
^~~~
../dtrace_provider.cc: At global scope:
../dtrace_provider.cc:80:48: error: 'Arguments' does not name a type
Handle<Value> DTraceProvider::AddProbe(const Arguments& args) {
^~~~~~~~~
../dtrace_provider.cc: In static member function 'static v8::Handle<v8::Value> node::DTraceProvider::AddProbe(const int&)':
../dtrace_provider.cc:81:17: error: 'v8::HandleScope::HandleScope()' is protected within this context
HandleScope scope;
^~~~~
In file included from /home/jonran/.cache/node-gyp/8.17.0/include/node/node.h:63:0,
from ../dtrace_provider.h:1,
from ../dtrace_provider.cc:1:
/home/jonran/.cache/node-gyp/8.17.0/include/node/v8.h:876:13: note: declared protected here
V8_INLINE HandleScope() {}
^~~~~~~~~~~
../dtrace_provider.cc:84:31: error: request for member 'Holder' in 'args', which is of non-class type 'const int'
Handle<Object> obj = args.Holder();
^~~~~~
../dtrace_provider.cc:88:63: error: base operand of '->' has non-pointer type 'v8::Persistent<v8::FunctionTemplate>'
Handle<Function> klass = DTraceProbe::constructor_template->GetFunction();
^~
../dtrace_provider.cc:89:63: warning: 'v8::Local<v8::Object> v8::Function::NewInstance() const' is deprecated: Use maybe version [-Wdeprecated-declarations]
Handle<Object> pd = Local<Object>::New(klass->NewInstance());
^
In file included from /home/jonran/.cache/node-gyp/8.17.0/include/node/v8.h:26:0,
from /home/jonran/.cache/node-gyp/8.17.0/include/node/node.h:63,
from ../dtrace_provider.h:1,
from ../dtrace_provider.cc:1:
/home/jonran/.cache/node-gyp/8.17.0/include/node/v8.h:3901:52: note: declared here
V8_DEPRECATED("Use maybe version", Local<Object> NewInstance() const);
^
/home/jonran/.cache/node-gyp/8.17.0/include/node/v8config.h:318:3: note: in definition of macro 'V8_DEPRECATED'
declarator __attribute__((deprecated(message)))
^~~~~~~~~~
../dtrace_provider.cc:89:64: error: no matching function for call to 'v8::Local<v8::Object>::New(v8::Local<v8::Object>)'
Handle<Object> pd = Local<Object>::New(klass->NewInstance());
^
In file included from /home/jonran/.cache/node-gyp/8.17.0/include/node/node.h:63:0,
from ../dtrace_provider.h:1,
from ../dtrace_provider.cc:1:
/home/jonran/.cache/node-gyp/8.17.0/include/node/v8.h:9172:10: note: candidate: static v8::Local<T> v8::Local<T>::New(v8::Isolate*, v8::Local<T>) [with T = v8::Object]
Local<T> Local<T>::New(Isolate* isolate, Local<T> that) {
^~~~~~~~
/home/jonran/.cache/node-gyp/8.17.0/include/node/v8.h:9172:10: note: candidate expects 2 arguments, 1 provided
/home/jonran/.cache/node-gyp/8.17.0/include/node/v8.h:9177:10: note: candidate: static v8::Local<T> v8::Local<T>::New(v8::Isolate*, const v8::PersistentBase<T>&) [with T = v8::Object]
Local<T> Local<T>::New(Isolate* isolate, const PersistentBase<T>& that) {
^~~~~~~~
/home/jonran/.cache/node-gyp/8.17.0/include/node/v8.h:9177:10: note: candidate expects 2 arguments, 1 provided
/home/jonran/.cache/node-gyp/8.17.0/include/node/v8.h:9183:10: note: candidate: static v8::Local<T> v8::Local<T>::New(v8::Isolate*, T*) [with T = v8::Object]
Local<T> Local<T>::New(Isolate* isolate, T* that) {
^~~~~~~~
/home/jonran/.cache/node-gyp/8.17.0/include/node/v8.h:9183:10: note: candidate expects 2 arguments, 1 provided
../dtrace_provider.cc:93:20: error: invalid types 'const int[int]' for array subscript
obj->Set(args[0]->ToString(), pd);
^
../dtrace_provider.cc:97:20: error: request for member 'Length' in 'args', which is of non-class type 'const int'
if (i < args.Length() - 1) {
^~~~~~
../dtrace_provider.cc:98:17: error: 'AsciiValue' is not a member of 'v8::String'
String::AsciiValue type(args[i + 1]->ToString());
^~~~~~~~~~
../dtrace_provider.cc:100:30: error: 'type' was not declared in this scope
if (strncmp("json", *type, 4) == 0)
^~~~
../dtrace_provider.cc:100:30: note: suggested alternative: 'types'
if (strncmp("json", *type, 4) == 0)
^~~~
types
../dtrace_provider.cc:114:13: error: 'AsciiValue' is not a member of 'v8::String'
String::AsciiValue name(args[0]->ToString());
^~~~~~~~~~
../dtrace_provider.cc:115:42: error: 'name' was not declared in this scope
probe->probedef = usdt_create_probe(*name, *name, probe->argc, types);
^~~~
../dtrace_provider.cc:115:42: note: suggested alternative: 'page'
probe->probedef = usdt_create_probe(*name, *name, probe->argc, types);
^~~~
page
../dtrace_provider.cc: At global scope:
../dtrace_provider.cc:125:51: error: 'Arguments' does not name a type
Handle<Value> DTraceProvider::RemoveProbe(const Arguments& args) {
^~~~~~~~~
../dtrace_provider.cc: In static member function 'static v8::Handle<v8::Value> node::DTraceProvider::RemoveProbe(const int&)':
../dtrace_provider.cc:126:17: error: 'v8::HandleScope::HandleScope()' is protected within this context
HandleScope scope;
^~~~~
In file included from /home/jonran/.cache/node-gyp/8.17.0/include/node/node.h:63:0,
from ../dtrace_provider.h:1,
from ../dtrace_provider.cc:1:
/home/jonran/.cache/node-gyp/8.17.0/include/node/v8.h:876:13: note: declared protected here
V8_INLINE HandleScope() {}
^~~~~~~~~~~
../dtrace_provider.cc:128:40: error: request for member 'Holder' in 'args', which is of non-class type 'const int'
Handle<Object> provider_obj = args.Holder();
^~~~~~
../dtrace_provider.cc:131:58: error: invalid types 'const int[int]' for array subscript
Handle<Object> probe_obj = Local<Object>::Cast(args[0]);
^
../dtrace_provider.cc:134:35: error: 'New' is not a member of 'v8::String'
Handle<String> name = String::New(probe->probedef->name);
^~~
../dtrace_provider.cc:138:54: error: 'New' is not a member of 'v8::String'
return ThrowException(Exception::Error(String::New(usdt_errstr(provider->provider))));
^~~
../dtrace_provider.cc:138:14: error: 'ThrowException' was not declared in this scope
return ThrowException(Exception::Error(String::New(usdt_errstr(provider->provider))));
^~~~~~~~~~~~~~
../dtrace_provider.cc:138:14: note: suggested alternative: 'ErrnoException'
return ThrowException(Exception::Error(String::New(usdt_errstr(provider->provider))));
^~~~~~~~~~~~~~
ErrnoException
../dtrace_provider.cc:140:17: error: too few arguments to function 'v8::Local<v8::Boolean> v8::True(v8::Isolate*)'
return True();
^
In file included from /home/jonran/.cache/node-gyp/8.17.0/include/node/node.h:63:0,
from ../dtrace_provider.h:1,
from ../dtrace_provider.cc:1:
/home/jonran/.cache/node-gyp/8.17.0/include/node/v8.h:10218:16: note: declared here
Local<Boolean> True(Isolate* isolate) {
^~~~
../dtrace_provider.cc: At global scope:
../dtrace_provider.cc:143:46: error: 'Arguments' does not name a type
Handle<Value> DTraceProvider::Enable(const Arguments& args) {
^~~~~~~~~
../dtrace_provider.cc: In static member function 'static v8::Handle<v8::Value> node::DTraceProvider::Enable(const int&)':
../dtrace_provider.cc:144:17: error: 'v8::HandleScope::HandleScope()' is protected within this context
HandleScope scope;
^~~~~
In file included from /home/jonran/.cache/node-gyp/8.17.0/include/node/node.h:63:0,
from ../dtrace_provider.h:1,
from ../dtrace_provider.cc:1:
/home/jonran/.cache/node-gyp/8.17.0/include/node/v8.h:876:13: note: declared protected here
V8_INLINE HandleScope() {}
^~~~~~~~~~~
../dtrace_provider.cc:145:72: error: request for member 'Holder' in 'args', which is of non-class type 'const int'
DTraceProvider *provider = ObjectWrap::Unwrap<DTraceProvider>(args.Holder());
^~~~~~
../dtrace_provider.cc:148:54: error: 'New' is not a member of 'v8::String'
return ThrowException(Exception::Error(String::New(usdt_errstr(provider->provider))));
^~~
../dtrace_provider.cc:148:14: error: 'ThrowException' was not declared in this scope
return ThrowException(Exception::Error(String::New(usdt_errstr(provider->provider))));
^~~~~~~~~~~~~~
../dtrace_provider.cc:148:14: note: suggested alternative: 'ErrnoException'
return ThrowException(Exception::Error(String::New(usdt_errstr(provider->provider))));
^~~~~~~~~~~~~~
ErrnoException
../dtrace_provider.cc:150:22: error: too few arguments to function 'v8::Local<v8::Primitive> v8::Undefined(v8::Isolate*)'
return Undefined();
^
In file included from /home/jonran/.cache/node-gyp/8.17.0/include/node/node.h:63:0,
from ../dtrace_provider.h:1,
from ../dtrace_provider.cc:1:
/home/jonran/.cache/node-gyp/8.17.0/include/node/v8.h:314:27: note: declared here
friend Local<Primitive> Undefined(Isolate* isolate);
^~~~~~~~~
../dtrace_provider.cc: At global scope:
../dtrace_provider.cc:153:47: error: 'Arguments' does not name a type
Handle<Value> DTraceProvider::Disable(const Arguments& args) {
^~~~~~~~~
../dtrace_provider.cc: In static member function 'static v8::Handle<v8::Value> node::DTraceProvider::Disable(const int&)':
../dtrace_provider.cc:154:17: error: 'v8::HandleScope::HandleScope()' is protected within this context
HandleScope scope;
^~~~~
In file included from /home/jonran/.cache/node-gyp/8.17.0/include/node/node.h:63:0,
from ../dtrace_provider.h:1,
from ../dtrace_provider.cc:1:
/home/jonran/.cache/node-gyp/8.17.0/include/node/v8.h:876:13: note: declared protected here
V8_INLINE HandleScope() {}
^~~~~~~~~~~
../dtrace_provider.cc:155:72: error: request for member 'Holder' in 'args', which is of non-class type 'const int'
DTraceProvider *provider = ObjectWrap::Unwrap<DTraceProvider>(args.Holder());
^~~~~~
../dtrace_provider.cc:158:54: error: 'New' is not a member of 'v8::String'
return ThrowException(Exception::Error(String::New(usdt_errstr(provider->provider))));
^~~
../dtrace_provider.cc:158:14: error: 'ThrowException' was not declared in this scope
return ThrowException(Exception::Error(String::New(usdt_errstr(provider->provider))));
^~~~~~~~~~~~~~
../dtrace_provider.cc:158:14: note: suggested alternative: 'ErrnoException'
return ThrowException(Exception::Error(String::New(usdt_errstr(provider->provider))));
^~~~~~~~~~~~~~
ErrnoException
../dtrace_provider.cc:160:22: error: too few arguments to function 'v8::Local<v8::Primitive> v8::Undefined(v8::Isolate*)'
return Undefined();
^
In file included from /home/jonran/.cache/node-gyp/8.17.0/include/node/node.h:63:0,
from ../dtrace_provider.h:1,
from ../dtrace_provider.cc:1:
/home/jonran/.cache/node-gyp/8.17.0/include/node/v8.h:314:27: note: declared here
friend Local<Primitive> Undefined(Isolate* isolate);
^~~~~~~~~
../dtrace_provider.cc: At global scope:
../dtrace_provider.cc:163:44: error: 'Arguments' does not name a type
Handle<Value> DTraceProvider::Fire(const Arguments& args) {
^~~~~~~~~
../dtrace_provider.cc: In static member function 'static v8::Handle<v8::Value> node::DTraceProvider::Fire(const int&)':
../dtrace_provider.cc:164:17: error: 'v8::HandleScope::HandleScope()' is protected within this context
HandleScope scope;
^~~~~
In file included from /home/jonran/.cache/node-gyp/8.17.0/include/node/node.h:63:0,
from ../dtrace_provider.h:1,
from ../dtrace_provider.cc:1:
/home/jonran/.cache/node-gyp/8.17.0/include/node/v8.h:876:13: note: declared protected here
V8_INLINE HandleScope() {}
^~~~~~~~~~~
../dtrace_provider.cc:166:16: error: invalid types 'const int[int]' for array subscript
if (!args[0]->IsString()) {
^
../dtrace_provider.cc:167:54: error: 'New' is not a member of 'v8::String'
return ThrowException(Exception::Error(String::New(
^~~
../dtrace_provider.cc:167:14: error: 'ThrowException' was not declared in this scope
return ThrowException(Exception::Error(String::New(
^~~~~~~~~~~~~~
../dtrace_provider.cc:167:14: note: suggested alternative: 'ErrnoException'
return ThrowException(Exception::Error(String::New(
^~~~~~~~~~~~~~
ErrnoException
../dtrace_provider.cc:171:16: error: invalid types 'const int[int]' for array subscript
if (!args[1]->IsFunction()) {
^
../dtrace_provider.cc:172:54: error: 'New' is not a member of 'v8::String'
return ThrowException(Exception::Error(String::New(
^~~
../dtrace_provider.cc:172:14: error: 'ThrowException' was not declared in this scope
return ThrowException(Exception::Error(String::New(
^~~~~~~~~~~~~~
../dtrace_provider.cc:172:14: note: suggested alternative: 'ErrnoException'
return ThrowException(Exception::Error(String::New(
^~~~~~~~~~~~~~
ErrnoException
../dtrace_provider.cc:176:36: error: request for member 'Holder' in 'args', which is of non-class type 'const int'
Handle<Object> provider = args.Holder();
^~~~~~
../dtrace_provider.cc:177:68: error: invalid types 'const int[int]' for array subscript
Handle<Object> probe = Local<Object>::Cast(provider->Get(args[0]));
^
../dtrace_provider.cc:181:24: error: too few arguments to function 'v8::Local<v8::Primitive> v8::Undefined(v8::Isolate*)'
return Undefined();
^
In file included from /home/jonran/.cache/node-gyp/8.17.0/include/node/node.h:63:0,
from ../dtrace_provider.h:1,
from ../dtrace_provider.cc:1:
/home/jonran/.cache/node-gyp/8.17.0/include/node/v8.h:314:27: note: declared here
friend Local<Primitive> Undefined(Isolate* isolate);
^~~~~~~~~
../dtrace_provider.cc:183:20: error: invalid types 'const int[int]' for array subscript
p->_fire(args[1]);
^
../dtrace_provider.cc:185:17: error: too few arguments to function 'v8::Local<v8::Boolean> v8::True(v8::Isolate*)'
return True();
^
In file included from /home/jonran/.cache/node-gyp/8.17.0/include/node/node.h:63:0,
from ../dtrace_provider.h:1,
from ../dtrace_provider.cc:1:
/home/jonran/.cache/node-gyp/8.17.0/include/node/v8.h:10218:16: note: declared here
Local<Boolean> True(Isolate* isolate) {
^~~~
In file included from ../dtrace_provider.h:2:0,
from ../dtrace_provider.cc:1:
/home/jonran/.cache/node-gyp/8.17.0/include/node/node_object_wrap.h: In instantiation of 'static T* node::ObjectWrap::Unwrap(v8::Local<v8::Object>) [with T = node::DTraceProvider]':
../dtrace_provider.cc:85:70: required from here
/home/jonran/.cache/node-gyp/8.17.0/include/node/node_object_wrap.h:55:12: error: 'node::ObjectWrap' is an inaccessible base of 'node::DTraceProvider'
return static_cast<T*>(wrap);
^~~~~~~~~~~~~~~~~~~~~
/home/jonran/.cache/node-gyp/8.17.0/include/node/node_object_wrap.h: In instantiation of 'static T* node::ObjectWrap::Unwrap(v8::Local<v8::Object>) [with T = node::DTraceProbe]':
../dtrace_provider.cc:92:72: required from here
/home/jonran/.cache/node-gyp/8.17.0/include/node/node_object_wrap.h:55:12: error: 'node::ObjectWrap' is an inaccessible base of 'node::DTraceProbe'
make[1]: *** [DTraceProviderBindings.target.mk:106: Release/obj.target/DTraceProviderBindings/dtrace_provider.o] Error 1
make[1]: Leaving directory '/home/jonran/repos/binder/node_modules/ldapjs/node_modules/dtrace-provider/build'
gyp ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/home/jonran/repos/binder/build/node/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:194:23)
gyp ERR! stack at emitTwo (events.js:126:13)
gyp ERR! stack at ChildProcess.emit (events.js:214:7)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:198:12)
gyp ERR! System SunOS 5.11
gyp ERR! command "/home/jonran/repos/binder/build/node/bin/node" "/home/jonran/repos/binder/build/node/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /home/jonran/repos/binder/node_modules/ldapjs/node_modules/dtrace-provider
gyp ERR! node -v v8.17.0
gyp ERR! node-gyp -v v5.0.5
gyp ERR! not ok
> libuuid@0.1.4 install /home/jonran/repos/binder/node_modules/libuuid
> node-gyp rebuild
make[1]: Entering directory '/home/jonran/repos/binder/node_modules/libuuid/build'
g++ '-DNODE_GYP_MODULE_NAME=uuid' '-DUSING_UV_SHARED=1' '-DUSING_V8_SHARED=1' '-DV8_DEPRECATION_WARNINGS=1' '-D_LARGEFILE_SOURCE' '-D_FILE_OFFSET_BITS=64' '-DBUILDING_NODE_EXTENSION' -I/home/jonran/.cache/node-gyp/8.17.0/include/node -I/home/jonran/.cache/node-gyp/8.17.0/src -I/home/jonran/.cache/node-gyp/8.17.0/deps/openssl/config -I/home/jonran/.cache/node-gyp/8.17.0/deps/openssl/openssl/include -I/home/jonran/.cache/node-gyp/8.17.0/deps/uv/include -I/home/jonran/.cache/node-gyp/8.17.0/deps/zlib -I/home/jonran/.cache/node-gyp/8.17.0/deps/v8/include -I../node_modules/nan -fPIC -Wall -Wextra -Wno-unused-parameter -m64 -pthreads -O3 -fno-omit-frame-pointer -fno-rtti -fno-exceptions -std=gnu++0x -MMD -MF ./Release/.deps/Release/obj.target/uuid/src/uuid.o.d.raw -c -o Release/obj.target/uuid/src/uuid.o ../src/uuid.cc
In file included from ../node_modules/nan/nan.h:82:0,
from ../src/uuid.cc:3:
../node_modules/nan/nan_new.h: In function 'v8::Local<T> NanIntern::To(v8::Handle<v8::Integer>) [with T = v8::Int32; v8::Handle<v8::Integer> = v8::Local<v8::Integer>]':
../node_modules/nan/nan_new.h:34:64: warning: 'v8::Local<v8::Int32> v8::Value::ToInt32() const' is deprecated: Use maybe version [-Wdeprecated-declarations]
To<v8::Int32>(v8::Handle<v8::Integer> i) { return i->ToInt32(); }
^
In file included from ../src/uuid.cc:1:0:
/home/jonran/.cache/node-gyp/8.17.0/include/node/v8.h:9864:14: note: declared here
Local<Int32> Value::ToInt32() const {
^~~~~
In file included from ../node_modules/nan/nan.h:82:0,
from ../src/uuid.cc:3:
../node_modules/nan/nan_new.h: In function 'v8::Local<T> NanIntern::To(v8::Handle<v8::Integer>) [with T = v8::Uint32; v8::Handle<v8::Integer> = v8::Local<v8::Integer>]':
../node_modules/nan/nan_new.h:39:65: warning: 'v8::Local<v8::Uint32> v8::Value::ToUint32() const' is deprecated: Use maybe version [-Wdeprecated-declarations]
To<v8::Uint32>(v8::Handle<v8::Integer> i) { return i->ToUint32(); }
^
In file included from ../src/uuid.cc:1:0:
/home/jonran/.cache/node-gyp/8.17.0/include/node/v8.h:9858:15: note: declared here
Local<Uint32> Value::ToUint32() const {
^~~~~
In file included from ../node_modules/nan/nan_new.h:189:0,
from ../node_modules/nan/nan.h:82,
from ../src/uuid.cc:3:
../node_modules/nan/nan_implementation_12_inl.h: In static member function 'static NanIntern::FactoryBase<v8::BooleanObject>::return_t NanIntern::Factory<v8::BooleanObject>::New(bool)':
../node_modules/nan/nan_implementation_12_inl.h:49:38: warning: 'static v8::Local<v8::Value> v8::BooleanObject::New(bool)' is deprecated: Pass an isolate [-Wdeprecated-declarations]
return v8::BooleanObject::New(value).As<v8::BooleanObject>();
^
In file included from /home/jonran/.cache/node-gyp/8.17.0/include/node/v8.h:26:0,
from ../src/uuid.cc:1:
/home/jonran/.cache/node-gyp/8.17.0/include/node/v8.h:4895:56: note: declared here
V8_DEPRECATED("Pass an isolate", static Local<Value> New(bool value));
^
/home/jonran/.cache/node-gyp/8.17.0/include/node/v8config.h:318:3: note: in definition of macro 'V8_DEPRECATED'
declarator __attribute__((deprecated(message)))
^~~~~~~~~~
In file included from ../node_modules/nan/nan_new.h:189:0,
from ../node_modules/nan/nan.h:82,
from ../src/uuid.cc:3:
../node_modules/nan/nan_implementation_12_inl.h: In static member function 'static NanIntern::FactoryBase<v8::Script>::return_t NanIntern::Factory<v8::Script>::New(v8::Local<v8::String>)':
../node_modules/nan/nan_implementation_12_inl.h:166:69: warning: 'static v8::Local<v8::Script> v8::ScriptCompiler::Compile(v8::Isolate*, v8::ScriptCompiler::Source*, v8::ScriptCompiler::CompileOptions)' is deprecated: Use maybe version [-Wdeprecated-declarations]
return v8::ScriptCompiler::Compile(v8::Isolate::GetCurrent(), &src);
^
In file included from /home/jonran/.cache/node-gyp/8.17.0/include/node/v8.h:26:0,
from ../src/uuid.cc:1:
/home/jonran/.cache/node-gyp/8.17.0/include/node/v8.h:1475:21: note: declared here
Local<Script> Compile(Isolate* isolate, Source* source,
^
/home/jonran/.cache/node-gyp/8.17.0/include/node/v8config.h:318:3: note: in definition of macro 'V8_DEPRECATED'
declarator __attribute__((deprecated(message)))
^~~~~~~~~~
In file included from ../node_modules/nan/nan_new.h:189:0,
from ../node_modules/nan/nan.h:82,
from ../src/uuid.cc:3:
../node_modules/nan/nan_implementation_12_inl.h: In static member function 'static NanIntern::FactoryBase<v8::Script>::return_t NanIntern::Factory<v8::Script>::New(v8::Local<v8::String>, const v8::ScriptOrigin&)':
../node_modules/nan/nan_implementation_12_inl.h:173:69: warning: 'static v8::Local<v8::Script> v8::ScriptCompiler::Compile(v8::Isolate*, v8::ScriptCompiler::Source*, v8::ScriptCompiler::CompileOptions)' is deprecated: Use maybe version [-Wdeprecated-declarations]
return v8::ScriptCompiler::Compile(v8::Isolate::GetCurrent(), &src);
^
In file included from /home/jonran/.cache/node-gyp/8.17.0/include/node/v8.h:26:0,
from ../src/uuid.cc:1:
/home/jonran/.cache/node-gyp/8.17.0/include/node/v8.h:1475:21: note: declared here
Local<Script> Compile(Isolate* isolate, Source* source,
^
/home/jonran/.cache/node-gyp/8.17.0/include/node/v8config.h:318:3: note: in definition of macro 'V8_DEPRECATED'
declarator __attribute__((deprecated(message)))
^~~~~~~~~~
In file included from ../node_modules/nan/nan_new.h:189:0,
from ../node_modules/nan/nan.h:82,
from ../src/uuid.cc:3:
../node_modules/nan/nan_implementation_12_inl.h: In static member function 'static NanIntern::FactoryBase<v8::String>::return_t NanIntern::Factory<v8::String>::New(const uint8_t*, int)':
../node_modules/nan/nan_implementation_12_inl.h:206:42: warning: 'static v8::Local<v8::String> v8::String::NewFromOneByte(v8::Isolate*, const uint8_t*, v8::String::NewStringType, int)' is deprecated: Use maybe version [-Wdeprecated-declarations]
v8::String::kNormalString, length);
^
In file included from /home/jonran/.cache/node-gyp/8.17.0/include/node/v8.h:26:0,
from ../src/uuid.cc:1:
/home/jonran/.cache/node-gyp/8.17.0/include/node/v8.h:2731:21: note: declared here
Local<String> NewFromOneByte(Isolate* isolate, const uint8_t* data,
^
/home/jonran/.cache/node-gyp/8.17.0/include/node/v8config.h:318:3: note: in definition of macro 'V8_DEPRECATED'
declarator __attribute__((deprecated(message)))
^~~~~~~~~~
In file included from ../node_modules/nan/nan_new.h:189:0,
from ../node_modules/nan/nan.h:82,
from ../src/uuid.cc:3:
../node_modules/nan/nan_implementation_12_inl.h: In static member function 'static NanIntern::FactoryBase<v8::String>::return_t NanIntern::Factory<v8::String>::New(v8::String::ExternalStringResource*)':
../node_modules/nan/nan_implementation_12_inl.h:217:66: warning: 'static v8::Local<v8::String> v8::String::NewExternal(v8::Isolate*, v8::String::ExternalStringResource*)' is deprecated: Use maybe version [-Wdeprecated-declarations]
return v8::String::NewExternal(v8::Isolate::GetCurrent(), value);
^
In file included from /home/jonran/.cache/node-gyp/8.17.0/include/node/v8.h:26:0,
from ../src/uuid.cc:1:
/home/jonran/.cache/node-gyp/8.17.0/include/node/v8.h:2769:38: note: declared here
Local<String> NewExternal(
^
/home/jonran/.cache/node-gyp/8.17.0/include/node/v8config.h:318:3: note: in definition of macro 'V8_DEPRECATED'
declarator __attribute__((deprecated(message)))
^~~~~~~~~~
In file included from ../node_modules/nan/nan_new.h:189:0,
from ../node_modules/nan/nan.h:82,
from ../src/uuid.cc:3:
../node_modules/nan/nan_implementation_12_inl.h: In static member function 'static NanIntern::FactoryBase<v8::UnboundScript>::return_t NanIntern::Factory<v8::UnboundScript>::New(v8::Local<v8::String>)':
../node_modules/nan/nan_implementation_12_inl.h:237:30: warning: 'static v8::Local<v8::UnboundScript> v8::ScriptCompiler::CompileUnbound(v8::Isolate*, v8::ScriptCompiler::Source*, v8::ScriptCompiler::CompileOptions)' is deprecated: Use maybe version [-Wdeprecated-declarations]
return v8::ScriptCompiler::CompileUnbound(v8::Isolate::GetCurrent(), &src);
^~~~~~~~~~~~~~
In file included from /home/jonran/.cache/node-gyp/8.17.0/include/node/v8.h:26:0,
from ../src/uuid.cc:1:
/home/jonran/.cache/node-gyp/8.17.0/include/node/v8.h:1455:45: note: declared here
Local<UnboundScript> CompileUnbound(
^
/home/jonran/.cache/node-gyp/8.17.0/include/node/v8config.h:318:3: note: in definition of macro 'V8_DEPRECATED'
declarator __attribute__((deprecated(message)))
^~~~~~~~~~
In file included from ../node_modules/nan/nan_new.h:189:0,
from ../node_modules/nan/nan.h:82,
from ../src/uuid.cc:3:
../node_modules/nan/nan_implementation_12_inl.h:237:76: warning: 'static v8::Local<v8::UnboundScript> v8::ScriptCompiler::CompileUnbound(v8::Isolate*, v8::ScriptCompiler::Source*, v8::ScriptCompiler::CompileOptions)' is deprecated: Use maybe version [-Wdeprecated-declarations]
return v8::ScriptCompiler::CompileUnbound(v8::Isolate::GetCurrent(), &src);
^
In file included from /home/jonran/.cache/node-gyp/8.17.0/include/node/v8.h:26:0,
from ../src/uuid.cc:1:
/home/jonran/.cache/node-gyp/8.17.0/include/node/v8.h:1455:45: note: declared here
Local<UnboundScript> CompileUnbound(
^
/home/jonran/.cache/node-gyp/8.17.0/include/node/v8config.h:318:3: note: in definition of macro 'V8_DEPRECATED'
declarator __attribute__((deprecated(message)))
^~~~~~~~~~
In file included from ../node_modules/nan/nan_new.h:189:0,
from ../node_modules/nan/nan.h:82,
from ../src/uuid.cc:3:
../node_modules/nan/nan_implementation_12_inl.h: In static member function 'static NanIntern::FactoryBase<v8::UnboundScript>::return_t NanIntern::Factory<v8::UnboundScript>::New(v8::Local<v8::String>, const v8::ScriptOrigin&)':
../node_modules/nan/nan_implementation_12_inl.h:244:30: warning: 'static v8::Local<v8::UnboundScript> v8::ScriptCompiler::CompileUnbound(v8::Isolate*, v8::ScriptCompiler::Source*, v8::ScriptCompiler::CompileOptions)' is deprecated: Use maybe version [-Wdeprecated-declarations]
return v8::ScriptCompiler::CompileUnbound(v8::Isolate::GetCurrent(), &src);
^~~~~~~~~~~~~~
In file included from /home/jonran/.cache/node-gyp/8.17.0/include/node/v8.h:26:0,
from ../src/uuid.cc:1:
/home/jonran/.cache/node-gyp/8.17.0/include/node/v8.h:1455:45: note: declared here
Local<UnboundScript> CompileUnbound(
^
/home/jonran/.cache/node-gyp/8.17.0/include/node/v8config.h:318:3: note: in definition of macro 'V8_DEPRECATED'
declarator __attribute__((deprecated(message)))
^~~~~~~~~~
In file included from ../node_modules/nan/nan_new.h:189:0,
from ../node_modules/nan/nan.h:82,
from ../src/uuid.cc:3:
../node_modules/nan/nan_implementation_12_inl.h:244:76: warning: 'static v8::Local<v8::UnboundScript> v8::ScriptCompiler::CompileUnbound(v8::Isolate*, v8::ScriptCompiler::Source*, v8::ScriptCompiler::CompileOptions)' is deprecated: Use maybe version [-Wdeprecated-declarations]
return v8::ScriptCompiler::CompileUnbound(v8::Isolate::GetCurrent(), &src);
^
In file included from /home/jonran/.cache/node-gyp/8.17.0/include/node/v8.h:26:0,
from ../src/uuid.cc:1:
/home/jonran/.cache/node-gyp/8.17.0/include/node/v8.h:1455:45: note: declared here
Local<UnboundScript> CompileUnbound(
^
/home/jonran/.cache/node-gyp/8.17.0/include/node/v8config.h:318:3: note: in definition of macro 'V8_DEPRECATED'
declarator __attribute__((deprecated(message)))
^~~~~~~~~~
In file included from ../src/uuid.cc:3:0:
../node_modules/nan/nan.h: At global scope:
../node_modules/nan/nan.h:261:25: error: redefinition of 'template<class T> v8::Local<T> _NanEnsureLocal(v8::Local<T>)'
NAN_INLINE v8::Local<T> _NanEnsureLocal(v8::Local<T> val) {
^~~~~~~~~~~~~~~
../node_modules/nan/nan.h:256:25: note: 'template<class T> v8::Local<T> _NanEnsureLocal(v8::Handle<T>)' previously declared here
NAN_INLINE v8::Local<T> _NanEnsureLocal(v8::Handle<T> val) {
^~~~~~~~~~~~~~~
../node_modules/nan/nan.h: In function 'bool NanIdleNotification(int)':
../node_modules/nan/nan.h:289:71: warning: 'bool v8::Isolate::IdleNotification(int)' is deprecated: use IdleNotificationDeadline() [-Wdeprecated-declarations]
return v8::Isolate::GetCurrent()->IdleNotification(idle_time_in_ms);
^
In file included from /home/jonran/.cache/node-gyp/8.17.0/include/node/v8.h:26:0,
from ../src/uuid.cc:1:
/home/jonran/.cache/node-gyp/8.17.0/include/node/v8.h:7539:22: note: declared here
bool IdleNotification(int idle_time_in_ms));
^
/home/jonran/.cache/node-gyp/8.17.0/include/node/v8config.h:318:3: note: in definition of macro 'V8_DEPRECATED'
declarator __attribute__((deprecated(message)))
^~~~~~~~~~
In file included from ../src/uuid.cc:3:0:
../node_modules/nan/nan.h: At global scope:
../node_modules/nan/nan.h:473:20: error: variable or field 'NanAddGCEpilogueCallback' declared void
v8::Isolate::GCEpilogueCallback callback
^~~~~~~~~~~~~~~~~~
../node_modules/nan/nan.h:473:20: error: 'GCEpilogueCallback' is not a member of 'v8::Isolate'
../node_modules/nan/nan.h:474:18: error: expected primary-expression before 'gc_type_filter'
, v8::GCType gc_type_filter = v8::kGCTypeAll) {
^~~~~~~~~~~~~~
../node_modules/nan/nan.h:479:20: error: variable or field 'NanRemoveGCEpilogueCallback' declared void
v8::Isolate::GCEpilogueCallback callback) {
^~~~~~~~~~~~~~~~~~
../node_modules/nan/nan.h:479:20: error: 'GCEpilogueCallback' is not a member of 'v8::Isolate'
../node_modules/nan/nan.h:484:20: error: variable or field 'NanAddGCPrologueCallback' declared void
v8::Isolate::GCPrologueCallback callback
^~~~~~~~~~~~~~~~~~
../node_modules/nan/nan.h:484:20: error: 'GCPrologueCallback' is not a member of 'v8::Isolate'
../node_modules/nan/nan.h:485:18: error: expected primary-expression before 'gc_type_filter'
, v8::GCType gc_type_filter = v8::kGCTypeAll) {
^~~~~~~~~~~~~~
../node_modules/nan/nan.h:490:20: error: variable or field 'NanRemoveGCPrologueCallback' declared void
v8::Isolate::GCPrologueCallback callback) {
^~~~~~~~~~~~~~~~~~
../node_modules/nan/nan.h:490:20: error: 'GCPrologueCallback' is not a member of 'v8::Isolate'
../node_modules/nan/nan.h:569:15: error: 'WeakCallbackData' in namespace 'v8' does not name a template type
const v8::WeakCallbackData<T, _NanWeakCallbackInfo<T, P> > &data) {
^~~~~~~~~~~~~~~~
../node_modules/nan/nan.h:569:31: error: expected ',' or '...' before '<' token
const v8::WeakCallbackData<T, _NanWeakCallbackInfo<T, P> > &data) {
^
../node_modules/nan/nan.h: In function 'void _NanWeakCallbackDispatcher(int)':
../node_modules/nan/nan.h:570:42: error: 'data' was not declared in this scope
_NanWeakCallbackInfo<T, P> *info = data.GetParameter();
^~~~
../node_modules/nan/nan.h: At global scope:
../node_modules/nan/nan.h:661:13: error: 'node::smalloc' has not been declared
, node::smalloc::FreeCallback callback
^~~~~~~
../node_modules/nan/nan.h:661:35: error: expected ',' or '...' before 'callback'
, node::smalloc::FreeCallback callback
^~~~~~~~
../node_modules/nan/nan.h: In function 'v8::Local<v8::Object> NanNewBufferHandle(char*, size_t, int)':
../node_modules/nan/nan.h:665:50: error: 'callback' was not declared in this scope
v8::Isolate::GetCurrent(), data, length, callback, hint);
^~~~~~~~
../node_modules/nan/nan.h:665:50: note: suggested alternative: 'valloc'
v8::Isolate::GetCurrent(), data, length, callback, hint);
^~~~~~~~
valloc
../node_modules/nan/nan.h:665:60: error: 'hint' was not declared in this scope
v8::Isolate::GetCurrent(), data, length, callback, hint);
^~~~
../node_modules/nan/nan.h:665:60: note: suggested alternative: 'uint'
v8::Isolate::GetCurrent(), data, length, callback, hint);
^~~~
uint
../node_modules/nan/nan.h: In function 'v8::Local<v8::Object> NanNewBufferHandle(const char*, uint32_t)':
../node_modules/nan/nan.h:672:67: error: invalid conversion from 'const char*' to 'char*' [-fpermissive]
return node::Buffer::New(v8::Isolate::GetCurrent(), data, size);
^
In file included from ../node_modules/nan/nan.h:25:0,
from ../src/uuid.cc:3:
/home/jonran/.cache/node-gyp/8.17.0/include/node/node_buffer.h:67:40: note: initializing argument 2 of 'v8::MaybeLocal<v8::Object> node::Buffer::New(v8::Isolate*, char*, size_t)'
NODE_EXTERN v8::MaybeLocal<v8::Object> New(v8::Isolate* isolate,
^~~
In file included from ../src/uuid.cc:3:0:
../node_modules/nan/nan.h:672:29: error: could not convert 'node::Buffer::New(v8::Isolate::GetCurrent(), ((char*)data), ((size_t)size))' from 'v8::MaybeLocal<v8::Object>' to 'v8::Local<v8::Object>'
return node::Buffer::New(v8::Isolate::GetCurrent(), data, size);
~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../node_modules/nan/nan.h: In function 'v8::Local<v8::Object> NanNewBufferHandle(uint32_t)':
../node_modules/nan/nan.h:676:29: error: could not convert 'node::Buffer::New(v8::Isolate::GetCurrent(), ((size_t)size))' from 'v8::MaybeLocal<v8::Object>' to 'v8::Local<v8::Object>'
return node::Buffer::New(v8::Isolate::GetCurrent(), size);
~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../node_modules/nan/nan.h: In function 'v8::Local<v8::Object> NanBufferUse(char*, uint32_t)':
../node_modules/nan/nan.h:683:26: error: 'Use' is not a member of 'node::Buffer'
return node::Buffer::Use(v8::Isolate::GetCurrent(), data, size);
^~~
../node_modules/nan/nan.h: In function 'v8::Local<v8::Script> NanCompileScript(v8::Local<v8::String>, const v8::ScriptOrigin&)':
../node_modules/nan/nan.h:710:74: warning: 'static v8::Local<v8::Script> v8::ScriptCompiler::Compile(v8::Isolate*, v8::ScriptCompiler::Source*, v8::ScriptCompiler::CompileOptions)' is deprecated: Use maybe version [-Wdeprecated-declarations]
return v8::ScriptCompiler::Compile(v8::Isolate::GetCurrent(), &source);
^
In file included from /home/jonran/.cache/node-gyp/8.17.0/include/node/v8.h:26:0,
from ../src/uuid.cc:1:
/home/jonran/.cache/node-gyp/8.17.0/include/node/v8.h:1475:21: note: declared here
Local<Script> Compile(Isolate* isolate, Source* source,
^
/home/jonran/.cache/node-gyp/8.17.0/include/node/v8config.h:318:3: note: in definition of macro 'V8_DEPRECATED'
declarator __attribute__((deprecated(message)))
^~~~~~~~~~
In file included from ../src/uuid.cc:3:0:
../node_modules/nan/nan.h: In function 'v8::Local<v8::Script> NanCompileScript(v8::Local<v8::String>)':
../node_modules/nan/nan.h:717:74: warning: 'static v8::Local<v8::Script> v8::ScriptCompiler::Compile(v8::Isolate*, v8::ScriptCompiler::Source*, v8::ScriptCompiler::CompileOptions)' is deprecated: Use maybe version [-Wdeprecated-declarations]
return v8::ScriptCompiler::Compile(v8::Isolate::GetCurrent(), &source);
^
In file included from /home/jonran/.cache/node-gyp/8.17.0/include/node/v8.h:26:0,
from ../src/uuid.cc:1:
/home/jonran/.cache/node-gyp/8.17.0/include/node/v8.h:1475:21: note: declared here
Local<Script> Compile(Isolate* isolate, Source* source,
^
/home/jonran/.cache/node-gyp/8.17.0/include/node/v8config.h:318:3: note: in definition of macro 'V8_DEPRECATED'
declarator __attribute__((deprecated(message)))
^~~~~~~~~~
make[1]: *** [uuid.target.mk:101: Release/obj.target/uuid/src/uuid.o] Error 1
make[1]: Leaving directory '/home/jonran/repos/binder/node_modules/libuuid/build'
gyp ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/home/jonran/repos/binder/build/node/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:194:23)
gyp ERR! stack at emitTwo (events.js:126:13)
gyp ERR! stack at ChildProcess.emit (events.js:214:7)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:198:12)
gyp ERR! System SunOS 5.11
gyp ERR! command "/home/jonran/repos/binder/build/node/bin/node" "/home/jonran/repos/binder/build/node/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment