Open MahatmaJapa opened 6 years ago
I got the same error
Same problem, Debian 9 Stretch, I've tried 0.10.0, 0.10.28, 0.10.29, 0.10.48, 0.12.18, 9.4.0 with same issue.
The cryptonote pool I have running with node version v0.47, but this project the cryptonote util not complile.
Same issue here Centos 7( 3.10.0-693.17.1.el7.x86_64) , node 8.9.4 npm 5.6.0
[bignum] Success: "/home/elsasha/pool/node_modules/bignum/binding/bignum.node" is installed via remote
make: Entering directory '/home/elsasha/pool/node_modules/cryptonote-util/build' CXX(target) Release/obj.target/cryptonote/src/main.o ../src/main.cc: In function ‘v8::Handle except(const char)’:
../src/main.cc:21:44: error: ‘New’ is not a member of ‘v8::String’
return ThrowException(Exception::Error(String::New(msg)));
^
../src/main.cc:21:61: error: ‘ThrowException’ was not declared in this scope
return ThrowException(Exception::Error(String::New(msg)));
^
../src/main.cc: At global scope:
../src/main.cc:80:34: error: ‘Arguments’ does not name a type
Handle convert_blob(const Arguments& args) {
^
In file included from /usr/include/nodejs/src/node.h:42:0,
from ../src/main.cc:2:
/usr/include/nodejs/deps/v8/include/v8.h: In function ‘v8::Handle convert_blob(const int&)’:
/usr/include/nodejs/deps/v8/include/v8.h:885:13: error: ‘v8::HandleScope::HandleScope()’ is protected
V8_INLINE HandleScope() {}
^
../src/main.cc:81:17: error: within this context
HandleScope scope;
^
../src/main.cc:83:14: error: request for member ‘Length’ in ‘args’, which is of non-class type ‘const int’
if (args.Length() < 1)
^
../src/main.cc:86:34: error: invalid types ‘const int[int]’ for array subscript
Local ’ token
Buffer buff = Buffer::New(output.data(), output.size());
^
../src/main.cc:111:13: error: ‘buff’ was not declared in this scope
Buffer buff = Buffer::New(output.data(), output.size());
^
../src/main.cc:111:60: error: no matching function for call to ‘New(const char, std::__cxx11::basic_string::size_type)’
Buffer buff = Buffer::New(output.data(), output.size());
^
In file included from ../src/main.cc:3:0:
/usr/include/nodejs/src/node_buffer.h:28:40: note: candidate: v8::MaybeLocal node::Buffer::New(v8::Isolate, size_t)
NODE_EXTERN v8::MaybeLocal New(v8::Isolate isolate, size_t length)
^
/usr/include/nodejs/src/node_buffer.h:28:40: note: no known conversion for argument 1 from ‘const char’ to ‘v8::Isolate’
/usr/include/nodejs/src/node_buffer.h:31:40: note: candidate: v8::MaybeLocal node::Buffer::New(v8::Isolate, v8::Local, node::encoding)
NODE_EXTERN v8::MaybeLocal New(v8::Isolate isolate,
^
/usr/include/nodejs/src/node_buffer.h:31:40: note: no known conversion for argument 1 from ‘const char’ to ‘v8::Isolate’
/usr/include/nodejs/src/node_buffer.h:36:40: note: candidate: v8::MaybeLocal node::Buffer::New(v8::Isolate, char, size_t, node::Buffer::FreeCallback, void)
NODE_EXTERN v8::MaybeLocal New(v8::Isolate isolate,
^
/usr/include/nodejs/src/node_buffer.h:36:40: note: candidate expects 5 arguments, 2 provided
/usr/include/nodejs/src/node_buffer.h:43:40: note: candidate: v8::MaybeLocal node::Buffer::New(v8::Isolate, char, size_t)
NODE_EXTERN v8::MaybeLocal New(v8::Isolate isolate,
^
/usr/include/nodejs/src/nodebuffer.h:43:40: note: candidate expects 3 arguments, 2 provided
../src/main.cc:112:18: error: ‘class v8::HandleScope’ has no member named ‘Close’
return scope.Close(buff->handle);
^
../src/main.cc: At global scope:
../src/main.cc:115:34: error: ‘Arguments’ does not name a type
Handle get_block_id(const Arguments& args) {
^
In file included from /usr/include/nodejs/src/node.h:42:0,
from ../src/main.cc:2:
/usr/include/nodejs/deps/v8/include/v8.h: In function ‘v8::Handle get_block_id(const int&)’:
/usr/include/nodejs/deps/v8/include/v8.h:885:13: error: ‘v8::HandleScope::HandleScope()’ is protected
V8_INLINE HandleScope() {}
^
../src/main.cc:116:17: error: within this context
HandleScope scope;
^
../src/main.cc:118:14: error: request for member ‘Length’ in ‘args’, which is of non-class type ‘const int’
if (args.Length() < 1)
^
../src/main.cc:121:34: error: invalid types ‘const int[int]’ for array subscript
Local ’ token
Buffer buff = Buffer::New(reinterpret_cast<char>(&block_id), sizeof(block
^
../src/main.cc:137:13: error: ‘buff’ was not declared in this scope
Buffer buff = Buffer::New(reinterpret_cast<char>(&block_id), sizeof(block
^
../src/main.cc:137:84: error: no matching function for call to ‘New(char, long unsigned int)’
ffer buff = Buffer::New(reinterpret_cast<char>(&block_id), sizeof(block_id));
^
In file included from ../src/main.cc:3:0:
/usr/include/nodejs/src/node_buffer.h:28:40: note: candidate: v8::MaybeLocal node::Buffer::New(v8::Isolate , size_t)
NODE_EXTERN v8::MaybeLocal New(v8::Isolate isolate, size_t length)
^
/usr/include/nodejs/src/node_buffer.h:28:40: note: no known conversion for argument 1 from ‘char’ to ‘v8::Isolate’
/usr/include/nodejs/src/node_buffer.h:31:40: note: candidate: v8::MaybeLocal node::Buffer::New(v8::Isolate , v8::Local, node::encoding)
NODE_EXTERN v8::MaybeLocal New(v8::Isolate isolate,
^
/usr/include/nodejs/src/node_buffer.h:31:40: note: no known conversion for argument 1 from ‘char’ to ‘v8::Isolate’
/usr/include/nodejs/src/node_buffer.h:36:40: note: candidate: v8::MaybeLocal node::Buffer::New(v8::Isolate , char, size_t, node::Buffer::FreeCallback, void)
NODE_EXTERN v8::MaybeLocal New(v8::Isolate isolate,
^
/usr/include/nodejs/src/node_buffer.h:36:40: note: candidate expects 5 arguments, 2 provided
/usr/include/nodejs/src/node_buffer.h:43:40: note: candidate: v8::MaybeLocal node::Buffer::New(v8::Isolate , char, size_t)
NODE_EXTERN v8::MaybeLocal New(v8::Isolate isolate,
^
/usr/include/nodejs/src/nodebuffer.h:43:40: note: candidate expects 3 arguments, 2 provided
../src/main.cc:138:18: error: ‘class v8::HandleScope’ has no member named ‘Close’
return scope.Close(buff->handle);
^
../src/main.cc: At global scope:
../src/main.cc:141:42: error: ‘Arguments’ does not name a type
Handle construct_block_blob(const Arguments& args) {
^
In file included from /usr/include/nodejs/src/node.h:42:0,
from ../src/main.cc:2:
/usr/include/nodejs/deps/v8/include/v8.h: In function ‘v8::Handle construct_block_blob(const int&)’:
/usr/include/nodejs/deps/v8/include/v8.h:885:13: error: ‘v8::HandleScope::HandleScope()’ is protected
V8_INLINE HandleScope() {}
^
../src/main.cc:142:17: error: within this context
HandleScope scope;
^
../src/main.cc:144:14: error: request for member ‘Length’ in ‘args’, which is of non-class type ‘const int’
if (args.Length() < 2)
^
../src/main.cc:147:46: error: invalid types ‘const int[int]’ for array subscript
Local
npm ERR! Linux 4.10.0-42-generic npm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "update" npm ERR! node v4.2.6 npm ERR! npm v3.5.2 npm ERR! code ELIFECYCLE
npm ERR! cryptonote-util@0.0.1 install:
node-gyp rebuild
npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the cryptonote-util@0.0.1 install script 'node-gyp rebuild'. npm ERR! Make sure you have the latest version of node.js and npm installed. npm ERR! If you do, this is most likely a problem with the cryptonote-util 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 information on how to open an issue for this project with: npm ERR! npm bugs cryptonote-util npm ERR! Or if that isn't available, you can get their info via: npm ERR! npm owner ls cryptonote-util npm ERR! There is likely additional logging output above.npm ERR! Please include the following file with any support request: npm ERR! /home/elsasha/pool/npm-debug.log