Skip to content

Deprecated V8 APIs #2

Description

@Larry1123

scrypt node.cc can not compile with the latest version of node

gyp info it worked if it ends with ok
gyp info using node-gyp@0.12.2
gyp info using node@0.11.11 | linux | x64
gyp info spawn python
gyp info spawn args [ '/CoinMine/node_modules/node-gyp/gyp/gyp_main.py',
gyp info spawn args   'binding.gyp',
gyp info spawn args   '-f',
gyp info spawn args   'make',
gyp info spawn args   '-I',
gyp info spawn args   '/CoinMine/scrypt/build/config.gypi',
gyp info spawn args   '-I',
gyp info spawn args   '/CoinMine/node_modules/node-gyp/addon.gypi',
gyp info spawn args   '-I',
gyp info spawn args   '/root/.node-gyp/0.11.11/common.gypi',
gyp info spawn args   '-Dlibrary=shared_library',
gyp info spawn args   '-Dvisibility=default',
gyp info spawn args   '-Dnode_root_dir=/root/.node-gyp/0.11.11',
gyp info spawn args   '-Dmodule_root_dir=/CoinMine/scrypt',
gyp info spawn args   '--depth=.',
gyp info spawn args   '--generator-output',
gyp info spawn args   'build',
gyp info spawn args   '-Goutput_dir=.' ]
gyp info spawn make
gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ]
../node.cc:11:28: error: 'Arguments' does not name a type
../node.cc:11:39: error: ISO C++ forbids declaration of 'args' with no type [-fpermissive]
/root/.node-gyp/0.11.11/deps/v8/include/v8.h: In function 'v8::Handle<v8::Value> Method(const int&)':
/root/.node-gyp/0.11.11/deps/v8/include/v8.h:768:13: error: 'v8::HandleScope::HandleScope()' is private
../node.cc:12:14: error: within this context
../node.cc:14:11: error: request for member 'Length' in 'args', which is of non-class type 'const int'
../node.cc:19:13: error: invalid types 'const int[int]' for array subscript
../node.cc:24:61: error: invalid types 'const int[int]' for array subscript
../node.cc:29:9: error: expected primary-expression before '*' token
../node.cc:29:10: error: 'bufferOut' was not declared in this scope
../node.cc: In function 'void init(v8::Handle<v8::Object>)':
../node.cc:35:72: error: invalid conversion from 'v8::Handle<v8::Value> (*)(const int&)' to 'v8::FunctionCallback {aka void (*)(const v8::FunctionCallbackInfo<v8::Value>&)}' [-fpermissive]
/root/.node-gyp/0.11.11/deps/v8/include/v8.h:3346:34: error:   initializing argument 1 of 'static v8::Local<v8::FunctionTemplate> v8::FunctionTemplate::New(v8::FunctionCallback, v8::Handle<v8::Value>, v8::Handle<v8::Signature>, int)' [-fpermissive]
../node.cc: In function 'v8::Handle<v8::Value> Method(const int&)':
../node.cc:32:1: warning: control reaches end of non-void function [-Wreturn-type]
make[1]: *** [Release/obj.target/scrypt/node.o] Error 1
gyp ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack     at ChildProcess.onExit (/CoinMine/node_modules/node-gyp/lib/build.js:267:23)
gyp ERR! stack     at ChildProcess.EventEmitter.emit (events.js:107:17)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (child_process.js:879:12)
gyp ERR! System Linux 2.6.32-042stab084.17
gyp ERR! command "node" "/CoinMine/node_modules/.bin/node-gyp" "configure" "build"
gyp ERR! cwd /CoinMine/scrypt
gyp ERR! node -v v0.11.11
gyp ERR! node-gyp -v v0.12.2
gyp ERR! not ok

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions