c4milo/node-inotify — Issue #22: Fails to install via NPM on 0.5.10 and 0.6.0
Author: Fristi
Created: 2011-11-07 12:24:17+00:00
State: open

Trying to install node-inotify via:

`npm install inotify`

and via download

`node-waf configure build`

fails with:

``

node-waf configure build
Checking for program g++ or c++ : /usr/bin/g++
Checking for program cpp : /usr/bin/cpp
Checking for program ar : /usr/bin/ar
Checking for program ranlib : /usr/bin/ranlib
Checking for g++ : ok
Checking for node path : ok /usr/local/lib/node
Checking for node prefix : ok /usr/local
Checking for program node : /usr/local/bin/node
Checking for function inotify_init : yes
'configure' finished successfully (0.236s)
Waf: Entering directory `/root/c4milo-node-inotify-351983a/build'
[1/3] cxx: src/bindings.cc -> build/Release/src/bindings_1.o
[2/3] cxx: src/node_inotify.cc -> build/Release/src/node_inotify_1.o
In file included from ../src/bindings.cc:2:
../src/bindings.h:8: error: expected class-name before '{' token
../src/bindings.cc: In static member function 'static void NodeInotify::Inotify::Initialize(v8::Handle)':
../src/bindings.cc:23: error: 'EventEmitter' has not been declared
../src/bindings.cc: In constructor 'NodeInotify::Inotify::Inotify()':
../src/bindings.cc:82: error: class 'NodeInotify::Inotify' does not have any field named 'EventEmitter'
../src/bindings.cc: In constructor 'NodeInotify::Inotify::Inotify(bool)':
../src/bindings.cc:88: error: class 'NodeInotify::Inotify' does not have any field named 'EventEmitter'
../src/bindings.cc: In static member function 'static v8::Handle NodeInotify::Inotify::New(const v8::Arguments&)':
../src/bindings.cc:131: error: 'class NodeInotify::Inotify' has no member named 'Wrap'
../src/bindings.cc:139: error: 'class NodeInotify::Inotify' has no member named 'Ref'
../src/bindings.cc: In static member function 'static v8::Handle NodeInotify::Inotify::AddWatch(const v8::Arguments&)':
../src/bindings.cc:191: error: 'class NodeInotify::Inotify' has no member named 'handle_'
../src/bindings.cc: In static member function 'static v8::Handle NodeInotify::Inotify::Close(const v8::Arguments&)':
../src/bindings.cc:240: error: 'class NodeInotify::Inotify' has no member named 'Unref'
../src/bindings.cc: In static member function 'static void NodeInotify::Inotify::Callback(ev_loop*, ev_io*, int)':
../src/bindings.cc:273: error: 'class NodeInotify::Inotify' has no member named 'Ref'
../src/bindings.cc:274: error: 'class NodeInotify::Inotify' has no member named 'handle_'
../src/bindings.cc:277: error: 'class NodeInotify::Inotify' has no member named 'handle_'
../src/bindings.cc:278: error: 'class NodeInotify::Inotify' has no member named 'Unref'
../src/bindings.cc:283: error: 'class NodeInotify::Inotify' has no member named 'handle_'
In file included from ../src/node_inotify.cc:2:
../src/bindings.h:8: error: expected class-name before '{' token
Waf: Leaving directory `/root/c4milo-node-inotify-351983a/build'
Build failed:
-> task failed (err #1):
{task: cxx bindings.cc -> bindings_1.o}
-> task failed (err #1):
{task: cxx node_inotify.cc -> node_inotify_1.o}
``