Last active
December 30, 2015 18:49
-
-
Save msztolcman/7869921 to your computer and use it in GitHub Desktop.
installing ursa 0.8.0 on node 0.11
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mmworker@ubuntu ~/mmworker % npm install ursa | |
npm WARN package.json [email protected] No repository field. | |
> [email protected] install /home/mmworker/mmworker/node_modules/ursa | |
> node-gyp configure build && node install.js | |
make: Entering directory `/home/mmworker/mmworker/node_modules/ursa/build' | |
CXX(target) Release/obj.target/ursaNative/src/ursaNative.o | |
In file included from ../src/ursaNative.cc:3:0: | |
../src/ursaNative.h:6:0: warning: "BUILDING_NODE_EXTENSION" redefined [enabled by default] | |
#define BUILDING_NODE_EXTENSION | |
^ | |
<command-line>:0:0: note: this is the location of the previous definition | |
In file included from /home/mmworker/.node-gyp/0.11.8/src/node.h:61:0, | |
from ../src/ursaNative.h:7, | |
from ../src/ursaNative.cc:3: | |
/home/mmworker/.node-gyp/0.11.8/deps/v8/include/v8.h: In member function ‘void v8::ReturnValue<T>::Set(uint32_t)’: | |
/home/mmworker/.node-gyp/0.11.8/deps/v8/include/v8.h:5780:31: warning: typedef ‘I’ locally defined but not used [-Wunused-local-typedefs] | |
typedef internal::Internals I; | |
^ | |
In file included from ../src/ursaNative.cc:3:0: | |
../src/ursaNative.h: At global scope: | |
../src/ursaNative.h:12:34: error: expected class-name before ‘{’ token | |
class RsaWrap : node::ObjectWrap { | |
^ | |
../src/ursaNative.h:20:44: error: ‘Arguments’ in namespace ‘v8’ does not name a type | |
static v8::Handle<v8::Value> New(const v8::Arguments& args); | |
^ | |
../src/ursaNative.h:20:59: error: ISO C++ forbids declaration of ‘args’ with no type [-fpermissive] | |
static v8::Handle<v8::Value> New(const v8::Arguments& args); | |
^ | |
../src/ursaNative.h:21:59: error: ‘Arguments’ in namespace ‘v8’ does not name a type | |
static v8::Handle<v8::Value> GeneratePrivateKey(const v8::Arguments& args); | |
^ | |
../src/ursaNative.h:21:74: error: ISO C++ forbids declaration of ‘args’ with no type [-fpermissive] | |
static v8::Handle<v8::Value> GeneratePrivateKey(const v8::Arguments& args); | |
^ | |
../src/ursaNative.h:22:52: error: ‘Arguments’ in namespace ‘v8’ does not name a type | |
static v8::Handle<v8::Value> GetExponent(const v8::Arguments& args); | |
^ | |
../src/ursaNative.h:22:67: error: ISO C++ forbids declaration of ‘args’ with no type [-fpermissive] | |
static v8::Handle<v8::Value> GetExponent(const v8::Arguments& args); | |
^ | |
../src/ursaNative.h:23:51: error: ‘Arguments’ in namespace ‘v8’ does not name a type | |
static v8::Handle<v8::Value> GetModulus(const v8::Arguments& args); | |
^ | |
../src/ursaNative.h:23:66: error: ISO C++ forbids declaration of ‘args’ with no type [-fpermissive] | |
static v8::Handle<v8::Value> GetModulus(const v8::Arguments& args); | |
^ | |
../src/ursaNative.h:24:57: error: ‘Arguments’ in namespace ‘v8’ does not name a type | |
static v8::Handle<v8::Value> GetPrivateKeyPem(const v8::Arguments& args); | |
^ | |
../src/ursaNative.h:24:72: error: ISO C++ forbids declaration of ‘args’ with no type [-fpermissive] | |
static v8::Handle<v8::Value> GetPrivateKeyPem(const v8::Arguments& args); | |
^ | |
../src/ursaNative.h:25:56: error: ‘Arguments’ in namespace ‘v8’ does not name a type | |
static v8::Handle<v8::Value> GetPublicKeyPem(const v8::Arguments& args); | |
^ | |
../src/ursaNative.h:25:71: error: ISO C++ forbids declaration of ‘args’ with no type [-fpermissive] | |
static v8::Handle<v8::Value> GetPublicKeyPem(const v8::Arguments& args); | |
^ | |
../src/ursaNative.h:26:55: error: ‘Arguments’ in namespace ‘v8’ does not name a type | |
static v8::Handle<v8::Value> PrivateDecrypt(const v8::Arguments& args); | |
^ | |
../src/ursaNative.h:26:70: error: ISO C++ forbids declaration of ‘args’ with no type [-fpermissive] | |
static v8::Handle<v8::Value> PrivateDecrypt(const v8::Arguments& args); | |
^ | |
../src/ursaNative.h:27:55: error: ‘Arguments’ in namespace ‘v8’ does not name a type | |
static v8::Handle<v8::Value> PrivateEncrypt(const v8::Arguments& args); | |
^ | |
../src/ursaNative.h:27:70: error: ISO C++ forbids declaration of ‘args’ with no type [-fpermissive] | |
static v8::Handle<v8::Value> PrivateEncrypt(const v8::Arguments& args); | |
^ | |
../src/ursaNative.h:28:54: error: ‘Arguments’ in namespace ‘v8’ does not name a type | |
static v8::Handle<v8::Value> PublicDecrypt(const v8::Arguments& args); | |
^ | |
../src/ursaNative.h:28:69: error: ISO C++ forbids declaration of ‘args’ with no type [-fpermissive] | |
static v8::Handle<v8::Value> PublicDecrypt(const v8::Arguments& args); | |
^ | |
../src/ursaNative.h:29:54: error: ‘Arguments’ in namespace ‘v8’ does not name a type | |
static v8::Handle<v8::Value> PublicEncrypt(const v8::Arguments& args); | |
^ | |
../src/ursaNative.h:29:69: error: ISO C++ forbids declaration of ‘args’ with no type [-fpermissive] | |
static v8::Handle<v8::Value> PublicEncrypt(const v8::Arguments& args); | |
^ | |
../src/ursaNative.h:30:57: error: ‘Arguments’ in namespace ‘v8’ does not name a type | |
static v8::Handle<v8::Value> SetPrivateKeyPem(const v8::Arguments& args); | |
^ | |
../src/ursaNative.h:30:72: error: ISO C++ forbids declaration of ‘args’ with no type [-fpermissive] | |
static v8::Handle<v8::Value> SetPrivateKeyPem(const v8::Arguments& args); | |
^ | |
../src/ursaNative.h:31:56: error: ‘Arguments’ in namespace ‘v8’ does not name a type | |
static v8::Handle<v8::Value> SetPublicKeyPem(const v8::Arguments& args); | |
^ | |
../src/ursaNative.h:31:71: error: ISO C++ forbids declaration of ‘args’ with no type [-fpermissive] | |
static v8::Handle<v8::Value> SetPublicKeyPem(const v8::Arguments& args); | |
^ | |
../src/ursaNative.h:32:45: error: ‘Arguments’ in namespace ‘v8’ does not name a type | |
static v8::Handle<v8::Value> Sign(const v8::Arguments& args); | |
^ | |
../src/ursaNative.h:32:60: error: ISO C++ forbids declaration of ‘args’ with no type [-fpermissive] | |
static v8::Handle<v8::Value> Sign(const v8::Arguments& args); | |
^ | |
../src/ursaNative.h:33:47: error: ‘Arguments’ in namespace ‘v8’ does not name a type | |
static v8::Handle<v8::Value> Verify(const v8::Arguments& args); | |
^ | |
../src/ursaNative.h:33:62: error: ISO C++ forbids declaration of ‘args’ with no type [-fpermissive] | |
static v8::Handle<v8::Value> Verify(const v8::Arguments& args); | |
^ | |
../src/ursaNative.h:37:50: error: ‘Arguments’ in namespace ‘v8’ does not name a type | |
static RsaWrap *unwrapExpectPrivateKey(const v8::Arguments& args); | |
^ | |
../src/ursaNative.h:37:65: error: ISO C++ forbids declaration of ‘args’ with no type [-fpermissive] | |
static RsaWrap *unwrapExpectPrivateKey(const v8::Arguments& args); | |
^ | |
../src/ursaNative.h:38:43: error: ‘Arguments’ in namespace ‘v8’ does not name a type | |
static RsaWrap *unwrapExpectSet(const v8::Arguments& args); | |
^ | |
../src/ursaNative.h:38:58: error: ISO C++ forbids declaration of ‘args’ with no type [-fpermissive] | |
static RsaWrap *unwrapExpectSet(const v8::Arguments& args); | |
^ | |
../src/ursaNative.h:39:45: error: ‘Arguments’ in namespace ‘v8’ does not name a type | |
static RsaWrap *unwrapExpectUnset(const v8::Arguments& args); | |
^ | |
../src/ursaNative.h:39:60: error: ISO C++ forbids declaration of ‘args’ with no type [-fpermissive] | |
static RsaWrap *unwrapExpectUnset(const v8::Arguments& args); | |
^ | |
../src/ursaNative.h:44:39: error: ‘Arguments’ in namespace ‘v8’ does not name a type | |
v8::Handle<v8::Value> TextToNid(const v8::Arguments& args); | |
^ | |
../src/ursaNative.h:44:54: error: ISO C++ forbids declaration of ‘args’ with no type [-fpermissive] | |
v8::Handle<v8::Value> TextToNid(const v8::Arguments& args); | |
^ | |
../src/ursaNative.cc: In function ‘void init(v8::Handle<v8::Object>)’: | |
../src/ursaNative.cc:33:38: error: invalid conversion from ‘v8::Handle<v8::Value> (*)(const int&)’ to ‘v8::FunctionCallback {aka void (*)(const v8::FunctionCallbackInfo<v8::Value>&)}’ [-fpermissive] | |
FunctionTemplate::New(lowName)->GetFunction()) | |
^ | |
../src/ursaNative.cc:41:5: note: in expansion of macro ‘BIND’ | |
BIND(target, textToNid, TextToNid); | |
^ | |
In file included from /home/mmworker/.node-gyp/0.11.8/src/node.h:61:0, | |
from ../src/ursaNative.h:7, | |
from ../src/ursaNative.cc:3: | |
/home/mmworker/.node-gyp/0.11.8/deps/v8/include/v8.h:3311: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] | |
static Local<FunctionTemplate> New( | |
^ | |
../src/ursaNative.cc: In function ‘v8::Handle<v8::Value> bignumToBuffer(BIGNUM*)’: | |
../src/ursaNative.cc:92:18: error: expected primary-expression before ‘*’ token | |
node::Buffer *result = node::Buffer::New(length); | |
^ | |
../src/ursaNative.cc:92:19: error: ‘result’ was not declared in this scope | |
node::Buffer *result = node::Buffer::New(length); | |
^ | |
../src/ursaNative.cc:101:16: error: type ‘<type error>’ argument given to ‘delete’, expected pointer | |
delete result; | |
^ | |
../src/ursaNative.cc: In function ‘v8::Handle<v8::Value> bioToBuffer(BIO*)’: | |
../src/ursaNative.cc:126:18: error: expected primary-expression before ‘*’ token | |
node::Buffer *result = node::Buffer::New(length); | |
^ | |
../src/ursaNative.cc:126:19: error: ‘result’ was not declared in this scope | |
node::Buffer *result = node::Buffer::New(length); | |
^ | |
../src/ursaNative.cc: At global scope: | |
../src/ursaNative.cc:146:31: error: ‘Arguments’ does not name a type | |
static bool hasArgument(const Arguments& args, int index) { | |
^ | |
../src/ursaNative.cc:146:42: error: ISO C++ forbids declaration of ‘args’ with no type [-fpermissive] | |
static bool hasArgument(const Arguments& args, int index) { | |
^ | |
../src/ursaNative.cc: In function ‘bool hasArgument(const int&, int)’: | |
../src/ursaNative.cc:147:14: error: request for member ‘Length’ in ‘args’, which is of non-class type ‘const int’ | |
if (args.Length() > index) { | |
^ | |
../src/ursaNative.cc: At global scope: | |
../src/ursaNative.cc:162:28: error: ‘Arguments’ does not name a type | |
static bool isBuffer(const Arguments& args, int index) { | |
^ | |
../src/ursaNative.cc:162:39: error: ISO C++ forbids declaration of ‘args’ with no type [-fpermissive] | |
static bool isBuffer(const Arguments& args, int index) { | |
^ | |
../src/ursaNative.cc: In function ‘bool isBuffer(const int&, int)’: | |
../src/ursaNative.cc:165:46: error: invalid types ‘const int[int]’ for array subscript | |
if (!node::Buffer::HasInstance(args[index])) { | |
^ | |
../src/ursaNative.cc: At global scope: | |
../src/ursaNative.cc:180:28: error: ‘Arguments’ does not name a type | |
static bool isString(const Arguments& args, int index) { | |
^ | |
../src/ursaNative.cc:180:39: error: ISO C++ forbids declaration of ‘args’ with no type [-fpermissive] | |
static bool isString(const Arguments& args, int index) { | |
^ | |
../src/ursaNative.cc: In function ‘bool isString(const int&, int)’: | |
../src/ursaNative.cc:183:20: error: invalid types ‘const int[int]’ for array subscript | |
if (!args[index]->IsString()) { | |
^ | |
../src/ursaNative.cc: At global scope: | |
../src/ursaNative.cc:199:30: error: ‘Arguments’ does not name a type | |
static BIO *getArg0Bio(const Arguments& args) { | |
^ | |
../src/ursaNative.cc:199:41: error: ISO C++ forbids declaration of ‘args’ with no type [-fpermissive] | |
static BIO *getArg0Bio(const Arguments& args) { | |
^ | |
../src/ursaNative.cc: In function ‘BIO* getArg0Bio(const int&)’: | |
../src/ursaNative.cc:202:31: error: invalid types ‘const int[int]’ for array subscript | |
Local<Object> buf = args[0]->ToObject(); | |
^ | |
../src/ursaNative.cc: At global scope: | |
../src/ursaNative.cc:218:40: error: ‘Arguments’ does not name a type | |
static void *getArgDataAndLength(const Arguments& args, int index, | |
^ | |
../src/ursaNative.cc:218:51: error: ISO C++ forbids declaration of ‘args’ with no type [-fpermissive] | |
static void *getArgDataAndLength(const Arguments& args, int index, | |
^ | |
../src/ursaNative.cc: In function ‘void* getArgDataAndLength(const int&, int, int*)’: | |
../src/ursaNative.cc:222:35: error: invalid types ‘const int[int]’ for array subscript | |
Local<Object> buf = args[index]->ToObject(); | |
^ | |
../src/ursaNative.cc: At global scope: | |
../src/ursaNative.cc:233:42: error: ‘Arguments’ does not name a type | |
static char *getArg1BufferAsString(const Arguments& args) { | |
^ | |
../src/ursaNative.cc:233:53: error: ISO C++ forbids declaration of ‘args’ with no type [-fpermissive] | |
static char *getArg1BufferAsString(const Arguments& args) { | |
^ | |
../src/ursaNative.cc: In function ‘char* getArg1BufferAsString(const int&)’: | |
../src/ursaNative.cc:236:31: error: invalid types ‘const int[int]’ for array subscript | |
Local<Object> buf = args[1]->ToObject(); | |
^ | |
../src/ursaNative.cc: At global scope: | |
../src/ursaNative.cc:256:33: error: ‘Arguments’ does not name a type | |
static char *getArgString(const Arguments& args, int index) { | |
^ | |
../src/ursaNative.cc:256:44: error: ISO C++ forbids declaration of ‘args’ with no type [-fpermissive] | |
static char *getArgString(const Arguments& args, int index) { | |
^ | |
../src/ursaNative.cc: In function ‘char* getArgString(const int&, int)’: | |
../src/ursaNative.cc:259:35: error: invalid types ‘const int[int]’ for array subscript | |
Local<String> str = args[index]->ToString(); | |
^ | |
../src/ursaNative.cc: At global scope: | |
../src/ursaNative.cc:286:29: error: ‘Arguments’ does not name a type | |
static bool getArgInt(const Arguments& args, int index, int *resultPtr) { | |
^ | |
../src/ursaNative.cc:286:40: error: ISO C++ forbids declaration of ‘args’ with no type [-fpermissive] | |
static bool getArgInt(const Arguments& args, int index, int *resultPtr) { | |
^ | |
../src/ursaNative.cc: In function ‘bool getArgInt(const int&, int, int*)’: | |
../src/ursaNative.cc:289:34: error: invalid types ‘const int[int]’ for array subscript | |
Local<Value> arg = args[index]; | |
^ | |
../src/ursaNative.cc: At global scope: | |
../src/ursaNative.cc:350:31: error: ‘Arguments’ does not name a type | |
Handle<Value> TextToNid(const Arguments& args) { | |
^ | |
../src/ursaNative.cc:350:42: error: ISO C++ forbids declaration of ‘args’ with no type [-fpermissive] | |
Handle<Value> TextToNid(const Arguments& args) { | |
^ | |
../src/ursaNative.cc: In function ‘v8::Handle<v8::Value> TextToNid(const int&)’: | |
../src/ursaNative.cc:351:17: error: no matching function for call to ‘v8::HandleScope::HandleScope()’ | |
HandleScope scope; | |
^ | |
../src/ursaNative.cc:351:17: note: candidates are: | |
In file included from /home/mmworker/.node-gyp/0.11.8/src/node.h:61:0, | |
from ../src/ursaNative.h:7, | |
from ../src/ursaNative.cc:3: | |
/home/mmworker/.node-gyp/0.11.8/deps/v8/include/v8.h:783:3: note: v8::HandleScope::HandleScope(const v8::HandleScope&) | |
HandleScope(const HandleScope&); | |
^ | |
/home/mmworker/.node-gyp/0.11.8/deps/v8/include/v8.h:783:3: note: candidate expects 1 argument, 0 provided | |
/home/mmworker/.node-gyp/0.11.8/deps/v8/include/v8.h:756:3: note: v8::HandleScope::HandleScope(v8::Isolate*) | |
HandleScope(Isolate* isolate); | |
^ | |
/home/mmworker/.node-gyp/0.11.8/deps/v8/include/v8.h:756:3: note: candidate expects 1 argument, 0 provided | |
../src/ursaNative.cc: In static member function ‘static void RsaWrap::InitClass(v8::Handle<v8::Object>)’: | |
../src/ursaNative.cc:379:60: error: invalid conversion from ‘v8::Handle<v8::Value> (*)(const int&)’ to ‘v8::FunctionCallback {aka void (*)(const v8::FunctionCallbackInfo<v8::Value>&)}’ [-fpermissive] | |
Local<FunctionTemplate> tpl = FunctionTemplate::New(New); | |
^ | |
In file included from /home/mmworker/.node-gyp/0.11.8/src/node.h:61:0, | |
from ../src/ursaNative.h:7, | |
from ../src/ursaNative.cc:3: | |
/home/mmworker/.node-gyp/0.11.8/deps/v8/include/v8.h:3311: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] | |
static Local<FunctionTemplate> New( | |
^ | |
../src/ursaNative.cc:33:38: error: invalid conversion from ‘v8::Handle<v8::Value> (*)(const int&)’ to ‘v8::FunctionCallback {aka void (*)(const v8::FunctionCallbackInfo<v8::Value>&)}’ [-fpermissive] | |
FunctionTemplate::New(lowName)->GetFunction()) | |
^ | |
../src/ursaNative.cc:387:5: note: in expansion of macro ‘BIND’ | |
BIND(proto, generatePrivateKey, GeneratePrivateKey); | |
^ | |
In file included from /home/mmworker/.node-gyp/0.11.8/src/node.h:61:0, | |
from ../src/ursaNative.h:7, | |
from ../src/ursaNative.cc:3: | |
/home/mmworker/.node-gyp/0.11.8/deps/v8/include/v8.h:3311: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] | |
static Local<FunctionTemplate> New( | |
^ | |
../src/ursaNative.cc:33:38: error: invalid conversion from ‘v8::Handle<v8::Value> (*)(const int&)’ to ‘v8::FunctionCallback {aka void (*)(const v8::FunctionCallbackInfo<v8::Value>&)}’ [-fpermissive] | |
FunctionTemplate::New(lowName)->GetFunction()) | |
^ | |
../src/ursaNative.cc:388:5: note: in expansion of macro ‘BIND’ | |
BIND(proto, getExponent, GetExponent); | |
^ | |
In file included from /home/mmworker/.node-gyp/0.11.8/src/node.h:61:0, | |
from ../src/ursaNative.h:7, | |
from ../src/ursaNative.cc:3: | |
/home/mmworker/.node-gyp/0.11.8/deps/v8/include/v8.h:3311: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] | |
static Local<FunctionTemplate> New( | |
^ | |
../src/ursaNative.cc:33:38: error: invalid conversion from ‘v8::Handle<v8::Value> (*)(const int&)’ to ‘v8::FunctionCallback {aka void (*)(const v8::FunctionCallbackInfo<v8::Value>&)}’ [-fpermissive] | |
FunctionTemplate::New(lowName)->GetFunction()) | |
^ | |
../src/ursaNative.cc:389:5: note: in expansion of macro ‘BIND’ | |
BIND(proto, getModulus, GetModulus); | |
^ | |
In file included from /home/mmworker/.node-gyp/0.11.8/src/node.h:61:0, | |
from ../src/ursaNative.h:7, | |
from ../src/ursaNative.cc:3: | |
/home/mmworker/.node-gyp/0.11.8/deps/v8/include/v8.h:3311: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] | |
static Local<FunctionTemplate> New( | |
^ | |
../src/ursaNative.cc:33:38: error: invalid conversion from ‘v8::Handle<v8::Value> (*)(const int&)’ to ‘v8::FunctionCallback {aka void (*)(const v8::FunctionCallbackInfo<v8::Value>&)}’ [-fpermissive] | |
FunctionTemplate::New(lowName)->GetFunction()) | |
^ | |
../src/ursaNative.cc:390:5: note: in expansion of macro ‘BIND’ | |
BIND(proto, getPrivateKeyPem, GetPrivateKeyPem); | |
^ | |
In file included from /home/mmworker/.node-gyp/0.11.8/src/node.h:61:0, | |
from ../src/ursaNative.h:7, | |
from ../src/ursaNative.cc:3: | |
/home/mmworker/.node-gyp/0.11.8/deps/v8/include/v8.h:3311: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] | |
static Local<FunctionTemplate> New( | |
^ | |
../src/ursaNative.cc:33:38: error: invalid conversion from ‘v8::Handle<v8::Value> (*)(const int&)’ to ‘v8::FunctionCallback {aka void (*)(const v8::FunctionCallbackInfo<v8::Value>&)}’ [-fpermissive] | |
FunctionTemplate::New(lowName)->GetFunction()) | |
^ | |
../src/ursaNative.cc:391:5: note: in expansion of macro ‘BIND’ | |
BIND(proto, getPublicKeyPem, GetPublicKeyPem); | |
^ | |
In file included from /home/mmworker/.node-gyp/0.11.8/src/node.h:61:0, | |
from ../src/ursaNative.h:7, | |
from ../src/ursaNative.cc:3: | |
/home/mmworker/.node-gyp/0.11.8/deps/v8/include/v8.h:3311: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] | |
static Local<FunctionTemplate> New( | |
^ | |
../src/ursaNative.cc:33:38: error: invalid conversion from ‘v8::Handle<v8::Value> (*)(const int&)’ to ‘v8::FunctionCallback {aka void (*)(const v8::FunctionCallbackInfo<v8::Value>&)}’ [-fpermissive] | |
FunctionTemplate::New(lowName)->GetFunction()) | |
^ | |
../src/ursaNative.cc:392:5: note: in expansion of macro ‘BIND’ | |
BIND(proto, privateDecrypt, PrivateDecrypt); | |
^ | |
In file included from /home/mmworker/.node-gyp/0.11.8/src/node.h:61:0, | |
from ../src/ursaNative.h:7, | |
from ../src/ursaNative.cc:3: | |
/home/mmworker/.node-gyp/0.11.8/deps/v8/include/v8.h:3311: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] | |
static Local<FunctionTemplate> New( | |
^ | |
../src/ursaNative.cc:33:38: error: invalid conversion from ‘v8::Handle<v8::Value> (*)(const int&)’ to ‘v8::FunctionCallback {aka void (*)(const v8::FunctionCallbackInfo<v8::Value>&)}’ [-fpermissive] | |
FunctionTemplate::New(lowName)->GetFunction()) | |
^ | |
../src/ursaNative.cc:393:5: note: in expansion of macro ‘BIND’ | |
BIND(proto, privateEncrypt, PrivateEncrypt); | |
^ | |
In file included from /home/mmworker/.node-gyp/0.11.8/src/node.h:61:0, | |
from ../src/ursaNative.h:7, | |
from ../src/ursaNative.cc:3: | |
/home/mmworker/.node-gyp/0.11.8/deps/v8/include/v8.h:3311: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] | |
static Local<FunctionTemplate> New( | |
^ | |
../src/ursaNative.cc:33:38: error: invalid conversion from ‘v8::Handle<v8::Value> (*)(const int&)’ to ‘v8::FunctionCallback {aka void (*)(const v8::FunctionCallbackInfo<v8::Value>&)}’ [-fpermissive] | |
FunctionTemplate::New(lowName)->GetFunction()) | |
^ | |
../src/ursaNative.cc:394:5: note: in expansion of macro ‘BIND’ | |
BIND(proto, publicDecrypt, PublicDecrypt); | |
^ | |
In file included from /home/mmworker/.node-gyp/0.11.8/src/node.h:61:0, | |
from ../src/ursaNative.h:7, | |
from ../src/ursaNative.cc:3: | |
/home/mmworker/.node-gyp/0.11.8/deps/v8/include/v8.h:3311: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] | |
static Local<FunctionTemplate> New( | |
^ | |
../src/ursaNative.cc:33:38: error: invalid conversion from ‘v8::Handle<v8::Value> (*)(const int&)’ to ‘v8::FunctionCallback {aka void (*)(const v8::FunctionCallbackInfo<v8::Value>&)}’ [-fpermissive] | |
FunctionTemplate::New(lowName)->GetFunction()) | |
^ | |
../src/ursaNative.cc:395:5: note: in expansion of macro ‘BIND’ | |
BIND(proto, publicEncrypt, PublicEncrypt); | |
^ | |
In file included from /home/mmworker/.node-gyp/0.11.8/src/node.h:61:0, | |
from ../src/ursaNative.h:7, | |
from ../src/ursaNative.cc:3: | |
/home/mmworker/.node-gyp/0.11.8/deps/v8/include/v8.h:3311: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] | |
static Local<FunctionTemplate> New( | |
^ | |
../src/ursaNative.cc:33:38: error: invalid conversion from ‘v8::Handle<v8::Value> (*)(const int&)’ to ‘v8::FunctionCallback {aka void (*)(const v8::FunctionCallbackInfo<v8::Value>&)}’ [-fpermissive] | |
FunctionTemplate::New(lowName)->GetFunction()) | |
^ | |
../src/ursaNative.cc:396:5: note: in expansion of macro ‘BIND’ | |
BIND(proto, setPrivateKeyPem, SetPrivateKeyPem); | |
^ | |
In file included from /home/mmworker/.node-gyp/0.11.8/src/node.h:61:0, | |
from ../src/ursaNative.h:7, | |
from ../src/ursaNative.cc:3: | |
/home/mmworker/.node-gyp/0.11.8/deps/v8/include/v8.h:3311: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] | |
static Local<FunctionTemplate> New( | |
^ | |
../src/ursaNative.cc:33:38: error: invalid conversion from ‘v8::Handle<v8::Value> (*)(const int&)’ to ‘v8::FunctionCallback {aka void (*)(const v8::FunctionCallbackInfo<v8::Value>&)}’ [-fpermissive] | |
FunctionTemplate::New(lowName)->GetFunction()) | |
^ | |
../src/ursaNative.cc:397:5: note: in expansion of macro ‘BIND’ | |
BIND(proto, setPublicKeyPem, SetPublicKeyPem); | |
^ | |
In file included from /home/mmworker/.node-gyp/0.11.8/src/node.h:61:0, | |
from ../src/ursaNative.h:7, | |
from ../src/ursaNative.cc:3: | |
/home/mmworker/.node-gyp/0.11.8/deps/v8/include/v8.h:3311: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] | |
static Local<FunctionTemplate> New( | |
^ | |
../src/ursaNative.cc:33:38: error: invalid conversion from ‘v8::Handle<v8::Value> (*)(const int&)’ to ‘v8::FunctionCallback {aka void (*)(const v8::FunctionCallbackInfo<v8::Value>&)}’ [-fpermissive] | |
FunctionTemplate::New(lowName)->GetFunction()) | |
^ | |
../src/ursaNative.cc:398:5: note: in expansion of macro ‘BIND’ | |
BIND(proto, sign, Sign); | |
^ | |
In file included from /home/mmworker/.node-gyp/0.11.8/src/node.h:61:0, | |
from ../src/ursaNative.h:7, | |
from ../src/ursaNative.cc:3: | |
/home/mmworker/.node-gyp/0.11.8/deps/v8/include/v8.h:3311: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] | |
static Local<FunctionTemplate> New( | |
^ | |
../src/ursaNative.cc:33:38: error: invalid conversion from ‘v8::Handle<v8::Value> (*)(const int&)’ to ‘v8::FunctionCallback {aka void (*)(const v8::FunctionCallbackInfo<v8::Value>&)}’ [-fpermissive] | |
FunctionTemplate::New(lowName)->GetFunction()) | |
^ | |
../src/ursaNative.cc:399:5: note: in expansion of macro ‘BIND’ | |
BIND(proto, verify, Verify); | |
^ | |
In file included from /home/mmworker/.node-gyp/0.11.8/src/node.h:61:0, | |
from ../src/ursaNative.h:7, | |
from ../src/ursaNative.cc:3: | |
/home/mmworker/.node-gyp/0.11.8/deps/v8/include/v8.h:3311: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] | |
static Local<FunctionTemplate> New( | |
^ | |
../src/ursaNative.cc:402:72: error: no matching function for call to ‘v8::Persistent<v8::Function, v8::NonCopyablePersistentTraits<v8::Function> >::New(v8::Local<v8::Function>)’ | |
target->Set(className, Persistent<Function>::New(tpl->GetFunction())); | |
^ | |
../src/ursaNative.cc:402:72: note: candidate is: | |
In file included from /home/mmworker/.node-gyp/0.11.8/src/node.h:61:0, | |
from ../src/ursaNative.h:7, | |
from ../src/ursaNative.cc:3: | |
/home/mmworker/.node-gyp/0.11.8/deps/v8/include/v8.h:5555:4: note: static T* v8::Persistent<T, M>::New(v8::Isolate*, T*) [with T = v8::Function; M = v8::NonCopyablePersistentTraits<v8::Function>] | |
T* Persistent<T, M>::New(Isolate* isolate, T* that) { | |
^ | |
/home/mmworker/.node-gyp/0.11.8/deps/v8/include/v8.h:5555:4: note: candidate expects 2 arguments, 1 provided | |
../src/ursaNative.cc: At global scope: | |
../src/ursaNative.cc:429:48: error: ‘Arguments’ does not name a type | |
RsaWrap *RsaWrap::unwrapExpectPrivateKey(const Arguments& args) { | |
^ | |
../src/ursaNative.cc:429:59: error: ISO C++ forbids declaration of ‘args’ with no type [-fpermissive] | |
RsaWrap *RsaWrap::unwrapExpectPrivateKey(const Arguments& args) { | |
^ | |
../src/ursaNative.cc:449:41: error: ‘Arguments’ does not name a type | |
RsaWrap *RsaWrap::unwrapExpectSet(const Arguments& args) { | |
^ | |
../src/ursaNative.cc:449:52: error: ISO C++ forbids declaration of ‘args’ with no type [-fpermissive] | |
RsaWrap *RsaWrap::unwrapExpectSet(const Arguments& args) { | |
^ | |
../src/ursaNative.cc: In static member function ‘static RsaWrap* RsaWrap::unwrapExpectSet(const int&)’: | |
../src/ursaNative.cc:450:20: error: ‘ObjectWrap’ has not been declared | |
RsaWrap *obj = ObjectWrap::Unwrap<RsaWrap>(args.Holder()); | |
^ | |
../src/ursaNative.cc:450:46: error: expected primary-expression before ‘>’ token | |
RsaWrap *obj = ObjectWrap::Unwrap<RsaWrap>(args.Holder()); | |
^ | |
../src/ursaNative.cc:450:53: error: request for member ‘Holder’ in ‘args’, which is of non-class type ‘const int’ | |
RsaWrap *obj = ObjectWrap::Unwrap<RsaWrap>(args.Holder()); | |
^ | |
../src/ursaNative.cc: At global scope: | |
../src/ursaNative.cc:466:43: error: ‘Arguments’ does not name a type | |
RsaWrap *RsaWrap::unwrapExpectUnset(const Arguments& args) { | |
^ | |
../src/ursaNative.cc:466:54: error: ISO C++ forbids declaration of ‘args’ with no type [-fpermissive] | |
RsaWrap *RsaWrap::unwrapExpectUnset(const Arguments& args) { | |
^ | |
../src/ursaNative.cc: In static member function ‘static RsaWrap* RsaWrap::unwrapExpectUnset(const int&)’: | |
../src/ursaNative.cc:467:20: error: ‘ObjectWrap’ has not been declared | |
RsaWrap *obj = ObjectWrap::Unwrap<RsaWrap>(args.Holder()); | |
^ | |
../src/ursaNative.cc:467:46: error: expected primary-expression before ‘>’ token | |
RsaWrap *obj = ObjectWrap::Unwrap<RsaWrap>(args.Holder()); | |
^ | |
../src/ursaNative.cc:467:53: error: request for member ‘Holder’ in ‘args’, which is of non-class type ‘const int’ | |
RsaWrap *obj = ObjectWrap::Unwrap<RsaWrap>(args.Holder()); | |
^ | |
../src/ursaNative.cc: At global scope: | |
../src/ursaNative.cc:481:34: error: ‘Arguments’ does not name a type | |
Handle<Value> RsaWrap::New(const Arguments& args) { | |
^ | |
../src/ursaNative.cc:481:45: error: ISO C++ forbids declaration of ‘args’ with no type [-fpermissive] | |
Handle<Value> RsaWrap::New(const Arguments& args) { | |
^ | |
../src/ursaNative.cc: In static member function ‘static v8::Handle<v8::Value> RsaWrap::New(const int&)’: | |
../src/ursaNative.cc:483:10: error: ‘class RsaWrap’ has no member named ‘Wrap’ | |
obj->Wrap(args.This()); | |
^ | |
../src/ursaNative.cc:483:20: error: request for member ‘This’ in ‘args’, which is of non-class type ‘const int’ | |
obj->Wrap(args.This()); | |
^ | |
../src/ursaNative.cc:485:17: error: request for member ‘This’ in ‘args’, which is of non-class type ‘const int’ | |
return args.This(); | |
^ | |
../src/ursaNative.cc: At global scope: | |
../src/ursaNative.cc:491:49: error: ‘Arguments’ does not name a type | |
Handle<Value> RsaWrap::GeneratePrivateKey(const Arguments& args) { | |
^ | |
../src/ursaNative.cc:491:60: error: ISO C++ forbids declaration of ‘args’ with no type [-fpermissive] | |
Handle<Value> RsaWrap::GeneratePrivateKey(const Arguments& args) { | |
^ | |
../src/ursaNative.cc: In static member function ‘static v8::Handle<v8::Value> RsaWrap::GeneratePrivateKey(const int&)’: | |
../src/ursaNative.cc:492:17: error: no matching function for call to ‘v8::HandleScope::HandleScope()’ | |
HandleScope scope; | |
^ | |
../src/ursaNative.cc:492:17: note: candidates are: | |
In file included from /home/mmworker/.node-gyp/0.11.8/src/node.h:61:0, | |
from ../src/ursaNative.h:7, | |
from ../src/ursaNative.cc:3: | |
/home/mmworker/.node-gyp/0.11.8/deps/v8/include/v8.h:783:3: note: v8::HandleScope::HandleScope(const v8::HandleScope&) | |
HandleScope(const HandleScope&); | |
^ | |
/home/mmworker/.node-gyp/0.11.8/deps/v8/include/v8.h:783:3: note: candidate expects 1 argument, 0 provided | |
/home/mmworker/.node-gyp/0.11.8/deps/v8/include/v8.h:756:3: note: v8::HandleScope::HandleScope(v8::Isolate*) | |
HandleScope(Isolate* isolate); | |
^ | |
/home/mmworker/.node-gyp/0.11.8/deps/v8/include/v8.h:756:3: note: candidate expects 1 argument, 0 provided | |
../src/ursaNative.cc: At global scope: | |
../src/ursaNative.cc:547:42: error: ‘Arguments’ does not name a type | |
Handle<Value> RsaWrap::GetExponent(const Arguments& args) { | |
^ | |
../src/ursaNative.cc:547:53: error: ISO C++ forbids declaration of ‘args’ with no type [-fpermissive] | |
Handle<Value> RsaWrap::GetExponent(const Arguments& args) { | |
^ | |
../src/ursaNative.cc: In static member function ‘static v8::Handle<v8::Value> RsaWrap::GetExponent(const int&)’: | |
../src/ursaNative.cc:548:17: error: no matching function for call to ‘v8::HandleScope::HandleScope()’ | |
HandleScope scope; | |
^ | |
../src/ursaNative.cc:548:17: note: candidates are: | |
In file included from /home/mmworker/.node-gyp/0.11.8/src/node.h:61:0, | |
from ../src/ursaNative.h:7, | |
from ../src/ursaNative.cc:3: | |
/home/mmworker/.node-gyp/0.11.8/deps/v8/include/v8.h:783:3: note: v8::HandleScope::HandleScope(const v8::HandleScope&) | |
HandleScope(const HandleScope&); | |
^ | |
/home/mmworker/.node-gyp/0.11.8/deps/v8/include/v8.h:783:3: note: candidate expects 1 argument, 0 provided | |
/home/mmworker/.node-gyp/0.11.8/deps/v8/include/v8.h:756:3: note: v8::HandleScope::HandleScope(v8::Isolate*) | |
HandleScope(Isolate* isolate); | |
^ | |
/home/mmworker/.node-gyp/0.11.8/deps/v8/include/v8.h:756:3: note: candidate expects 1 argument, 0 provided | |
../src/ursaNative.cc: At global scope: | |
../src/ursaNative.cc:561:41: error: ‘Arguments’ does not name a type | |
Handle<Value> RsaWrap::GetModulus(const Arguments& args) { | |
^ | |
../src/ursaNative.cc:561:52: error: ISO C++ forbids declaration of ‘args’ with no type [-fpermissive] | |
Handle<Value> RsaWrap::GetModulus(const Arguments& args) { | |
^ | |
../src/ursaNative.cc: In static member function ‘static v8::Handle<v8::Value> RsaWrap::GetModulus(const int&)’: | |
../src/ursaNative.cc:562:17: error: no matching function for call to ‘v8::HandleScope::HandleScope()’ | |
HandleScope scope; | |
^ | |
../src/ursaNative.cc:562:17: note: candidates are: | |
In file included from /home/mmworker/.node-gyp/0.11.8/src/node.h:61:0, | |
from ../src/ursaNative.h:7, | |
from ../src/ursaNative.cc:3: | |
/home/mmworker/.node-gyp/0.11.8/deps/v8/include/v8.h:783:3: note: v8::HandleScope::HandleScope(const v8::HandleScope&) | |
HandleScope(const HandleScope&); | |
^ | |
/home/mmworker/.node-gyp/0.11.8/deps/v8/include/v8.h:783:3: note: candidate expects 1 argument, 0 provided | |
/home/mmworker/.node-gyp/0.11.8/deps/v8/include/v8.h:756:3: note: v8::HandleScope::HandleScope(v8::Isolate*) | |
HandleScope(Isolate* isolate); | |
^ | |
/home/mmworker/.node-gyp/0.11.8/deps/v8/include/v8.h:756:3: note: candidate expects 1 argument, 0 provided | |
../src/ursaNative.cc: At global scope: | |
../src/ursaNative.cc:576:47: error: ‘Arguments’ does not name a type | |
Handle<Value> RsaWrap::GetPrivateKeyPem(const Arguments& args) { | |
^ | |
../src/ursaNative.cc:576:58: error: ISO C++ forbids declaration of ‘args’ with no type [-fpermissive] | |
Handle<Value> RsaWrap::GetPrivateKeyPem(const Arguments& args) { | |
^ | |
../src/ursaNative.cc: In static member function ‘static v8::Handle<v8::Value> RsaWrap::GetPrivateKeyPem(const int&)’: | |
../src/ursaNative.cc:577:17: error: no matching function for call to ‘v8::HandleScope::HandleScope()’ | |
HandleScope scope; | |
^ | |
../src/ursaNative.cc:577:17: note: candidates are: | |
In file included from /home/mmworker/.node-gyp/0.11.8/src/node.h:61:0, | |
from ../src/ursaNative.h:7, | |
from ../src/ursaNative.cc:3: | |
/home/mmworker/.node-gyp/0.11.8/deps/v8/include/v8.h:783:3: note: v8::HandleScope::HandleScope(const v8::HandleScope&) | |
HandleScope(const HandleScope&); | |
^ | |
/home/mmworker/.node-gyp/0.11.8/deps/v8/include/v8.h:783:3: note: candidate expects 1 argument, 0 provided | |
/home/mmworker/.node-gyp/0.11.8/deps/v8/include/v8.h:756:3: note: v8::HandleScope::HandleScope(v8::Isolate*) | |
HandleScope(Isolate* isolate); | |
^ | |
/home/mmworker/.node-gyp/0.11.8/deps/v8/include/v8.h:756:3: note: candidate expects 1 argument, 0 provided | |
../src/ursaNative.cc: At global scope: | |
../src/ursaNative.cc:603:46: error: ‘Arguments’ does not name a type | |
Handle<Value> RsaWrap::GetPublicKeyPem(const Arguments& args) { | |
^ | |
../src/ursaNative.cc:603:57: error: ISO C++ forbids declaration of ‘args’ with no type [-fpermissive] | |
Handle<Value> RsaWrap::GetPublicKeyPem(const Arguments& args) { | |
^ | |
../src/ursaNative.cc: In static member function ‘static v8::Handle<v8::Value> RsaWrap::GetPublicKeyPem(const int&)’: | |
../src/ursaNative.cc:604:17: error: no matching function for call to ‘v8::HandleScope::HandleScope()’ | |
HandleScope scope; | |
^ | |
../src/ursaNative.cc:604:17: note: candidates are: | |
In file included from /home/mmworker/.node-gyp/0.11.8/src/node.h:61:0, | |
from ../src/ursaNative.h:7, | |
from ../src/ursaNative.cc:3: | |
/home/mmworker/.node-gyp/0.11.8/deps/v8/include/v8.h:783:3: note: v8::HandleScope::HandleScope(const v8::HandleScope&) | |
HandleScope(const HandleScope&); | |
^ | |
/home/mmworker/.node-gyp/0.11.8/deps/v8/include/v8.h:783:3: note: candidate expects 1 argument, 0 provided | |
/home/mmworker/.node-gyp/0.11.8/deps/v8/include/v8.h:756:3: note: v8::HandleScope::HandleScope(v8::Isolate*) | |
HandleScope(Isolate* isolate); | |
^ | |
/home/mmworker/.node-gyp/0.11.8/deps/v8/include/v8.h:756:3: note: candidate expects 1 argument, 0 provided | |
../src/ursaNative.cc: At global scope: | |
../src/ursaNative.cc:629:45: error: ‘Arguments’ does not name a type | |
Handle<Value> RsaWrap::PrivateDecrypt(const Arguments& args) { | |
^ | |
../src/ursaNative.cc:629:56: error: ISO C++ forbids declaration of ‘args’ with no type [-fpermissive] | |
Handle<Value> RsaWrap::PrivateDecrypt(const Arguments& args) { | |
^ | |
../src/ursaNative.cc: In static member function ‘static v8::Handle<v8::Value> RsaWrap::PrivateDecrypt(const int&)’: | |
../src/ursaNative.cc:630:17: error: no matching function for call to ‘v8::HandleScope::HandleScope()’ | |
HandleScope scope; | |
^ | |
../src/ursaNative.cc:630:17: note: candidates are: | |
In file included from /home/mmworker/.node-gyp/0.11.8/src/node.h:61:0, | |
from ../src/ursaNative.h:7, | |
from ../src/ursaNative.cc:3: | |
/home/mmworker/.node-gyp/0.11.8/deps/v8/include/v8.h:783:3: note: v8::HandleScope::HandleScope(const v8::HandleScope&) | |
HandleScope(const HandleScope&); | |
^ | |
/home/mmworker/.node-gyp/0.11.8/deps/v8/include/v8.h:783:3: note: candidate expects 1 argument, 0 provided | |
/home/mmworker/.node-gyp/0.11.8/deps/v8/include/v8.h:756:3: note: v8::HandleScope::HandleScope(v8::Isolate*) | |
HandleScope(Isolate* isolate); | |
^ | |
/home/mmworker/.node-gyp/0.11.8/deps/v8/include/v8.h:756:3: note: candidate expects 1 argument, 0 provided | |
../src/ursaNative.cc:653:18: error: expected primary-expression before ‘*’ token | |
node::Buffer *result = node::Buffer::New(bufLength); | |
^ | |
../src/ursaNative.cc:653:19: error: ‘result’ was not declared in this scope | |
node::Buffer *result = node::Buffer::New(bufLength); | |
^ | |
../src/ursaNative.cc: At global scope: | |
../src/ursaNative.cc:669:45: error: ‘Arguments’ does not name a type | |
Handle<Value> RsaWrap::PrivateEncrypt(const Arguments& args) { | |
^ | |
../src/ursaNative.cc:669:56: error: ISO C++ forbids declaration of ‘args’ with no type [-fpermissive] | |
Handle<Value> RsaWrap::PrivateEncrypt(const Arguments& args) { | |
^ | |
../src/ursaNative.cc: In static member function ‘static v8::Handle<v8::Value> RsaWrap::PrivateEncrypt(const int&)’: | |
../src/ursaNative.cc:670:17: error: no matching function for call to ‘v8::HandleScope::HandleScope()’ | |
HandleScope scope; | |
^ | |
../src/ursaNative.cc:670:17: note: candidates are: | |
In file included from /home/mmworker/.node-gyp/0.11.8/src/node.h:61:0, | |
from ../src/ursaNative.h:7, | |
from ../src/ursaNative.cc:3: | |
/home/mmworker/.node-gyp/0.11.8/deps/v8/include/v8.h:783:3: note: v8::HandleScope::HandleScope(const v8::HandleScope&) | |
HandleScope(const HandleScope&); | |
^ | |
/home/mmworker/.node-gyp/0.11.8/deps/v8/include/v8.h:783:3: note: candidate expects 1 argument, 0 provided | |
/home/mmworker/.node-gyp/0.11.8/deps/v8/include/v8.h:756:3: note: v8::HandleScope::HandleScope(v8::Isolate*) | |
HandleScope(Isolate* isolate); | |
^ | |
/home/mmworker/.node-gyp/0.11.8/deps/v8/include/v8.h:756:3: note: candidate expects 1 argument, 0 provided | |
../src/ursaNative.cc:680:18: error: expected primary-expression before ‘*’ token | |
node::Buffer *result = node::Buffer::New(rsaLength); | |
^ | |
../src/ursaNative.cc:680:19: error: ‘result’ was not declared in this scope | |
node::Buffer *result = node::Buffer::New(rsaLength); | |
^ | |
../src/ursaNative.cc: At global scope: | |
../src/ursaNative.cc:704:44: error: ‘Arguments’ does not name a type | |
Handle<Value> RsaWrap::PublicDecrypt(const Arguments& args) { | |
^ | |
../src/ursaNative.cc:704:55: error: ISO C++ forbids declaration of ‘args’ with no type [-fpermissive] | |
Handle<Value> RsaWrap::PublicDecrypt(const Arguments& args) { | |
^ | |
../src/ursaNative.cc: In static member function ‘static v8::Handle<v8::Value> RsaWrap::PublicDecrypt(const int&)’: | |
../src/ursaNative.cc:705:17: error: no matching function for call to ‘v8::HandleScope::HandleScope()’ | |
HandleScope scope; | |
^ | |
../src/ursaNative.cc:705:17: note: candidates are: | |
In file included from /home/mmworker/.node-gyp/0.11.8/src/node.h:61:0, | |
from ../src/ursaNative.h:7, | |
from ../src/ursaNative.cc:3: | |
/home/mmworker/.node-gyp/0.11.8/deps/v8/include/v8.h:783:3: note: v8::HandleScope::HandleScope(const v8::HandleScope&) | |
HandleScope(const HandleScope&); | |
^ | |
/home/mmworker/.node-gyp/0.11.8/deps/v8/include/v8.h:783:3: note: candidate expects 1 argument, 0 provided | |
/home/mmworker/.node-gyp/0.11.8/deps/v8/include/v8.h:756:3: note: v8::HandleScope::HandleScope(v8::Isolate*) | |
HandleScope(Isolate* isolate); | |
^ | |
/home/mmworker/.node-gyp/0.11.8/deps/v8/include/v8.h:756:3: note: candidate expects 1 argument, 0 provided | |
../src/ursaNative.cc:725:18: error: expected primary-expression before ‘*’ token | |
node::Buffer *result = node::Buffer::New(bufLength); | |
^ | |
../src/ursaNative.cc:725:19: error: ‘result’ was not declared in this scope | |
node::Buffer *result = node::Buffer::New(bufLength); | |
^ | |
../src/ursaNative.cc: At global scope: | |
../src/ursaNative.cc:740:44: error: ‘Arguments’ does not name a type | |
Handle<Value> RsaWrap::PublicEncrypt(const Arguments& args) { | |
^ | |
../src/ursaNative.cc:740:55: error: ISO C++ forbids declaration of ‘args’ with no type [-fpermissive] | |
Handle<Value> RsaWrap::PublicEncrypt(const Arguments& args) { | |
^ | |
../src/ursaNative.cc: In static member function ‘static v8::Handle<v8::Value> RsaWrap::PublicEncrypt(const int&)’: | |
../src/ursaNative.cc:741:17: error: no matching function for call to ‘v8::HandleScope::HandleScope()’ | |
HandleScope scope; | |
^ | |
../src/ursaNative.cc:741:17: note: candidates are: | |
In file included from /home/mmworker/.node-gyp/0.11.8/src/node.h:61:0, | |
from ../src/ursaNative.h:7, | |
from ../src/ursaNative.cc:3: | |
/home/mmworker/.node-gyp/0.11.8/deps/v8/include/v8.h:783:3: note: v8::HandleScope::HandleScope(const v8::HandleScope&) | |
HandleScope(const HandleScope&); | |
^ | |
/home/mmworker/.node-gyp/0.11.8/deps/v8/include/v8.h:783:3: note: candidate expects 1 argument, 0 provided | |
/home/mmworker/.node-gyp/0.11.8/deps/v8/include/v8.h:756:3: note: v8::HandleScope::HandleScope(v8::Isolate*) | |
HandleScope(Isolate* isolate); | |
^ | |
/home/mmworker/.node-gyp/0.11.8/deps/v8/include/v8.h:756:3: note: candidate expects 1 argument, 0 provided | |
../src/ursaNative.cc:751:18: error: expected primary-expression before ‘*’ token | |
node::Buffer *result = node::Buffer::New(rsaLength); | |
^ | |
../src/ursaNative.cc:751:19: error: ‘result’ was not declared in this scope | |
node::Buffer *result = node::Buffer::New(rsaLength); | |
^ | |
../src/ursaNative.cc: At global scope: | |
../src/ursaNative.cc:779:47: error: ‘Arguments’ does not name a type | |
Handle<Value> RsaWrap::SetPrivateKeyPem(const Arguments& args) { | |
^ | |
../src/ursaNative.cc:779:58: error: ISO C++ forbids declaration of ‘args’ with no type [-fpermissive] | |
Handle<Value> RsaWrap::SetPrivateKeyPem(const Arguments& args) { | |
^ | |
../src/ursaNative.cc: In static member function ‘static v8::Handle<v8::Value> RsaWrap::SetPrivateKeyPem(const int&)’: | |
../src/ursaNative.cc:780:17: error: no matching function for call to ‘v8::HandleScope::HandleScope()’ | |
HandleScope scope; | |
^ | |
../src/ursaNative.cc:780:17: note: candidates are: | |
In file included from /home/mmworker/.node-gyp/0.11.8/src/node.h:61:0, | |
from ../src/ursaNative.h:7, | |
from ../src/ursaNative.cc:3: | |
/home/mmworker/.node-gyp/0.11.8/deps/v8/include/v8.h:783:3: note: v8::HandleScope::HandleScope(const v8::HandleScope&) | |
HandleScope(const HandleScope&); | |
^ | |
/home/mmworker/.node-gyp/0.11.8/deps/v8/include/v8.h:783:3: note: candidate expects 1 argument, 0 provided | |
/home/mmworker/.node-gyp/0.11.8/deps/v8/include/v8.h:756:3: note: v8::HandleScope::HandleScope(v8::Isolate*) | |
HandleScope(Isolate* isolate); | |
^ | |
/home/mmworker/.node-gyp/0.11.8/deps/v8/include/v8.h:756:3: note: candidate expects 1 argument, 0 provided | |
../src/ursaNative.cc:793:21: error: request for member ‘Length’ in ‘args’, which is of non-class type ‘const int’ | |
if (ok && (args.Length() >= 2)) { | |
^ | |
../src/ursaNative.cc: At global scope: | |
../src/ursaNative.cc:813:46: error: ‘Arguments’ does not name a type | |
Handle<Value> RsaWrap::SetPublicKeyPem(const Arguments& args) { | |
^ | |
../src/ursaNative.cc:813:57: error: ISO C++ forbids declaration of ‘args’ with no type [-fpermissive] | |
Handle<Value> RsaWrap::SetPublicKeyPem(const Arguments& args) { | |
^ | |
../src/ursaNative.cc: In static member function ‘static v8::Handle<v8::Value> RsaWrap::SetPublicKeyPem(const int&)’: | |
../src/ursaNative.cc:814:17: error: no matching function for call to ‘v8::HandleScope::HandleScope()’ | |
HandleScope scope; | |
^ | |
../src/ursaNative.cc:814:17: note: candidates are: | |
In file included from /home/mmworker/.node-gyp/0.11.8/src/node.h:61:0, | |
from ../src/ursaNative.h:7, | |
from ../src/ursaNative.cc:3: | |
/home/mmworker/.node-gyp/0.11.8/deps/v8/include/v8.h:783:3: note: v8::HandleScope::HandleScope(const v8::HandleScope&) | |
HandleScope(const HandleScope&); | |
^ | |
/home/mmworker/.node-gyp/0.11.8/deps/v8/include/v8.h:783:3: note: candidate expects 1 argument, 0 provided | |
/home/mmworker/.node-gyp/0.11.8/deps/v8/include/v8.h:756:3: note: v8::HandleScope::HandleScope(v8::Isolate*) | |
HandleScope(Isolate* isolate); | |
^ | |
/home/mmworker/.node-gyp/0.11.8/deps/v8/include/v8.h:756:3: note: candidate expects 1 argument, 0 provided | |
../src/ursaNative.cc: At global scope: | |
../src/ursaNative.cc:834:35: error: ‘Arguments’ does not name a type | |
Handle<Value> RsaWrap::Sign(const Arguments& args) { | |
^ | |
../src/ursaNative.cc:834:46: error: ISO C++ forbids declaration of ‘args’ with no type [-fpermissive] | |
Handle<Value> RsaWrap::Sign(const Arguments& args) { | |
^ | |
../src/ursaNative.cc: In static member function ‘static v8::Handle<v8::Value> RsaWrap::Sign(const int&)’: | |
../src/ursaNative.cc:835:17: error: no matching function for call to ‘v8::HandleScope::HandleScope()’ | |
HandleScope scope; | |
^ | |
../src/ursaNative.cc:835:17: note: candidates are: | |
In file included from /home/mmworker/.node-gyp/0.11.8/src/node.h:61:0, | |
from ../src/ursaNative.h:7, | |
from ../src/ursaNative.cc:3: | |
/home/mmworker/.node-gyp/0.11.8/deps/v8/include/v8.h:783:3: note: v8::HandleScope::HandleScope(const v8::HandleScope&) | |
HandleScope(const HandleScope&); | |
^ | |
/home/mmworker/.node-gyp/0.11.8/deps/v8/include/v8.h:783:3: note: candidate expects 1 argument, 0 provided | |
/home/mmworker/.node-gyp/0.11.8/deps/v8/include/v8.h:756:3: note: v8::HandleScope::HandleScope(v8::Isolate*) | |
HandleScope(Isolate* isolate); | |
^ | |
/home/mmworker/.node-gyp/0.11.8/deps/v8/include/v8.h:756:3: note: candidate expects 1 argument, 0 provided | |
../src/ursaNative.cc:849:18: error: expected primary-expression before ‘*’ token | |
node::Buffer *result = node::Buffer::New(sigLength); | |
^ | |
../src/ursaNative.cc:849:19: error: ‘result’ was not declared in this scope | |
node::Buffer *result = node::Buffer::New(sigLength); | |
^ | |
../src/ursaNative.cc: At global scope: | |
../src/ursaNative.cc:874:37: error: ‘Arguments’ does not name a type | |
Handle<Value> RsaWrap::Verify(const Arguments& args) { | |
^ | |
../src/ursaNative.cc:874:48: error: ISO C++ forbids declaration of ‘args’ with no type [-fpermissive] | |
Handle<Value> RsaWrap::Verify(const Arguments& args) { | |
^ | |
../src/ursaNative.cc: In static member function ‘static v8::Handle<v8::Value> RsaWrap::Verify(const int&)’: | |
../src/ursaNative.cc:875:17: error: no matching function for call to ‘v8::HandleScope::HandleScope()’ | |
HandleScope scope; | |
^ | |
../src/ursaNative.cc:875:17: note: candidates are: | |
In file included from /home/mmworker/.node-gyp/0.11.8/src/node.h:61:0, | |
from ../src/ursaNative.h:7, | |
from ../src/ursaNative.cc:3: | |
/home/mmworker/.node-gyp/0.11.8/deps/v8/include/v8.h:783:3: note: v8::HandleScope::HandleScope(const v8::HandleScope&) | |
HandleScope(const HandleScope&); | |
^ | |
/home/mmworker/.node-gyp/0.11.8/deps/v8/include/v8.h:783:3: note: candidate expects 1 argument, 0 provided | |
/home/mmworker/.node-gyp/0.11.8/deps/v8/include/v8.h:756:3: note: v8::HandleScope::HandleScope(v8::Isolate*) | |
HandleScope(Isolate* isolate); | |
^ | |
/home/mmworker/.node-gyp/0.11.8/deps/v8/include/v8.h:756:3: note: candidate expects 1 argument, 0 provided | |
../src/ursaNative.cc: In function ‘bool hasArgument(const int&, int)’: | |
../src/ursaNative.cc:152:51: warning: ignoring return value of ‘int asprintf(char**, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] | |
asprintf(&message, "Missing args[%d].", index); | |
^ | |
../src/ursaNative.cc: In static member function ‘static v8::Handle<v8::Value> RsaWrap::New(const int&)’: | |
../src/ursaNative.cc:486:1: warning: control reaches end of non-void function [-Wreturn-type] | |
} | |
^ | |
../src/ursaNative.cc: In function ‘bool getArgInt(const int&, int, int*)’: | |
../src/ursaNative.cc:293:76: warning: ignoring return value of ‘int asprintf(char**, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] | |
asprintf(&message, "Expected a 32-bit integer in args[%d].", index); | |
^ | |
../src/ursaNative.cc: In function ‘v8::Handle<v8::Value> bignumToBuffer(BIGNUM*)’: | |
../src/ursaNative.cc:108:1: warning: control reaches end of non-void function [-Wreturn-type] | |
} | |
^ | |
../src/ursaNative.cc: In function ‘v8::Handle<v8::Value> bioToBuffer(BIO*)’: | |
../src/ursaNative.cc:140:1: warning: control reaches end of non-void function [-Wreturn-type] | |
} | |
^ | |
../src/ursaNative.cc: In static member function ‘static v8::Handle<v8::Value> RsaWrap::PrivateDecrypt(const int&)’: | |
../src/ursaNative.cc:662:1: warning: control reaches end of non-void function [-Wreturn-type] | |
} | |
^ | |
../src/ursaNative.cc: In static member function ‘static v8::Handle<v8::Value> RsaWrap::PrivateEncrypt(const int&)’: | |
../src/ursaNative.cc:698:1: warning: control reaches end of non-void function [-Wreturn-type] | |
} | |
^ | |
../src/ursaNative.cc: In static member function ‘static v8::Handle<v8::Value> RsaWrap::PublicDecrypt(const int&)’: | |
../src/ursaNative.cc:734:1: warning: control reaches end of non-void function [-Wreturn-type] | |
} | |
^ | |
../src/ursaNative.cc: In static member function ‘static v8::Handle<v8::Value> RsaWrap::PublicEncrypt(const int&)’: | |
../src/ursaNative.cc:772:1: warning: control reaches end of non-void function [-Wreturn-type] | |
} | |
^ | |
../src/ursaNative.cc: In static member function ‘static v8::Handle<v8::Value> RsaWrap::Sign(const int&)’: | |
../src/ursaNative.cc:867:1: warning: control reaches end of non-void function [-Wreturn-type] | |
} | |
^ | |
make: *** [Release/obj.target/ursaNative/src/ursaNative.o] Error 1 | |
make: Leaving directory `/home/mmworker/mmworker/node_modules/ursa/build' | |
gyp ERR! build error | |
gyp ERR! stack Error: `make` failed with exit code: 2 | |
gyp ERR! stack at ChildProcess.onExit (/home/mmworker/node-v0.11.8-linux-x64/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:267:23) | |
gyp ERR! stack at ChildProcess.EventEmitter.emit (events.js:106:17) | |
gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:827:12) | |
gyp ERR! System Linux 3.11.0-12-generic | |
gyp ERR! command "node" "/home/mmworker/node-v0.11.8-linux-x64/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "configure" "build" | |
gyp ERR! cwd /home/mmworker/mmworker/node_modules/ursa | |
gyp ERR! node -v v0.11.8 | |
gyp ERR! node-gyp -v v0.11.0 | |
gyp ERR! not ok | |
npm ERR! [email protected] install: `node-gyp configure build && node install.js` | |
npm ERR! Exit status 1 | |
npm ERR! | |
npm ERR! Failed at the [email protected] install script. | |
npm ERR! This is most likely a problem with the ursa package, | |
npm ERR! not with npm itself. | |
npm ERR! Tell the author that this fails on your system: | |
npm ERR! node-gyp configure build && node install.js | |
npm ERR! You can get their info via: | |
npm ERR! npm owner ls ursa | |
npm ERR! There is likely additional logging output above. | |
npm ERR! System Linux 3.11.0-12-generic | |
npm ERR! command "/home/mmworker/node/bin/node" "/home/mmworker/node/bin/npm" "install" "ursa" | |
npm ERR! cwd /home/mmworker/mmworker | |
npm ERR! node -v v0.11.8 | |
npm ERR! npm -v 1.3.13 | |
npm ERR! code ELIFECYCLE | |
npm ERR! | |
npm ERR! Additional logging details can be found in: | |
npm ERR! /home/mmworker/mmworker/npm-debug.log | |
npm ERR! not ok code 0 | |
mmworker@ubuntu ~/mmworker % |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment