Error trying to build the project

162 views
Skip to first unread message

skyde

unread,
Sep 5, 2011, 5:50:30 PM9/5/11
to r-node-users
i get the following error when running make from ~/r-node


g++ -I/usr/local/include/node -Isrc/include -DPIC -fPIC -g -c -
DEV_MULTIPLICITY=0 -c -o src/binding.o src/binding.cc
In file included from /usr/local/include/node/node.h:41,
from src/binding.cc:23:
/usr/local/include/node/uv.h:70:33: error: uv-private/uv-unix.h: No
such file or directory
src/binding.cc:24:25: error: node_events.h: No such file or directory
In file included from /usr/local/include/node/node.h:41,
from src/binding.cc:23:
/usr/local/include/node/uv.h:120: error: ISO C++ forbids declaration
of 'uv_buf_t' with no type
/usr/local/include/node/uv.h:120: error: typedef 'uv_buf_t' is
initialized (use decltype instead)
/usr/local/include/node/uv.h:120: error: 'uv_alloc_cb' was not
declared in this scope
/usr/local/include/node/uv.h:121: error: 'uv_buf_t' has not been
declared
/usr/local/include/node/uv.h:249: error: ISO C++ forbids declaration
of 'UV_REQ_PRIVATE_FIELDS' with no type
/usr/local/include/node/uv.h:250: error: expected ';' before '}' token
/usr/local/include/node/uv.h:250: error: expected ';' before '}' token
/usr/local/include/node/uv.h:265: error: expected constructor,
destructor, or type conversion before 'int'
/usr/local/include/node/uv.h:268: error: 'UV_REQ_PRIVATE_FIELDS' does
not name a type
/usr/local/include/node/uv.h:271: error: ISO C++ forbids declaration
of 'UV_SHUTDOWN_PRIVATE_FIELDS' with no type
/usr/local/include/node/uv.h:272: error: expected ';' before '}' token
/usr/local/include/node/uv.h:272: error: expected ';' before '}' token
/usr/local/include/node/uv.h:287: error: ISO C++ forbids declaration
of 'UV_HANDLE_PRIVATE_FIELDS' with no type
/usr/local/include/node/uv.h:288: error: expected ';' before '}' token
/usr/local/include/node/uv.h:288: error: expected ';' before '}' token
/usr/local/include/node/uv.h:313: error: 'uv_buf_t' does not name a
type
/usr/local/include/node/uv.h:331: error: 'UV_HANDLE_PRIVATE_FIELDS'
does not name a type
/usr/local/include/node/uv.h:332: error: ISO C++ forbids declaration
of 'UV_STREAM_PRIVATE_FIELDS' with no type
/usr/local/include/node/uv.h:333: error: expected ';' before '}' token
/usr/local/include/node/uv.h:333: error: expected ';' before '}' token
/usr/local/include/node/uv.h:360: error: 'uv_alloc_cb' has not been
declared
/usr/local/include/node/uv.h:390: error: 'uv_buf_t' has not been
declared
/usr/local/include/node/uv.h:395: error: 'UV_REQ_PRIVATE_FIELDS' does
not name a type
/usr/local/include/node/uv.h:398: error: ISO C++ forbids declaration
of 'UV_WRITE_PRIVATE_FIELDS' with no type
/usr/local/include/node/uv.h:399: error: expected ';' before '}' token
/usr/local/include/node/uv.h:399: error: expected ';' before '}' token
/usr/local/include/node/uv.h:409: error: 'UV_HANDLE_PRIVATE_FIELDS'
does not name a type
/usr/local/include/node/uv.h:410: error: 'UV_STREAM_PRIVATE_FIELDS'
does not name a type
/usr/local/include/node/uv.h:434: error: 'UV_REQ_PRIVATE_FIELDS' does
not name a type
/usr/local/include/node/uv.h:437: error: ISO C++ forbids declaration
of 'UV_CONNECT_PRIVATE_FIELDS' with no type
/usr/local/include/node/uv.h:438: error: expected ';' before '}' token
/usr/local/include/node/uv.h:438: error: expected ';' before '}' token
/usr/local/include/node/uv.h:475: error: 'uv_buf_t' has not been
declared
/usr/local/include/node/uv.h:480: error: 'UV_HANDLE_PRIVATE_FIELDS'
does not name a type
/usr/local/include/node/uv.h:486: error: 'UV_REQ_PRIVATE_FIELDS' does
not name a type
/usr/local/include/node/uv.h:489: error: ISO C++ forbids declaration
of 'UV_UDP_SEND_PRIVATE_FIELDS' with no type
/usr/local/include/node/uv.h:490: error: expected ';' before '}' token
/usr/local/include/node/uv.h:490: error: expected ';' before '}' token
/usr/local/include/node/uv.h:541: error: 'uv_buf_t' has not been
declared
/usr/local/include/node/uv.h:559: error: 'uv_buf_t' has not been
declared
/usr/local/include/node/uv.h:575: error: 'uv_alloc_cb' has not been
declared
/usr/local/include/node/uv.h:597: error: 'UV_HANDLE_PRIVATE_FIELDS'
does not name a type
/usr/local/include/node/uv.h:598: error: 'UV_STREAM_PRIVATE_FIELDS'
does not name a type
/usr/local/include/node/uv.h:618: error: 'UV_HANDLE_PRIVATE_FIELDS'
does not name a type
/usr/local/include/node/uv.h:636: error: 'UV_HANDLE_PRIVATE_FIELDS'
does not name a type
/usr/local/include/node/uv.h:656: error: 'UV_HANDLE_PRIVATE_FIELDS'
does not name a type
/usr/local/include/node/uv.h:678: error: 'UV_HANDLE_PRIVATE_FIELDS'
does not name a type
/usr/local/include/node/uv.h:699: error: 'UV_HANDLE_PRIVATE_FIELDS'
does not name a type
/usr/local/include/node/uv.h:746: error: 'UV_HANDLE_PRIVATE_FIELDS'
does not name a type
/usr/local/include/node/uv.h:807: error: 'UV_HANDLE_PRIVATE_FIELDS'
does not name a type
/usr/local/include/node/uv.h:810: error: ISO C++ forbids declaration
of 'UV_PROCESS_PRIVATE_FIELDS' with no type
/usr/local/include/node/uv.h:811: error: expected ';' before '}' token
/usr/local/include/node/uv.h:811: error: expected ';' before '}' token
/usr/local/include/node/uv.h:827: error: 'UV_REQ_PRIVATE_FIELDS' does
not name a type
/usr/local/include/node/uv.h:831: error: ISO C++ forbids declaration
of 'UV_WORK_PRIVATE_FIELDS' with no type
/usr/local/include/node/uv.h:832: error: expected ';' before '}' token
/usr/local/include/node/uv.h:832: error: expected ';' before '}' token
/usr/local/include/node/uv.h:887: error: 'UV_REQ_PRIVATE_FIELDS' does
not name a type
/usr/local/include/node/uv.h:895: error: ISO C++ forbids declaration
of 'UV_FS_PRIVATE_FIELDS' with no type
/usr/local/include/node/uv.h:896: error: expected ';' before '}' token
/usr/local/include/node/uv.h:896: error: expected ';' before '}' token
/usr/local/include/node/uv.h:900: error: 'uv_file' has not been
declared
/usr/local/include/node/uv.h:905: error: 'uv_file' has not been
declared
/usr/local/include/node/uv.h:910: error: 'uv_file' has not been
declared
/usr/local/include/node/uv.h:923: error: 'uv_file' has not been
declared
/usr/local/include/node/uv.h:928: error: 'uv_file' has not been
declared
/usr/local/include/node/uv.h:930: error: 'uv_file' has not been
declared
/usr/local/include/node/uv.h:932: error: 'uv_file' has not been
declared
/usr/local/include/node/uv.h:935: error: 'uv_file' has not been
declared
/usr/local/include/node/uv.h:936: error: 'uv_file' has not been
declared
/usr/local/include/node/uv.h:944: error: 'uv_file' has not been
declared
/usr/local/include/node/uv.h:964: error: 'uv_file' has not been
declared
/usr/local/include/node/uv.h:970: error: 'uv_file' has not been
declared
/usr/local/include/node/uv.h:1039: error: 'UV_LOOP_PRIVATE_FIELDS'
does not name a type
src/binding.cc:257: error: expected class-name before '{' token
src/binding.cc:260: error: 'ev_io' does not name a type
src/binding.cc:261: error: 'ev_io' does not name a type
src/binding.cc:656: error: 'EV_P_' has not been declared
src/binding.cc:656: error: expected ',' or '...' before '*' token
src/binding.cc: In static member function 'static void
Connection::Initialize(v8::Handle<v8::Object>)':
src/binding.cc:288: error: 'EventEmitter' has not been declared
src/binding.cc: In member function 'bool Connection::Connect(const
char*, uint32_t)':
src/binding.cc:327: error: 'read_watcher_' was not declared in this
scope
src/binding.cc:327: error: 'EV_READ' was not declared in this scope
src/binding.cc:327: error: 'ev_io_set' was not declared in this scope
src/binding.cc:328: error: 'write_watcher_' was not declared in this
scope
src/binding.cc:328: error: 'EV_WRITE' was not declared in this scope
src/binding.cc:330: error: 'EV_DEFAULT_' was not declared in this
scope
src/binding.cc:330: error: 'ev_io_start' was not declared in this
scope
src/binding.cc:333: error: 'Ref' was not declared in this scope
src/binding.cc: In member function 'void
Connection::Close(v8::Local<v8::Value>)':
src/binding.cc:340: error: 'EV_DEFAULT_' was not declared in this
scope
src/binding.cc:340: error: 'write_watcher_' was not declared in this
scope
src/binding.cc:340: error: 'ev_io_stop' was not declared in this scope
src/binding.cc:341: error: 'read_watcher_' was not declared in this
scope
src/binding.cc:345: error: 'Emit' was not declared in this scope
src/binding.cc:347: error: 'Emit' was not declared in this scope
src/binding.cc:349: error: 'Unref' was not declared in this scope
src/binding.cc: In member function 'bool Connection::Login(const
char*, const char*)':
src/binding.cc:376: error: 'write_watcher_' was not declared in this
scope
src/binding.cc:376: error: 'ev_io_start' was not declared in this
scope
src/binding.cc:379: error: 'EV_DEFAULT_' was not declared in this
scope
src/binding.cc:379: error: 'write_watcher_' was not declared in this
scope
src/binding.cc:379: error: 'ev_io_stop' was not declared in this scope
src/binding.cc:380: error: 'read_watcher_' was not declared in this
scope
src/binding.cc:380: error: 'ev_io_start' was not declared in this
scope
src/binding.cc: In member function 'bool Connection::Query(const
char*)':
src/binding.cc:402: error: 'write_watcher_' was not declared in this
scope
src/binding.cc:402: error: 'ev_io_start' was not declared in this
scope
src/binding.cc:405: error: 'Emit' was not declared in this scope
src/binding.cc:406: error: 'EV_DEFAULT_' was not declared in this
scope
src/binding.cc:406: error: 'write_watcher_' was not declared in this
scope
src/binding.cc:406: error: 'ev_io_stop' was not declared in this scope
src/binding.cc:407: error: 'read_watcher_' was not declared in this
scope
src/binding.cc:407: error: 'ev_io_start' was not declared in this
scope
src/binding.cc: In static member function 'static
v8::Handle<v8::Value> Connection::New(const v8::Arguments&)':
src/binding.cc:422: error: 'class Connection' has no member named
'Wrap'
src/binding.cc: In constructor 'Connection::Connection()':
src/binding.cc:534: error: class 'Connection' does not have any field
named 'EventEmitter'
src/binding.cc:538: error: 'read_watcher_' was not declared in this
scope
src/binding.cc:538: error: 'ev_init' was not declared in this scope
src/binding.cc:541: error: 'write_watcher_' was not declared in this
scope
src/binding.cc: In member function 'void
Connection::MakeConnection()':
src/binding.cc:562: error: 'Emit' was not declared in this scope
src/binding.cc:563: error: 'EV_DEFAULT_' was not declared in this
scope
src/binding.cc:563: error: 'write_watcher_' was not declared in this
scope
src/binding.cc:563: error: 'ev_io_stop' was not declared in this scope
src/binding.cc:564: error: 'read_watcher_' was not declared in this
scope
src/binding.cc:564: error: 'ev_io_start' was not declared in this
scope
src/binding.cc: In member function 'void Connection::Event(int)':
src/binding.cc:583: error: 'EV_ERROR' was not declared in this scope
src/binding.cc:588: error: 'EV_READ' was not declared in this scope
src/binding.cc:602: error: 'EV_DEFAULT_' was not declared in this
scope
src/binding.cc:602: error: 'read_watcher_' was not declared in this
scope
src/binding.cc:602: error: 'ev_io_stop' was not declared in this scope
src/binding.cc:620: error: 'Emit' was not declared in this scope
src/binding.cc:631: error: 'EV_DEFAULT_' was not declared in this
scope
src/binding.cc:631: error: 'read_watcher_' was not declared in this
scope
src/binding.cc:631: error: 'ev_io_stop' was not declared in this scope
src/binding.cc:634: error: 'Emit' was not declared in this scope
src/binding.cc:639: error: 'EV_WRITE' was not declared in this scope
src/binding.cc:648: error: 'Emit' was not declared in this scope
src/binding.cc:649: error: 'EV_DEFAULT_' was not declared in this
scope
src/binding.cc:649: error: 'write_watcher_' was not declared in this
scope
src/binding.cc:649: error: 'ev_io_stop' was not declared in this scope
src/binding.cc:650: error: 'read_watcher_' was not declared in this
scope
src/binding.cc:650: error: 'ev_io_start' was not declared in this
scope
src/binding.cc: In static member function 'static void
Connection::io_event(int)':
src/binding.cc:657: error: 'w' was not declared in this scope
src/binding.cc:658: error: 'revents' was not declared in this scope
make[1]: *** [src/binding.o] Error 1
make[1]: Leaving directory `/home/skyde/r-node/server'
make: *** [server] Error 2

Jamie Love

unread,
Sep 6, 2011, 4:35:23 AM9/6/11
to r-node...@googlegroups.com
Hi there,

I think this is because you're using NodeJS v0.5 - 
currently I've only attempted R-Node using NodeJS v0.4

If you build/install this version - http://nodejs.org/dist/node-v0.4.11.tar.gz, it may build successfully for you - it does for me.

Regards
Jamie
--
Jamie Love
Looking for custom software development? Contact us at www.nsquaredsoftware.com.
Reply all
Reply to author
Forward
0 new messages