Created
November 6, 2014 15:56
-
-
Save clcollins/8356a62d104d5843a02d to your computer and use it in GitHub Desktop.
NPM apache-crypt build fail
This file contains 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
> [email protected] install /usr/local/lib/node_modules/http-master/node_modules/http-auth/node_modules/htpasswd/node_modules/apache-crypt | |
> node-gyp rebuild | |
child_process: customFds option is deprecated, use stdio instead. | |
make: Entering directory `/usr/local/lib/node_modules/http-master/node_modules/http-auth/node_modules/htpasswd/node_modules/apache-crypt/build' | |
CXX(target) Release/obj.target/crypt3/deps/crypt3.o | |
../deps/crypt3.cc: In function 'const char* GetApacheSalt()': | |
../deps/crypt3.cc:18:20: error: 'time' was not declared in this scope | |
srand(time(NULL)); | |
^ | |
../deps/crypt3.cc: At global scope: | |
../deps/crypt3.cc:28:28: error: 'Arguments' does not name a type | |
Handle<Value> Method(const Arguments& args) { | |
^ | |
../deps/crypt3.cc:28:39: error: ISO C++ forbids declaration of 'args' with no type [-fpermissive] | |
Handle<Value> Method(const Arguments& args) { | |
^ | |
In file included from /root/.node-gyp/0.11.14/src/node.h:61:0, | |
from ../deps/crypt3.cc:3: | |
/root/.node-gyp/0.11.14/deps/v8/include/v8.h: In function 'v8::Handle<v8::Value> Method(const int&)': | |
/root/.node-gyp/0.11.14/deps/v8/include/v8.h:816:13: error: 'v8::HandleScope::HandleScope()' is protected | |
V8_INLINE HandleScope() {} | |
^ | |
../deps/crypt3.cc:29:14: error: within this context | |
HandleScope scope; | |
^ | |
../deps/crypt3.cc:31:14: error: request for member 'Length' in 'args', which is of non-class type 'const int' | |
if (args.Length() == 0) { | |
^ | |
../deps/crypt3.cc:32:45: error: 'New' is not a member of 'v8::String' | |
ThrowException(Exception::TypeError(String::New("Password is required"))); | |
^ | |
../deps/crypt3.cc:32:81: error: 'ThrowException' was not declared in this scope | |
ThrowException(Exception::TypeError(String::New("Password is required"))); | |
^ | |
../deps/crypt3.cc:33:22: error: 'class v8::HandleScope' has no member named 'Close' | |
return scope.Close(Undefined()); | |
^ | |
../deps/crypt3.cc:33:38: error: too few arguments to function 'v8::Handle<v8::Primitive> v8::Undefined(v8::Isolate*)' | |
return scope.Close(Undefined()); | |
^ | |
In file included from /root/.node-gyp/0.11.14/src/node.h:61:0, | |
from ../deps/crypt3.cc:3: | |
/root/.node-gyp/0.11.14/deps/v8/include/v8.h:305:28: note: declared here | |
friend Handle<Primitive> Undefined(Isolate* isolate); | |
^ | |
../deps/crypt3.cc:36:16: error: invalid types 'const int[int]' for array subscript | |
if (!args[0]->IsString() || (args.Length() > 1 && !args[1]->IsString())) { | |
^ | |
../deps/crypt3.cc:36:39: error: request for member 'Length' in 'args', which is of non-class type 'const int' | |
if (!args[0]->IsString() || (args.Length() > 1 && !args[1]->IsString())) { | |
^ | |
../deps/crypt3.cc:36:62: error: invalid types 'const int[int]' for array subscript | |
if (!args[0]->IsString() || (args.Length() > 1 && !args[1]->IsString())) { | |
^ | |
../deps/crypt3.cc:37:45: error: 'New' is not a member of 'v8::String' | |
ThrowException(Exception::TypeError(String::New("Wrong arguments"))); | |
^ | |
../deps/crypt3.cc:37:76: error: 'ThrowException' was not declared in this scope | |
ThrowException(Exception::TypeError(String::New("Wrong arguments"))); | |
^ | |
../deps/crypt3.cc:38:22: error: 'class v8::HandleScope' has no member named 'Close' | |
return scope.Close(Undefined()); | |
^ | |
../deps/crypt3.cc:38:38: error: too few arguments to function 'v8::Handle<v8::Primitive> v8::Undefined(v8::Isolate*)' | |
return scope.Close(Undefined()); | |
^ | |
In file included from /root/.node-gyp/0.11.14/src/node.h:61:0, | |
from ../deps/crypt3.cc:3: | |
/root/.node-gyp/0.11.14/deps/v8/include/v8.h:305:28: note: declared here | |
friend Handle<Primitive> Undefined(Isolate* isolate); | |
^ | |
../deps/crypt3.cc:42:42: error: invalid types 'const int[int]' for array subscript | |
v8::String::Utf8Value password(args[0]->ToString()); | |
^ | |
../deps/crypt3.cc:43:37: error: request for member 'Length' in 'args', which is of non-class type 'const int' | |
v8::String::Utf8Value salt(args.Length() > 1 ? args[1]->ToString() : String::New(GetApacheSalt())); | |
^ | |
../deps/crypt3.cc:43:58: error: invalid types 'const int[int]' for array subscript | |
v8::String::Utf8Value salt(args.Length() > 1 ? args[1]->ToString() : String::New(GetApacheSalt())); | |
^ | |
../deps/crypt3.cc:43:74: error: 'New' is not a member of 'v8::String' | |
v8::String::Utf8Value salt(args.Length() > 1 ? args[1]->ToString() : String::New(GetApacheSalt())); | |
^ | |
../deps/crypt3.cc:45:25: error: 'New' is not a member of 'v8::String' | |
Local<String> res = String::New( crypt(*password, *salt ) ); | |
^ | |
../deps/crypt3.cc:46:18: error: 'class v8::HandleScope' has no member named 'Close' | |
return scope.Close(res); | |
^ | |
../deps/crypt3.cc: In function 'void init(v8::Handle<v8::Object>)': | |
../deps/crypt3.cc:50:15: error: 'NewSymbol' is not a member of 'v8::String' | |
exports->Set(String::NewSymbol("crypt"), FunctionTemplate::New(Method)->GetFunction()); | |
^ | |
../deps/crypt3.cc:50:71: error: no matching function for call to 'v8::FunctionTemplate::New(v8::Handle<v8::Value> (&)(const int&))' | |
exports->Set(String::NewSymbol("crypt"), FunctionTemplate::New(Method)->GetFunction()); | |
^ | |
../deps/crypt3.cc:50:71: note: candidate is: | |
In file included from /root/.node-gyp/0.11.14/src/node.h:61:0, | |
from ../deps/crypt3.cc:3: | |
/root/.node-gyp/0.11.14/deps/v8/include/v8.h:3434:34: note: static v8::Local<v8::FunctionTemplate> v8::FunctionTemplate::New(v8::Isolate*, v8::FunctionCallback, v8::Handle<v8::Value>, v8::Handle<v8::Signature>, int) | |
static Local<FunctionTemplate> New( | |
^ | |
/root/.node-gyp/0.11.14/deps/v8/include/v8.h:3434:34: note: no known conversion for argument 1 from 'v8::Handle<v8::Value>(const int&)' to 'v8::Isolate*' | |
../deps/crypt3.cc: In function 'v8::Handle<v8::Value> Method(const int&)': | |
../deps/crypt3.cc:47:1: warning: control reaches end of non-void function [-Wreturn-type] | |
} | |
^ | |
make: *** [Release/obj.target/crypt3/deps/crypt3.o] Error 1 | |
make: Leaving directory `/usr/local/lib/node_modules/http-master/node_modules/http-auth/node_modules/htpasswd/node_modules/apache-crypt/build' | |
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:110:17) | |
gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:1059:12) | |
gyp ERR! System Linux 3.16.0-24-generic | |
gyp ERR! command "node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild" | |
gyp ERR! cwd /usr/local/lib/node_modules/http-master/node_modules/http-auth/node_modules/htpasswd/node_modules/apache-crypt | |
gyp ERR! node -v v0.11.14 | |
gyp ERR! node-gyp -v v1.0.2 | |
gyp ERR! not ok | |
npm WARN optional dep failed, continuing [email protected] | |
/usr/local/bin/http-master -> /usr/local/lib/node_modules/http-master/bin/http-master | |
/usr/local/bin/cert-scan -> /usr/local/lib/node_modules/http-master/bin/cert-scan | |
[email protected] /usr/local/lib/node_modules/http-master | |
├── [email protected] | |
├── [email protected] | |
├── [email protected] | |
├── [email protected] | |
├── [email protected] | |
├── [email protected] | |
├── [email protected] | |
├── [email protected] | |
├── [email protected] | |
├── [email protected] | |
├── [email protected] ([email protected], [email protected], [email protected], [email protected]) | |
├── [email protected] ([email protected], [email protected], [email protected], [email protected], [email protected], [email protected]) | |
├── [email protected] ([email protected], [email protected], [email protected]) | |
├── [email protected] ([email protected], [email protected], [email protected]) | |
├── [email protected] ([email protected], [email protected]) | |
├── [email protected] ([email protected], [email protected]) | |
├── [email protected] | |
├── [email protected] ([email protected], [email protected]) | |
├── [email protected] ([email protected], [email protected], [email protected], [email protected]) | |
├── [email protected] ([email protected]) | |
└── [email protected] ([email protected], [email protected], [email protected]) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment