r-node build error (EV_P_ has not been declared)

80 views
Skip to first unread message

erikri...@gmail.com

unread,
Aug 29, 2013, 11:57:25 AM8/29/13
to r-node...@googlegroups.com
Hello,

I'm trying to get r-node up and running, it sounds like a really interesting project.

I'm using:
RHEL 6.4
R 3.0.1.
Rserve 1.7-3.
node.js version 0.10.17.
node-gyp version 0.10.9.
gcc 4.4.7

I cloned r-node from git://gitorious.org/r-node/r-node.git just now (August 29, 2013).

I am following the INSTALL file, and have gotten to step 6: Build R-Node.

After invoking make, it goes through a series of steps before throwing an error about EV_P_ having not been declared in RConnectionWrapper.h:

make[2]: Entering directory `/home/eiverson/src/r-node/server/src/build'
  CXX(target) Release/obj.target/rserv/rserv.o
In file included from ../RConnectionWrapper.h:7,
                 from ../rserv.cc:3:
../Rconnection.h: In member function ‘char* Rstrings::stringAt(unsigned int)’:
../Rconnection.h:247: warning: comparison of unsigned expression < 0 is always false
In file included from ../rserv.cc:3:
../RConnectionWrapper.h: At global scope:
../RConnectionWrapper.h:54: error: ‘EV_P_’ has not been declared
../RConnectionWrapper.h:54: error: expected ‘,’ or ‘...’ before ‘*’ token
../RConnectionWrapper.h:61: error: ‘ev_io’ does not name a type
../RConnectionWrapper.h:62: error: ‘ev_io’ does not name a type
make[2]: *** [Release/obj.target/rserv/rserv.o] Error 1
make[2]: Leaving directory `/home/eiverson/src/r-node/server/src/build'

Any ideas?
Thanks!,
-Erik

Jamie Love

unread,
Sep 1, 2013, 5:30:24 PM9/1/13
to r-node...@googlegroups.com
Hiya,

This is due to NodeJS changing things in their API (yet again....) 

The last version it appears I worked with was NodeJS v0.8.19.   R-Node compiles against this cleanly.

I've spent a bit of time looking at this today. it looks like I'll need to update R-Node to use Libuv. There doesn't seem to be much documentation on this though.  I'm fairly busy at the moment, so I can't promise any sort of R-Node update in the near future.  I would recommend you use NodeJS 0.8 from here:  http://nodejs.org/dist/v0.8.19/, which can be downloaded and then set up your path to point to the install (e.g.  export PATH=/path/to/nodejs0.8/bin:$PATH), then rerun the build.

Regards
Jamie




--
You received this message because you are subscribed to the Google Groups "r-node-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to r-node-users...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.



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