Skip to content

Instantly share code, notes, and snippets.

@clcollins
Created November 6, 2014 15:56
Show Gist options
  • Save clcollins/8356a62d104d5843a02d to your computer and use it in GitHub Desktop.
Save clcollins/8356a62d104d5843a02d to your computer and use it in GitHub Desktop.
NPM apache-crypt build fail
> apache-crypt@1.0.4 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 apache-crypt@1.0.4
/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
http-master@1.0.1 /usr/local/lib/node_modules/http-master
├── uid-number@0.0.5
├── jsonfn@0.31.0
├── node-watch@0.3.4
├── extend@2.0.0
├── http-proxy@1.5.3
├── async@0.9.0
├── eventemitter3@0.1.5
├── xregexp@2.0.0
├── spdy@1.28.2
├── yargs@1.3.2
├── morgan@1.4.1 (basic-auth@1.0.0, depd@1.0.0, debug@2.1.0, on-finished@2.1.1)
├── compression@1.1.0 (vary@1.0.0, on-headers@1.0.0, bytes@1.0.0, debug@2.0.0, compressible@2.0.1, accepts@1.1.2)
├── node-static@0.7.2 (mime@1.2.11, colors@1.0.3, optimist@0.6.1)
├── codeclimate-test-reporter@0.0.4 (lcov-parse@0.0.6, async@0.7.0, request@2.34.0)
├── bugsnag@1.5.0 (stack-trace@0.0.9, request@2.47.0)
├── jsonlint-lines@1.6.0 (nomnom@1.8.0, JSV@4.0.2)
├── moment@2.6.0
├── js-yaml@3.2.2 (esprima@1.0.4, argparse@0.1.15)
├── ws@0.4.32 (tinycolor@0.0.1, options@0.0.6, commander@2.1.0, nan@1.0.0)
├── parse-x509@0.1.0 (nan@1.1.2)
└── http-auth@2.1.6 (node-uuid@1.4.1, coffee-script@1.6.3, htpasswd@2.1.0)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment