make: Entering directory '/var/www/pauldent.cz/node_modules/uws/build' CXX(target) Release/obj.target/uws/src/Extensions.o CXX(target) Release/obj.target/uws/src/Group.o CXX(target) Release/obj.target/uws/src/Networking.o CXX(target) Release/obj.target/uws/src/Hub.o CXX(target) Release/obj.target/uws/src/Node.o CXX(target) Release/obj.target/uws/src/WebSocket.o CXX(target) Release/obj.target/uws/src/HTTPSocket.o CXX(target) Release/obj.target/uws/src/Socket.o CXX(target) Release/obj.target/uws/src/addon.o In file included from ../src/addon.cpp:2:0: ../src/addon.h: In lambda function: ../src/addon.h:21:124: warning: 'v8::Local node::MakeCallback(v8::Isolate*, v8::Local, v8::Local, int, v8::Local*)' is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations] node::MakeCallback(isolate, isolate->GetCurrentContext()->Global(), Local::New(isolate, noop), 0, nullptr); ^ In file included from ../src/addon.h:1:0, from ../src/addon.cpp:2: /root/.cache/node-gyp/12.18.0/include/node/node.h:182:50: note: declared here NODE_EXTERN v8::Local MakeCallback( ^ /root/.cache/node-gyp/12.18.0/include/node/node.h:101:42: note: in definition of macro 'NODE_DEPRECATED' __attribute__((deprecated(message))) declarator ^~~~~~~~~~ In file included from ../src/addon.cpp:2:0: ../src/addon.h: In constructor 'NativeString::NativeString(const v8::Local&)': ../src/addon.h:37:70: error: no matching function for call to 'v8::String::Utf8Value::Utf8Value(const v8::Local&)' utf8Value = new (utf8ValueMemory) String::Utf8Value(value); ^ In file included from /root/.cache/node-gyp/12.18.0/include/node/node.h:67:0, from ../src/addon.h:1, from ../src/addon.cpp:2: /root/.cache/node-gyp/12.18.0/include/node/v8.h:3135:5: note: candidate: v8::String::Utf8Value::Utf8Value(v8::Isolate*, v8::Local) Utf8Value(Isolate* isolate, Local obj); ^~~~~~~~~ /root/.cache/node-gyp/12.18.0/include/node/v8.h:3135:5: note: candidate expects 2 arguments, 1 provided In file included from ../src/addon.cpp:2:0: ../src/addon.h: In function 'void createGroup(const v8::FunctionCallbackInfo&)': ../src/addon.h:79:83: error: no matching function for call to 'v8::Value::IntegerValue()' uWS::Group *group = hub.createGroup(args[0]->IntegerValue(), args[1]->IntegerValue()); ^ In file included from /root/.cache/node-gyp/12.18.0/include/node/node.h:67:0, from ../src/addon.h:1, from ../src/addon.cpp:2: /root/.cache/node-gyp/12.18.0/include/node/v8.h:2705:40: note: candidate: v8::Maybe v8::Value::IntegerValue(v8::Local) const V8_WARN_UNUSED_RESULT Maybe IntegerValue( ^~~~~~~~~~~~ /root/.cache/node-gyp/12.18.0/include/node/v8.h:2705:40: note: candidate expects 1 argument, 0 provided In file included from ../src/addon.cpp:2:0: ../src/addon.h:79:108: error: no matching function for call to 'v8::Value::IntegerValue()' uWS::Group *group = hub.createGroup(args[0]->IntegerValue(), args[1]->IntegerValue()); ^ In file included from /root/.cache/node-gyp/12.18.0/include/node/node.h:67:0, from ../src/addon.h:1, from ../src/addon.cpp:2: /root/.cache/node-gyp/12.18.0/include/node/v8.h:2705:40: note: candidate: v8::Maybe v8::Value::IntegerValue(v8::Local) const V8_WARN_UNUSED_RESULT Maybe IntegerValue( ^~~~~~~~~~~~ /root/.cache/node-gyp/12.18.0/include/node/v8.h:2705:40: note: candidate expects 1 argument, 0 provided In file included from ../src/addon.cpp:2:0: ../src/addon.h: In function 'v8::Local wrapMessage(const char*, size_t, uWS::OpCode, v8::Isolate*)': ../src/addon.h:102:195: warning: 'static v8::Local v8::String::NewFromUtf8(v8::Isolate*, const char*, v8::String::NewStringType, int)' is deprecated: Use maybe version [-Wdeprecated-declarations] return opCode == uWS::OpCode::BINARY ? (Local) ArrayBuffer::New(isolate, (char *) message, length) : (Local) String::NewFromUtf8(isolate, message, String::kNormalString, length); ^ In file included from /root/.cache/node-gyp/12.18.0/include/node/v8-internal.h:14:0, from /root/.cache/node-gyp/12.18.0/include/node/v8.h:27, from /root/.cache/node-gyp/12.18.0/include/node/node.h:67, from ../src/addon.h:1, from ../src/addon.cpp:2: /root/.cache/node-gyp/12.18.0/include/node/v8.h:3032:21: note: declared here Local NewFromUtf8(Isolate* isolate, const char* data, ^ /root/.cache/node-gyp/12.18.0/include/node/v8config.h:328:3: note: in definition of macro 'V8_DEPRECATED' declarator __attribute__((deprecated(message))) ^~~~~~~~~~ In file included from ../src/addon.cpp:2:0: ../src/addon.h: In function 'void send(const v8::FunctionCallbackInfo&)': ../src/addon.h:172:62: error: no matching function for call to 'v8::Value::IntegerValue()' uWS::OpCode opCode = (uWS::OpCode) args[2]->IntegerValue(); ^ In file included from /root/.cache/node-gyp/12.18.0/include/node/node.h:67:0, from ../src/addon.h:1, from ../src/addon.cpp:2: /root/.cache/node-gyp/12.18.0/include/node/v8.h:2705:40: note: candidate: v8::Maybe v8::Value::IntegerValue(v8::Local) const V8_WARN_UNUSED_RESULT Maybe IntegerValue( ^~~~~~~~~~~~ /root/.cache/node-gyp/12.18.0/include/node/v8.h:2705:40: note: candidate expects 1 argument, 0 provided In file included from ../src/addon.cpp:2:0: ../src/addon.h:185:43: error: no matching function for call to 'v8::Value::BooleanValue()' bool compress = args[4]->BooleanValue(); ^ In file included from /root/.cache/node-gyp/12.18.0/include/node/node.h:67:0, from ../src/addon.h:1, from ../src/addon.cpp:2: /root/.cache/node-gyp/12.18.0/include/node/v8.h:2699:8: note: candidate: bool v8::Value::BooleanValue(v8::Isolate*) const bool BooleanValue(Isolate* isolate) const; ^~~~~~~~~~~~ /root/.cache/node-gyp/12.18.0/include/node/v8.h:2699:8: note: candidate expects 1 argument, 0 provided In file included from /root/.cache/node-gyp/12.18.0/include/node/v8-internal.h:14:0, from /root/.cache/node-gyp/12.18.0/include/node/v8.h:27, from /root/.cache/node-gyp/12.18.0/include/node/node.h:67, from ../src/addon.h:1, from ../src/addon.cpp:2: /root/.cache/node-gyp/12.18.0/include/node/v8.h:2702:51: note: candidate: v8::Maybe v8::Value::BooleanValue(v8::Local) const V8_WARN_UNUSED_RESULT Maybe BooleanValue( ^ /root/.cache/node-gyp/12.18.0/include/node/v8config.h:328:3: note: in definition of macro 'V8_DEPRECATED' declarator __attribute__((deprecated(message))) ^~~~~~~~~~ /root/.cache/node-gyp/12.18.0/include/node/v8.h:2702:51: note: candidate expects 1 argument, 0 provided V8_WARN_UNUSED_RESULT Maybe BooleanValue( ^ /root/.cache/node-gyp/12.18.0/include/node/v8config.h:328:3: note: in definition of macro 'V8_DEPRECATED' declarator __attribute__((deprecated(message))) ^~~~~~~~~~ In file included from ../src/addon.cpp:2:0: ../src/addon.h: In function 'void transfer(const v8::FunctionCallbackInfo&)': ../src/addon.h:225:60: error: no matching function for call to 'v8::Value::ToObject()' uv_fileno((handle = getTcpHandle(args[0]->ToObject()->GetAlignedPointerFromInternalField(0))), (uv_os_fd_t *) &ticket->fd); ^ In file included from /root/.cache/node-gyp/12.18.0/include/node/node.h:67:0, from ../src/addon.h:1, from ../src/addon.cpp:2: /root/.cache/node-gyp/12.18.0/include/node/v8.h:2672:44: note: candidate: v8::MaybeLocal v8::Value::ToObject(v8::Local) const V8_WARN_UNUSED_RESULT MaybeLocal ToObject( ^~~~~~~~ /root/.cache/node-gyp/12.18.0/include/node/v8.h:2672:44: note: candidate expects 1 argument, 0 provided In file included from /root/.cache/node-gyp/12.18.0/include/node/v8-internal.h:14:0, from /root/.cache/node-gyp/12.18.0/include/node/v8.h:27, from /root/.cache/node-gyp/12.18.0/include/node/node.h:67, from ../src/addon.h:1, from ../src/addon.cpp:2: /root/.cache/node-gyp/12.18.0/include/node/v8.h:2686:31: note: candidate: v8::Local v8::Value::ToObject(v8::Isolate*) const Local ToObject(Isolate* isolate) const); ^ /root/.cache/node-gyp/12.18.0/include/node/v8config.h:328:3: note: in definition of macro 'V8_DEPRECATED' declarator __attribute__((deprecated(message))) ^~~~~~~~~~ /root/.cache/node-gyp/12.18.0/include/node/v8.h:2686:31: note: candidate expects 1 argument, 0 provided Local ToObject(Isolate* isolate) const); ^ /root/.cache/node-gyp/12.18.0/include/node/v8config.h:328:3: note: in definition of macro 'V8_DEPRECATED' declarator __attribute__((deprecated(message))) ^~~~~~~~~~ In file included from ../src/addon.cpp:2:0: ../src/addon.h:227:44: error: no matching function for call to 'v8::Value::IntegerValue()' ticket->fd = args[0]->IntegerValue(); ^ In file included from /root/.cache/node-gyp/12.18.0/include/node/node.h:67:0, from ../src/addon.h:1, from ../src/addon.cpp:2: /root/.cache/node-gyp/12.18.0/include/node/v8.h:2705:40: note: candidate: v8::Maybe v8::Value::IntegerValue(v8::Local) const V8_WARN_UNUSED_RESULT Maybe IntegerValue( ^~~~~~~~~~~~ /root/.cache/node-gyp/12.18.0/include/node/v8.h:2705:40: note: candidate expects 1 argument, 0 provided In file included from ../src/addon.cpp:2:0: ../src/addon.h: In lambda function: ../src/addon.h:274:110: error: no matching function for call to 'v8::Function::Call(v8::Local, int, v8::Local [2])' Local::New(isolate, *messageCallback)->Call(isolate->GetCurrentContext()->Global(), 2, argv); ^ In file included from /root/.cache/node-gyp/12.18.0/include/node/node.h:67:0, from ../src/addon.h:1, from ../src/addon.cpp:2: /root/.cache/node-gyp/12.18.0/include/node/v8.h:4298:43: note: candidate: v8::MaybeLocal v8::Function::Call(v8::Local, v8::Local, int, v8::Local*) V8_WARN_UNUSED_RESULT MaybeLocal Call(Local context, ^~~~ /root/.cache/node-gyp/12.18.0/include/node/v8.h:4298:43: note: candidate expects 4 arguments, 3 provided In file included from ../src/addon.cpp:2:0: ../src/addon.h: In lambda function: ../src/addon.h:341:131: warning: 'v8::Local node::MakeCallback(v8::Isolate*, v8::Local, v8::Local, int, v8::Local*)' is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations] node::MakeCallback(isolate, isolate->GetCurrentContext()->Global(), Local::New(isolate, *errorCallback), 1, argv); ^ In file included from ../src/addon.h:1:0, from ../src/addon.cpp:2: /root/.cache/node-gyp/12.18.0/include/node/node.h:182:50: note: declared here NODE_EXTERN v8::Local MakeCallback( ^ /root/.cache/node-gyp/12.18.0/include/node/node.h:101:42: note: in definition of macro 'NODE_DEPRECATED' __attribute__((deprecated(message))) declarator ^~~~~~~~~~ In file included from ../src/addon.cpp:2:0: ../src/addon.h: In function 'void closeSocket(const v8::FunctionCallbackInfo&)': ../src/addon.h:351:81: error: no matching function for call to 'v8::Value::IntegerValue()' unwrapSocket(args[0].As())->close(args[1]->IntegerValue(), nativeString.getData(), nativeString.getLength()); ^ In file included from /root/.cache/node-gyp/12.18.0/include/node/node.h:67:0, from ../src/addon.h:1, from ../src/addon.cpp:2: /root/.cache/node-gyp/12.18.0/include/node/v8.h:2705:40: note: candidate: v8::Maybe v8::Value::IntegerValue(v8::Local) const V8_WARN_UNUSED_RESULT Maybe IntegerValue( ^~~~~~~~~~~~ /root/.cache/node-gyp/12.18.0/include/node/v8.h:2705:40: note: candidate expects 1 argument, 0 provided In file included from ../src/addon.cpp:2:0: ../src/addon.h: In function 'void closeGroup(const v8::FunctionCallbackInfo&)': ../src/addon.h:363:40: error: no matching function for call to 'v8::Value::IntegerValue()' group->close(args[1]->IntegerValue(), nativeString.getData(), nativeString.getLength()); ^ In file included from /root/.cache/node-gyp/12.18.0/include/node/node.h:67:0, from ../src/addon.h:1, from ../src/addon.cpp:2: /root/.cache/node-gyp/12.18.0/include/node/v8.h:2705:40: note: candidate: v8::Maybe v8::Value::IntegerValue(v8::Local) const V8_WARN_UNUSED_RESULT Maybe IntegerValue( ^~~~~~~~~~~~ /root/.cache/node-gyp/12.18.0/include/node/v8.h:2705:40: note: candidate expects 1 argument, 0 provided In file included from ../src/addon.cpp:2:0: ../src/addon.h: In function 'void broadcast(const v8::FunctionCallbackInfo&)': ../src/addon.h:374:48: error: no matching function for call to 'v8::Value::BooleanValue()' uWS::OpCode opCode = args[2]->BooleanValue() ? uWS::OpCode::BINARY : uWS::OpCode::TEXT; ^ In file included from /root/.cache/node-gyp/12.18.0/include/node/node.h:67:0, from ../src/addon.h:1, from ../src/addon.cpp:2: /root/.cache/node-gyp/12.18.0/include/node/v8.h:2699:8: note: candidate: bool v8::Value::BooleanValue(v8::Isolate*) const bool BooleanValue(Isolate* isolate) const; ^~~~~~~~~~~~ /root/.cache/node-gyp/12.18.0/include/node/v8.h:2699:8: note: candidate expects 1 argument, 0 provided In file included from /root/.cache/node-gyp/12.18.0/include/node/v8-internal.h:14:0, from /root/.cache/node-gyp/12.18.0/include/node/v8.h:27, from /root/.cache/node-gyp/12.18.0/include/node/node.h:67, from ../src/addon.h:1, from ../src/addon.cpp:2: /root/.cache/node-gyp/12.18.0/include/node/v8.h:2702:51: note: candidate: v8::Maybe v8::Value::BooleanValue(v8::Local) const V8_WARN_UNUSED_RESULT Maybe BooleanValue( ^ /root/.cache/node-gyp/12.18.0/include/node/v8config.h:328:3: note: in definition of macro 'V8_DEPRECATED' declarator __attribute__((deprecated(message))) ^~~~~~~~~~ /root/.cache/node-gyp/12.18.0/include/node/v8.h:2702:51: note: candidate expects 1 argument, 0 provided V8_WARN_UNUSED_RESULT Maybe BooleanValue( ^ /root/.cache/node-gyp/12.18.0/include/node/v8config.h:328:3: note: in definition of macro 'V8_DEPRECATED' declarator __attribute__((deprecated(message))) ^~~~~~~~~~ In file included from ../src/addon.cpp:2:0: ../src/addon.h: In function 'void prepareMessage(const v8::FunctionCallbackInfo&)': ../src/addon.h:381:62: error: no matching function for call to 'v8::Value::IntegerValue()' uWS::OpCode opCode = (uWS::OpCode) args[1]->IntegerValue(); ^ In file included from /root/.cache/node-gyp/12.18.0/include/node/node.h:67:0, from ../src/addon.h:1, from ../src/addon.cpp:2: /root/.cache/node-gyp/12.18.0/include/node/v8.h:2705:40: note: candidate: v8::Maybe v8::Value::IntegerValue(v8::Local) const V8_WARN_UNUSED_RESULT Maybe IntegerValue( ^~~~~~~~~~~~ /root/.cache/node-gyp/12.18.0/include/node/v8.h:2705:40: note: candidate expects 1 argument, 0 provided In file included from ../src/addon.cpp:2:0: ../src/addon.h: In lambda function: ../src/addon.h:405:40: error: no matching function for call to 'v8::Function::Call(v8::Local, int, v8::Local [1])' cb->Call(Null(isolate), 1, argv); ^ In file included from /root/.cache/node-gyp/12.18.0/include/node/node.h:67:0, from ../src/addon.h:1, from ../src/addon.cpp:2: /root/.cache/node-gyp/12.18.0/include/node/v8.h:4298:43: note: candidate: v8::MaybeLocal v8::Function::Call(v8::Local, v8::Local, int, v8::Local*) V8_WARN_UNUSED_RESULT MaybeLocal Call(Local context, ^~~~ /root/.cache/node-gyp/12.18.0/include/node/v8.h:4298:43: note: candidate expects 4 arguments, 3 provided In file included from ../src/addon.cpp:2:0: ../src/addon.h: In function 'void startAutoPing(const v8::FunctionCallbackInfo&)': ../src/addon.h:418:48: error: no matching function for call to 'v8::Value::IntegerValue()' group->startAutoPing(args[1]->IntegerValue(), std::string(nativeString.getData(), nativeString.getLength())); ^ In file included from /root/.cache/node-gyp/12.18.0/include/node/node.h:67:0, from ../src/addon.h:1, from ../src/addon.cpp:2: /root/.cache/node-gyp/12.18.0/include/node/v8.h:2705:40: note: candidate: v8::Maybe v8::Value::IntegerValue(v8::Local) const V8_WARN_UNUSED_RESULT Maybe IntegerValue( ^~~~~~~~~~~~ /root/.cache/node-gyp/12.18.0/include/node/v8.h:2705:40: note: candidate expects 1 argument, 0 provided In file included from ../src/addon.cpp:2:0: ../src/addon.h: In function 'void listen(const v8::FunctionCallbackInfo&)': ../src/addon.h:427:38: error: no matching function for call to 'v8::Value::IntegerValue()' hub.listen(args[1]->IntegerValue(), nullptr, 0, group); ^ In file included from /root/.cache/node-gyp/12.18.0/include/node/node.h:67:0, from ../src/addon.h:1, from ../src/addon.cpp:2: /root/.cache/node-gyp/12.18.0/include/node/v8.h:2705:40: note: candidate: v8::Maybe v8::Value::IntegerValue(v8::Local) const V8_WARN_UNUSED_RESULT Maybe IntegerValue( ^~~~~~~~~~~~ /root/.cache/node-gyp/12.18.0/include/node/v8.h:2705:40: note: candidate expects 1 argument, 0 provided In file included from ../src/addon.cpp:3:0: ../src/http.h: In static member function 'static void HttpServer::Request::headers(v8::Local, const v8::PropertyCallbackInfo&)': ../src/http.h:31:156: error: no matching function for call to 'v8::String::NewFromOneByte(v8::Isolate*, uint8_t*, v8::String::NewStringType, unsigned int&)' args.GetReturnValue().Set(String::NewFromOneByte(args.GetIsolate(), (uint8_t *) header.value, String::kNormalString, header.valueLength)); ^ In file included from /root/.cache/node-gyp/12.18.0/include/node/node.h:67:0, from ../src/addon.h:1, from ../src/addon.cpp:2: /root/.cache/node-gyp/12.18.0/include/node/v8.h:3044:51: note: candidate: static v8::MaybeLocal v8::String::NewFromOneByte(v8::Isolate*, const uint8_t*, v8::NewStringType, int) static V8_WARN_UNUSED_RESULT MaybeLocal NewFromOneByte( ^~~~~~~~~~~~~~ /root/.cache/node-gyp/12.18.0/include/node/v8.h:3044:51: note: no known conversion for argument 3 from 'v8::String::NewStringType' to 'v8::NewStringType' In file included from ../src/addon.cpp:3:0: ../src/http.h: In static member function 'static void HttpServer::Request::method(v8::Local, const v8::PropertyCallbackInfo&)': ../src/http.h:45:128: error: no matching function for call to 'v8::String::NewFromOneByte(v8::Isolate*, uint8_t*, v8::String::NewStringType, int)' args.GetReturnValue().Set(String::NewFromOneByte(args.GetIsolate(), (uint8_t *) "GET", String::kNormalString, 3)); ^ In file included from /root/.cache/node-gyp/12.18.0/include/node/node.h:67:0, from ../src/addon.h:1, from ../src/addon.cpp:2: /root/.cache/node-gyp/12.18.0/include/node/v8.h:3044:51: note: candidate: static v8::MaybeLocal v8::String::NewFromOneByte(v8::Isolate*, const uint8_t*, v8::NewStringType, int) static V8_WARN_UNUSED_RESULT MaybeLocal NewFromOneByte( ^~~~~~~~~~~~~~ /root/.cache/node-gyp/12.18.0/include/node/v8.h:3044:51: note: no known conversion for argument 3 from 'v8::String::NewStringType' to 'v8::NewStringType' In file included from ../src/addon.cpp:3:0: ../src/http.h:48:128: error: no matching function for call to 'v8::String::NewFromOneByte(v8::Isolate*, uint8_t*, v8::String::NewStringType, int)' args.GetReturnValue().Set(String::NewFromOneByte(args.GetIsolate(), (uint8_t *) "PUT", String::kNormalString, 3)); ^ In file included from /root/.cache/node-gyp/12.18.0/include/node/node.h:67:0, from ../src/addon.h:1, from ../src/addon.cpp:2: /root/.cache/node-gyp/12.18.0/include/node/v8.h:3044:51: note: candidate: static v8::MaybeLocal v8::String::NewFromOneByte(v8::Isolate*, const uint8_t*, v8::NewStringType, int) static V8_WARN_UNUSED_RESULT MaybeLocal NewFromOneByte( ^~~~~~~~~~~~~~ /root/.cache/node-gyp/12.18.0/include/node/v8.h:3044:51: note: no known conversion for argument 3 from 'v8::String::NewStringType' to 'v8::NewStringType' In file included from ../src/addon.cpp:3:0: ../src/http.h:51:129: error: no matching function for call to 'v8::String::NewFromOneByte(v8::Isolate*, uint8_t*, v8::String::NewStringType, int)' args.GetReturnValue().Set(String::NewFromOneByte(args.GetIsolate(), (uint8_t *) "POST", String::kNormalString, 4)); ^ In file included from /root/.cache/node-gyp/12.18.0/include/node/node.h:67:0, from ../src/addon.h:1, from ../src/addon.cpp:2: /root/.cache/node-gyp/12.18.0/include/node/v8.h:3044:51: note: candidate: static v8::MaybeLocal v8::String::NewFromOneByte(v8::Isolate*, const uint8_t*, v8::NewStringType, int) static V8_WARN_UNUSED_RESULT MaybeLocal NewFromOneByte( ^~~~~~~~~~~~~~ /root/.cache/node-gyp/12.18.0/include/node/v8.h:3044:51: note: no known conversion for argument 3 from 'v8::String::NewStringType' to 'v8::NewStringType' In file included from ../src/addon.cpp:3:0: ../src/http.h:54:129: error: no matching function for call to 'v8::String::NewFromOneByte(v8::Isolate*, uint8_t*, v8::String::NewStringType, int)' args.GetReturnValue().Set(String::NewFromOneByte(args.GetIsolate(), (uint8_t *) "HEAD", String::kNormalString, 4)); ^ In file included from /root/.cache/node-gyp/12.18.0/include/node/node.h:67:0, from ../src/addon.h:1, from ../src/addon.cpp:2: /root/.cache/node-gyp/12.18.0/include/node/v8.h:3044:51: note: candidate: static v8::MaybeLocal v8::String::NewFromOneByte(v8::Isolate*, const uint8_t*, v8::NewStringType, int) static V8_WARN_UNUSED_RESULT MaybeLocal NewFromOneByte( ^~~~~~~~~~~~~~ /root/.cache/node-gyp/12.18.0/include/node/v8.h:3044:51: note: no known conversion for argument 3 from 'v8::String::NewStringType' to 'v8::NewStringType' In file included from ../src/addon.cpp:3:0: ../src/http.h:57:130: error: no matching function for call to 'v8::String::NewFromOneByte(v8::Isolate*, uint8_t*, v8::String::NewStringType, int)' args.GetReturnValue().Set(String::NewFromOneByte(args.GetIsolate(), (uint8_t *) "PATCH", String::kNormalString, 5)); ^ In file included from /root/.cache/node-gyp/12.18.0/include/node/node.h:67:0, from ../src/addon.h:1, from ../src/addon.cpp:2: /root/.cache/node-gyp/12.18.0/include/node/v8.h:3044:51: note: candidate: static v8::MaybeLocal v8::String::NewFromOneByte(v8::Isolate*, const uint8_t*, v8::NewStringType, int) static V8_WARN_UNUSED_RESULT MaybeLocal NewFromOneByte( ^~~~~~~~~~~~~~ /root/.cache/node-gyp/12.18.0/include/node/v8.h:3044:51: note: no known conversion for argument 3 from 'v8::String::NewStringType' to 'v8::NewStringType' In file included from ../src/addon.cpp:3:0: ../src/http.h:60:130: error: no matching function for call to 'v8::String::NewFromOneByte(v8::Isolate*, uint8_t*, v8::String::NewStringType, int)' args.GetReturnValue().Set(String::NewFromOneByte(args.GetIsolate(), (uint8_t *) "TRACE", String::kNormalString, 5)); ^ In file included from /root/.cache/node-gyp/12.18.0/include/node/node.h:67:0, from ../src/addon.h:1, from ../src/addon.cpp:2: /root/.cache/node-gyp/12.18.0/include/node/v8.h:3044:51: note: candidate: static v8::MaybeLocal v8::String::NewFromOneByte(v8::Isolate*, const uint8_t*, v8::NewStringType, int) static V8_WARN_UNUSED_RESULT MaybeLocal NewFromOneByte( ^~~~~~~~~~~~~~ /root/.cache/node-gyp/12.18.0/include/node/v8.h:3044:51: note: no known conversion for argument 3 from 'v8::String::NewStringType' to 'v8::NewStringType' In file included from ../src/addon.cpp:3:0: ../src/http.h:63:131: error: no matching function for call to 'v8::String::NewFromOneByte(v8::Isolate*, uint8_t*, v8::String::NewStringType, int)' args.GetReturnValue().Set(String::NewFromOneByte(args.GetIsolate(), (uint8_t *) "DELETE", String::kNormalString, 6)); ^ In file included from /root/.cache/node-gyp/12.18.0/include/node/node.h:67:0, from ../src/addon.h:1, from ../src/addon.cpp:2: /root/.cache/node-gyp/12.18.0/include/node/v8.h:3044:51: note: candidate: static v8::MaybeLocal v8::String::NewFromOneByte(v8::Isolate*, const uint8_t*, v8::NewStringType, int) static V8_WARN_UNUSED_RESULT MaybeLocal NewFromOneByte( ^~~~~~~~~~~~~~ /root/.cache/node-gyp/12.18.0/include/node/v8.h:3044:51: note: no known conversion for argument 3 from 'v8::String::NewStringType' to 'v8::NewStringType' In file included from ../src/addon.cpp:3:0: ../src/http.h:66:132: error: no matching function for call to 'v8::String::NewFromOneByte(v8::Isolate*, uint8_t*, v8::String::NewStringType, int)' args.GetReturnValue().Set(String::NewFromOneByte(args.GetIsolate(), (uint8_t *) "OPTIONS", String::kNormalString, 7)); ^ In file included from /root/.cache/node-gyp/12.18.0/include/node/node.h:67:0, from ../src/addon.h:1, from ../src/addon.cpp:2: /root/.cache/node-gyp/12.18.0/include/node/v8.h:3044:51: note: candidate: static v8::MaybeLocal v8::String::NewFromOneByte(v8::Isolate*, const uint8_t*, v8::NewStringType, int) static V8_WARN_UNUSED_RESULT MaybeLocal NewFromOneByte( ^~~~~~~~~~~~~~ /root/.cache/node-gyp/12.18.0/include/node/v8.h:3044:51: note: no known conversion for argument 3 from 'v8::String::NewStringType' to 'v8::NewStringType' In file included from ../src/addon.cpp:3:0: ../src/http.h:69:132: error: no matching function for call to 'v8::String::NewFromOneByte(v8::Isolate*, uint8_t*, v8::String::NewStringType, int)' args.GetReturnValue().Set(String::NewFromOneByte(args.GetIsolate(), (uint8_t *) "CONNECT", String::kNormalString, 7)); ^ In file included from /root/.cache/node-gyp/12.18.0/include/node/node.h:67:0, from ../src/addon.h:1, from ../src/addon.cpp:2: /root/.cache/node-gyp/12.18.0/include/node/v8.h:3044:51: note: candidate: static v8::MaybeLocal v8::String::NewFromOneByte(v8::Isolate*, const uint8_t*, v8::NewStringType, int) static V8_WARN_UNUSED_RESULT MaybeLocal NewFromOneByte( ^~~~~~~~~~~~~~ /root/.cache/node-gyp/12.18.0/include/node/v8.h:3044:51: note: no known conversion for argument 3 from 'v8::String::NewStringType' to 'v8::NewStringType' In file included from ../src/addon.cpp:3:0: ../src/http.h: In static member function 'static v8::Local HttpServer::Request::getTemplateObject(v8::Isolate*)': ../src/http.h:90:86: warning: 'static v8::Local v8::String::NewFromUtf8(v8::Isolate*, const char*, v8::String::NewStringType, int)' is deprecated: Use maybe version [-Wdeprecated-declarations] reqTemplateLocal->SetClassName(String::NewFromUtf8(isolate, "uws.Request")); ^ In file included from /root/.cache/node-gyp/12.18.0/include/node/v8-internal.h:14:0, from /root/.cache/node-gyp/12.18.0/include/node/v8.h:27, from /root/.cache/node-gyp/12.18.0/include/node/node.h:67, from ../src/addon.h:1, from ../src/addon.cpp:2: /root/.cache/node-gyp/12.18.0/include/node/v8.h:3032:21: note: declared here Local NewFromUtf8(Isolate* isolate, const char* data, ^ /root/.cache/node-gyp/12.18.0/include/node/v8config.h:328:3: note: in definition of macro 'V8_DEPRECATED' declarator __attribute__((deprecated(message))) ^~~~~~~~~~ In file included from ../src/addon.cpp:3:0: ../src/http.h:92:98: warning: 'static v8::Local v8::String::NewFromUtf8(v8::Isolate*, const char*, v8::String::NewStringType, int)' is deprecated: Use maybe version [-Wdeprecated-declarations] reqTemplateLocal->PrototypeTemplate()->SetAccessor(String::NewFromUtf8(isolate, "url"), Request::url); ^ In file included from /root/.cache/node-gyp/12.18.0/include/node/v8-internal.h:14:0, from /root/.cache/node-gyp/12.18.0/include/node/v8.h:27, from /root/.cache/node-gyp/12.18.0/include/node/node.h:67, from ../src/addon.h:1, from ../src/addon.cpp:2: /root/.cache/node-gyp/12.18.0/include/node/v8.h:3032:21: note: declared here Local NewFromUtf8(Isolate* isolate, const char* data, ^ /root/.cache/node-gyp/12.18.0/include/node/v8config.h:328:3: note: in definition of macro 'V8_DEPRECATED' declarator __attribute__((deprecated(message))) ^~~~~~~~~~ In file included from ../src/addon.cpp:3:0: ../src/http.h:93:101: warning: 'static v8::Local v8::String::NewFromUtf8(v8::Isolate*, const char*, v8::String::NewStringType, int)' is deprecated: Use maybe version [-Wdeprecated-declarations] reqTemplateLocal->PrototypeTemplate()->SetAccessor(String::NewFromUtf8(isolate, "method"), Request::method); ^ In file included from /root/.cache/node-gyp/12.18.0/include/node/v8-internal.h:14:0, from /root/.cache/node-gyp/12.18.0/include/node/v8.h:27, from /root/.cache/node-gyp/12.18.0/include/node/node.h:67, from ../src/addon.h:1, from ../src/addon.cpp:2: /root/.cache/node-gyp/12.18.0/include/node/v8.h:3032:21: note: declared here Local NewFromUtf8(Isolate* isolate, const char* data, ^ /root/.cache/node-gyp/12.18.0/include/node/v8config.h:328:3: note: in definition of macro 'V8_DEPRECATED' declarator __attribute__((deprecated(message))) ^~~~~~~~~~ In file included from ../src/addon.cpp:3:0: ../src/http.h:94:89: warning: 'static v8::Local v8::String::NewFromUtf8(v8::Isolate*, const char*, v8::String::NewStringType, int)' is deprecated: Use maybe version [-Wdeprecated-declarations] reqTemplateLocal->PrototypeTemplate()->Set(String::NewFromUtf8(isolate, "on"), FunctionTemplate::New(isolate, Request::on)); ^ In file included from /root/.cache/node-gyp/12.18.0/include/node/v8-internal.h:14:0, from /root/.cache/node-gyp/12.18.0/include/node/v8.h:27, from /root/.cache/node-gyp/12.18.0/include/node/node.h:67, from ../src/addon.h:1, from ../src/addon.cpp:2: /root/.cache/node-gyp/12.18.0/include/node/v8.h:3032:21: note: declared here Local NewFromUtf8(Isolate* isolate, const char* data, ^ /root/.cache/node-gyp/12.18.0/include/node/v8config.h:328:3: note: in definition of macro 'V8_DEPRECATED' declarator __attribute__((deprecated(message))) ^~~~~~~~~~ In file included from ../src/addon.cpp:3:0: ../src/http.h:95:93: warning: 'static v8::Local v8::String::NewFromUtf8(v8::Isolate*, const char*, v8::String::NewStringType, int)' is deprecated: Use maybe version [-Wdeprecated-declarations] reqTemplateLocal->PrototypeTemplate()->Set(String::NewFromUtf8(isolate, "unpipe"), FunctionTemplate::New(isolate, Request::unpipe)); ^ In file included from /root/.cache/node-gyp/12.18.0/include/node/v8-internal.h:14:0, from /root/.cache/node-gyp/12.18.0/include/node/v8.h:27, from /root/.cache/node-gyp/12.18.0/include/node/node.h:67, from ../src/addon.h:1, from ../src/addon.cpp:2: /root/.cache/node-gyp/12.18.0/include/node/v8.h:3032:21: note: declared here Local NewFromUtf8(Isolate* isolate, const char* data, ^ /root/.cache/node-gyp/12.18.0/include/node/v8config.h:328:3: note: in definition of macro 'V8_DEPRECATED' declarator __attribute__((deprecated(message))) ^~~~~~~~~~ In file included from ../src/addon.cpp:3:0: ../src/http.h:96:93: warning: 'static v8::Local v8::String::NewFromUtf8(v8::Isolate*, const char*, v8::String::NewStringType, int)' is deprecated: Use maybe version [-Wdeprecated-declarations] reqTemplateLocal->PrototypeTemplate()->Set(String::NewFromUtf8(isolate, "resume"), FunctionTemplate::New(isolate, Request::resume)); ^ In file included from /root/.cache/node-gyp/12.18.0/include/node/v8-internal.h:14:0, from /root/.cache/node-gyp/12.18.0/include/node/v8.h:27, from /root/.cache/node-gyp/12.18.0/include/node/node.h:67, from ../src/addon.h:1, from ../src/addon.cpp:2: /root/.cache/node-gyp/12.18.0/include/node/v8.h:3032:21: note: declared here Local NewFromUtf8(Isolate* isolate, const char* data, ^ /root/.cache/node-gyp/12.18.0/include/node/v8config.h:328:3: note: in definition of macro 'V8_DEPRECATED' declarator __attribute__((deprecated(message))) ^~~~~~~~~~ In file included from ../src/addon.cpp:3:0: ../src/http.h:97:93: warning: 'static v8::Local v8::String::NewFromUtf8(v8::Isolate*, const char*, v8::String::NewStringType, int)' is deprecated: Use maybe version [-Wdeprecated-declarations] reqTemplateLocal->PrototypeTemplate()->Set(String::NewFromUtf8(isolate, "socket"), FunctionTemplate::New(isolate, Request::socket)); ^ In file included from /root/.cache/node-gyp/12.18.0/include/node/v8-internal.h:14:0, from /root/.cache/node-gyp/12.18.0/include/node/v8.h:27, from /root/.cache/node-gyp/12.18.0/include/node/node.h:67, from ../src/addon.h:1, from ../src/addon.cpp:2: /root/.cache/node-gyp/12.18.0/include/node/v8.h:3032:21: note: declared here Local NewFromUtf8(Isolate* isolate, const char* data, ^ /root/.cache/node-gyp/12.18.0/include/node/v8config.h:328:3: note: in definition of macro 'V8_DEPRECATED' declarator __attribute__((deprecated(message))) ^~~~~~~~~~ In file included from ../src/addon.cpp:3:0: ../src/http.h:99:74: error: no matching function for call to 'v8::FunctionTemplate::GetFunction()' Local reqObjectLocal = reqTemplateLocal->GetFunction()->NewInstance(); ^ In file included from /root/.cache/node-gyp/12.18.0/include/node/node.h:67:0, from ../src/addon.h:1, from ../src/addon.cpp:2: /root/.cache/node-gyp/12.18.0/include/node/v8.h:6126:46: note: candidate: v8::MaybeLocal v8::FunctionTemplate::GetFunction(v8::Local) V8_WARN_UNUSED_RESULT MaybeLocal GetFunction( ^~~~~~~~~~~ /root/.cache/node-gyp/12.18.0/include/node/v8.h:6126:46: note: candidate expects 1 argument, 0 provided In file included from ../src/addon.cpp:3:0: ../src/http.h:102:30: error: 'class v8::ObjectTemplate' has no member named 'SetNamedPropertyHandler'; did you mean 'SetIndexedPropertyHandler'? headersTemplate->SetNamedPropertyHandler(Request::headers); ^~~~~~~~~~~~~~~~~~~~~~~ SetIndexedPropertyHandler ../src/http.h:104:71: warning: 'static v8::Local v8::String::NewFromUtf8(v8::Isolate*, const char*, v8::String::NewStringType, int)' is deprecated: Use maybe version [-Wdeprecated-declarations] reqObjectLocal->Set(String::NewFromUtf8(isolate, "headers"), headersTemplate->NewInstance()); ^ In file included from /root/.cache/node-gyp/12.18.0/include/node/v8-internal.h:14:0, from /root/.cache/node-gyp/12.18.0/include/node/v8.h:27, from /root/.cache/node-gyp/12.18.0/include/node/node.h:67, from ../src/addon.h:1, from ../src/addon.cpp:2: /root/.cache/node-gyp/12.18.0/include/node/v8.h:3032:21: note: declared here Local NewFromUtf8(Isolate* isolate, const char* data, ^ /root/.cache/node-gyp/12.18.0/include/node/v8config.h:328:3: note: in definition of macro 'V8_DEPRECATED' declarator __attribute__((deprecated(message))) ^~~~~~~~~~ In file included from ../src/addon.cpp:3:0: ../src/http.h:104:103: error: no matching function for call to 'v8::ObjectTemplate::NewInstance()' reqObjectLocal->Set(String::NewFromUtf8(isolate, "headers"), headersTemplate->NewInstance()); ^ In file included from /root/.cache/node-gyp/12.18.0/include/node/node.h:67:0, from ../src/addon.h:1, from ../src/addon.cpp:2: /root/.cache/node-gyp/12.18.0/include/node/v8.h:6423:44: note: candidate: v8::MaybeLocal v8::ObjectTemplate::NewInstance(v8::Local) V8_WARN_UNUSED_RESULT MaybeLocal NewInstance(Local context); ^~~~~~~~~~~ /root/.cache/node-gyp/12.18.0/include/node/v8.h:6423:44: note: candidate expects 1 argument, 0 provided In file included from ../src/addon.cpp:3:0: ../src/http.h: In static member function 'static void HttpServer::Response::writeHead(const v8::FunctionCallbackInfo&)': ../src/http.h:137:87: error: no matching function for call to 'v8::Value::IntegerValue()' std::string head = "HTTP/1.1 " + std::to_string(args[0]->IntegerValue()) + " "; ^ In file included from /root/.cache/node-gyp/12.18.0/include/node/node.h:67:0, from ../src/addon.h:1, from ../src/addon.cpp:2: /root/.cache/node-gyp/12.18.0/include/node/v8.h:2705:40: note: candidate: v8::Maybe v8::Value::IntegerValue(v8::Local) const V8_WARN_UNUSED_RESULT Maybe IntegerValue( ^~~~~~~~~~~~ /root/.cache/node-gyp/12.18.0/include/node/v8.h:2705:40: note: candidate expects 1 argument, 0 provided In file included from ../src/addon.cpp:3:0: ../src/http.h:147:85: error: no matching function for call to 'v8::Value::ToObject()' Local headersObject = args[args.Length() - 1]->ToObject(); ^ In file included from /root/.cache/node-gyp/12.18.0/include/node/node.h:67:0, from ../src/addon.h:1, from ../src/addon.cpp:2: /root/.cache/node-gyp/12.18.0/include/node/v8.h:2672:44: note: candidate: v8::MaybeLocal v8::Value::ToObject(v8::Local) const V8_WARN_UNUSED_RESULT MaybeLocal ToObject( ^~~~~~~~ /root/.cache/node-gyp/12.18.0/include/node/v8.h:2672:44: note: candidate expects 1 argument, 0 provided In file included from /root/.cache/node-gyp/12.18.0/include/node/v8-internal.h:14:0, from /root/.cache/node-gyp/12.18.0/include/node/v8.h:27, from /root/.cache/node-gyp/12.18.0/include/node/node.h:67, from ../src/addon.h:1, from ../src/addon.cpp:2: /root/.cache/node-gyp/12.18.0/include/node/v8.h:2686:31: note: candidate: v8::Local v8::Value::ToObject(v8::Isolate*) const Local ToObject(Isolate* isolate) const); ^ /root/.cache/node-gyp/12.18.0/include/node/v8config.h:328:3: note: in definition of macro 'V8_DEPRECATED' declarator __attribute__((deprecated(message))) ^~~~~~~~~~ /root/.cache/node-gyp/12.18.0/include/node/v8.h:2686:31: note: candidate expects 1 argument, 0 provided Local ToObject(Isolate* isolate) const); ^ /root/.cache/node-gyp/12.18.0/include/node/v8config.h:328:3: note: in definition of macro 'V8_DEPRECATED' declarator __attribute__((deprecated(message))) ^~~~~~~~~~ In file included from ../src/addon.cpp:3:0: ../src/http.h:148:79: error: no matching function for call to 'v8::Object::GetOwnPropertyNames()' Local headers = headersObject->GetOwnPropertyNames(); ^ In file included from /root/.cache/node-gyp/12.18.0/include/node/node.h:67:0, from ../src/addon.h:1, from ../src/addon.cpp:2: /root/.cache/node-gyp/12.18.0/include/node/v8.h:3675:43: note: candidate: v8::MaybeLocal v8::Object::GetOwnPropertyNames(v8::Local) V8_WARN_UNUSED_RESULT MaybeLocal GetOwnPropertyNames( ^~~~~~~~~~~~~~~~~~~ /root/.cache/node-gyp/12.18.0/include/node/v8.h:3675:43: note: candidate expects 1 argument, 0 provided /root/.cache/node-gyp/12.18.0/include/node/v8.h:3684:43: note: candidate: v8::MaybeLocal v8::Object::GetOwnPropertyNames(v8::Local, v8::PropertyFilter, v8::KeyConversionMode) V8_WARN_UNUSED_RESULT MaybeLocal GetOwnPropertyNames( ^~~~~~~~~~~~~~~~~~~ /root/.cache/node-gyp/12.18.0/include/node/v8.h:3684:43: note: candidate expects 3 arguments, 0 provided In file included from ../src/addon.cpp:3:0: ../src/http.h:149:39: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (int i = 0; i < headers->Length(); i++) { ~~^~~~~~~~~~~~~~~~~~~ ../src/http.h:150:58: warning: 'v8::Local v8::Object::Get(uint32_t)' is deprecated: Use maybe version [-Wdeprecated-declarations] Local key = headers->Get(i); ^ In file included from /root/.cache/node-gyp/12.18.0/include/node/v8-internal.h:14:0, from /root/.cache/node-gyp/12.18.0/include/node/v8.h:27, from /root/.cache/node-gyp/12.18.0/include/node/node.h:67, from ../src/addon.h:1, from ../src/addon.cpp:2: /root/.cache/node-gyp/12.18.0/include/node/v8.h:3557:51: note: declared here V8_DEPRECATED("Use maybe version", Local Get(uint32_t index)); ^ /root/.cache/node-gyp/12.18.0/include/node/v8config.h:328:3: note: in definition of macro 'V8_DEPRECATED' declarator __attribute__((deprecated(message))) ^~~~~~~~~~ In file included from ../src/addon.cpp:3:0: ../src/http.h:151:68: warning: 'v8::Local v8::Object::Get(v8::Local)' is deprecated: Use maybe version [-Wdeprecated-declarations] Local value = headersObject->Get(key); ^ In file included from /root/.cache/node-gyp/12.18.0/include/node/v8-internal.h:14:0, from /root/.cache/node-gyp/12.18.0/include/node/v8.h:27, from /root/.cache/node-gyp/12.18.0/include/node/node.h:67, from ../src/addon.h:1, from ../src/addon.cpp:2: /root/.cache/node-gyp/12.18.0/include/node/v8.h:3553:51: note: declared here V8_DEPRECATED("Use maybe version", Local Get(Local key)); ^ /root/.cache/node-gyp/12.18.0/include/node/v8config.h:328:3: note: in definition of macro 'V8_DEPRECATED' declarator __attribute__((deprecated(message))) ^~~~~~~~~~ In file included from ../src/addon.cpp:3:0: ../src/http.h: In static member function 'static v8::Local HttpServer::Response::getTemplateObject(v8::Isolate*)': ../src/http.h:188:87: warning: 'static v8::Local v8::String::NewFromUtf8(v8::Isolate*, const char*, v8::String::NewStringType, int)' is deprecated: Use maybe version [-Wdeprecated-declarations] resTemplateLocal->SetClassName(String::NewFromUtf8(isolate, "uws.Response")); ^ In file included from /root/.cache/node-gyp/12.18.0/include/node/v8-internal.h:14:0, from /root/.cache/node-gyp/12.18.0/include/node/v8.h:27, from /root/.cache/node-gyp/12.18.0/include/node/node.h:67, from ../src/addon.h:1, from ../src/addon.cpp:2: /root/.cache/node-gyp/12.18.0/include/node/v8.h:3032:21: note: declared here Local NewFromUtf8(Isolate* isolate, const char* data, ^ /root/.cache/node-gyp/12.18.0/include/node/v8config.h:328:3: note: in definition of macro 'V8_DEPRECATED' declarator __attribute__((deprecated(message))) ^~~~~~~~~~ In file included from ../src/addon.cpp:3:0: ../src/http.h:190:90: warning: 'static v8::Local v8::String::NewFromUtf8(v8::Isolate*, const char*, v8::String::NewStringType, int)' is deprecated: Use maybe version [-Wdeprecated-declarations] resTemplateLocal->PrototypeTemplate()->Set(String::NewFromUtf8(isolate, "end"), FunctionTemplate::New(isolate, Response::end)); ^ In file included from /root/.cache/node-gyp/12.18.0/include/node/v8-internal.h:14:0, from /root/.cache/node-gyp/12.18.0/include/node/v8.h:27, from /root/.cache/node-gyp/12.18.0/include/node/node.h:67, from ../src/addon.h:1, from ../src/addon.cpp:2: /root/.cache/node-gyp/12.18.0/include/node/v8.h:3032:21: note: declared here Local NewFromUtf8(Isolate* isolate, const char* data, ^ /root/.cache/node-gyp/12.18.0/include/node/v8config.h:328:3: note: in definition of macro 'V8_DEPRECATED' declarator __attribute__((deprecated(message))) ^~~~~~~~~~ In file included from ../src/addon.cpp:3:0: ../src/http.h:191:96: warning: 'static v8::Local v8::String::NewFromUtf8(v8::Isolate*, const char*, v8::String::NewStringType, int)' is deprecated: Use maybe version [-Wdeprecated-declarations] resTemplateLocal->PrototypeTemplate()->Set(String::NewFromUtf8(isolate, "writeHead"), FunctionTemplate::New(isolate, Response::writeHead)); ^ In file included from /root/.cache/node-gyp/12.18.0/include/node/v8-internal.h:14:0, from /root/.cache/node-gyp/12.18.0/include/node/v8.h:27, from /root/.cache/node-gyp/12.18.0/include/node/node.h:67, from ../src/addon.h:1, from ../src/addon.cpp:2: /root/.cache/node-gyp/12.18.0/include/node/v8.h:3032:21: note: declared here Local NewFromUtf8(Isolate* isolate, const char* data, ^ /root/.cache/node-gyp/12.18.0/include/node/v8config.h:328:3: note: in definition of macro 'V8_DEPRECATED' declarator __attribute__((deprecated(message))) ^~~~~~~~~~ In file included from ../src/addon.cpp:3:0: ../src/http.h:192:92: warning: 'static v8::Local v8::String::NewFromUtf8(v8::Isolate*, const char*, v8::String::NewStringType, int)' is deprecated: Use maybe version [-Wdeprecated-declarations] resTemplateLocal->PrototypeTemplate()->Set(String::NewFromUtf8(isolate, "write"), FunctionTemplate::New(isolate, Response::write)); ^ In file included from /root/.cache/node-gyp/12.18.0/include/node/v8-internal.h:14:0, from /root/.cache/node-gyp/12.18.0/include/node/v8.h:27, from /root/.cache/node-gyp/12.18.0/include/node/node.h:67, from ../src/addon.h:1, from ../src/addon.cpp:2: /root/.cache/node-gyp/12.18.0/include/node/v8.h:3032:21: note: declared here Local NewFromUtf8(Isolate* isolate, const char* data, ^ /root/.cache/node-gyp/12.18.0/include/node/v8config.h:328:3: note: in definition of macro 'V8_DEPRECATED' declarator __attribute__((deprecated(message))) ^~~~~~~~~~ In file included from ../src/addon.cpp:3:0: ../src/http.h:193:89: warning: 'static v8::Local v8::String::NewFromUtf8(v8::Isolate*, const char*, v8::String::NewStringType, int)' is deprecated: Use maybe version [-Wdeprecated-declarations] resTemplateLocal->PrototypeTemplate()->Set(String::NewFromUtf8(isolate, "on"), FunctionTemplate::New(isolate, Response::on)); ^ In file included from /root/.cache/node-gyp/12.18.0/include/node/v8-internal.h:14:0, from /root/.cache/node-gyp/12.18.0/include/node/v8.h:27, from /root/.cache/node-gyp/12.18.0/include/node/node.h:67, from ../src/addon.h:1, from ../src/addon.cpp:2: /root/.cache/node-gyp/12.18.0/include/node/v8.h:3032:21: note: declared here Local NewFromUtf8(Isolate* isolate, const char* data, ^ /root/.cache/node-gyp/12.18.0/include/node/v8config.h:328:3: note: in definition of macro 'V8_DEPRECATED' declarator __attribute__((deprecated(message))) ^~~~~~~~~~ In file included from ../src/addon.cpp:3:0: ../src/http.h:194:96: warning: 'static v8::Local v8::String::NewFromUtf8(v8::Isolate*, const char*, v8::String::NewStringType, int)' is deprecated: Use maybe version [-Wdeprecated-declarations] resTemplateLocal->PrototypeTemplate()->Set(String::NewFromUtf8(isolate, "setHeader"), FunctionTemplate::New(isolate, Response::setHeader)); ^ In file included from /root/.cache/node-gyp/12.18.0/include/node/v8-internal.h:14:0, from /root/.cache/node-gyp/12.18.0/include/node/v8.h:27, from /root/.cache/node-gyp/12.18.0/include/node/node.h:67, from ../src/addon.h:1, from ../src/addon.cpp:2: /root/.cache/node-gyp/12.18.0/include/node/v8.h:3032:21: note: declared here Local NewFromUtf8(Isolate* isolate, const char* data, ^ /root/.cache/node-gyp/12.18.0/include/node/v8config.h:328:3: note: in definition of macro 'V8_DEPRECATED' declarator __attribute__((deprecated(message))) ^~~~~~~~~~ In file included from ../src/addon.cpp:3:0: ../src/http.h:195:96: warning: 'static v8::Local v8::String::NewFromUtf8(v8::Isolate*, const char*, v8::String::NewStringType, int)' is deprecated: Use maybe version [-Wdeprecated-declarations] resTemplateLocal->PrototypeTemplate()->Set(String::NewFromUtf8(isolate, "getHeader"), FunctionTemplate::New(isolate, Response::getHeader)); ^ In file included from /root/.cache/node-gyp/12.18.0/include/node/v8-internal.h:14:0, from /root/.cache/node-gyp/12.18.0/include/node/v8.h:27, from /root/.cache/node-gyp/12.18.0/include/node/node.h:67, from ../src/addon.h:1, from ../src/addon.cpp:2: /root/.cache/node-gyp/12.18.0/include/node/v8.h:3032:21: note: declared here Local NewFromUtf8(Isolate* isolate, const char* data, ^ /root/.cache/node-gyp/12.18.0/include/node/v8config.h:328:3: note: in definition of macro 'V8_DEPRECATED' declarator __attribute__((deprecated(message))) ^~~~~~~~~~ In file included from ../src/addon.cpp:3:0: ../src/http.h:196:50: error: no matching function for call to 'v8::FunctionTemplate::GetFunction()' return resTemplateLocal->GetFunction()->NewInstance(); ^ In file included from /root/.cache/node-gyp/12.18.0/include/node/node.h:67:0, from ../src/addon.h:1, from ../src/addon.cpp:2: /root/.cache/node-gyp/12.18.0/include/node/v8.h:6126:46: note: candidate: v8::MaybeLocal v8::FunctionTemplate::GetFunction(v8::Local) V8_WARN_UNUSED_RESULT MaybeLocal GetFunction( ^~~~~~~~~~~ /root/.cache/node-gyp/12.18.0/include/node/v8.h:6126:46: note: candidate expects 1 argument, 0 provided In file included from ../src/addon.cpp:3:0: ../src/http.h: In lambda function: ../src/http.h:227:155: error: no matching function for call to 'v8::String::NewFromOneByte(v8::Isolate* const&, uint8_t*, v8::String::NewStringType, unsigned int)' reqObject->SetInternalField(4, String::NewFromOneByte(isolate, (uint8_t *) req.getUrl().value, String::kNormalString, req.getUrl().valueLength)); ^ In file included from /root/.cache/node-gyp/12.18.0/include/node/node.h:67:0, from ../src/addon.h:1, from ../src/addon.cpp:2: /root/.cache/node-gyp/12.18.0/include/node/v8.h:3044:51: note: candidate: static v8::MaybeLocal v8::String::NewFromOneByte(v8::Isolate*, const uint8_t*, v8::NewStringType, int) static V8_WARN_UNUSED_RESULT MaybeLocal NewFromOneByte( ^~~~~~~~~~~~~~ /root/.cache/node-gyp/12.18.0/include/node/v8.h:3044:51: note: no known conversion for argument 3 from 'v8::String::NewStringType' to 'v8::NewStringType' In file included from ../src/addon.cpp:3:0: ../src/http.h:230:118: error: no matching function for call to 'v8::Function::Call(v8::Local, int, v8::Local [2])' Local::New(isolate, *httpRequestCallback)->Call(isolate->GetCurrentContext()->Global(), 2, argv); ^ In file included from /root/.cache/node-gyp/12.18.0/include/node/node.h:67:0, from ../src/addon.h:1, from ../src/addon.cpp:2: /root/.cache/node-gyp/12.18.0/include/node/v8.h:4298:43: note: candidate: v8::MaybeLocal v8::Function::Call(v8::Local, v8::Local, int, v8::Local*) V8_WARN_UNUSED_RESULT MaybeLocal Call(Local context, ^~~~ /root/.cache/node-gyp/12.18.0/include/node/v8.h:4298:43: note: candidate expects 4 arguments, 3 provided In file included from ../src/addon.cpp:3:0: ../src/http.h:236:110: error: no matching function for call to 'v8::Function::Call(v8::Local, int, v8::Local [1])' Local::Cast(dataCallback)->Call(isolate->GetCurrentContext()->Global(), 1, argv); ^ In file included from /root/.cache/node-gyp/12.18.0/include/node/node.h:67:0, from ../src/addon.h:1, from ../src/addon.cpp:2: /root/.cache/node-gyp/12.18.0/include/node/v8.h:4298:43: note: candidate: v8::MaybeLocal v8::Function::Call(v8::Local, v8::Local, int, v8::Local*) V8_WARN_UNUSED_RESULT MaybeLocal Call(Local context, ^~~~ /root/.cache/node-gyp/12.18.0/include/node/v8.h:4298:43: note: candidate expects 4 arguments, 3 provided In file included from ../src/addon.cpp:3:0: ../src/http.h:242:116: error: no matching function for call to 'v8::Function::Call(v8::Local, int, std::nullptr_t)' Local::Cast(endCallback)->Call(isolate->GetCurrentContext()->Global(), 0, nullptr); ^ In file included from /root/.cache/node-gyp/12.18.0/include/node/node.h:67:0, from ../src/addon.h:1, from ../src/addon.cpp:2: /root/.cache/node-gyp/12.18.0/include/node/v8.h:4298:43: note: candidate: v8::MaybeLocal v8::Function::Call(v8::Local, v8::Local, int, v8::Local*) V8_WARN_UNUSED_RESULT MaybeLocal Call(Local context, ^~~~ /root/.cache/node-gyp/12.18.0/include/node/v8.h:4298:43: note: candidate expects 4 arguments, 3 provided In file included from ../src/addon.cpp:3:0: ../src/http.h: In lambda function: ../src/http.h:265:110: error: no matching function for call to 'v8::Function::Call(v8::Local, int, std::nullptr_t)' Local::Cast(closeCallback)->Call(isolate->GetCurrentContext()->Global(), 0, nullptr); ^ In file included from /root/.cache/node-gyp/12.18.0/include/node/node.h:67:0, from ../src/addon.h:1, from ../src/addon.cpp:2: /root/.cache/node-gyp/12.18.0/include/node/v8.h:4298:43: note: candidate: v8::MaybeLocal v8::Function::Call(v8::Local, v8::Local, int, v8::Local*) V8_WARN_UNUSED_RESULT MaybeLocal Call(Local context, ^~~~ /root/.cache/node-gyp/12.18.0/include/node/v8.h:4298:43: note: candidate expects 4 arguments, 3 provided In file included from ../src/addon.cpp:3:0: ../src/http.h: In lambda function: ../src/http.h:280:106: error: no matching function for call to 'v8::Function::Call(v8::Local, int, v8::Local [1])' Local::Cast(dataCallback)->Call(isolate->GetCurrentContext()->Global(), 1, argv); ^ In file included from /root/.cache/node-gyp/12.18.0/include/node/node.h:67:0, from ../src/addon.h:1, from ../src/addon.cpp:2: /root/.cache/node-gyp/12.18.0/include/node/v8.h:4298:43: note: candidate: v8::MaybeLocal v8::Function::Call(v8::Local, v8::Local, int, v8::Local*) V8_WARN_UNUSED_RESULT MaybeLocal Call(Local context, ^~~~ /root/.cache/node-gyp/12.18.0/include/node/v8.h:4298:43: note: candidate expects 4 arguments, 3 provided In file included from ../src/addon.cpp:3:0: ../src/http.h:286:112: error: no matching function for call to 'v8::Function::Call(v8::Local, int, std::nullptr_t)' Local::Cast(endCallback)->Call(isolate->GetCurrentContext()->Global(), 0, nullptr); ^ In file included from /root/.cache/node-gyp/12.18.0/include/node/node.h:67:0, from ../src/addon.h:1, from ../src/addon.cpp:2: /root/.cache/node-gyp/12.18.0/include/node/v8.h:4298:43: note: candidate: v8::MaybeLocal v8::Function::Call(v8::Local, v8::Local, int, v8::Local*) V8_WARN_UNUSED_RESULT MaybeLocal Call(Local context, ^~~~ /root/.cache/node-gyp/12.18.0/include/node/v8.h:4298:43: note: candidate expects 4 arguments, 3 provided In file included from ../src/addon.cpp:3:0: ../src/http.h: In static member function 'static void HttpServer::createServer(const v8::FunctionCallbackInfo&)': ../src/http.h:293:122: error: no matching function for call to 'v8::Function::NewInstance()' args.GetReturnValue().Set(newInstance = Local::New(args.GetIsolate(), httpPersistent)->NewInstance()); ^ In file included from /root/.cache/node-gyp/12.18.0/include/node/node.h:67:0, from ../src/addon.h:1, from ../src/addon.cpp:2: /root/.cache/node-gyp/12.18.0/include/node/v8.h:4281:44: note: candidate: v8::MaybeLocal v8::Function::NewInstance(v8::Local, int, v8::Local*) const V8_WARN_UNUSED_RESULT MaybeLocal NewInstance( ^~~~~~~~~~~ /root/.cache/node-gyp/12.18.0/include/node/v8.h:4281:44: note: candidate expects 3 arguments, 0 provided /root/.cache/node-gyp/12.18.0/include/node/v8.h:4284:44: note: candidate: v8::MaybeLocal v8::Function::NewInstance(v8::Local) const V8_WARN_UNUSED_RESULT MaybeLocal NewInstance( ^~~~~~~~~~~ /root/.cache/node-gyp/12.18.0/include/node/v8.h:4284:44: note: candidate expects 1 argument, 0 provided In file included from ../src/addon.cpp:3:0: ../src/http.h: In static member function 'static void HttpServer::listen(const v8::FunctionCallbackInfo&)': ../src/http.h:308:69: error: no matching function for call to 'v8::Value::IntegerValue()' std::cout << "listen: " << hub.listen(args[0]->IntegerValue(), nullptr, 0, group) << std::endl; ^ In file included from /root/.cache/node-gyp/12.18.0/include/node/node.h:67:0, from ../src/addon.h:1, from ../src/addon.cpp:2: /root/.cache/node-gyp/12.18.0/include/node/v8.h:2705:40: note: candidate: v8::Maybe v8::Value::IntegerValue(v8::Local) const V8_WARN_UNUSED_RESULT Maybe IntegerValue( ^~~~~~~~~~~~ /root/.cache/node-gyp/12.18.0/include/node/v8.h:2705:40: note: candidate expects 1 argument, 0 provided In file included from ../src/addon.cpp:3:0: ../src/http.h:311:126: error: no matching function for call to 'v8::Function::Call(v8::Local, int, std::nullptr_t)' Local::Cast(args[args.Length() - 1])->Call(args.GetIsolate()->GetCurrentContext()->Global(), 0, nullptr); ^ In file included from /root/.cache/node-gyp/12.18.0/include/node/node.h:67:0, from ../src/addon.h:1, from ../src/addon.cpp:2: /root/.cache/node-gyp/12.18.0/include/node/v8.h:4298:43: note: candidate: v8::MaybeLocal v8::Function::Call(v8::Local, v8::Local, int, v8::Local*) V8_WARN_UNUSED_RESULT MaybeLocal Call(Local context, ^~~~ /root/.cache/node-gyp/12.18.0/include/node/v8.h:4298:43: note: candidate expects 4 arguments, 3 provided In file included from ../src/addon.cpp:3:0: ../src/http.h: In static member function 'static void HttpServer::getExpressApp(const v8::FunctionCallbackInfo&)': ../src/http.h:320:64: warning: 'static v8::Local v8::String::NewFromUtf8(v8::Isolate*, const char*, v8::String::NewStringType, int)' is deprecated: Use maybe version [-Wdeprecated-declarations] express->Get(String::NewFromUtf8(isolate, "request"))->ToObject()->SetPrototype(Local::New(args.GetIsolate(), reqTemplate)->GetPrototype()); ^ In file included from /root/.cache/node-gyp/12.18.0/include/node/v8-internal.h:14:0, from /root/.cache/node-gyp/12.18.0/include/node/v8.h:27, from /root/.cache/node-gyp/12.18.0/include/node/node.h:67, from ../src/addon.h:1, from ../src/addon.cpp:2: /root/.cache/node-gyp/12.18.0/include/node/v8.h:3032:21: note: declared here Local NewFromUtf8(Isolate* isolate, const char* data, ^ /root/.cache/node-gyp/12.18.0/include/node/v8config.h:328:3: note: in definition of macro 'V8_DEPRECATED' declarator __attribute__((deprecated(message))) ^~~~~~~~~~ In file included from ../src/addon.cpp:3:0: ../src/http.h:320:65: warning: 'v8::Local v8::Object::Get(v8::Local)' is deprecated: Use maybe version [-Wdeprecated-declarations] express->Get(String::NewFromUtf8(isolate, "request"))->ToObject()->SetPrototype(Local::New(args.GetIsolate(), reqTemplate)->GetPrototype()); ^ In file included from /root/.cache/node-gyp/12.18.0/include/node/v8-internal.h:14:0, from /root/.cache/node-gyp/12.18.0/include/node/v8.h:27, from /root/.cache/node-gyp/12.18.0/include/node/node.h:67, from ../src/addon.h:1, from ../src/addon.cpp:2: /root/.cache/node-gyp/12.18.0/include/node/v8.h:3553:51: note: declared here V8_DEPRECATED("Use maybe version", Local Get(Local key)); ^ /root/.cache/node-gyp/12.18.0/include/node/v8config.h:328:3: note: in definition of macro 'V8_DEPRECATED' declarator __attribute__((deprecated(message))) ^~~~~~~~~~ In file included from ../src/addon.cpp:3:0: ../src/http.h:320:77: error: no matching function for call to 'v8::Value::ToObject()' express->Get(String::NewFromUtf8(isolate, "request"))->ToObject()->SetPrototype(Local::New(args.GetIsolate(), reqTemplate)->GetPrototype()); ^ In file included from /root/.cache/node-gyp/12.18.0/include/node/node.h:67:0, from ../src/addon.h:1, from ../src/addon.cpp:2: /root/.cache/node-gyp/12.18.0/include/node/v8.h:2672:44: note: candidate: v8::MaybeLocal v8::Value::ToObject(v8::Local) const V8_WARN_UNUSED_RESULT MaybeLocal ToObject( ^~~~~~~~ /root/.cache/node-gyp/12.18.0/include/node/v8.h:2672:44: note: candidate expects 1 argument, 0 provided In file included from /root/.cache/node-gyp/12.18.0/include/node/v8-internal.h:14:0, from /root/.cache/node-gyp/12.18.0/include/node/v8.h:27, from /root/.cache/node-gyp/12.18.0/include/node/node.h:67, from ../src/addon.h:1, from ../src/addon.cpp:2: /root/.cache/node-gyp/12.18.0/include/node/v8.h:2686:31: note: candidate: v8::Local v8::Value::ToObject(v8::Isolate*) const Local ToObject(Isolate* isolate) const); ^ /root/.cache/node-gyp/12.18.0/include/node/v8config.h:328:3: note: in definition of macro 'V8_DEPRECATED' declarator __attribute__((deprecated(message))) ^~~~~~~~~~ /root/.cache/node-gyp/12.18.0/include/node/v8.h:2686:31: note: candidate expects 1 argument, 0 provided Local ToObject(Isolate* isolate) const); ^ /root/.cache/node-gyp/12.18.0/include/node/v8config.h:328:3: note: in definition of macro 'V8_DEPRECATED' declarator __attribute__((deprecated(message))) ^~~~~~~~~~ In file included from ../src/addon.cpp:3:0: ../src/http.h:321:65: warning: 'static v8::Local v8::String::NewFromUtf8(v8::Isolate*, const char*, v8::String::NewStringType, int)' is deprecated: Use maybe version [-Wdeprecated-declarations] express->Get(String::NewFromUtf8(isolate, "response"))->ToObject()->SetPrototype(Local::New(args.GetIsolate(), resTemplate)->GetPrototype()); ^ In file included from /root/.cache/node-gyp/12.18.0/include/node/v8-internal.h:14:0, from /root/.cache/node-gyp/12.18.0/include/node/v8.h:27, from /root/.cache/node-gyp/12.18.0/include/node/node.h:67, from ../src/addon.h:1, from ../src/addon.cpp:2: /root/.cache/node-gyp/12.18.0/include/node/v8.h:3032:21: note: declared here Local NewFromUtf8(Isolate* isolate, const char* data, ^ /root/.cache/node-gyp/12.18.0/include/node/v8config.h:328:3: note: in definition of macro 'V8_DEPRECATED' declarator __attribute__((deprecated(message))) ^~~~~~~~~~ In file included from ../src/addon.cpp:3:0: ../src/http.h:321:66: warning: 'v8::Local v8::Object::Get(v8::Local)' is deprecated: Use maybe version [-Wdeprecated-declarations] express->Get(String::NewFromUtf8(isolate, "response"))->ToObject()->SetPrototype(Local::New(args.GetIsolate(), resTemplate)->GetPrototype()); ^ In file included from /root/.cache/node-gyp/12.18.0/include/node/v8-internal.h:14:0, from /root/.cache/node-gyp/12.18.0/include/node/v8.h:27, from /root/.cache/node-gyp/12.18.0/include/node/node.h:67, from ../src/addon.h:1, from ../src/addon.cpp:2: /root/.cache/node-gyp/12.18.0/include/node/v8.h:3553:51: note: declared here V8_DEPRECATED("Use maybe version", Local Get(Local key)); ^ /root/.cache/node-gyp/12.18.0/include/node/v8config.h:328:3: note: in definition of macro 'V8_DEPRECATED' declarator __attribute__((deprecated(message))) ^~~~~~~~~~ In file included from ../src/addon.cpp:3:0: ../src/http.h:321:78: error: no matching function for call to 'v8::Value::ToObject()' express->Get(String::NewFromUtf8(isolate, "response"))->ToObject()->SetPrototype(Local::New(args.GetIsolate(), resTemplate)->GetPrototype()); ^ In file included from /root/.cache/node-gyp/12.18.0/include/node/node.h:67:0, from ../src/addon.h:1, from ../src/addon.cpp:2: /root/.cache/node-gyp/12.18.0/include/node/v8.h:2672:44: note: candidate: v8::MaybeLocal v8::Value::ToObject(v8::Local) const V8_WARN_UNUSED_RESULT MaybeLocal ToObject( ^~~~~~~~ /root/.cache/node-gyp/12.18.0/include/node/v8.h:2672:44: note: candidate expects 1 argument, 0 provided In file included from /root/.cache/node-gyp/12.18.0/include/node/v8-internal.h:14:0, from /root/.cache/node-gyp/12.18.0/include/node/v8.h:27, from /root/.cache/node-gyp/12.18.0/include/node/node.h:67, from ../src/addon.h:1, from ../src/addon.cpp:2: /root/.cache/node-gyp/12.18.0/include/node/v8.h:2686:31: note: candidate: v8::Local v8::Value::ToObject(v8::Isolate*) const Local ToObject(Isolate* isolate) const); ^ /root/.cache/node-gyp/12.18.0/include/node/v8config.h:328:3: note: in definition of macro 'V8_DEPRECATED' declarator __attribute__((deprecated(message))) ^~~~~~~~~~ /root/.cache/node-gyp/12.18.0/include/node/v8.h:2686:31: note: candidate expects 1 argument, 0 provided Local ToObject(Isolate* isolate) const); ^ /root/.cache/node-gyp/12.18.0/include/node/v8config.h:328:3: note: in definition of macro 'V8_DEPRECATED' declarator __attribute__((deprecated(message))) ^~~~~~~~~~ In file included from ../src/addon.cpp:3:0: ../src/http.h:327:60: error: no matching function for call to 'v8::Function::NewInstance()' args.GetReturnValue().Set(express->NewInstance()); ^ In file included from /root/.cache/node-gyp/12.18.0/include/node/node.h:67:0, from ../src/addon.h:1, from ../src/addon.cpp:2: /root/.cache/node-gyp/12.18.0/include/node/v8.h:4281:44: note: candidate: v8::MaybeLocal v8::Function::NewInstance(v8::Local, int, v8::Local*) const V8_WARN_UNUSED_RESULT MaybeLocal NewInstance( ^~~~~~~~~~~ /root/.cache/node-gyp/12.18.0/include/node/v8.h:4281:44: note: candidate expects 3 arguments, 0 provided /root/.cache/node-gyp/12.18.0/include/node/v8.h:4284:44: note: candidate: v8::MaybeLocal v8::Function::NewInstance(v8::Local) const V8_WARN_UNUSED_RESULT MaybeLocal NewInstance( ^~~~~~~~~~~ /root/.cache/node-gyp/12.18.0/include/node/v8.h:4284:44: note: candidate expects 1 argument, 0 provided In file included from ../src/addon.cpp:3:0: ../src/http.h: In static member function 'static v8::Local HttpServer::getHttpServer(v8::Isolate*)': ../src/http.h:343:68: warning: 'static v8::Local v8::String::NewFromUtf8(v8::Isolate*, const char*, v8::String::NewStringType, int)' is deprecated: Use maybe version [-Wdeprecated-declarations] httpServer->Set(String::NewFromUtf8(isolate, "createServer"), FunctionTemplate::New(isolate, HttpServer::createServer)); ^ In file included from /root/.cache/node-gyp/12.18.0/include/node/v8-internal.h:14:0, from /root/.cache/node-gyp/12.18.0/include/node/v8.h:27, from /root/.cache/node-gyp/12.18.0/include/node/node.h:67, from ../src/addon.h:1, from ../src/addon.cpp:2: /root/.cache/node-gyp/12.18.0/include/node/v8.h:3032:21: note: declared here Local NewFromUtf8(Isolate* isolate, const char* data, ^ /root/.cache/node-gyp/12.18.0/include/node/v8config.h:328:3: note: in definition of macro 'V8_DEPRECATED' declarator __attribute__((deprecated(message))) ^~~~~~~~~~ In file included from ../src/addon.cpp:3:0: ../src/http.h:344:69: warning: 'static v8::Local v8::String::NewFromUtf8(v8::Isolate*, const char*, v8::String::NewStringType, int)' is deprecated: Use maybe version [-Wdeprecated-declarations] httpServer->Set(String::NewFromUtf8(isolate, "getExpressApp"), FunctionTemplate::New(isolate, HttpServer::getExpressApp)); ^ In file included from /root/.cache/node-gyp/12.18.0/include/node/v8-internal.h:14:0, from /root/.cache/node-gyp/12.18.0/include/node/v8.h:27, from /root/.cache/node-gyp/12.18.0/include/node/node.h:67, from ../src/addon.h:1, from ../src/addon.cpp:2: /root/.cache/node-gyp/12.18.0/include/node/v8.h:3032:21: note: declared here Local NewFromUtf8(Isolate* isolate, const char* data, ^ /root/.cache/node-gyp/12.18.0/include/node/v8config.h:328:3: note: in definition of macro 'V8_DEPRECATED' declarator __attribute__((deprecated(message))) ^~~~~~~~~~ In file included from ../src/addon.cpp:3:0: ../src/http.h:345:76: warning: 'static v8::Local v8::String::NewFromUtf8(v8::Isolate*, const char*, v8::String::NewStringType, int)' is deprecated: Use maybe version [-Wdeprecated-declarations] httpServer->Set(String::NewFromUtf8(isolate, "getResponsePrototype"), FunctionTemplate::New(isolate, HttpServer::getResponsePrototype)); ^ In file included from /root/.cache/node-gyp/12.18.0/include/node/v8-internal.h:14:0, from /root/.cache/node-gyp/12.18.0/include/node/v8.h:27, from /root/.cache/node-gyp/12.18.0/include/node/node.h:67, from ../src/addon.h:1, from ../src/addon.cpp:2: /root/.cache/node-gyp/12.18.0/include/node/v8.h:3032:21: note: declared here Local NewFromUtf8(Isolate* isolate, const char* data, ^ /root/.cache/node-gyp/12.18.0/include/node/v8config.h:328:3: note: in definition of macro 'V8_DEPRECATED' declarator __attribute__((deprecated(message))) ^~~~~~~~~~ In file included from ../src/addon.cpp:3:0: ../src/http.h:346:75: warning: 'static v8::Local v8::String::NewFromUtf8(v8::Isolate*, const char*, v8::String::NewStringType, int)' is deprecated: Use maybe version [-Wdeprecated-declarations] httpServer->Set(String::NewFromUtf8(isolate, "getRequestPrototype"), FunctionTemplate::New(isolate, HttpServer::getRequestPrototype)); ^ In file included from /root/.cache/node-gyp/12.18.0/include/node/v8-internal.h:14:0, from /root/.cache/node-gyp/12.18.0/include/node/v8.h:27, from /root/.cache/node-gyp/12.18.0/include/node/node.h:67, from ../src/addon.h:1, from ../src/addon.cpp:2: /root/.cache/node-gyp/12.18.0/include/node/v8.h:3032:21: note: declared here Local NewFromUtf8(Isolate* isolate, const char* data, ^ /root/.cache/node-gyp/12.18.0/include/node/v8config.h:328:3: note: in definition of macro 'V8_DEPRECATED' declarator __attribute__((deprecated(message))) ^~~~~~~~~~ In file included from ../src/addon.cpp:3:0: ../src/http.h:347:83: warning: 'static v8::Local v8::String::NewFromUtf8(v8::Isolate*, const char*, v8::String::NewStringType, int)' is deprecated: Use maybe version [-Wdeprecated-declarations] httpServer->PrototypeTemplate()->Set(String::NewFromUtf8(isolate, "listen"), FunctionTemplate::New(isolate, HttpServer::listen)); ^ In file included from /root/.cache/node-gyp/12.18.0/include/node/v8-internal.h:14:0, from /root/.cache/node-gyp/12.18.0/include/node/v8.h:27, from /root/.cache/node-gyp/12.18.0/include/node/node.h:67, from ../src/addon.h:1, from ../src/addon.cpp:2: /root/.cache/node-gyp/12.18.0/include/node/v8.h:3032:21: note: declared here Local NewFromUtf8(Isolate* isolate, const char* data, ^ /root/.cache/node-gyp/12.18.0/include/node/v8config.h:328:3: note: in definition of macro 'V8_DEPRECATED' declarator __attribute__((deprecated(message))) ^~~~~~~~~~ In file included from ../src/addon.cpp:3:0: ../src/http.h:348:79: warning: 'static v8::Local v8::String::NewFromUtf8(v8::Isolate*, const char*, v8::String::NewStringType, int)' is deprecated: Use maybe version [-Wdeprecated-declarations] httpServer->PrototypeTemplate()->Set(String::NewFromUtf8(isolate, "on"), FunctionTemplate::New(isolate, HttpServer::on)); ^ In file included from /root/.cache/node-gyp/12.18.0/include/node/v8-internal.h:14:0, from /root/.cache/node-gyp/12.18.0/include/node/v8.h:27, from /root/.cache/node-gyp/12.18.0/include/node/node.h:67, from ../src/addon.h:1, from ../src/addon.cpp:2: /root/.cache/node-gyp/12.18.0/include/node/v8.h:3032:21: note: declared here Local NewFromUtf8(Isolate* isolate, const char* data, ^ /root/.cache/node-gyp/12.18.0/include/node/v8config.h:328:3: note: in definition of macro 'V8_DEPRECATED' declarator __attribute__((deprecated(message))) ^~~~~~~~~~ In file included from ../src/addon.cpp:3:0: ../src/http.h:353:67: error: no matching function for call to 'v8::FunctionTemplate::GetFunction()' Local httpServerLocal = httpServer->GetFunction(); ^ In file included from /root/.cache/node-gyp/12.18.0/include/node/node.h:67:0, from ../src/addon.h:1, from ../src/addon.cpp:2: /root/.cache/node-gyp/12.18.0/include/node/v8.h:6126:46: note: candidate: v8::MaybeLocal v8::FunctionTemplate::GetFunction(v8::Local) V8_WARN_UNUSED_RESULT MaybeLocal GetFunction( ^~~~~~~~~~~ /root/.cache/node-gyp/12.18.0/include/node/v8.h:6126:46: note: candidate expects 1 argument, 0 provided ../src/addon.cpp: In function 'void Main(v8::Local)': ../src/addon.cpp:8:55: warning: 'static v8::Local v8::String::NewFromUtf8(v8::Isolate*, const char*, v8::String::NewStringType, int)' is deprecated: Use maybe version [-Wdeprecated-declarations] exports->Set(String::NewFromUtf8(isolate, "server"), Namespace(isolate).object); ^ In file included from /root/.cache/node-gyp/12.18.0/include/node/v8-internal.h:14:0, from /root/.cache/node-gyp/12.18.0/include/node/v8.h:27, from /root/.cache/node-gyp/12.18.0/include/node/node.h:67, from ../src/addon.h:1, from ../src/addon.cpp:2: /root/.cache/node-gyp/12.18.0/include/node/v8.h:3032:21: note: declared here Local NewFromUtf8(Isolate* isolate, const char* data, ^ /root/.cache/node-gyp/12.18.0/include/node/v8config.h:328:3: note: in definition of macro 'V8_DEPRECATED' declarator __attribute__((deprecated(message))) ^~~~~~~~~~ ../src/addon.cpp:8:96: warning: 'bool v8::Object::Set(v8::Local, v8::Local)' is deprecated: Use maybe version [-Wdeprecated-declarations] exports->Set(String::NewFromUtf8(isolate, "server"), Namespace(isolate).object); ^ In file included from /root/.cache/node-gyp/12.18.0/include/node/v8-internal.h:14:0, from /root/.cache/node-gyp/12.18.0/include/node/v8.h:27, from /root/.cache/node-gyp/12.18.0/include/node/node.h:67, from ../src/addon.h:1, from ../src/addon.cpp:2: /root/.cache/node-gyp/12.18.0/include/node/v8.h:3499:22: note: declared here bool Set(Local key, Local value)); ^ /root/.cache/node-gyp/12.18.0/include/node/v8config.h:328:3: note: in definition of macro 'V8_DEPRECATED' declarator __attribute__((deprecated(message))) ^~~~~~~~~~ ../src/addon.cpp:9:55: warning: 'static v8::Local v8::String::NewFromUtf8(v8::Isolate*, const char*, v8::String::NewStringType, int)' is deprecated: Use maybe version [-Wdeprecated-declarations] exports->Set(String::NewFromUtf8(isolate, "client"), Namespace(isolate).object); ^ In file included from /root/.cache/node-gyp/12.18.0/include/node/v8-internal.h:14:0, from /root/.cache/node-gyp/12.18.0/include/node/v8.h:27, from /root/.cache/node-gyp/12.18.0/include/node/node.h:67, from ../src/addon.h:1, from ../src/addon.cpp:2: /root/.cache/node-gyp/12.18.0/include/node/v8.h:3032:21: note: declared here Local NewFromUtf8(Isolate* isolate, const char* data, ^ /root/.cache/node-gyp/12.18.0/include/node/v8config.h:328:3: note: in definition of macro 'V8_DEPRECATED' declarator __attribute__((deprecated(message))) ^~~~~~~~~~ ../src/addon.cpp:9:96: warning: 'bool v8::Object::Set(v8::Local, v8::Local)' is deprecated: Use maybe version [-Wdeprecated-declarations] exports->Set(String::NewFromUtf8(isolate, "client"), Namespace(isolate).object); ^ In file included from /root/.cache/node-gyp/12.18.0/include/node/v8-internal.h:14:0, from /root/.cache/node-gyp/12.18.0/include/node/v8.h:27, from /root/.cache/node-gyp/12.18.0/include/node/node.h:67, from ../src/addon.h:1, from ../src/addon.cpp:2: /root/.cache/node-gyp/12.18.0/include/node/v8.h:3499:22: note: declared here bool Set(Local key, Local value)); ^ /root/.cache/node-gyp/12.18.0/include/node/v8config.h:328:3: note: in definition of macro 'V8_DEPRECATED' declarator __attribute__((deprecated(message))) ^~~~~~~~~~ ../src/addon.cpp:10:59: warning: 'static v8::Local v8::String::NewFromUtf8(v8::Isolate*, const char*, v8::String::NewStringType, int)' is deprecated: Use maybe version [-Wdeprecated-declarations] exports->Set(String::NewFromUtf8(isolate, "httpServer"), HttpServer::getHttpServer(isolate)); ^ In file included from /root/.cache/node-gyp/12.18.0/include/node/v8-internal.h:14:0, from /root/.cache/node-gyp/12.18.0/include/node/v8.h:27, from /root/.cache/node-gyp/12.18.0/include/node/node.h:67, from ../src/addon.h:1, from ../src/addon.cpp:2: /root/.cache/node-gyp/12.18.0/include/node/v8.h:3032:21: note: declared here Local NewFromUtf8(Isolate* isolate, const char* data, ^ /root/.cache/node-gyp/12.18.0/include/node/v8config.h:328:3: note: in definition of macro 'V8_DEPRECATED' declarator __attribute__((deprecated(message))) ^~~~~~~~~~ ../src/addon.cpp:10:96: warning: 'bool v8::Object::Set(v8::Local, v8::Local)' is deprecated: Use maybe version [-Wdeprecated-declarations] exports->Set(String::NewFromUtf8(isolate, "httpServer"), HttpServer::getHttpServer(isolate)); ^ In file included from /root/.cache/node-gyp/12.18.0/include/node/v8-internal.h:14:0, from /root/.cache/node-gyp/12.18.0/include/node/v8.h:27, from /root/.cache/node-gyp/12.18.0/include/node/node.h:67, from ../src/addon.h:1, from ../src/addon.cpp:2: /root/.cache/node-gyp/12.18.0/include/node/v8.h:3499:22: note: declared here bool Set(Local key, Local value)); ^ /root/.cache/node-gyp/12.18.0/include/node/v8config.h:328:3: note: in definition of macro 'V8_DEPRECATED' declarator __attribute__((deprecated(message))) ^~~~~~~~~~ In file included from ../src/addon.cpp:2:0: ../src/addon.h: In instantiation of 'Namespace::Namespace(v8::Isolate*) [with bool isServer = true]': ../src/addon.cpp:8:88: required from here ../src/addon.h:464:40: warning: 'static v8::Local v8::String::NewFromUtf8(v8::Isolate*, const char*, v8::String::NewStringType, int)' is deprecated: Use maybe version [-Wdeprecated-declarations] object->Set(String::NewFromUtf8(isolate, "group"), group); ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~ In file included from /root/.cache/node-gyp/12.18.0/include/node/v8-internal.h:14:0, from /root/.cache/node-gyp/12.18.0/include/node/v8.h:27, from /root/.cache/node-gyp/12.18.0/include/node/node.h:67, from ../src/addon.h:1, from ../src/addon.cpp:2: /root/.cache/node-gyp/12.18.0/include/node/v8.h:3032:21: note: declared here Local NewFromUtf8(Isolate* isolate, const char* data, ^ /root/.cache/node-gyp/12.18.0/include/node/v8config.h:328:3: note: in definition of macro 'V8_DEPRECATED' declarator __attribute__((deprecated(message))) ^~~~~~~~~~ In file included from ../src/addon.cpp:2:0: ../src/addon.h:464:20: warning: 'bool v8::Object::Set(v8::Local, v8::Local)' is deprecated: Use maybe version [-Wdeprecated-declarations] object->Set(String::NewFromUtf8(isolate, "group"), group); ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /root/.cache/node-gyp/12.18.0/include/node/v8-internal.h:14:0, from /root/.cache/node-gyp/12.18.0/include/node/v8.h:27, from /root/.cache/node-gyp/12.18.0/include/node/node.h:67, from ../src/addon.h:1, from ../src/addon.cpp:2: /root/.cache/node-gyp/12.18.0/include/node/v8.h:3499:22: note: declared here bool Set(Local key, Local value)); ^ /root/.cache/node-gyp/12.18.0/include/node/v8config.h:328:3: note: in definition of macro 'V8_DEPRECATED' declarator __attribute__((deprecated(message))) ^~~~~~~~~~ In file included from ../src/addon.cpp:2:0: ../src/addon.h: In instantiation of 'Namespace::Namespace(v8::Isolate*) [with bool isServer = false]': ../src/addon.cpp:9:88: required from here ../src/addon.h:464:40: warning: 'static v8::Local v8::String::NewFromUtf8(v8::Isolate*, const char*, v8::String::NewStringType, int)' is deprecated: Use maybe version [-Wdeprecated-declarations] object->Set(String::NewFromUtf8(isolate, "group"), group); ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~ In file included from /root/.cache/node-gyp/12.18.0/include/node/v8-internal.h:14:0, from /root/.cache/node-gyp/12.18.0/include/node/v8.h:27, from /root/.cache/node-gyp/12.18.0/include/node/node.h:67, from ../src/addon.h:1, from ../src/addon.cpp:2: /root/.cache/node-gyp/12.18.0/include/node/v8.h:3032:21: note: declared here Local NewFromUtf8(Isolate* isolate, const char* data, ^ /root/.cache/node-gyp/12.18.0/include/node/v8config.h:328:3: note: in definition of macro 'V8_DEPRECATED' declarator __attribute__((deprecated(message))) ^~~~~~~~~~ In file included from ../src/addon.cpp:2:0: ../src/addon.h:464:20: warning: 'bool v8::Object::Set(v8::Local, v8::Local)' is deprecated: Use maybe version [-Wdeprecated-declarations] object->Set(String::NewFromUtf8(isolate, "group"), group); ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /root/.cache/node-gyp/12.18.0/include/node/v8-internal.h:14:0, from /root/.cache/node-gyp/12.18.0/include/node/v8.h:27, from /root/.cache/node-gyp/12.18.0/include/node/node.h:67, from ../src/addon.h:1, from ../src/addon.cpp:2: /root/.cache/node-gyp/12.18.0/include/node/v8.h:3499:22: note: declared here bool Set(Local key, Local value)); ^ /root/.cache/node-gyp/12.18.0/include/node/v8config.h:328:3: note: in definition of macro 'V8_DEPRECATED' declarator __attribute__((deprecated(message))) ^~~~~~~~~~ In file included from ../src/addon.cpp:2:0: ../src/addon.h: In instantiation of 'void getAddress(const v8::FunctionCallbackInfo&) [with bool isServer = true]': ../src/addon.cpp:15:67: required from here ../src/addon.h:137:5: warning: 'bool v8::Object::Set(uint32_t, v8::Local)' is deprecated: Use maybe version [-Wdeprecated-declarations] array->Set(0, Integer::New(args.GetIsolate(), address.port)); ^~~~~ In file included from /root/.cache/node-gyp/12.18.0/include/node/v8-internal.h:14:0, from /root/.cache/node-gyp/12.18.0/include/node/v8.h:27, from /root/.cache/node-gyp/12.18.0/include/node/node.h:67, from ../src/addon.h:1, from ../src/addon.cpp:2: /root/.cache/node-gyp/12.18.0/include/node/v8.h:3508:22: note: declared here bool Set(uint32_t index, Local value)); ^ /root/.cache/node-gyp/12.18.0/include/node/v8config.h:328:3: note: in definition of macro 'V8_DEPRECATED' declarator __attribute__((deprecated(message))) ^~~~~~~~~~ In file included from ../src/addon.cpp:2:0: ../src/addon.h:138:38: warning: 'static v8::Local v8::String::NewFromUtf8(v8::Isolate*, const char*, v8::String::NewStringType, int)' is deprecated: Use maybe version [-Wdeprecated-declarations] array->Set(1, String::NewFromUtf8(args.GetIsolate(), address.address)); ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /root/.cache/node-gyp/12.18.0/include/node/v8-internal.h:14:0, from /root/.cache/node-gyp/12.18.0/include/node/v8.h:27, from /root/.cache/node-gyp/12.18.0/include/node/node.h:67, from ../src/addon.h:1, from ../src/addon.cpp:2: /root/.cache/node-gyp/12.18.0/include/node/v8.h:3032:21: note: declared here Local NewFromUtf8(Isolate* isolate, const char* data, ^ /root/.cache/node-gyp/12.18.0/include/node/v8config.h:328:3: note: in definition of macro 'V8_DEPRECATED' declarator __attribute__((deprecated(message))) ^~~~~~~~~~ In file included from ../src/addon.cpp:2:0: ../src/addon.h:138:5: warning: 'bool v8::Object::Set(uint32_t, v8::Local)' is deprecated: Use maybe version [-Wdeprecated-declarations] array->Set(1, String::NewFromUtf8(args.GetIsolate(), address.address)); ^~~~~ In file included from /root/.cache/node-gyp/12.18.0/include/node/v8-internal.h:14:0, from /root/.cache/node-gyp/12.18.0/include/node/v8.h:27, from /root/.cache/node-gyp/12.18.0/include/node/node.h:67, from ../src/addon.h:1, from ../src/addon.cpp:2: /root/.cache/node-gyp/12.18.0/include/node/v8.h:3508:22: note: declared here bool Set(uint32_t index, Local value)); ^ /root/.cache/node-gyp/12.18.0/include/node/v8config.h:328:3: note: in definition of macro 'V8_DEPRECATED' declarator __attribute__((deprecated(message))) ^~~~~~~~~~ In file included from ../src/addon.cpp:2:0: ../src/addon.h:139:38: warning: 'static v8::Local v8::String::NewFromUtf8(v8::Isolate*, const char*, v8::String::NewStringType, int)' is deprecated: Use maybe version [-Wdeprecated-declarations] array->Set(2, String::NewFromUtf8(args.GetIsolate(), address.family)); ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /root/.cache/node-gyp/12.18.0/include/node/v8-internal.h:14:0, from /root/.cache/node-gyp/12.18.0/include/node/v8.h:27, from /root/.cache/node-gyp/12.18.0/include/node/node.h:67, from ../src/addon.h:1, from ../src/addon.cpp:2: /root/.cache/node-gyp/12.18.0/include/node/v8.h:3032:21: note: declared here Local NewFromUtf8(Isolate* isolate, const char* data, ^ /root/.cache/node-gyp/12.18.0/include/node/v8config.h:328:3: note: in definition of macro 'V8_DEPRECATED' declarator __attribute__((deprecated(message))) ^~~~~~~~~~ In file included from ../src/addon.cpp:2:0: ../src/addon.h:139:5: warning: 'bool v8::Object::Set(uint32_t, v8::Local)' is deprecated: Use maybe version [-Wdeprecated-declarations] array->Set(2, String::NewFromUtf8(args.GetIsolate(), address.family)); ^~~~~ In file included from /root/.cache/node-gyp/12.18.0/include/node/v8-internal.h:14:0, from /root/.cache/node-gyp/12.18.0/include/node/v8.h:27, from /root/.cache/node-gyp/12.18.0/include/node/node.h:67, from ../src/addon.h:1, from ../src/addon.cpp:2: /root/.cache/node-gyp/12.18.0/include/node/v8.h:3508:22: note: declared here bool Set(uint32_t index, Local value)); ^ /root/.cache/node-gyp/12.18.0/include/node/v8config.h:328:3: note: in definition of macro 'V8_DEPRECATED' declarator __attribute__((deprecated(message))) ^~~~~~~~~~ In file included from ../src/addon.cpp:2:0: ../src/addon.h: In instantiation of 'onConnection(const v8::FunctionCallbackInfo&)::*, uWS::HttpRequest)> [with bool isServer = true]': ../src/addon.h:254:55: required from 'struct onConnection(const v8::FunctionCallbackInfo&) [with bool isServer = true]::*, struct uWS::HttpRequest)>' ../src/addon.h:254:5: required from 'void onConnection(const v8::FunctionCallbackInfo&) [with bool isServer = true]' ../src/addon.h:443:24: required from 'Namespace::Namespace(v8::Isolate*) [with bool isServer = true]' ../src/addon.cpp:8:88: required from here ../src/addon.h:258:27: warning: 'v8::Local node::MakeCallback(v8::Isolate*, v8::Local, v8::Local, int, v8::Local*)' is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations] node::MakeCallback(isolate, isolate->GetCurrentContext()->Global(), Local::New(isolate, *connectionCallback), 1, argv); ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../src/addon.h:1:0, from ../src/addon.cpp:2: /root/.cache/node-gyp/12.18.0/include/node/node.h:182:50: note: declared here NODE_EXTERN v8::Local MakeCallback( ^ /root/.cache/node-gyp/12.18.0/include/node/node.h:101:42: note: in definition of macro 'NODE_DEPRECATED' __attribute__((deprecated(message))) declarator ^~~~~~~~~~ In file included from ../src/addon.cpp:2:0: ../src/addon.h: In instantiation of 'onDisconnection(const v8::FunctionCallbackInfo&)::*, int, char*, size_t)> [with bool isServer = true; size_t = long unsigned int]': ../src/addon.h:319:61: required from 'struct onDisconnection(const v8::FunctionCallbackInfo&) [with bool isServer = true]::*, int, char*, size_t)>' ../src/addon.h:319:5: required from 'void onDisconnection(const v8::FunctionCallbackInfo&) [with bool isServer = true]' ../src/addon.h:445:24: required from 'Namespace::Namespace(v8::Isolate*) [with bool isServer = true]' ../src/addon.cpp:8:88: required from here ../src/addon.h:326:27: warning: 'v8::Local node::MakeCallback(v8::Isolate*, v8::Local, v8::Local, int, v8::Local*)' is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations] node::MakeCallback(isolate, isolate->GetCurrentContext()->Global(), Local::New(isolate, *disconnectionCallback), 4, argv); ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../src/addon.h:1:0, from ../src/addon.cpp:2: /root/.cache/node-gyp/12.18.0/include/node/node.h:182:50: note: declared here NODE_EXTERN v8::Local MakeCallback( ^ /root/.cache/node-gyp/12.18.0/include/node/node.h:101:42: note: in definition of macro 'NODE_DEPRECATED' __attribute__((deprecated(message))) declarator ^~~~~~~~~~ In file included from ../src/addon.cpp:2:0: ../src/addon.h: In instantiation of 'onPing(const v8::FunctionCallbackInfo&)::*, const char*, size_t)> [with bool isServer = true; size_t = long unsigned int]': ../src/addon.h:286:29: required from 'struct onPing(const v8::FunctionCallbackInfo&) [with bool isServer = true]::*, const char*, size_t)>' ../src/addon.h:286:5: required from 'void onPing(const v8::FunctionCallbackInfo&) [with bool isServer = true]' ../src/addon.h:456:24: required from 'Namespace::Namespace(v8::Isolate*) [with bool isServer = true]' ../src/addon.cpp:8:88: required from here ../src/addon.h:290:27: warning: 'v8::Local node::MakeCallback(v8::Isolate*, v8::Local, v8::Local, int, v8::Local*)' is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations] node::MakeCallback(isolate, isolate->GetCurrentContext()->Global(), Local::New(isolate, *pingCallback), 2, argv); ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../src/addon.h:1:0, from ../src/addon.cpp:2: /root/.cache/node-gyp/12.18.0/include/node/node.h:182:50: note: declared here NODE_EXTERN v8::Local MakeCallback( ^ /root/.cache/node-gyp/12.18.0/include/node/node.h:101:42: note: in definition of macro 'NODE_DEPRECATED' __attribute__((deprecated(message))) declarator ^~~~~~~~~~ In file included from ../src/addon.cpp:2:0: ../src/addon.h: In instantiation of 'onPong(const v8::FunctionCallbackInfo&)::*, const char*, size_t)> [with bool isServer = true; size_t = long unsigned int]': ../src/addon.h:302:29: required from 'struct onPong(const v8::FunctionCallbackInfo&) [with bool isServer = true]::*, const char*, size_t)>' ../src/addon.h:302:5: required from 'void onPong(const v8::FunctionCallbackInfo&) [with bool isServer = true]' ../src/addon.h:457:24: required from 'Namespace::Namespace(v8::Isolate*) [with bool isServer = true]' ../src/addon.cpp:8:88: required from here ../src/addon.h:306:27: warning: 'v8::Local node::MakeCallback(v8::Isolate*, v8::Local, v8::Local, int, v8::Local*)' is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations] node::MakeCallback(isolate, isolate->GetCurrentContext()->Global(), Local::New(isolate, *pongCallback), 2, argv); ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../src/addon.h:1:0, from ../src/addon.cpp:2: /root/.cache/node-gyp/12.18.0/include/node/node.h:182:50: note: declared here NODE_EXTERN v8::Local MakeCallback( ^ /root/.cache/node-gyp/12.18.0/include/node/node.h:101:42: note: in definition of macro 'NODE_DEPRECATED' __attribute__((deprecated(message))) declarator ^~~~~~~~~~ In file included from ../src/addon.cpp:2:0: ../src/addon.h: In instantiation of 'onConnection(const v8::FunctionCallbackInfo&)::*, uWS::HttpRequest)> [with bool isServer = false]': ../src/addon.h:254:55: required from 'struct onConnection(const v8::FunctionCallbackInfo&) [with bool isServer = false]::*, struct uWS::HttpRequest)>' ../src/addon.h:254:5: required from 'void onConnection(const v8::FunctionCallbackInfo&) [with bool isServer = false]' ../src/addon.h:443:24: required from 'Namespace::Namespace(v8::Isolate*) [with bool isServer = false]' ../src/addon.cpp:9:88: required from here ../src/addon.h:258:27: warning: 'v8::Local node::MakeCallback(v8::Isolate*, v8::Local, v8::Local, int, v8::Local*)' is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations] node::MakeCallback(isolate, isolate->GetCurrentContext()->Global(), Local::New(isolate, *connectionCallback), 1, argv); ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../src/addon.h:1:0, from ../src/addon.cpp:2: /root/.cache/node-gyp/12.18.0/include/node/node.h:182:50: note: declared here NODE_EXTERN v8::Local MakeCallback( ^ /root/.cache/node-gyp/12.18.0/include/node/node.h:101:42: note: in definition of macro 'NODE_DEPRECATED' __attribute__((deprecated(message))) declarator ^~~~~~~~~~ In file included from ../src/addon.cpp:2:0: ../src/addon.h: In instantiation of 'onDisconnection(const v8::FunctionCallbackInfo&)::*, int, char*, size_t)> [with bool isServer = false; size_t = long unsigned int]': ../src/addon.h:319:61: required from 'struct onDisconnection(const v8::FunctionCallbackInfo&) [with bool isServer = false]::*, int, char*, size_t)>' ../src/addon.h:319:5: required from 'void onDisconnection(const v8::FunctionCallbackInfo&) [with bool isServer = false]' ../src/addon.h:445:24: required from 'Namespace::Namespace(v8::Isolate*) [with bool isServer = false]' ../src/addon.cpp:9:88: required from here ../src/addon.h:326:27: warning: 'v8::Local node::MakeCallback(v8::Isolate*, v8::Local, v8::Local, int, v8::Local*)' is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations] node::MakeCallback(isolate, isolate->GetCurrentContext()->Global(), Local::New(isolate, *disconnectionCallback), 4, argv); ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../src/addon.h:1:0, from ../src/addon.cpp:2: /root/.cache/node-gyp/12.18.0/include/node/node.h:182:50: note: declared here NODE_EXTERN v8::Local MakeCallback( ^ /root/.cache/node-gyp/12.18.0/include/node/node.h:101:42: note: in definition of macro 'NODE_DEPRECATED' __attribute__((deprecated(message))) declarator ^~~~~~~~~~ In file included from ../src/addon.cpp:2:0: ../src/addon.h: In instantiation of 'onPing(const v8::FunctionCallbackInfo&)::*, const char*, size_t)> [with bool isServer = false; size_t = long unsigned int]': ../src/addon.h:286:29: required from 'struct onPing(const v8::FunctionCallbackInfo&) [with bool isServer = false]::*, const char*, size_t)>' ../src/addon.h:286:5: required from 'void onPing(const v8::FunctionCallbackInfo&) [with bool isServer = false]' ../src/addon.h:456:24: required from 'Namespace::Namespace(v8::Isolate*) [with bool isServer = false]' ../src/addon.cpp:9:88: required from here ../src/addon.h:290:27: warning: 'v8::Local node::MakeCallback(v8::Isolate*, v8::Local, v8::Local, int, v8::Local*)' is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations] node::MakeCallback(isolate, isolate->GetCurrentContext()->Global(), Local::New(isolate, *pingCallback), 2, argv); ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../src/addon.h:1:0, from ../src/addon.cpp:2: /root/.cache/node-gyp/12.18.0/include/node/node.h:182:50: note: declared here NODE_EXTERN v8::Local MakeCallback( ^ /root/.cache/node-gyp/12.18.0/include/node/node.h:101:42: note: in definition of macro 'NODE_DEPRECATED' __attribute__((deprecated(message))) declarator ^~~~~~~~~~ In file included from ../src/addon.cpp:2:0: ../src/addon.h: In instantiation of 'onPong(const v8::FunctionCallbackInfo&)::*, const char*, size_t)> [with bool isServer = false; size_t = long unsigned int]': ../src/addon.h:302:29: required from 'struct onPong(const v8::FunctionCallbackInfo&) [with bool isServer = false]::*, const char*, size_t)>' ../src/addon.h:302:5: required from 'void onPong(const v8::FunctionCallbackInfo&) [with bool isServer = false]' ../src/addon.h:457:24: required from 'Namespace::Namespace(v8::Isolate*) [with bool isServer = false]' ../src/addon.cpp:9:88: required from here ../src/addon.h:306:27: warning: 'v8::Local node::MakeCallback(v8::Isolate*, v8::Local, v8::Local, int, v8::Local*)' is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations] node::MakeCallback(isolate, isolate->GetCurrentContext()->Global(), Local::New(isolate, *pongCallback), 2, argv); ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../src/addon.h:1:0, from ../src/addon.cpp:2: /root/.cache/node-gyp/12.18.0/include/node/node.h:182:50: note: declared here NODE_EXTERN v8::Local MakeCallback( ^ /root/.cache/node-gyp/12.18.0/include/node/node.h:101:42: note: in definition of macro 'NODE_DEPRECATED' __attribute__((deprecated(message))) declarator ^~~~~~~~~~ In file included from ../src/addon.cpp:2:0: ../src/addon.h: In instantiation of 'void sendCallback(uWS::WebSocket*, void*, bool, void*) [with bool isServer = true]': ../src/addon.h:179:18: required from 'void send(const v8::FunctionCallbackInfo&) [with bool isServer = true]' ../src/addon.h:435:24: required from 'Namespace::Namespace(v8::Isolate*) [with bool isServer = true]' ../src/addon.cpp:8:88: required from here ../src/addon.h:163:27: warning: 'v8::Local node::MakeCallback(v8::Isolate*, v8::Local, v8::Local, int, v8::Local*)' is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations] node::MakeCallback(sc->isolate, sc->isolate->GetCurrentContext()->Global(), Local::New(sc->isolate, sc->jsCallback), 0, nullptr); ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../src/addon.h:1:0, from ../src/addon.cpp:2: /root/.cache/node-gyp/12.18.0/include/node/node.h:182:50: note: declared here NODE_EXTERN v8::Local MakeCallback( ^ /root/.cache/node-gyp/12.18.0/include/node/node.h:101:42: note: in definition of macro 'NODE_DEPRECATED' __attribute__((deprecated(message))) declarator ^~~~~~~~~~ In file included from ../src/addon.cpp:2:0: ../src/addon.h: In instantiation of 'void sendCallback(uWS::WebSocket*, void*, bool, void*) [with bool isServer = false]': ../src/addon.h:179:18: required from 'void send(const v8::FunctionCallbackInfo&) [with bool isServer = false]' ../src/addon.h:435:24: required from 'Namespace::Namespace(v8::Isolate*) [with bool isServer = false]' ../src/addon.cpp:9:88: required from here ../src/addon.h:163:27: warning: 'v8::Local node::MakeCallback(v8::Isolate*, v8::Local, v8::Local, int, v8::Local*)' is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations] node::MakeCallback(sc->isolate, sc->isolate->GetCurrentContext()->Global(), Local::New(sc->isolate, sc->jsCallback), 0, nullptr); ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../src/addon.h:1:0, from ../src/addon.cpp:2: /root/.cache/node-gyp/12.18.0/include/node/node.h:182:50: note: declared here NODE_EXTERN v8::Local MakeCallback( ^ /root/.cache/node-gyp/12.18.0/include/node/node.h:101:42: note: in definition of macro 'NODE_DEPRECATED' __attribute__((deprecated(message))) declarator ^~~~~~~~~~ uws.target.mk:116: recipe for target 'Release/obj.target/uws/src/addon.o' failed make: *** [Release/obj.target/uws/src/addon.o] Error 1 make: Leaving directory '/var/www/pauldent.cz/node_modules/uws/build' gyp ERR! build error gyp ERR! stack Error: `make` failed with exit code: 2 gyp ERR! stack at ChildProcess.onExit (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:194:23) gyp ERR! stack at ChildProcess.emit (events.js:315:20) gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:275:12) gyp ERR! System Linux 4.15.0-33-generic gyp ERR! command "/usr/bin/node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild" gyp ERR! cwd /var/www/pauldent.cz/node_modules/uws gyp ERR! node -v v12.18.0 gyp ERR! node-gyp -v v5.1.0 gyp ERR! not ok