This repository was archived by the owner on Apr 24, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 282
This repository was archived by the owner on Apr 24, 2020. It is now read-only.
io.js support #387
Copy link
Copy link
Closed
Description
Updating the zeromq dependency on nan
to 1.5.x introduces support for io.js, but seems some code changes are required to get this to successfully build on io.js 1.0.1.
> cd zeromq.node
> npm install nan@latest --save
npm http request GET https://registry.npmjs.org/nan
npm http 304 https://registry.npmjs.org/nan
[email protected] node_modules/nan
> npm install
> [email protected] install /Users/timoxley/Projects/libs/zeromq.node
> node-gyp rebuild
child_process: customFds option is deprecated, use stdio instead.
CXX(target) Release/obj.target/zmq/binding.o
In file included from ../binding.cc:37:
In file included from ../node_modules/nan/nan.h:63:
../node_modules/nan/nan_new.h:184:10: error: call to 'New' is ambiguous
return NanIntern::Factory<T>::New(arg0);
^~~~~~~~~~~~~~~~~~~~~~~~~~
../binding.cc:546:12: note: in instantiation of function template specialization 'NanNew<v8::Integer, long long>' requested here
return NanNew<Integer>(value);
^
../binding.cc:601:30: note: in instantiation of function template specialization 'zmq::Socket::GetSockOpt<long long>' requested here
NanReturnValue(socket->GetSockOpt<int64_t>(option));
^
../node_modules/nan/nan.h:231:65: note: expanded from macro 'NanReturnValue'
# define NanReturnValue(value) return args.GetReturnValue().Set(value)
^
../node_modules/nan/nan_new.h:86:26: note: candidate function
static inline return_t New(int32_t value);
^
../node_modules/nan/nan_new.h:87:26: note: candidate function
static inline return_t New(uint32_t value);
^
../node_modules/nan/nan_new.h:184:10: error: call to 'New' is ambiguous
return NanIntern::Factory<T>::New(arg0);
^~~~~~~~~~~~~~~~~~~~~~~~~~
../binding.cc:546:12: note: in instantiation of function template specialization 'NanNew<v8::Integer, unsigned long long>' requested here
return NanNew<Integer>(value);
^
../binding.cc:603:30: note: in instantiation of function template specialization 'zmq::Socket::GetSockOpt<unsigned long long>' requested here
NanReturnValue(socket->GetSockOpt<uint64_t>(option));
^
../node_modules/nan/nan.h:231:65: note: expanded from macro 'NanReturnValue'
# define NanReturnValue(value) return args.GetReturnValue().Set(value)
^
../node_modules/nan/nan_new.h:86:26: note: candidate function
static inline return_t New(int32_t value);
^
../node_modules/nan/nan_new.h:87:26: note: candidate function
static inline return_t New(uint32_t value);
^
2 errors generated.
make: *** [Release/obj.target/zmq/binding.o] Error 1
gyp ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:267:23)
gyp ERR! stack at ChildProcess.emit (events.js:98:17)
gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:1038:12)
gyp ERR! System Darwin 14.1.0
gyp ERR! command "node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /Users/timoxley/Projects/libs/zeromq.node
gyp ERR! node -v v1.0.1
gyp ERR! node-gyp -v v1.0.2
gyp ERR! not ok
npm ERR! Darwin 14.1.0
npm ERR! argv "node" "/usr/local/bin/npm" "install"
npm ERR! node v1.0.1
npm ERR! npm v2.1.18
npm ERR! code ELIFECYCLE
npm ERR! [email protected] install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] install script 'node-gyp rebuild'.
npm ERR! This is most likely a problem with the zmq package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node-gyp rebuild
npm ERR! You can get their info via:
npm ERR! npm owner ls zmq
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! /Users/timoxley/Projects/libs/zeromq.node/npm-debug.log
Metadata
Metadata
Assignees
Labels
No labels