-
Notifications
You must be signed in to change notification settings - Fork 146
Open
Description
macOS: 15.3.2 (24D81)
Node Version: v23.11.0
NPM Version: 10.9.2
When I run npm install --global mdns, I get the following output:
user@macbook ~ % npm install --global mdns
npm error code 1
npm error path /opt/homebrew/lib/node_modules/mdns
npm error command failed
npm error command sh -c node-gyp rebuild
npm error CXX(target) Release/obj.target/dns_sd_bindings/src/dns_sd.o
npm error CXX(target) Release/obj.target/dns_sd_bindings/src/dns_service_browse.o
npm error CXX(target) Release/obj.target/dns_sd_bindings/src/dns_service_enumerate_domains.o
npm error CXX(target) Release/obj.target/dns_sd_bindings/src/dns_service_get_addr_info.o
npm error CXX(target) Release/obj.target/dns_sd_bindings/src/dns_service_process_result.o
npm error CXX(target) Release/obj.target/dns_sd_bindings/src/dns_service_ref.o
npm error gyp info it worked if it ends with ok
npm error gyp info using node-gyp@11.0.0
npm error gyp info using node@23.11.0 | darwin | arm64
npm error gyp info find Python using Python version 3.9.6 found at "/Applications/Xcode.app/Contents/Developer/usr/bin/python3"
npm error gyp info spawn /Applications/Xcode.app/Contents/Developer/usr/bin/python3
npm error gyp info spawn args [
npm error gyp info spawn args '/opt/homebrew/lib/node_modules/npm/node_modules/node-gyp/gyp/gyp_main.py',
npm error gyp info spawn args 'binding.gyp',
npm error gyp info spawn args '-f',
npm error gyp info spawn args 'make',
npm error gyp info spawn args '-I',
npm error gyp info spawn args '/opt/homebrew/lib/node_modules/mdns/build/config.gypi',
npm error gyp info spawn args '-I',
npm error gyp info spawn args '/opt/homebrew/lib/node_modules/npm/node_modules/node-gyp/addon.gypi',
npm error gyp info spawn args '-I',
npm error gyp info spawn args '/Users/user/Library/Caches/node-gyp/23.11.0/include/node/common.gypi',
npm error gyp info spawn args '-Dlibrary=shared_library',
npm error gyp info spawn args '-Dvisibility=default',
npm error gyp info spawn args '-Dnode_root_dir=/Users/user/Library/Caches/node-gyp/23.11.0',
npm error gyp info spawn args '-Dnode_gyp_dir=/opt/homebrew/lib/node_modules/npm/node_modules/node-gyp',
npm error gyp info spawn args '-Dnode_lib_file=/Users/user/Library/Caches/node-gyp/23.11.0/<(target_arch)/node.lib',
npm error gyp info spawn args '-Dmodule_root_dir=/opt/homebrew/lib/node_modules/mdns',
npm error gyp info spawn args '-Dnode_engine=v8',
npm error gyp info spawn args '--depth=.',
npm error gyp info spawn args '--no-parallel',
npm error gyp info spawn args '--generator-output',
npm error gyp info spawn args 'build',
npm error gyp info spawn args '-Goutput_dir=.'
npm error gyp info spawn args ]
npm error gyp info spawn make
npm error gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ]
npm error ../src/dns_sd.cpp:322:1: warning: cast from 'void (*)(Local<Object>)' to 'node::addon_register_func' (aka 'void (*)(v8::Local<v8::Object>, v8::Local<v8::Value>, void *)') converts to incompatible function type [-Wcast-function-type-mismatch]
npm error 322 | NODE_MODULE(dns_sd_bindings,node_mdns::init);
npm error | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
npm error /Users/user/Library/Caches/node-gyp/23.11.0/include/node/node.h:1261:3: note: expanded from macro 'NODE_MODULE'
npm error 1261 | NODE_MODULE_X(modname, regfunc, NULL, 0) // NOLINT (readability/null_usage)
npm error | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
npm error /Users/user/Library/Caches/node-gyp/23.11.0/include/node/node.h:1227:7: note: expanded from macro 'NODE_MODULE_X'
npm error 1227 | (node::addon_register_func) (regfunc), \
npm error | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
npm error In file included from ../src/dns_sd.cpp:1:
npm error In file included from ../src/mdns.hpp:11:
npm error In file included from /Users/user/Library/Caches/node-gyp/23.11.0/include/node/node.h:73:
npm error In file included from /Users/user/Library/Caches/node-gyp/23.11.0/include/node/v8.h:24:
npm error In file included from /Users/user/Library/Caches/node-gyp/23.11.0/include/node/v8-array-buffer.h:13:
npm error In file included from /Users/user/Library/Caches/node-gyp/23.11.0/include/node/v8-object.h:11:
npm error /Users/user/Library/Caches/node-gyp/23.11.0/include/node/v8-persistent-handle.h:493:26: warning: cast from 'typename WeakCallbackInfo<ObjectWrap>::Callback' (aka 'void (*)(const WeakCallbackInfo<ObjectWrap> &)') to 'Callback' (aka 'void (*)(const WeakCallbackInfo<void> &)') converts to incompatible function type [-Wcast-function-type-mismatch]
npm error 493 | reinterpret_cast<Callback>(callback), type);
npm error | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
npm error /Users/user/Library/Caches/node-gyp/23.11.0/include/node/node_object_wrap.h:85:18: note: in instantiation of function template specialization 'v8::PersistentBase<v8::Object>::SetWeak<node::ObjectWrap>' requested here
npm error 85 | persistent().SetWeak(this, WeakCallback, v8::WeakCallbackType::kParameter);
npm error | ^
npm error In file included from ../src/dns_sd.cpp:1:
npm error In file included from ../src/mdns.hpp:11:
npm error In file included from /Users/user/Library/Caches/node-gyp/23.11.0/include/node/node.h:73:
npm error In file included from /Users/user/Library/Caches/node-gyp/23.11.0/include/node/v8.h:24:
npm error In file included from /Users/user/Library/Caches/node-gyp/23.11.0/include/node/v8-array-buffer.h:13:
npm error In file included from /Users/user/Library/Caches/node-gyp/23.11.0/include/node/v8-object.h:11:
npm error /Users/user/Library/Caches/node-gyp/23.11.0/include/node/v8-persistent-handle.h:493:26: warning: cast from 'typename WeakCallbackInfo<ObjectWrap>::Callback' (aka 'void (*)(const WeakCallbackInfo<ObjectWrap> &)') to 'Callback' (aka 'void (*)(const WeakCallbackInfo<void> &)') converts to incompatible function type [-Wcast-function-type-mismatch]
npm error 493 | reinterpret_cast<Callback>(callback), type);
npm error | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
npm error ../node_modules/nan/nan_object_wrap.h:64:50: note: in instantiation of function template specialization 'v8::PersistentBase<v8::Object>::SetWeak<Nan::ObjectWrap>' requested here
npm error 64 | persistent().v8::PersistentBase<v8::Object>::SetWeak(
npm error | ^
npm error 3 warnings generated.
npm error In file included from ../src/dns_service_browse.cpp:1:
npm error In file included from ../src/mdns.hpp:11:
npm error In file included from /Users/user/Library/Caches/node-gyp/23.11.0/include/node/node.h:73:
npm error In file included from /Users/user/Library/Caches/node-gyp/23.11.0/include/node/v8.h:24:
npm error In file included from /Users/user/Library/Caches/node-gyp/23.11.0/include/node/v8-array-buffer.h:13:
npm error In file included from /Users/user/Library/Caches/node-gyp/23.11.0/include/node/v8-object.h:11:
npm error /Users/user/Library/Caches/node-gyp/23.11.0/include/node/v8-persistent-handle.h:493:26: warning: cast from 'typename WeakCallbackInfo<ObjectWrap>::Callback' (aka 'void (*)(const WeakCallbackInfo<ObjectWrap> &)') to 'Callback' (aka 'void (*)(const WeakCallbackInfo<void> &)') converts to incompatible function type [-Wcast-function-type-mismatch]
npm error 493 | reinterpret_cast<Callback>(callback), type);
npm error | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
npm error /Users/user/Library/Caches/node-gyp/23.11.0/include/node/node_object_wrap.h:85:18: note: in instantiation of function template specialization 'v8::PersistentBase<v8::Object>::SetWeak<node::ObjectWrap>' requested here
npm error 85 | persistent().SetWeak(this, WeakCallback, v8::WeakCallbackType::kParameter);
npm error | ^
npm error In file included from ../src/dns_service_browse.cpp:1:
npm error In file included from ../src/mdns.hpp:11:
npm error In file included from /Users/user/Library/Caches/node-gyp/23.11.0/include/node/node.h:73:
npm error In file included from /Users/user/Library/Caches/node-gyp/23.11.0/include/node/v8.h:24:
npm error In file included from /Users/user/Library/Caches/node-gyp/23.11.0/include/node/v8-array-buffer.h:13:
npm error In file included from /Users/user/Library/Caches/node-gyp/23.11.0/include/node/v8-object.h:11:
npm error /Users/user/Library/Caches/node-gyp/23.11.0/include/node/v8-persistent-handle.h:493:26: warning: cast from 'typename WeakCallbackInfo<ObjectWrap>::Callback' (aka 'void (*)(const WeakCallbackInfo<ObjectWrap> &)') to 'Callback' (aka 'void (*)(const WeakCallbackInfo<void> &)') converts to incompatible function type [-Wcast-function-type-mismatch]
npm error 493 | reinterpret_cast<Callback>(callback), type);
npm error | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
npm error ../node_modules/nan/nan_object_wrap.h:64:50: note: in instantiation of function template specialization 'v8::PersistentBase<v8::Object>::SetWeak<Nan::ObjectWrap>' requested here
npm error 64 | persistent().v8::PersistentBase<v8::Object>::SetWeak(
npm error | ^
npm error 2 warnings generated.
npm error In file included from ../src/dns_service_enumerate_domains.cpp:1:
npm error In file included from ../src/mdns.hpp:11:
npm error In file included from /Users/user/Library/Caches/node-gyp/23.11.0/include/node/node.h:73:
npm error In file included from /Users/user/Library/Caches/node-gyp/23.11.0/include/node/v8.h:24:
npm error In file included from /Users/user/Library/Caches/node-gyp/23.11.0/include/node/v8-array-buffer.h:13:
npm error In file included from /Users/user/Library/Caches/node-gyp/23.11.0/include/node/v8-object.h:11:
npm error /Users/user/Library/Caches/node-gyp/23.11.0/include/node/v8-persistent-handle.h:493:26: warning: cast from 'typename WeakCallbackInfo<ObjectWrap>::Callback' (aka 'void (*)(const WeakCallbackInfo<ObjectWrap> &)') to 'Callback' (aka 'void (*)(const WeakCallbackInfo<void> &)') converts to incompatible function type [-Wcast-function-type-mismatch]
npm error 493 | reinterpret_cast<Callback>(callback), type);
npm error | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
npm error /Users/user/Library/Caches/node-gyp/23.11.0/include/node/node_object_wrap.h:85:18: note: in instantiation of function template specialization 'v8::PersistentBase<v8::Object>::SetWeak<node::ObjectWrap>' requested here
npm error 85 | persistent().SetWeak(this, WeakCallback, v8::WeakCallbackType::kParameter);
npm error | ^
npm error In file included from ../src/dns_service_enumerate_domains.cpp:1:
npm error In file included from ../src/mdns.hpp:11:
npm error In file included from /Users/user/Library/Caches/node-gyp/23.11.0/include/node/node.h:73:
npm error In file included from /Users/user/Library/Caches/node-gyp/23.11.0/include/node/v8.h:24:
npm error In file included from /Users/user/Library/Caches/node-gyp/23.11.0/include/node/v8-array-buffer.h:13:
npm error In file included from /Users/user/Library/Caches/node-gyp/23.11.0/include/node/v8-object.h:11:
npm error /Users/user/Library/Caches/node-gyp/23.11.0/include/node/v8-persistent-handle.h:493:26: warning: cast from 'typename WeakCallbackInfo<ObjectWrap>::Callback' (aka 'void (*)(const WeakCallbackInfo<ObjectWrap> &)') to 'Callback' (aka 'void (*)(const WeakCallbackInfo<void> &)') converts to incompatible function type [-Wcast-function-type-mismatch]
npm error 493 | reinterpret_cast<Callback>(callback), type);
npm error | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
npm error ../node_modules/nan/nan_object_wrap.h:64:50: note: in instantiation of function template specialization 'v8::PersistentBase<v8::Object>::SetWeak<Nan::ObjectWrap>' requested here
npm error 64 | persistent().v8::PersistentBase<v8::Object>::SetWeak(
npm error | ^
npm error 2 warnings generated.
npm error In file included from ../src/dns_service_get_addr_info.cpp:1:
npm error In file included from ../src/mdns.hpp:11:
npm error In file included from /Users/user/Library/Caches/node-gyp/23.11.0/include/node/node.h:73:
npm error In file included from /Users/user/Library/Caches/node-gyp/23.11.0/include/node/v8.h:24:
npm error In file included from /Users/user/Library/Caches/node-gyp/23.11.0/include/node/v8-array-buffer.h:13:
npm error In file included from /Users/user/Library/Caches/node-gyp/23.11.0/include/node/v8-object.h:11:
npm error /Users/user/Library/Caches/node-gyp/23.11.0/include/node/v8-persistent-handle.h:493:26: warning: cast from 'typename WeakCallbackInfo<ObjectWrap>::Callback' (aka 'void (*)(const WeakCallbackInfo<ObjectWrap> &)') to 'Callback' (aka 'void (*)(const WeakCallbackInfo<void> &)') converts to incompatible function type [-Wcast-function-type-mismatch]
npm error 493 | reinterpret_cast<Callback>(callback), type);
npm error | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
npm error /Users/user/Library/Caches/node-gyp/23.11.0/include/node/node_object_wrap.h:85:18: note: in instantiation of function template specialization 'v8::PersistentBase<v8::Object>::SetWeak<node::ObjectWrap>' requested here
npm error 85 | persistent().SetWeak(this, WeakCallback, v8::WeakCallbackType::kParameter);
npm error | ^
npm error In file included from ../src/dns_service_get_addr_info.cpp:1:
npm error In file included from ../src/mdns.hpp:11:
npm error In file included from /Users/user/Library/Caches/node-gyp/23.11.0/include/node/node.h:73:
npm error In file included from /Users/user/Library/Caches/node-gyp/23.11.0/include/node/v8.h:24:
npm error In file included from /Users/user/Library/Caches/node-gyp/23.11.0/include/node/v8-array-buffer.h:13:
npm error In file included from /Users/user/Library/Caches/node-gyp/23.11.0/include/node/v8-object.h:11:
npm error /Users/user/Library/Caches/node-gyp/23.11.0/include/node/v8-persistent-handle.h:493:26: warning: cast from 'typename WeakCallbackInfo<ObjectWrap>::Callback' (aka 'void (*)(const WeakCallbackInfo<ObjectWrap> &)') to 'Callback' (aka 'void (*)(const WeakCallbackInfo<void> &)') converts to incompatible function type [-Wcast-function-type-mismatch]
npm error 493 | reinterpret_cast<Callback>(callback), type);
npm error | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
npm error ../node_modules/nan/nan_object_wrap.h:64:50: note: in instantiation of function template specialization 'v8::PersistentBase<v8::Object>::SetWeak<Nan::ObjectWrap>' requested here
npm error 64 | persistent().v8::PersistentBase<v8::Object>::SetWeak(
npm error | ^
npm error 2 warnings generated.
npm error In file included from ../src/dns_service_process_result.cpp:1:
npm error In file included from ../src/mdns.hpp:11:
npm error In file included from /Users/user/Library/Caches/node-gyp/23.11.0/include/node/node.h:73:
npm error In file included from /Users/user/Library/Caches/node-gyp/23.11.0/include/node/v8.h:24:
npm error In file included from /Users/user/Library/Caches/node-gyp/23.11.0/include/node/v8-array-buffer.h:13:
npm error In file included from /Users/user/Library/Caches/node-gyp/23.11.0/include/node/v8-object.h:11:
npm error /Users/user/Library/Caches/node-gyp/23.11.0/include/node/v8-persistent-handle.h:493:26: warning: cast from 'typename WeakCallbackInfo<ObjectWrap>::Callback' (aka 'void (*)(const WeakCallbackInfo<ObjectWrap> &)') to 'Callback' (aka 'void (*)(const WeakCallbackInfo<void> &)') converts to incompatible function type [-Wcast-function-type-mismatch]
npm error 493 | reinterpret_cast<Callback>(callback), type);
npm error | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
npm error /Users/user/Library/Caches/node-gyp/23.11.0/include/node/node_object_wrap.h:85:18: note: in instantiation of function template specialization 'v8::PersistentBase<v8::Object>::SetWeak<node::ObjectWrap>' requested here
npm error 85 | persistent().SetWeak(this, WeakCallback, v8::WeakCallbackType::kParameter);
npm error | ^
npm error In file included from ../src/dns_service_process_result.cpp:1:
npm error In file included from ../src/mdns.hpp:11:
npm error In file included from /Users/user/Library/Caches/node-gyp/23.11.0/include/node/node.h:73:
npm error In file included from /Users/user/Library/Caches/node-gyp/23.11.0/include/node/v8.h:24:
npm error In file included from /Users/user/Library/Caches/node-gyp/23.11.0/include/node/v8-array-buffer.h:13:
npm error In file included from /Users/user/Library/Caches/node-gyp/23.11.0/include/node/v8-object.h:11:
npm error /Users/user/Library/Caches/node-gyp/23.11.0/include/node/v8-persistent-handle.h:493:26: warning: cast from 'typename WeakCallbackInfo<ObjectWrap>::Callback' (aka 'void (*)(const WeakCallbackInfo<ObjectWrap> &)') to 'Callback' (aka 'void (*)(const WeakCallbackInfo<void> &)') converts to incompatible function type [-Wcast-function-type-mismatch]
npm error 493 | reinterpret_cast<Callback>(callback), type);
npm error | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
npm error ../node_modules/nan/nan_object_wrap.h:64:50: note: in instantiation of function template specialization 'v8::PersistentBase<v8::Object>::SetWeak<Nan::ObjectWrap>' requested here
npm error 64 | persistent().v8::PersistentBase<v8::Object>::SetWeak(
npm error | ^
npm error 2 warnings generated.
npm error ../src/dns_service_ref.cpp:35:5: error: no matching function for call to 'SetAccessor'
npm error 35 | Nan::SetAccessor(t->InstanceTemplate(), Nan::New("fd").ToLocalChecked(), fd_getter);
npm error | ^~~~~~~~~~~~~~~~
npm error ../node_modules/nan/nan.h:2637:13: note: candidate function not viable: no known conversion from 'Nan::NAN_PROPERTY_GETTER_RETURN_TYPE (v8::Local<v8::String>, Nan::NAN_PROPERTY_GETTER_ARGS_TYPE)' (aka 'v8::Intercepted (Local<v8::String>, const PropertyCallbackInfo<v8::Value> &)') to 'GetterCallback' (aka 'void (*)(v8::Local<v8::String>, const PropertyCallbackInfo<v8::Value> &)') for 3rd argument
npm error 2637 | inline void SetAccessor(
npm error | ^
npm error 2638 | v8::Local<v8::ObjectTemplate> tpl
npm error 2639 | , v8::Local<v8::String> name
npm error 2640 | , GetterCallback getter
npm error | ~~~~~~~~~~~~~~~~~~~~~
npm error ../node_modules/nan/nan.h:2686:13: note: candidate function not viable: no known conversion from 'Nan::NAN_PROPERTY_GETTER_RETURN_TYPE (v8::Local<v8::String>, Nan::NAN_PROPERTY_GETTER_ARGS_TYPE)' (aka 'v8::Intercepted (Local<v8::String>, const PropertyCallbackInfo<v8::Value> &)') to 'GetterCallback' (aka 'void (*)(v8::Local<v8::String>, const PropertyCallbackInfo<v8::Value> &)') for 3rd argument
npm error 2686 | inline bool SetAccessor(
npm error | ^
npm error 2687 | v8::Local<v8::Object> obj
npm error 2688 | , v8::Local<v8::String> name
npm error 2689 | , GetterCallback getter
npm error | ~~~~~~~~~~~~~~~~~~~~~
npm error ../node_modules/nan/nan.h:2584:28: note: candidate function not viable: requires 8 arguments, but 3 were provided
npm error 2584 | NAN_DEPRECATED inline void SetAccessor(
npm error | ^
npm error 2585 | v8::Local<v8::ObjectTemplate> tpl
npm error | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
npm error 2586 | , v8::Local<v8::String> name
npm error | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
npm error 2587 | , GetterCallback getter
npm error | ~~~~~~~~~~~~~~~~~~~~~~~
npm error 2588 | , SetterCallback setter
npm error | ~~~~~~~~~~~~~~~~~~~~~~~
npm error 2589 | , v8::Local<v8::Value> data
npm error | ~~~~~~~~~~~~~~~~~~~~~~~~~~~
npm error 2590 | , v8::AccessControl settings
npm error | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
npm error 2591 | , v8::PropertyAttribute attribute
npm error | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
npm error 2592 | , imp::Sig signature) {
npm error | ~~~~~~~~~~~~~~~~~~~~
npm error ../src/dns_service_ref.cpp:36:5: error: no matching function for call to 'SetAccessor'
npm error 36 | Nan::SetAccessor(t->InstanceTemplate(), Nan::New("initialized").ToLocalChecked(), initialized_getter);
npm error | ^~~~~~~~~~~~~~~~
npm error ../node_modules/nan/nan.h:2637:13: note: candidate function not viable: no known conversion from 'Nan::NAN_PROPERTY_GETTER_RETURN_TYPE (v8::Local<v8::String>, Nan::NAN_PROPERTY_GETTER_ARGS_TYPE)' (aka 'v8::Intercepted (Local<v8::String>, const PropertyCallbackInfo<v8::Value> &)') to 'GetterCallback' (aka 'void (*)(v8::Local<v8::String>, const PropertyCallbackInfo<v8::Value> &)') for 3rd argument
npm error 2637 | inline void SetAccessor(
npm error | ^
npm error 2638 | v8::Local<v8::ObjectTemplate> tpl
npm error 2639 | , v8::Local<v8::String> name
npm error 2640 | , GetterCallback getter
npm error | ~~~~~~~~~~~~~~~~~~~~~
npm error ../node_modules/nan/nan.h:2686:13: note: candidate function not viable: no known conversion from 'Nan::NAN_PROPERTY_GETTER_RETURN_TYPE (v8::Local<v8::String>, Nan::NAN_PROPERTY_GETTER_ARGS_TYPE)' (aka 'v8::Intercepted (Local<v8::String>, const PropertyCallbackInfo<v8::Value> &)') to 'GetterCallback' (aka 'void (*)(v8::Local<v8::String>, const PropertyCallbackInfo<v8::Value> &)') for 3rd argument
npm error 2686 | inline bool SetAccessor(
npm error | ^
npm error 2687 | v8::Local<v8::Object> obj
npm error 2688 | , v8::Local<v8::String> name
npm error 2689 | , GetterCallback getter
npm error | ~~~~~~~~~~~~~~~~~~~~~
npm error ../node_modules/nan/nan.h:2584:28: note: candidate function not viable: requires 8 arguments, but 3 were provided
npm error 2584 | NAN_DEPRECATED inline void SetAccessor(
npm error | ^
npm error 2585 | v8::Local<v8::ObjectTemplate> tpl
npm error | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
npm error 2586 | , v8::Local<v8::String> name
npm error | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
npm error 2587 | , GetterCallback getter
npm error | ~~~~~~~~~~~~~~~~~~~~~~~
npm error 2588 | , SetterCallback setter
npm error | ~~~~~~~~~~~~~~~~~~~~~~~
npm error 2589 | , v8::Local<v8::Value> data
npm error | ~~~~~~~~~~~~~~~~~~~~~~~~~~~
npm error 2590 | , v8::AccessControl settings
npm error | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
npm error 2591 | , v8::PropertyAttribute attribute
npm error | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
npm error 2592 | , imp::Sig signature) {
npm error | ~~~~~~~~~~~~~~~~~~~~
npm error ../src/dns_service_ref.cpp:110:20: error: cannot initialize return object of type 'Nan::NAN_PROPERTY_GETTER_RETURN_TYPE' (aka 'v8::Intercepted') with an rvalue of type 'void'
npm error 110 | return Nan::ThrowError("DNSServiceRefSockFD() failed");
npm error | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
npm error In file included from ../src/dns_service_ref.cpp:1:
npm error In file included from ../src/mdns.hpp:11:
npm error In file included from /Users/user/Library/Caches/node-gyp/23.11.0/include/node/node.h:73:
npm error In file included from /Users/user/Library/Caches/node-gyp/23.11.0/include/node/v8.h:24:
npm error In file included from /Users/user/Library/Caches/node-gyp/23.11.0/include/node/v8-array-buffer.h:13:
npm error In file included from /Users/user/Library/Caches/node-gyp/23.11.0/include/node/v8-object.h:11:
npm error /Users/user/Library/Caches/node-gyp/23.11.0/include/node/v8-persistent-handle.h:493:26: warning: cast from 'typename WeakCallbackInfo<ObjectWrap>::Callback' (aka 'void (*)(const WeakCallbackInfo<ObjectWrap> &)') to 'Callback' (aka 'void (*)(const WeakCallbackInfo<void> &)') converts to incompatible function type [-Wcast-function-type-mismatch]
npm error 493 | reinterpret_cast<Callback>(callback), type);
npm error | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
npm error /Users/user/Library/Caches/node-gyp/23.11.0/include/node/node_object_wrap.h:85:18: note: in instantiation of function template specialization 'v8::PersistentBase<v8::Object>::SetWeak<node::ObjectWrap>' requested here
npm error 85 | persistent().SetWeak(this, WeakCallback, v8::WeakCallbackType::kParameter);
npm error | ^
npm error In file included from ../src/dns_service_ref.cpp:1:
npm error In file included from ../src/mdns.hpp:11:
npm error In file included from /Users/user/Library/Caches/node-gyp/23.11.0/include/node/node.h:73:
npm error In file included from /Users/user/Library/Caches/node-gyp/23.11.0/include/node/v8.h:24:
npm error In file included from /Users/user/Library/Caches/node-gyp/23.11.0/include/node/v8-array-buffer.h:13:
npm error In file included from /Users/user/Library/Caches/node-gyp/23.11.0/include/node/v8-object.h:11:
npm error /Users/user/Library/Caches/node-gyp/23.11.0/include/node/v8-persistent-handle.h:493:26: warning: cast from 'typename WeakCallbackInfo<ObjectWrap>::Callback' (aka 'void (*)(const WeakCallbackInfo<ObjectWrap> &)') to 'Callback' (aka 'void (*)(const WeakCallbackInfo<void> &)') converts to incompatible function type [-Wcast-function-type-mismatch]
npm error 493 | reinterpret_cast<Callback>(callback), type);
npm error | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
npm error ../node_modules/nan/nan_object_wrap.h:64:50: note: in instantiation of function template specialization 'v8::PersistentBase<v8::Object>::SetWeak<Nan::ObjectWrap>' requested here
npm error 64 | persistent().v8::PersistentBase<v8::Object>::SetWeak(
npm error | ^
npm error In file included from ../src/dns_service_ref.cpp:1:
npm error In file included from ../src/mdns.hpp:12:
npm error In file included from ../node_modules/nan/nan.h:182:
npm error In file included from ../node_modules/nan/nan_callbacks.h:123:
npm error ../node_modules/nan/nan_callbacks_12_inl.h:112:62: warning: 'Holder' is deprecated: V8 will stop providing access to hidden prototype (i.e. JSGlobalObject). Use This() instead.
npm error DO NOT try to workaround this by accessing JSGlobalObject via v8::Object::GetPrototype() - it'll be deprecated soon too.
npm error See http://crbug.com/333672197. [-Wdeprecated-declarations]
npm error 112 | inline v8::Local<v8::Object> Holder() const { return info_.Holder(); }
npm error | ^
npm error ../src/dns_service_ref.cpp:45:18: note: in instantiation of member function 'Nan::FunctionCallbackInfo<v8::Value>::Holder' requested here
npm error 45 | o->Wrap(info.Holder());
npm error | ^
npm error /Users/user/Library/Caches/node-gyp/23.11.0/include/node/v8-function-callback.h:139:3: note: 'Holder' has been explicitly marked deprecated here
npm error 139 | V8_DEPRECATED(
npm error | ^
npm error /Users/user/Library/Caches/node-gyp/23.11.0/include/node/v8config.h:597:35: note: expanded from macro 'V8_DEPRECATED'
npm error 597 | # define V8_DEPRECATED(message) [[deprecated(message)]]
npm error | ^
npm error 3 warnings and 3 errors generated.
npm error make: *** [Release/obj.target/dns_sd_bindings/src/dns_service_ref.o] Error 1
npm error gyp ERR! build error
npm error gyp ERR! stack Error: `make` failed with exit code: 2
npm error gyp ERR! stack at ChildProcess.<anonymous> (/opt/homebrew/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:216:23)
npm error gyp ERR! System Darwin 24.3.0
npm error gyp ERR! command "/opt/homebrew/Cellar/node/23.11.0/bin/node" "/opt/homebrew/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
npm error gyp ERR! cwd /opt/homebrew/lib/node_modules/mdns
npm error gyp ERR! node -v v23.11.0
npm error gyp ERR! node-gyp -v v11.0.0
npm error gyp ERR! not ok
npm error A complete log of this run can be found in: /Users/user/.npm/_logs/2025-05-05T20_57_20_034Z-debug-0.log
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels