fzaninotto / uptime

A remote monitoring application using Node.js, MongoDB, and Twitter Bootstrap.
http://fzaninotto.github.com/uptime/
MIT License
3.62k stars 706 forks source link

Trouble with Arch Linux Install. #306

Open AustinSaintAubin opened 9 years ago

AustinSaintAubin commented 9 years ago

Trying to install on Arch Linux ARM7

Install Command

# Install NodeJS using pacman
pacman -Sy --noconfirm --needed nodejs git python mongodb
pacman -Sy --noconfirm --needed git make binutils gcc wget

# Install Uptime
git clone git://github.com/fzaninotto/uptime.git
cd uptime
npm install --python=python2.7  # Install with phython 2.7.x

Output

Cloning into 'uptime'...
remote: Counting objects: 3854, done.
remote: Total 3854 (delta 0), reused 0 (delta 0), pack-reused 3854
Receiving objects: 100% (3854/3854), 2.38 MiB | 861.00 KiB/s, done.
Resolving deltas: 100% (1393/1393), done.
Checking connectivity... done.
/
> raw-socket@1.2.2 install /root/uptime/node_modules/net-ping/node_modules/raw-socket
> node-gyp rebuild

make: Entering directory '/root/uptime/node_modules/net-ping/node_modules/raw-socket/build'
  CXX(target) Release/obj.target/raw/src/raw.o
|In file included from ../src/raw.cc:9:0:
../src/raw.h:50:37: error: 'Arguments' does not name a type
 Handle<Value> CreateChecksum (const Arguments& args);
                                     ^
../src/raw.h:55:28: error: 'Arguments' does not name a type
 Handle<Value> Htonl (const Arguments& args);
                            ^
../src/raw.h:56:28: error: 'Arguments' does not name a type
 Handle<Value> Htons (const Arguments& args);
                            ^
../src/raw.h:57:28: error: 'Arguments' does not name a type
 Handle<Value> Ntohl (const Arguments& args);
                            ^
../src/raw.h:58:28: error: 'Arguments' does not name a type
 Handle<Value> Ntohs (const Arguments& args);
                            ^
../src/raw.h:60:44: error: expected class-name before '{' token
 class SocketWrap : public node::ObjectWrap {
                                            ^
../src/raw.h:69:36: error: 'Arguments' does not name a type
  static Handle<Value> Close (const Arguments& args);
                                    ^
../src/raw.h:75:40: error: 'Arguments' does not name a type
  static Handle<Value> GetOption (const Arguments& args);
                                        ^
../src/raw.h:77:34: error: 'Arguments' does not name a type
  static Handle<Value> New (const Arguments& args);
                                  ^
../src/raw.h:79:23: error: 'uv_handle_t' has not been declared
  static void OnClose (uv_handle_t *handle);
                       ^
../src/raw.h:81:36: error: 'Arguments' does not name a type
  static Handle<Value> Pause (const Arguments& args);
                                    ^
../src/raw.h:82:35: error: 'Arguments' does not name a type
  static Handle<Value> Recv (const Arguments& args);
                                   ^
../src/raw.h:83:35: error: 'Arguments' does not name a type
  static Handle<Value> Send (const Arguments& args);
                                   ^
../src/raw.h:84:40: error: 'Arguments' does not name a type
  static Handle<Value> SetOption (const Arguments& args);
                                        ^
../src/raw.h:92:2: error: 'uv_poll_t' does not name a type
  uv_poll_t *poll_watcher_;
  ^
../src/raw.h:98:22: error: variable or field 'IoEvent' declared void
 static void IoEvent (uv_poll_t* watcher, int status, int revents);
                      ^
../src/raw.h:98:22: error: 'uv_poll_t' was not declared in this scope
../src/raw.h:98:33: error: 'watcher' was not declared in this scope
 static void IoEvent (uv_poll_t* watcher, int status, int revents);
                                 ^
../src/raw.h:98:42: error: expected primary-expression before 'int'
 static void IoEvent (uv_poll_t* watcher, int status, int revents);
                                          ^
../src/raw.h:98:54: error: expected primary-expression before 'int'
 static void IoEvent (uv_poll_t* watcher, int status, int revents);
                                                      ^
../src/raw.cc: In function 'void raw::InitAll(v8::Handle<v8::Object>)':
../src/raw.cc:56:36: error: 'NODE_PSYMBOL' was not declared in this scope
  CloseSymbol = NODE_PSYMBOL("close");
                                    ^
/../src/raw.cc: At global scope:
../src/raw.cc:70:37: error: 'Arguments' does not name a type
 Handle<Value> CreateChecksum (const Arguments& args) {
                                     ^
In file included from /root/.node-gyp/0.12.1/src/node.h:61:0,
                 from ../src/raw.cc:4:
/root/.node-gyp/0.12.1/deps/v8/include/v8.h: In function 'v8::Handle<v8::Value> raw::CreateChecksum(const int&)':
/root/.node-gyp/0.12.1/deps/v8/include/v8.h:816:13: error: 'v8::HandleScope::HandleScope()' is protected
   V8_INLINE HandleScope() {}
             ^
../src/raw.cc:71:14: error: within this context
  HandleScope scope;
              ^
../src/raw.cc:73:11: error: request for member 'Length' in 'args', which is of non-class type 'const int'
  if (args.Length () < 2) {
           ^
../src/raw.cc:74:37: error: 'New' is not a member of 'v8::String'
   ThrowException (Exception::Error (String::New (
                                     ^
../src/raw.cc:75:42: error: 'ThrowException' was not declared in this scope
     "At least one argument is required")));
                                          ^
../src/raw.cc:76:16: error: 'class v8::HandleScope' has no member named 'Close'
   return scope.Close (args.This ());
                ^
../src/raw.cc:76:28: error: request for member 'This' in 'args', which is of non-class type 'const int'
   return scope.Close (args.This ());
                            ^
../src/raw.cc:79:14: error: invalid types 'const int[int]' for array subscript
  if (! args[0]->IsUint32 ()) {
              ^
../src/raw.cc:80:41: error: 'New' is not a member of 'v8::String'
   ThrowException (Exception::TypeError (String::New (
                                         ^
../src/raw.cc:81:56: error: 'ThrowException' was not declared in this scope
     "Start with argument must be an unsigned integer")));
                                                        ^
../src/raw.cc:82:16: error: 'class v8::HandleScope' has no member named 'Close'
   return scope.Close (args.This ());
                ^
../src/raw.cc:82:28: error: request for member 'This' in 'args', which is of non-class type 'const int'
   return scope.Close (args.This ());
                            ^
../src/raw.cc:85:30: error: invalid types 'const int[int]' for array subscript
  uint32_t start_with = args[0]->ToUint32 ()->Value ();
                              ^
../src/raw.cc:88:41: error: 'New' is not a member of 'v8::String'
   ThrowException (Exception::TypeError (String::New (
                                         ^
../src/raw.cc:89:56: error: 'ThrowException' was not declared in this scope
     "Start with argument cannot be larger than 65535")));
                                                        ^
../src/raw.cc:90:16: error: 'class v8::HandleScope' has no member named 'Close'
   return scope.Close (args.This ());
                ^
../src/raw.cc:90:28: error: request for member 'This' in 'args', which is of non-class type 'const int'
   return scope.Close (args.This ());
                            ^
../src/raw.cc:93:41: error: invalid types 'const int[int]' for array subscript
  if (! node::Buffer::HasInstance (args[1])) {
                                         ^
../src/raw.cc:94:41: error: 'New' is not a member of 'v8::String'
   ThrowException (Exception::TypeError (String::New (
                                         ^
../src/raw.cc:95:53: error: 'ThrowException' was not declared in this scope
     "Buffer argument must be a node Buffer object")));
                                                     ^
../src/raw.cc:96:16: error: 'class v8::HandleScope' has no member named 'Close'
   return scope.Close (args.This ());
                ^
../src/raw.cc:96:28: error: request for member 'This' in 'args', which is of non-class type 'const int'
   return scope.Close (args.This ());
                            ^
../src/raw.cc:99:31: error: invalid types 'const int[int]' for array subscript
  Local<Object> buffer = args[1]->ToObject ();
                               ^
../src/raw.cc:104:11: error: request for member 'Length' in 'args', which is of non-class type 'const int'
  if (args.Length () > 2) {
           ^
../src/raw.cc:105:15: error: invalid types 'const int[int]' for array subscript
   if (! args[2]->IsUint32 ()) {
               ^
../src/raw.cc:106:42: error: 'New' is not a member of 'v8::String'
    ThrowException (Exception::TypeError (String::New (
                                          ^
../src/raw.cc:107:53: error: 'ThrowException' was not declared in this scope
      "Offset argument must be an unsigned integer")));
                                                     ^
../src/raw.cc:108:17: error: 'class v8::HandleScope' has no member named 'Close'
    return scope.Close (args.This ());
                 ^
../src/raw.cc:108:29: error: request for member 'This' in 'args', which is of non-class type 'const int'
    return scope.Close (args.This ());
                             ^
../src/raw.cc:110:18: error: invalid types 'const int[int]' for array subscript
   offset = args[2]->ToUint32 ()->Value ();
                  ^
../src/raw.cc:112:43: error: 'New' is not a member of 'v8::String'
    ThrowException (Exception::RangeError (String::New (
                                           ^
../src/raw.cc:113:67: error: 'ThrowException' was not declared in this scope
      "Offset argument must be smaller than length of the buffer")));
                                                                   ^
../src/raw.cc:114:17: error: 'class v8::HandleScope' has no member named 'Close'
    return scope.Close (args.This ());
                 ^
../src/raw.cc:114:29: error: request for member 'This' in 'args', which is of non-class type 'const int'
    return scope.Close (args.This ());
                             ^
../src/raw.cc:118:11: error: request for member 'Length' in 'args', which is of non-class type 'const int'
  if (args.Length () > 3) {
           ^
../src/raw.cc:119:15: error: invalid types 'const int[int]' for array subscript
   if (! args[3]->IsUint32 ()) {
               ^
../src/raw.cc:120:42: error: 'New' is not a member of 'v8::String'
    ThrowException (Exception::TypeError (String::New (
                                          ^
../src/raw.cc:121:53: error: 'ThrowException' was not declared in this scope
      "Length argument must be an unsigned integer")));
                                                     ^
../src/raw.cc:122:17: error: 'class v8::HandleScope' has no member named 'Close'
    return scope.Close (args.This ());
                 ^
../src/raw.cc:122:29: error: request for member 'This' in 'args', which is of non-class type 'const int'
    return scope.Close (args.This ());
                             ^
../src/raw.cc:124:35: error: invalid types 'const int[int]' for array subscript
   unsigned int new_length = args[3]->ToUint32 ()->Value ();
                                   ^
../src/raw.cc:126:43: error: 'New' is not a member of 'v8::String'
    ThrowException (Exception::RangeError (String::New (
                                           ^
../src/raw.cc:127:67: error: 'ThrowException' was not declared in this scope
      "Length argument must be smaller than length of the buffer")));
                                                                   ^
../src/raw.cc:128:17: error: 'class v8::HandleScope' has no member named 'Close'
    return scope.Close (args.This ());
                 ^
../src/raw.cc:128:29: error: request for member 'This' in 'args', which is of non-class type 'const int'
    return scope.Close (args.This ());
                             ^
../src/raw.cc:136:55: error: no matching function for call to 'v8::Integer::NewFromUnsigned(uint16_t&)'
  Local<Integer> number = Integer::NewFromUnsigned (sum);
                                                       ^
../src/raw.cc:136:55: note: candidate is:
In file included from /root/.node-gyp/0.12.1/src/node.h:61:0,
                 from ../src/raw.cc:4:
/root/.node-gyp/0.12.1/deps/v8/include/v8.h:2013:25: note: static v8::Local<v8::Integer> v8::Integer::NewFromUnsigned(v8::Isolate*, uint32_t)
   static Local<Integer> NewFromUnsigned(Isolate* isolate, uint32_t value);
                         ^
/root/.node-gyp/0.12.1/deps/v8/include/v8.h:2013:25: note:   candidate expects 2 arguments, 1 provided
../src/raw.cc:138:15: error: 'class v8::HandleScope' has no member named 'Close'
  return scope.Close (number);
               ^
../src/raw.cc: At global scope:
../src/raw.cc:141:28: error: 'Arguments' does not name a type
 Handle<Value> Htonl (const Arguments& args) {
                            ^
In file included from /root/.node-gyp/0.12.1/src/node.h:61:0,
                 from ../src/raw.cc:4:
/root/.node-gyp/0.12.1/deps/v8/include/v8.h: In function 'v8::Handle<v8::Value> raw::Htonl(const int&)':
/root/.node-gyp/0.12.1/deps/v8/include/v8.h:816:13: error: 'v8::HandleScope::HandleScope()' is protected
   V8_INLINE HandleScope() {}
             ^
../src/raw.cc:142:14: error: within this context
  HandleScope scope;
              ^
../src/raw.cc:144:11: error: request for member 'Length' in 'args', which is of non-class type 'const int'
  if (args.Length () < 1) {
           ^
../src/raw.cc:145:37: error: 'New' is not a member of 'v8::String'
   ThrowException (Exception::Error (String::New (
                                     ^
../src/raw.cc:146:34: error: 'ThrowException' was not declared in this scope
     "One arguments is required")));
                                  ^
../src/raw.cc:147:16: error: 'class v8::HandleScope' has no member named 'Close'
   return scope.Close (args.This ());
                ^
../src/raw.cc:147:28: error: request for member 'This' in 'args', which is of non-class type 'const int'
   return scope.Close (args.This ());
                            ^
../src/raw.cc:150:14: error: invalid types 'const int[int]' for array subscript
  if (! args[0]->IsUint32 ()) {
              ^
../src/raw.cc:151:41: error: 'New' is not a member of 'v8::String'
   ThrowException (Exception::TypeError (String::New (
                                         ^
../src/raw.cc:152:45: error: 'ThrowException' was not declared in this scope
     "Number must be a 32 unsigned integer")));
                                             ^
../src/raw.cc:153:16: error: 'class v8::HandleScope' has no member named 'Close'
   return scope.Close (args.This ());
                ^
../src/raw.cc:153:28: error: request for member 'This' in 'args', which is of non-class type 'const int'
   return scope.Close (args.This ());
                            ^
../src/raw.cc:156:30: error: invalid types 'const int[int]' for array subscript
  unsigned int number = args[0]->ToUint32 ()->Value ();
                              ^
../src/raw.cc:157:69: error: no matching function for call to 'v8::Integer::NewFromUnsigned(unsigned int)'
  Local<Integer> converted = Integer::NewFromUnsigned (htonl (number));
                                                                     ^
../src/raw.cc:157:69: note: candidate is:
In file included from /root/.node-gyp/0.12.1/src/node.h:61:0,
                 from ../src/raw.cc:4:
/root/.node-gyp/0.12.1/deps/v8/include/v8.h:2013:25: note: static v8::Local<v8::Integer> v8::Integer::NewFromUnsigned(v8::Isolate*, uint32_t)
   static Local<Integer> NewFromUnsigned(Isolate* isolate, uint32_t value);
                         ^
/root/.node-gyp/0.12.1/deps/v8/include/v8.h:2013:25: note:   candidate expects 2 arguments, 1 provided
../src/raw.cc:159:15: error: 'class v8::HandleScope' has no member named 'Close'
  return scope.Close (converted);
               ^
../src/raw.cc: At global scope:
../src/raw.cc:162:28: error: 'Arguments' does not name a type
 Handle<Value> Htons (const Arguments& args) {
                            ^
In file included from /root/.node-gyp/0.12.1/src/node.h:61:0,
                 from ../src/raw.cc:4:
/root/.node-gyp/0.12.1/deps/v8/include/v8.h: In function 'v8::Handle<v8::Value> raw::Htons(const int&)':
/root/.node-gyp/0.12.1/deps/v8/include/v8.h:816:13: error: 'v8::HandleScope::HandleScope()' is protected
   V8_INLINE HandleScope() {}
             ^
../src/raw.cc:163:14: error: within this context
  HandleScope scope;
              ^
../src/raw.cc:165:11: error: request for member 'Length' in 'args', which is of non-class type 'const int'
  if (args.Length () < 1) {
           ^
../src/raw.cc:166:37: error: 'New' is not a member of 'v8::String'
   ThrowException (Exception::Error (String::New (
                                     ^
../src/raw.cc:167:34: error: 'ThrowException' was not declared in this scope
     "One arguments is required")));
                                  ^
../src/raw.cc:168:16: error: 'class v8::HandleScope' has no member named 'Close'
   return scope.Close (args.This ());
                ^
../src/raw.cc:168:28: error: request for member 'This' in 'args', which is of non-class type 'const int'
   return scope.Close (args.This ());
                            ^
../src/raw.cc:171:14: error: invalid types 'const int[int]' for array subscript
  if (! args[0]->IsUint32 ()) {
              ^
../src/raw.cc:172:41: error: 'New' is not a member of 'v8::String'
   ThrowException (Exception::TypeError (String::New (
                                         ^
../src/raw.cc:173:45: error: 'ThrowException' was not declared in this scope
     "Number must be a 16 unsigned integer")));
                                             ^
../src/raw.cc:174:16: error: 'class v8::HandleScope' has no member named 'Close'
   return scope.Close (args.This ());
                ^
../src/raw.cc:174:28: error: request for member 'This' in 'args', which is of non-class type 'const int'
   return scope.Close (args.This ());
                            ^
../src/raw.cc:177:30: error: invalid types 'const int[int]' for array subscript
  unsigned int number = args[0]->ToUint32 ()->Value ();
                              ^
../src/raw.cc:179:42: error: 'New' is not a member of 'v8::String'
   ThrowException (Exception::RangeError (String::New (
                                          ^
../src/raw.cc:180:43: error: 'ThrowException' was not declared in this scope
     "Number cannot be larger than 65535")));
                                           ^
../src/raw.cc:181:16: error: 'class v8::HandleScope' has no member named 'Close'
   return scope.Close (args.This ());
                ^
../src/raw.cc:181:28: error: request for member 'This' in 'args', which is of non-class type 'const int'
   return scope.Close (args.This ());
                            ^
../src/raw.cc:183:69: error: no matching function for call to 'v8::Integer::NewFromUnsigned(short unsigned int)'
  Local<Integer> converted = Integer::NewFromUnsigned (htons (number));
                                                                     ^
../src/raw.cc:183:69: note: candidate is:
In file included from /root/.node-gyp/0.12.1/src/node.h:61:0,
                 from ../src/raw.cc:4:
/root/.node-gyp/0.12.1/deps/v8/include/v8.h:2013:25: note: static v8::Local<v8::Integer> v8::Integer::NewFromUnsigned(v8::Isolate*, uint32_t)
   static Local<Integer> NewFromUnsigned(Isolate* isolate, uint32_t value);
                         ^
/root/.node-gyp/0.12.1/deps/v8/include/v8.h:2013:25: note:   candidate expects 2 arguments, 1 provided
../src/raw.cc:185:15: error: 'class v8::HandleScope' has no member named 'Close'
  return scope.Close (converted);
               ^
../src/raw.cc: At global scope:
../src/raw.cc:188:28: error: 'Arguments' does not name a type
 Handle<Value> Ntohl (const Arguments& args) {
                            ^
In file included from /root/.node-gyp/0.12.1/src/node.h:61:0,
                 from ../src/raw.cc:4:
/root/.node-gyp/0.12.1/deps/v8/include/v8.h: In function 'v8::Handle<v8::Value> raw::Ntohl(const int&)':
/root/.node-gyp/0.12.1/deps/v8/include/v8.h:816:13: error: 'v8::HandleScope::HandleScope()' is protected
   V8_INLINE HandleScope() {}
             ^
../src/raw.cc:189:14: error: within this context
  HandleScope scope;
              ^
../src/raw.cc:191:11: error: request for member 'Length' in 'args', which is of non-class type 'const int'
  if (args.Length () < 1) {
           ^
../src/raw.cc:192:37: error: 'New' is not a member of 'v8::String'
   ThrowException (Exception::Error (String::New (
                                     ^
../src/raw.cc:193:34: error: 'ThrowException' was not declared in this scope
     "One arguments is required")));
                                  ^
../src/raw.cc:194:16: error: 'class v8::HandleScope' has no member named 'Close'
   return scope.Close (args.This ());
                ^
../src/raw.cc:194:28: error: request for member 'This' in 'args', which is of non-class type 'const int'
   return scope.Close (args.This ());
                            ^
../src/raw.cc:197:14: error: invalid types 'const int[int]' for array subscript
  if (! args[0]->IsUint32 ()) {
              ^
../src/raw.cc:198:41: error: 'New' is not a member of 'v8::String'
   ThrowException (Exception::TypeError (String::New (
                                         ^
../src/raw.cc:199:45: error: 'ThrowException' was not declared in this scope
     "Number must be a 32 unsigned integer")));
                                             ^
-../src/raw.cc:200:16: error: 'class v8::HandleScope' has no member named 'Close'
   return scope.Close (args.This ());
                ^
../src/raw.cc:200:28: error: request for member 'This' in 'args', which is of non-class type 'const int'
   return scope.Close (args.This ());
                            ^
../src/raw.cc:203:30: error: invalid types 'const int[int]' for array subscript
  unsigned int number = args[0]->ToUint32 ()->Value ();
                              ^
../src/raw.cc:204:69: error: no matching function for call to 'v8::Integer::NewFromUnsigned(unsigned int)'
  Local<Integer> converted = Integer::NewFromUnsigned (ntohl (number));
                                                                     ^
../src/raw.cc:204:69: note: candidate is:
In file included from /root/.node-gyp/0.12.1/src/node.h:61:0,
                 from ../src/raw.cc:4:
/root/.node-gyp/0.12.1/deps/v8/include/v8.h:2013:25: note: static v8::Local<v8::Integer> v8::Integer::NewFromUnsigned(v8::Isolate*, uint32_t)
   static Local<Integer> NewFromUnsigned(Isolate* isolate, uint32_t value);
                         ^
/root/.node-gyp/0.12.1/deps/v8/include/v8.h:2013:25: note:   candidate expects 2 arguments, 1 provided
../src/raw.cc:206:15: error: 'class v8::HandleScope' has no member named 'Close'
  return scope.Close (converted);
               ^
../src/raw.cc: At global scope:
../src/raw.cc:209:28: error: 'Arguments' does not name a type
 Handle<Value> Ntohs (const Arguments& args) {
                            ^
In file included from /root/.node-gyp/0.12.1/src/node.h:61:0,
                 from ../src/raw.cc:4:
/root/.node-gyp/0.12.1/deps/v8/include/v8.h: In function 'v8::Handle<v8::Value> raw::Ntohs(const int&)':
/root/.node-gyp/0.12.1/deps/v8/include/v8.h:816:13: error: 'v8::HandleScope::HandleScope()' is protected
   V8_INLINE HandleScope() {}
             ^
../src/raw.cc:210:14: error: within this context
  HandleScope scope;
              ^
../src/raw.cc:212:11: error: request for member 'Length' in 'args', which is of non-class type 'const int'
  if (args.Length () < 1) {
           ^
../src/raw.cc:213:37: error: 'New' is not a member of 'v8::String'
   ThrowException (Exception::Error (String::New (
                                     ^
../src/raw.cc:214:34: error: 'ThrowException' was not declared in this scope
     "One arguments is required")));
                                  ^
../src/raw.cc:215:16: error: 'class v8::HandleScope' has no member named 'Close'
   return scope.Close (args.This ());
                ^
../src/raw.cc:215:28: error: request for member 'This' in 'args', which is of non-class type 'const int'
   return scope.Close (args.This ());
                            ^
../src/raw.cc:218:14: error: invalid types 'const int[int]' for array subscript
  if (! args[0]->IsUint32 ()) {
              ^
../src/raw.cc:219:41: error: 'New' is not a member of 'v8::String'
   ThrowException (Exception::TypeError (String::New (
                                         ^
../src/raw.cc:220:45: error: 'ThrowException' was not declared in this scope
     "Number must be a 16 unsigned integer")));
                                             ^
../src/raw.cc:221:16: error: 'class v8::HandleScope' has no member named 'Close'
   return scope.Close (args.This ());
                ^
../src/raw.cc:221:28: error: request for member 'This' in 'args', which is of non-class type 'const int'
   return scope.Close (args.This ());
                            ^
../src/raw.cc:224:30: error: invalid types 'const int[int]' for array subscript
  unsigned int number = args[0]->ToUint32 ()->Value ();
                              ^
../src/raw.cc:226:42: error: 'New' is not a member of 'v8::String'
   ThrowException (Exception::RangeError (String::New (
                                          ^
../src/raw.cc:227:43: error: 'ThrowException' was not declared in this scope
     "Number cannot be larger than 65535")));
                                           ^
../src/raw.cc:228:16: error: 'class v8::HandleScope' has no member named 'Close'
   return scope.Close (args.This ());
                ^
../src/raw.cc:228:28: error: request for member 'This' in 'args', which is of non-class type 'const int'
   return scope.Close (args.This ());
                            ^
../src/raw.cc:230:69: error: no matching function for call to 'v8::Integer::NewFromUnsigned(short unsigned int)'
  Local<Integer> converted = Integer::NewFromUnsigned (htons (number));
                                                                     ^
../src/raw.cc:230:69: note: candidate is:
In file included from /root/.node-gyp/0.12.1/src/node.h:61:0,
                 from ../src/raw.cc:4:
/root/.node-gyp/0.12.1/deps/v8/include/v8.h:2013:25: note: static v8::Local<v8::Integer> v8::Integer::NewFromUnsigned(v8::Isolate*, uint32_t)
   static Local<Integer> NewFromUnsigned(Isolate* isolate, uint32_t value);
                         ^
/root/.node-gyp/0.12.1/deps/v8/include/v8.h:2013:25: note:   candidate expects 2 arguments, 1 provided
../src/raw.cc:232:15: error: 'class v8::HandleScope' has no member named 'Close'
  return scope.Close (converted);
               ^
../src/raw.cc: In function 'void raw::ExportConstants(v8::Handle<v8::Object>)':
../src/raw.cc:236:44: error: no matching function for call to 'v8::Object::New()'
  Local<Object> socket_level = Object::New ();
                                            ^
../src/raw.cc:236:44: note: candidate is:
In file included from /root/.node-gyp/0.12.1/src/node.h:61:0,
                 from ../src/raw.cc:4:
/root/.node-gyp/0.12.1/deps/v8/include/v8.h:2388:24: note: static v8::Local<v8::Object> v8::Object::New(v8::Isolate*)
   static Local<Object> New(Isolate* isolate);
                        ^
/root/.node-gyp/0.12.1/deps/v8/include/v8.h:2388:24: note:   candidate expects 1 argument, 0 provided
../src/raw.cc:237:45: error: no matching function for call to 'v8::Object::New()'
  Local<Object> socket_option = Object::New ();
                                             ^
../src/raw.cc:237:45: note: candidate is:
In file included from /root/.node-gyp/0.12.1/src/node.h:61:0,
                 from ../src/raw.cc:4:
/root/.node-gyp/0.12.1/deps/v8/include/v8.h:2388:24: note: static v8::Local<v8::Object> v8::Object::New(v8::Isolate*)
   static Local<Object> New(Isolate* isolate);
                        ^
/root/.node-gyp/0.12.1/deps/v8/include/v8.h:2388:24: note:   candidate expects 1 argument, 0 provided
../src/raw.cc:239:15: error: 'NewSymbol' is not a member of 'v8::String'
  target->Set (String::NewSymbol ("SocketLevel"), socket_level);
               ^
../src/raw.cc:240:15: error: 'NewSymbol' is not a member of 'v8::String'
  target->Set (String::NewSymbol ("SocketOption"), socket_option);
               ^
../src/raw.cc:242:21: error: 'NewSymbol' is not a member of 'v8::String'
  socket_level->Set (String::NewSymbol ("SOL_SOCKET"), Number::New (SOL_SOCKET));
                     ^
../src/raw.cc:242:78: error: no matching function for call to 'v8::Number::New(int)'
  socket_level->Set (String::NewSymbol ("SOL_SOCKET"), Number::New (SOL_SOCKET));
                                                                              ^
../src/raw.cc:242:78: note: candidate is:
In file included from /root/.node-gyp/0.12.1/src/node.h:61:0,
                 from ../src/raw.cc:4:
/root/.node-gyp/0.12.1/deps/v8/include/v8.h:1999:24: note: static v8::Local<v8::Number> v8::Number::New(v8::Isolate*, double)
   static Local<Number> New(Isolate* isolate, double value);
                        ^
/root/.node-gyp/0.12.1/deps/v8/include/v8.h:1999:24: note:   candidate expects 2 arguments, 1 provided
../src/raw.cc:243:21: error: 'NewSymbol' is not a member of 'v8::String'
  socket_level->Set (String::NewSymbol ("IPPROTO_IP"), Number::New (IPPROTO_IP));
                     ^
../src/raw.cc:243:78: error: no matching function for call to 'v8::Number::New(<anonymous enum>)'
  socket_level->Set (String::NewSymbol ("IPPROTO_IP"), Number::New (IPPROTO_IP));
                                                                              ^
../src/raw.cc:243:78: note: candidate is:
In file included from /root/.node-gyp/0.12.1/src/node.h:61:0,
                 from ../src/raw.cc:4:
/root/.node-gyp/0.12.1/deps/v8/include/v8.h:1999:24: note: static v8::Local<v8::Number> v8::Number::New(v8::Isolate*, double)
   static Local<Number> New(Isolate* isolate, double value);
                        ^
/root/.node-gyp/0.12.1/deps/v8/include/v8.h:1999:24: note:   candidate expects 2 arguments, 1 provided
../src/raw.cc:244:21: error: 'NewSymbol' is not a member of 'v8::String'
  socket_level->Set (String::NewSymbol ("IPPROTO_IPV6"), Number::New (IPPROTO_IPV6));
                     ^
../src/raw.cc:244:82: error: no matching function for call to 'v8::Number::New(<anonymous enum>)'
  socket_level->Set (String::NewSymbol ("IPPROTO_IPV6"), Number::New (IPPROTO_IPV6));
                                                                                  ^
../src/raw.cc:244:82: note: candidate is:
In file included from /root/.node-gyp/0.12.1/src/node.h:61:0,
                 from ../src/raw.cc:4:
/root/.node-gyp/0.12.1/deps/v8/include/v8.h:1999:24: note: static v8::Local<v8::Number> v8::Number::New(v8::Isolate*, double)
   static Local<Number> New(Isolate* isolate, double value);
                        ^
/root/.node-gyp/0.12.1/deps/v8/include/v8.h:1999:24: note:   candidate expects 2 arguments, 1 provided
../src/raw.cc:246:22: error: 'NewSymbol' is not a member of 'v8::String'
  socket_option->Set (String::NewSymbol ("SO_BROADCAST"), Number::New (SO_BROADCAST));
                      ^
../src/raw.cc:246:83: error: no matching function for call to 'v8::Number::New(int)'
  socket_option->Set (String::NewSymbol ("SO_BROADCAST"), Number::New (SO_BROADCAST));
                                                                                   ^
../src/raw.cc:246:83: note: candidate is:
In file included from /root/.node-gyp/0.12.1/src/node.h:61:0,
                 from ../src/raw.cc:4:
/root/.node-gyp/0.12.1/deps/v8/include/v8.h:1999:24: note: static v8::Local<v8::Number> v8::Number::New(v8::Isolate*, double)
   static Local<Number> New(Isolate* isolate, double value);
                        ^
/root/.node-gyp/0.12.1/deps/v8/include/v8.h:1999:24: note:   candidate expects 2 arguments, 1 provided
../src/raw.cc:247:22: error: 'NewSymbol' is not a member of 'v8::String'
  socket_option->Set (String::NewSymbol ("SO_RCVBUF"), Number::New (SO_RCVBUF));
                      ^
../src/raw.cc:247:77: error: no matching function for call to 'v8::Number::New(int)'
  socket_option->Set (String::NewSymbol ("SO_RCVBUF"), Number::New (SO_RCVBUF));
                                                                             ^
../src/raw.cc:247:77: note: candidate is:
In file included from /root/.node-gyp/0.12.1/src/node.h:61:0,
                 from ../src/raw.cc:4:
/root/.node-gyp/0.12.1/deps/v8/include/v8.h:1999:24: note: static v8::Local<v8::Number> v8::Number::New(v8::Isolate*, double)
   static Local<Number> New(Isolate* isolate, double value);
                        ^
/root/.node-gyp/0.12.1/deps/v8/include/v8.h:1999:24: note:   candidate expects 2 arguments, 1 provided
../src/raw.cc:248:22: error: 'NewSymbol' is not a member of 'v8::String'
  socket_option->Set (String::NewSymbol ("SO_RCVTIMEO"), Number::New (SO_RCVTIMEO));
                      ^
../src/raw.cc:248:81: error: no matching function for call to 'v8::Number::New(int)'
  socket_option->Set (String::NewSymbol ("SO_RCVTIMEO"), Number::New (SO_RCVTIMEO));
                                                                                 ^
../src/raw.cc:248:81: note: candidate is:
In file included from /root/.node-gyp/0.12.1/src/node.h:61:0,
                 from ../src/raw.cc:4:
/root/.node-gyp/0.12.1/deps/v8/include/v8.h:1999:24: note: static v8::Local<v8::Number> v8::Number::New(v8::Isolate*, double)
   static Local<Number> New(Isolate* isolate, double value);
                        ^
/root/.node-gyp/0.12.1/deps/v8/include/v8.h:1999:24: note:   candidate expects 2 arguments, 1 provided
../src/raw.cc:249:22: error: 'NewSymbol' is not a member of 'v8::String'
  socket_option->Set (String::NewSymbol ("SO_SNDBUF"), Number::New (SO_SNDBUF));
                      ^
../src/raw.cc:249:77: error: no matching function for call to 'v8::Number::New(int)'
  socket_option->Set (String::NewSymbol ("SO_SNDBUF"), Number::New (SO_SNDBUF));
                                                                             ^
../src/raw.cc:249:77: note: candidate is:
In file included from /root/.node-gyp/0.12.1/src/node.h:61:0,
                 from ../src/raw.cc:4:
/root/.node-gyp/0.12.1/deps/v8/include/v8.h:1999:24: note: static v8::Local<v8::Number> v8::Number::New(v8::Isolate*, double)
   static Local<Number> New(Isolate* isolate, double value);
                        ^
/root/.node-gyp/0.12.1/deps/v8/include/v8.h:1999:24: note:   candidate expects 2 arguments, 1 provided
../src/raw.cc:250:22: error: 'NewSymbol' is not a member of 'v8::String'
  socket_option->Set (String::NewSymbol ("SO_SNDTIMEO"), Number::New (SO_SNDTIMEO));
                      ^
../src/raw.cc:250:81: error: no matching function for call to 'v8::Number::New(int)'
  socket_option->Set (String::NewSymbol ("SO_SNDTIMEO"), Number::New (SO_SNDTIMEO));
                                                                                 ^
../src/raw.cc:250:81: note: candidate is:
In file included from /root/.node-gyp/0.12.1/src/node.h:61:0,
                 from ../src/raw.cc:4:
/root/.node-gyp/0.12.1/deps/v8/include/v8.h:1999:24: note: static v8::Local<v8::Number> v8::Number::New(v8::Isolate*, double)
   static Local<Number> New(Isolate* isolate, double value);
                        ^
/root/.node-gyp/0.12.1/deps/v8/include/v8.h:1999:24: note:   candidate expects 2 arguments, 1 provided
../src/raw.cc:252:22: error: 'NewSymbol' is not a member of 'v8::String'
  socket_option->Set (String::NewSymbol ("IP_HDRINCL"), Number::New (IP_HDRINCL));
                      ^
../src/raw.cc:252:79: error: no matching function for call to 'v8::Number::New(int)'
  socket_option->Set (String::NewSymbol ("IP_HDRINCL"), Number::New (IP_HDRINCL));
                                                                               ^
../src/raw.cc:252:79: note: candidate is:
In file included from /root/.node-gyp/0.12.1/src/node.h:61:0,
                 from ../src/raw.cc:4:
/root/.node-gyp/0.12.1/deps/v8/include/v8.h:1999:24: note: static v8::Local<v8::Number> v8::Number::New(v8::Isolate*, double)
   static Local<Number> New(Isolate* isolate, double value);
                        ^
/root/.node-gyp/0.12.1/deps/v8/include/v8.h:1999:24: note:   candidate expects 2 arguments, 1 provided
../src/raw.cc:253:22: error: 'NewSymbol' is not a member of 'v8::String'
  socket_option->Set (String::NewSymbol ("IP_OPTIONS"), Number::New (IP_OPTIONS));
                      ^
../src/raw.cc:253:79: error: no matching function for call to 'v8::Number::New(int)'
  socket_option->Set (String::NewSymbol ("IP_OPTIONS"), Number::New (IP_OPTIONS));
                                                                               ^
../src/raw.cc:253:79: note: candidate is:
In file included from /root/.node-gyp/0.12.1/src/node.h:61:0,
                 from ../src/raw.cc:4:
/root/.node-gyp/0.12.1/deps/v8/include/v8.h:1999:24: note: static v8::Local<v8::Number> v8::Number::New(v8::Isolate*, double)
   static Local<Number> New(Isolate* isolate, double value);
                        ^
/root/.node-gyp/0.12.1/deps/v8/include/v8.h:1999:24: note:   candidate expects 2 arguments, 1 provided
../src/raw.cc:254:22: error: 'NewSymbol' is not a member of 'v8::String'
  socket_option->Set (String::NewSymbol ("IP_TOS"), Number::New (IP_TOS));
                      ^
../src/raw.cc:254:71: error: no matching function for call to 'v8::Number::New(int)'
  socket_option->Set (String::NewSymbol ("IP_TOS"), Number::New (IP_TOS));
                                                                       ^
../src/raw.cc:254:71: note: candidate is:
In file included from /root/.node-gyp/0.12.1/src/node.h:61:0,
                 from ../src/raw.cc:4:
/root/.node-gyp/0.12.1/deps/v8/include/v8.h:1999:24: note: static v8::Local<v8::Number> v8::Number::New(v8::Isolate*, double)
   static Local<Number> New(Isolate* isolate, double value);
                        ^
/root/.node-gyp/0.12.1/deps/v8/include/v8.h:1999:24: note:   candidate expects 2 arguments, 1 provided
../src/raw.cc:255:22: error: 'NewSymbol' is not a member of 'v8::String'
  socket_option->Set (String::NewSymbol ("IP_TTL"), Number::New (IP_TTL));
                      ^
../src/raw.cc:255:71: error: no matching function for call to 'v8::Number::New(int)'
  socket_option->Set (String::NewSymbol ("IP_TTL"), Number::New (IP_TTL));
                                                                       ^
../src/raw.cc:255:71: note: candidate is:
In file included from /root/.node-gyp/0.12.1/src/node.h:61:0,
                 from ../src/raw.cc:4:
/root/.node-gyp/0.12.1/deps/v8/include/v8.h:1999:24: note: static v8::Local<v8::Number> v8::Number::New(v8::Isolate*, double)
   static Local<Number> New(Isolate* isolate, double value);
                        ^
/root/.node-gyp/0.12.1/deps/v8/include/v8.h:1999:24: note:   candidate expects 2 arguments, 1 provided
../src/raw.cc:260:22: error: 'NewSymbol' is not a member of 'v8::String'
  socket_option->Set (String::NewSymbol ("IPV6_TTL"), Number::New (IPV6_UNICAST_HOPS));
                      ^
../src/raw.cc:260:84: error: no matching function for call to 'v8::Number::New(int)'
  socket_option->Set (String::NewSymbol ("IPV6_TTL"), Number::New (IPV6_UNICAST_HOPS));
                                                                                    ^
../src/raw.cc:260:84: note: candidate is:
In file included from /root/.node-gyp/0.12.1/src/node.h:61:0,
                 from ../src/raw.cc:4:
/root/.node-gyp/0.12.1/deps/v8/include/v8.h:1999:24: note: static v8::Local<v8::Number> v8::Number::New(v8::Isolate*, double)
   static Local<Number> New(Isolate* isolate, double value);
                        ^
/root/.node-gyp/0.12.1/deps/v8/include/v8.h:1999:24: note:   candidate expects 2 arguments, 1 provided
../src/raw.cc:261:22: error: 'NewSymbol' is not a member of 'v8::String'
  socket_option->Set (String::NewSymbol ("IPV6_UNICAST_HOPS"), Number::New (IPV6_UNICAST_HOPS));
                      ^
../src/raw.cc:261:93: error: no matching function for call to 'v8::Number::New(int)'
  socket_option->Set (String::NewSymbol ("IPV6_UNICAST_HOPS"), Number::New (IPV6_UNICAST_HOPS));
                                                                                             ^
../src/raw.cc:261:93: note: candidate is:
In file included from /root/.node-gyp/0.12.1/src/node.h:61:0,
                 from ../src/raw.cc:4:
/root/.node-gyp/0.12.1/deps/v8/include/v8.h:1999:24: note: static v8::Local<v8::Number> v8::Number::New(v8::Isolate*, double)
   static Local<Number> New(Isolate* isolate, double value);
                        ^
/root/.node-gyp/0.12.1/deps/v8/include/v8.h:1999:24: note:   candidate expects 2 arguments, 1 provided
../src/raw.cc:262:22: error: 'NewSymbol' is not a member of 'v8::String'
  socket_option->Set (String::NewSymbol ("IPV6_V6ONLY"), Number::New (IPV6_V6ONLY));
                      ^
../src/raw.cc:262:81: error: no matching function for call to 'v8::Number::New(int)'
  socket_option->Set (String::NewSymbol ("IPV6_V6ONLY"), Number::New (IPV6_V6ONLY));
                                                                                 ^
../src/raw.cc:262:81: note: candidate is:
In file included from /root/.node-gyp/0.12.1/src/node.h:61:0,
                 from ../src/raw.cc:4:
/root/.node-gyp/0.12.1/deps/v8/include/v8.h:1999:24: note: static v8::Local<v8::Number> v8::Number::New(v8::Isolate*, double)
   static Local<Number> New(Isolate* isolate, double value);
                        ^
/root/.node-gyp/0.12.1/deps/v8/include/v8.h:1999:24: note:   candidate expects 2 arguments, 1 provided
../src/raw.cc: In function 'void raw::ExportFunctions(v8::Handle<v8::Object>)':
../src/raw.cc:266:15: error: 'NewSymbol' is not a member of 'v8::String'
  target->Set (String::NewSymbol ("createChecksum"), FunctionTemplate::New (CreateChecksum)->GetFunction ());
               ^
../src/raw.cc:266:90: error: no matching function for call to 'v8::FunctionTemplate::New(v8::Handle<v8::Value> (&)(const int&))'
  target->Set (String::NewSymbol ("createChecksum"), FunctionTemplate::New (CreateChecksum)->GetFunction ());
                                                                                          ^
../src/raw.cc:266:90: note: candidate is:
In file included from /root/.node-gyp/0.12.1/src/node.h:61:0,
                 from ../src/raw.cc:4:
/root/.node-gyp/0.12.1/deps/v8/include/v8.h:3455: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.12.1/deps/v8/include/v8.h:3455:34: note:   no known conversion for argument 1 from 'v8::Handle<v8::Value>(const int&)' to 'v8::Isolate*'
../src/raw.cc:268:15: error: 'NewSymbol' is not a member of 'v8::String'
  target->Set (String::NewSymbol ("htonl"), FunctionTemplate::New (Htonl)->GetFunction ());
               ^
../src/raw.cc:268:72: error: no matching function for call to 'v8::FunctionTemplate::New(v8::Handle<v8::Value> (&)(const int&))'
  target->Set (String::NewSymbol ("htonl"), FunctionTemplate::New (Htonl)->GetFunction ());
                                                                        ^
../src/raw.cc:268:72: note: candidate is:
In file included from /root/.node-gyp/0.12.1/src/node.h:61:0,
                 from ../src/raw.cc:4:
/root/.node-gyp/0.12.1/deps/v8/include/v8.h:3455: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.12.1/deps/v8/include/v8.h:3455:34: note:   no known conversion for argument 1 from 'v8::Handle<v8::Value>(const int&)' to 'v8::Isolate*'
../src/raw.cc:269:15: error: 'NewSymbol' is not a member of 'v8::String'
  target->Set (String::NewSymbol ("htons"), FunctionTemplate::New (Htons)->GetFunction ());
               ^
../src/raw.cc:269:72: error: no matching function for call to 'v8::FunctionTemplate::New(v8::Handle<v8::Value> (&)(const int&))'
  target->Set (String::NewSymbol ("htons"), FunctionTemplate::New (Htons)->GetFunction ());
                                                                        ^
../src/raw.cc:269:72: note: candidate is:
In file included from /root/.node-gyp/0.12.1/src/node.h:61:0,
                 from ../src/raw.cc:4:
/root/.node-gyp/0.12.1/deps/v8/include/v8.h:3455: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.12.1/deps/v8/include/v8.h:3455:34: note:   no known conversion for argument 1 from 'v8::Handle<v8::Value>(const int&)' to 'v8::Isolate*'
../src/raw.cc:270:15: error: 'NewSymbol' is not a member of 'v8::String'
  target->Set (String::NewSymbol ("ntohl"), FunctionTemplate::New (Ntohl)->GetFunction ());
               ^
../src/raw.cc:270:72: error: no matching function for call to 'v8::FunctionTemplate::New(v8::Handle<v8::Value> (&)(const int&))'
  target->Set (String::NewSymbol ("ntohl"), FunctionTemplate::New (Ntohl)->GetFunction ());
                                                                        ^
../src/raw.cc:270:72: note: candidate is:
In file included from /root/.node-gyp/0.12.1/src/node.h:61:0,
                 from ../src/raw.cc:4:
/root/.node-gyp/0.12.1/deps/v8/include/v8.h:3455: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.12.1/deps/v8/include/v8.h:3455:34: note:   no known conversion for argument 1 from 'v8::Handle<v8::Value>(const int&)' to 'v8::Isolate*'
\../src/raw.cc:271:15: error: 'NewSymbol' is not a member of 'v8::String'
  target->Set (String::NewSymbol ("ntohs"), FunctionTemplate::New (Ntohs)->GetFunction ());
               ^
../src/raw.cc:271:72: error: no matching function for call to 'v8::FunctionTemplate::New(v8::Handle<v8::Value> (&)(const int&))'
  target->Set (String::NewSymbol ("ntohs"), FunctionTemplate::New (Ntohs)->GetFunction ());
                                                                        ^
../src/raw.cc:271:72: note: candidate is:
In file included from /root/.node-gyp/0.12.1/src/node.h:61:0,
                 from ../src/raw.cc:4:
/root/.node-gyp/0.12.1/deps/v8/include/v8.h:3455: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.12.1/deps/v8/include/v8.h:3455:34: note:   no known conversion for argument 1 from 'v8::Handle<v8::Value>(const int&)' to 'v8::Isolate*'
/root/.node-gyp/0.12.1/deps/v8/include/v8.h: In static member function 'static void raw::SocketWrap::Init(v8::Handle<v8::Object>)':
/root/.node-gyp/0.12.1/deps/v8/include/v8.h:816:13: error: 'v8::HandleScope::HandleScope()' is protected
   V8_INLINE HandleScope() {}
             ^
../src/raw.cc:275:14: error: within this context
  HandleScope scope;
              ^
../src/raw.cc:277:58: error: no matching function for call to 'v8::FunctionTemplate::New(v8::Handle<v8::Value> (&)(const int&))'
  Local<FunctionTemplate> tpl = FunctionTemplate::New (New);
                                                          ^
../src/raw.cc:277:58: note: candidate is:
In file included from /root/.node-gyp/0.12.1/src/node.h:61:0,
                 from ../src/raw.cc:4:
/root/.node-gyp/0.12.1/deps/v8/include/v8.h:3455: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.12.1/deps/v8/include/v8.h:3455:34: note:   no known conversion for argument 1 from 'v8::Handle<v8::Value>(const int&)' to 'v8::Isolate*'
../src/raw.cc:280:21: error: 'NewSymbol' is not a member of 'v8::String'
  tpl->SetClassName (String::NewSymbol ("SocketWrap"));
                     ^
../src/raw.cc:282:47: error: invalid conversion from 'v8::Handle<v8::Value> (*)(const int&)' to 'v8::FunctionCallback {aka void (*)(const v8::FunctionCallbackInfo<v8::Value>&)}' [-fpermissive]
  NODE_SET_PROTOTYPE_METHOD(tpl, "close", Close);
                                               ^
In file included from ../src/raw.cc:4:0:
/root/.node-gyp/0.12.1/src/node.h:244:13: note: initializing argument 3 of 'void node::NODE_SET_PROTOTYPE_METHOD(v8::Handle<v8::FunctionTemplate>, const char*, v8::FunctionCallback)'
 inline void NODE_SET_PROTOTYPE_METHOD(v8::Handle<v8::FunctionTemplate> recv,
             ^
../src/raw.cc:283:55: error: invalid conversion from 'v8::Handle<v8::Value> (*)(const int&)' to 'v8::FunctionCallback {aka void (*)(const v8::FunctionCallbackInfo<v8::Value>&)}' [-fpermissive]
  NODE_SET_PROTOTYPE_METHOD(tpl, "getOption", GetOption);
                                                       ^
In file included from ../src/raw.cc:4:0:
/root/.node-gyp/0.12.1/src/node.h:244:13: note: initializing argument 3 of 'void node::NODE_SET_PROTOTYPE_METHOD(v8::Handle<v8::FunctionTemplate>, const char*, v8::FunctionCallback)'
 inline void NODE_SET_PROTOTYPE_METHOD(v8::Handle<v8::FunctionTemplate> recv,
             ^
../src/raw.cc:284:47: error: invalid conversion from 'v8::Handle<v8::Value> (*)(const int&)' to 'v8::FunctionCallback {aka void (*)(const v8::FunctionCallbackInfo<v8::Value>&)}' [-fpermissive]
  NODE_SET_PROTOTYPE_METHOD(tpl, "pause", Pause);
                                               ^
In file included from ../src/raw.cc:4:0:
/root/.node-gyp/0.12.1/src/node.h:244:13: note: initializing argument 3 of 'void node::NODE_SET_PROTOTYPE_METHOD(v8::Handle<v8::FunctionTemplate>, const char*, v8::FunctionCallback)'
 inline void NODE_SET_PROTOTYPE_METHOD(v8::Handle<v8::FunctionTemplate> recv,
             ^
../src/raw.cc:285:45: error: invalid conversion from 'v8::Handle<v8::Value> (*)(const int&)' to 'v8::FunctionCallback {aka void (*)(const v8::FunctionCallbackInfo<v8::Value>&)}' [-fpermissive]
  NODE_SET_PROTOTYPE_METHOD(tpl, "recv", Recv);
                                             ^
In file included from ../src/raw.cc:4:0:
/root/.node-gyp/0.12.1/src/node.h:244:13: note: initializing argument 3 of 'void node::NODE_SET_PROTOTYPE_METHOD(v8::Handle<v8::FunctionTemplate>, const char*, v8::FunctionCallback)'
 inline void NODE_SET_PROTOTYPE_METHOD(v8::Handle<v8::FunctionTemplate> recv,
             ^
../src/raw.cc:286:45: error: invalid conversion from 'v8::Handle<v8::Value> (*)(const int&)' to 'v8::FunctionCallback {aka void (*)(const v8::FunctionCallbackInfo<v8::Value>&)}' [-fpermissive]
  NODE_SET_PROTOTYPE_METHOD(tpl, "send", Send);
                                             ^
In file included from ../src/raw.cc:4:0:
/root/.node-gyp/0.12.1/src/node.h:244:13: note: initializing argument 3 of 'void node::NODE_SET_PROTOTYPE_METHOD(v8::Handle<v8::FunctionTemplate>, const char*, v8::FunctionCallback)'
 inline void NODE_SET_PROTOTYPE_METHOD(v8::Handle<v8::FunctionTemplate> recv,
             ^
../src/raw.cc:287:55: error: invalid conversion from 'v8::Handle<v8::Value> (*)(const int&)' to 'v8::FunctionCallback {aka void (*)(const v8::FunctionCallbackInfo<v8::Value>&)}' [-fpermissive]
  NODE_SET_PROTOTYPE_METHOD(tpl, "setOption", SetOption);
                                                       ^
In file included from ../src/raw.cc:4:0:
/root/.node-gyp/0.12.1/src/node.h:244:13: note: initializing argument 3 of 'void node::NODE_SET_PROTOTYPE_METHOD(v8::Handle<v8::FunctionTemplate>, const char*, v8::FunctionCallback)'
 inline void NODE_SET_PROTOTYPE_METHOD(v8::Handle<v8::FunctionTemplate> recv,
             ^
../src/raw.cc:289:15: error: 'NewSymbol' is not a member of 'v8::String'
  target->Set (String::NewSymbol ("SocketWrap"), tpl->GetFunction ());
               ^
../src/raw.cc: At global scope:
../src/raw.cc:301:40: error: 'Arguments' does not name a type
 Handle<Value> SocketWrap::Close (const Arguments& args) {
                                        ^
In file included from /root/.node-gyp/0.12.1/src/node.h:61:0,
                 from ../src/raw.cc:4:
/root/.node-gyp/0.12.1/deps/v8/include/v8.h: In static member function 'static v8::Handle<v8::Value> raw::SocketWrap::Close(const int&)':
/root/.node-gyp/0.12.1/deps/v8/include/v8.h:816:13: error: 'v8::HandleScope::HandleScope()' is protected
   V8_INLINE HandleScope() {}
             ^
../src/raw.cc:302:14: error: within this context
  HandleScope scope;
              ^
../src/raw.cc:303:23: error: 'Unwrap' is not a member of 'raw::SocketWrap'
  SocketWrap* socket = SocketWrap::Unwrap<SocketWrap> (args.This ());
                       ^
../src/raw.cc:303:52: error: expected primary-expression before '>' token
  SocketWrap* socket = SocketWrap::Unwrap<SocketWrap> (args.This ());
                                                    ^
../src/raw.cc:303:60: error: request for member 'This' in 'args', which is of non-class type 'const int'
  SocketWrap* socket = SocketWrap::Unwrap<SocketWrap> (args.This ());
                                                            ^
../src/raw.cc:307:15: error: 'class v8::HandleScope' has no member named 'Close'
  return scope.Close (args.This ());
               ^
../src/raw.cc:307:27: error: request for member 'This' in 'args', which is of non-class type 'const int'
  return scope.Close (args.This ());
                           ^
In file included from /root/.node-gyp/0.12.1/src/node.h:61:0,
                 from ../src/raw.cc:4:
/root/.node-gyp/0.12.1/deps/v8/include/v8.h: In member function 'void raw::SocketWrap::CloseSocket()':
/root/.node-gyp/0.12.1/deps/v8/include/v8.h:816:13: error: 'v8::HandleScope::HandleScope()' is protected
   V8_INLINE HandleScope() {}
             ^
../src/raw.cc:311:14: error: within this context
  HandleScope scope;
              ^
../src/raw.cc:314:14: error: 'uv_handle_t' was not declared in this scope
   uv_close ((uv_handle_t *) this->poll_watcher_, OnClose);
              ^
../src/raw.cc:314:27: error: expected primary-expression before ')' token
   uv_close ((uv_handle_t *) this->poll_watcher_, OnClose);
                           ^
../src/raw.cc:314:57: error: 'uv_close' was not declared in this scope
   uv_close ((uv_handle_t *) this->poll_watcher_, OnClose);
                                                         ^
../src/raw.cc:320:28: error: 'class raw::SocketWrap' has no member named 'handle_'
  Local<Value> emit = this->handle_->Get (EmitSymbol);
                            ^
../src/raw.cc:324:42: error: no matching function for call to 'v8::Local<v8::Value>::New(v8::Persistent<v8::String>&)'
  args[0] = Local<Value>::New (CloseSymbol);
                                          ^
../src/raw.cc:324:42: note: candidates are:
In file included from /root/.node-gyp/0.12.1/src/node.h:61:0,
                 from ../src/raw.cc:4:
/root/.node-gyp/0.12.1/deps/v8/include/v8.h:368:29: note: static v8::Local<T> v8::Local<T>::New(v8::Isolate*, v8::Handle<T>) [with T = v8::Value]
   V8_INLINE static Local<T> New(Isolate* isolate, Handle<T> that);
                             ^
/root/.node-gyp/0.12.1/deps/v8/include/v8.h:368:29: note:   candidate expects 2 arguments, 1 provided
/root/.node-gyp/0.12.1/deps/v8/include/v8.h:369:29: note: static v8::Local<T> v8::Local<T>::New(v8::Isolate*, const v8::PersistentBase<T>&) [with T = v8::Value]
   V8_INLINE static Local<T> New(Isolate* isolate,
                             ^
/root/.node-gyp/0.12.1/deps/v8/include/v8.h:369:29: note:   candidate expects 2 arguments, 1 provided
/root/.node-gyp/0.12.1/deps/v8/include/v8.h:391:29: note: static v8::Local<T> v8::Local<T>::New(v8::Isolate*, T*) [with T = v8::Value]
   V8_INLINE static Local<T> New(Isolate* isolate, T* that);
                             ^
/root/.node-gyp/0.12.1/deps/v8/include/v8.h:391:29: note:   candidate expects 2 arguments, 1 provided
../src/raw.cc:326:18: error: 'class raw::SocketWrap' has no member named 'handle_'
  cb->Call (this->handle_, 1, args);
                  ^
../src/raw.cc: In member function 'int raw::SocketWrap::CreateSocket()':
../src/raw.cc:349:2: error: 'poll_watcher_' was not declared in this scope
  poll_watcher_ = new uv_poll_t;
  ^
../src/raw.cc:349:22: error: 'uv_poll_t' does not name a type
  poll_watcher_ = new uv_poll_t;
                      ^
../src/raw.cc:350:40: error: 'uv_default_loop' was not declared in this scope
  uv_poll_init_socket (uv_default_loop (), this->poll_watcher_,
                                        ^
../src/raw.cc:350:49: error: 'class raw::SocketWrap' has no member named 'poll_watcher_'
  uv_poll_init_socket (uv_default_loop (), this->poll_watcher_,
                                                 ^
../src/raw.cc:351:18: error: 'uv_poll_init_socket' was not declared in this scope
    this->poll_fd_);
                  ^
../src/raw.cc:352:8: error: 'class raw::SocketWrap' has no member named 'poll_watcher_'
  this->poll_watcher_->data = this;
        ^
../src/raw.cc:353:23: error: 'class raw::SocketWrap' has no member named 'poll_watcher_'
  uv_poll_start (this->poll_watcher_, UV_READABLE, IoEvent);
                       ^
../src/raw.cc:353:38: error: 'UV_READABLE' was not declared in this scope
  uv_poll_start (this->poll_watcher_, UV_READABLE, IoEvent);
                                      ^
../src/raw.cc:353:51: error: 'IoEvent' was not declared in this scope
  uv_poll_start (this->poll_watcher_, UV_READABLE, IoEvent);
                                                   ^
../src/raw.cc:353:58: error: 'uv_poll_start' was not declared in this scope
  uv_poll_start (this->poll_watcher_, UV_READABLE, IoEvent);
                                                          ^
../src/raw.cc: At global scope:
../src/raw.cc:360:44: error: 'Arguments' does not name a type
 Handle<Value> SocketWrap::GetOption (const Arguments& args) {
                                            ^
In file included from /root/.node-gyp/0.12.1/src/node.h:61:0,
                 from ../src/raw.cc:4:
/root/.node-gyp/0.12.1/deps/v8/include/v8.h: In static member function 'static v8::Handle<v8::Value> raw::SocketWrap::GetOption(const int&)':
/root/.node-gyp/0.12.1/deps/v8/include/v8.h:816:13: error: 'v8::HandleScope::HandleScope()' is protected
   V8_INLINE HandleScope() {}
             ^
../src/raw.cc:361:14: error: within this context
  HandleScope scope;
              ^
../src/raw.cc:362:23: error: 'Unwrap' is not a member of 'raw::SocketWrap'
  SocketWrap* socket = SocketWrap::Unwrap<SocketWrap> (args.This ());
                       ^
../src/raw.cc:362:52: error: expected primary-expression before '>' token
  SocketWrap* socket = SocketWrap::Unwrap<SocketWrap> (args.This ());
                                                    ^
../src/raw.cc:362:60: error: request for member 'This' in 'args', which is of non-class type 'const int'
  SocketWrap* socket = SocketWrap::Unwrap<SocketWrap> (args.This ());
                                                            ^
../src/raw.cc:364:11: error: request for member 'Length' in 'args', which is of non-class type 'const int'
  if (args.Length () < 3) {
           ^
../src/raw.cc:365:37: error: 'New' is not a member of 'v8::String'
   ThrowException (Exception::Error (String::New (
                                     ^
../src/raw.cc:366:37: error: 'ThrowException' was not declared in this scope
     "Three arguments are required")));
                                     ^
../src/raw.cc:367:16: error: 'class v8::HandleScope' has no member named 'Close'
   return scope.Close (args.This ());
                ^
../src/raw.cc:367:28: error: request for member 'This' in 'args', which is of non-class type 'const int'
   return scope.Close (args.This ());
                            ^
../src/raw.cc:370:14: error: invalid types 'const int[int]' for array subscript
  if (! args[0]->IsNumber ()) {
              ^
../src/raw.cc:371:41: error: 'New' is not a member of 'v8::String'
   ThrowException (Exception::TypeError (String::New (
                                         ^
../src/raw.cc:372:40: error: 'ThrowException' was not declared in this scope
     "Level argument must be a number")));
                                        ^
../src/raw.cc:373:16: error: 'class v8::HandleScope' has no member named 'Close'
   return scope.Close (args.This ());
                ^
../src/raw.cc:373:28: error: request for member 'This' in 'args', which is of non-class type 'const int'
   return scope.Close (args.This ());
                            ^
../src/raw.cc:376:14: error: invalid types 'const int[int]' for array subscript
  if (! args[1]->IsNumber ()) {
              ^
../src/raw.cc:377:41: error: 'New' is not a member of 'v8::String'
   ThrowException (Exception::TypeError (String::New (
                                         ^
../src/raw.cc:378:41: error: 'ThrowException' was not declared in this scope
     "Option argument must be a number")));
                                         ^
../src/raw.cc:379:16: error: 'class v8::HandleScope' has no member named 'Close'
   return scope.Close (args.This ());
                ^
../src/raw.cc:379:28: error: request for member 'This' in 'args', which is of non-class type 'const int'
   return scope.Close (args.This ());
                            ^
../src/raw.cc:382:20: error: invalid types 'const int[int]' for array subscript
  int level = args[0]->ToInt32 ()->Value ();
                    ^
../src/raw.cc:383:21: error: invalid types 'const int[int]' for array subscript
  int option = args[1]->ToInt32 ()->Value ();
                     ^
../src/raw.cc:388:41: error: invalid types 'const int[int]' for array subscript
  if (! node::Buffer::HasInstance (args[2])) {
                                         ^
../src/raw.cc:389:41: error: 'New' is not a member of 'v8::String'
   ThrowException (Exception::TypeError (String::New (
                                         ^
../src/raw.cc:391:17: error: 'ThrowException' was not declared in this scope
     "provided")));
                 ^
../src/raw.cc:392:16: error: 'class v8::HandleScope' has no member named 'Close'
   return scope.Close (args.This ());
                ^
../src/raw.cc:392:28: error: request for member 'This' in 'args', which is of non-class type 'const int'
   return scope.Close (args.This ());
                            ^
../src/raw.cc:395:31: error: invalid types 'const int[int]' for array subscript
  Local<Object> buffer = args[2]->ToObject ();
                               ^
../src/raw.cc:398:14: error: invalid types 'const int[int]' for array subscript
  if (! args[3]->IsInt32 ()) {
              ^
../src/raw.cc:399:41: error: 'New' is not a member of 'v8::String'
   ThrowException (Exception::TypeError (String::New (
                                         ^
../src/raw.cc:400:52: error: 'ThrowException' was not declared in this scope
     "Length argument must be an unsigned integer")));
                                                    ^
../src/raw.cc:401:16: error: 'class v8::HandleScope' has no member named 'Close'
   return scope.Close (args.This ());
                ^
../src/raw.cc:401:28: error: request for member 'This' in 'args', which is of non-class type 'const int'
   return scope.Close (args.This ());
                            ^
|../src/raw.cc:410:37: error: 'New' is not a member of 'v8::String'
   ThrowException (Exception::Error (String::New (
                                     ^
../src/raw.cc:411:34: error: 'ThrowException' was not declared in this scope
     raw_strerror (SOCKET_ERRNO))));
                                  ^
../src/raw.cc:412:16: error: 'class v8::HandleScope' has no member named 'Close'
   return scope.Close (args.This ());
                ^
../src/raw.cc:412:28: error: request for member 'This' in 'args', which is of non-class type 'const int'
   return scope.Close (args.This ());
                            ^
../src/raw.cc:415:51: error: no matching function for call to 'v8::Integer::NewFromUnsigned(socklen_t&)'
  Local<Number> got = Integer::NewFromUnsigned (len);
                                                   ^
../src/raw.cc:415:51: note: candidate is:
In file included from /root/.node-gyp/0.12.1/src/node.h:61:0,
                 from ../src/raw.cc:4:
/root/.node-gyp/0.12.1/deps/v8/include/v8.h:2013:25: note: static v8::Local<v8::Integer> v8::Integer::NewFromUnsigned(v8::Isolate*, uint32_t)
   static Local<Integer> NewFromUnsigned(Isolate* isolate, uint32_t value);
                         ^
/root/.node-gyp/0.12.1/deps/v8/include/v8.h:2013:25: note:   candidate expects 2 arguments, 1 provided
../src/raw.cc:416:15: error: 'class v8::HandleScope' has no member named 'Close'
  return scope.Close (got);
               ^
In file included from /root/.node-gyp/0.12.1/src/node.h:61:0,
                 from ../src/raw.cc:4:
/root/.node-gyp/0.12.1/deps/v8/include/v8.h: In member function 'void raw::SocketWrap::HandleIOEvent(int, int)':
/root/.node-gyp/0.12.1/deps/v8/include/v8.h:816:13: error: 'v8::HandleScope::HandleScope()' is protected
   V8_INLINE HandleScope() {}
             ^
../src/raw.cc:420:14: error: within this context
  HandleScope scope;
              ^
../src/raw.cc:423:29: error: 'class raw::SocketWrap' has no member named 'handle_'
   Local<Value> emit = this->handle_->Get (EmitSymbol);
                             ^
../src/raw.cc:427:43: error: no matching function for call to 'v8::Local<v8::Value>::New(v8::Persistent<v8::String>&)'
   args[0] = Local<Value>::New (ErrorSymbol);
                                           ^
../src/raw.cc:427:43: note: candidates are:
In file included from /root/.node-gyp/0.12.1/src/node.h:61:0,
                 from ../src/raw.cc:4:
/root/.node-gyp/0.12.1/deps/v8/include/v8.h:368:29: note: static v8::Local<T> v8::Local<T>::New(v8::Isolate*, v8::Handle<T>) [with T = v8::Value]
   V8_INLINE static Local<T> New(Isolate* isolate, Handle<T> that);
                             ^
/root/.node-gyp/0.12.1/deps/v8/include/v8.h:368:29: note:   candidate expects 2 arguments, 1 provided
/root/.node-gyp/0.12.1/deps/v8/include/v8.h:369:29: note: static v8::Local<T> v8::Local<T>::New(v8::Isolate*, const v8::PersistentBase<T>&) [with T = v8::Value]
   V8_INLINE static Local<T> New(Isolate* isolate,
                             ^
/root/.node-gyp/0.12.1/deps/v8/include/v8.h:369:29: note:   candidate expects 2 arguments, 1 provided
/root/.node-gyp/0.12.1/deps/v8/include/v8.h:391:29: note: static v8::Local<T> v8::Local<T>::New(v8::Isolate*, T*) [with T = v8::Value]
   V8_INLINE static Local<T> New(Isolate* isolate, T* that);
                             ^
/root/.node-gyp/0.12.1/deps/v8/include/v8.h:391:29: note:   candidate expects 2 arguments, 1 provided
../src/raw.cc:428:31: error: 'New' is not a member of 'v8::String'
   args[1] = Exception::Error (String::New (
                               ^
../src/raw.cc:429:51: error: 'uv_default_loop' was not declared in this scope
     raw_strerror (uv_last_error (uv_default_loop ()).code)));
                                                   ^
../src/raw.cc:429:52: error: 'uv_last_error' was not declared in this scope
     raw_strerror (uv_last_error (uv_default_loop ()).code)));
                                                    ^
../src/raw.cc:431:19: error: 'class raw::SocketWrap' has no member named 'handle_'
   cb->Call (this->handle_, 2, args);
                   ^
../src/raw.cc:433:29: error: 'class raw::SocketWrap' has no member named 'handle_'
   Local<Value> emit = this->handle_->Get (EmitSymbol);
                             ^
../src/raw.cc:437:17: error: 'UV_READABLE' was not declared in this scope
   if (revents & UV_READABLE)
                 ^
../src/raw.cc:438:48: error: no matching function for call to 'v8::Local<v8::Value>::New(v8::Persistent<v8::String>&)'
    args[0] = Local<Value>::New (RecvReadySymbol);
                                                ^
../src/raw.cc:438:48: note: candidates are:
In file included from /root/.node-gyp/0.12.1/src/node.h:61:0,
                 from ../src/raw.cc:4:
/root/.node-gyp/0.12.1/deps/v8/include/v8.h:368:29: note: static v8::Local<T> v8::Local<T>::New(v8::Isolate*, v8::Handle<T>) [with T = v8::Value]
   V8_INLINE static Local<T> New(Isolate* isolate, Handle<T> that);
                             ^
/root/.node-gyp/0.12.1/deps/v8/include/v8.h:368:29: note:   candidate expects 2 arguments, 1 provided
/root/.node-gyp/0.12.1/deps/v8/include/v8.h:369:29: note: static v8::Local<T> v8::Local<T>::New(v8::Isolate*, const v8::PersistentBase<T>&) [with T = v8::Value]
   V8_INLINE static Local<T> New(Isolate* isolate,
                             ^
/root/.node-gyp/0.12.1/deps/v8/include/v8.h:369:29: note:   candidate expects 2 arguments, 1 provided
/root/.node-gyp/0.12.1/deps/v8/include/v8.h:391:29: note: static v8::Local<T> v8::Local<T>::New(v8::Isolate*, T*) [with T = v8::Value]
   V8_INLINE static Local<T> New(Isolate* isolate, T* that);
                             ^
/root/.node-gyp/0.12.1/deps/v8/include/v8.h:391:29: note:   candidate expects 2 arguments, 1 provided
../src/raw.cc:440:48: error: no matching function for call to 'v8::Local<v8::Value>::New(v8::Persistent<v8::String>&)'
    args[0] = Local<Value>::New (SendReadySymbol);
                                                ^
../src/raw.cc:440:48: note: candidates are:
In file included from /root/.node-gyp/0.12.1/src/node.h:61:0,
                 from ../src/raw.cc:4:
/root/.node-gyp/0.12.1/deps/v8/include/v8.h:368:29: note: static v8::Local<T> v8::Local<T>::New(v8::Isolate*, v8::Handle<T>) [with T = v8::Value]
   V8_INLINE static Local<T> New(Isolate* isolate, Handle<T> that);
                             ^
/root/.node-gyp/0.12.1/deps/v8/include/v8.h:368:29: note:   candidate expects 2 arguments, 1 provided
/root/.node-gyp/0.12.1/deps/v8/include/v8.h:369:29: note: static v8::Local<T> v8::Local<T>::New(v8::Isolate*, const v8::PersistentBase<T>&) [with T = v8::Value]
   V8_INLINE static Local<T> New(Isolate* isolate,
                             ^
/root/.node-gyp/0.12.1/deps/v8/include/v8.h:369:29: note:   candidate expects 2 arguments, 1 provided
/root/.node-gyp/0.12.1/deps/v8/include/v8.h:391:29: note: static v8::Local<T> v8::Local<T>::New(v8::Isolate*, T*) [with T = v8::Value]
   V8_INLINE static Local<T> New(Isolate* isolate, T* that);
                             ^
/root/.node-gyp/0.12.1/deps/v8/include/v8.h:391:29: note:   candidate expects 2 arguments, 1 provided
../src/raw.cc:442:19: error: 'class raw::SocketWrap' has no member named 'handle_'
   cb->Call (this->handle_, 1, args);
                   ^
../src/raw.cc: At global scope:
../src/raw.cc:446:38: error: 'Arguments' does not name a type
 Handle<Value> SocketWrap::New (const Arguments& args) {
                                      ^
In file included from /root/.node-gyp/0.12.1/src/node.h:61:0,
                 from ../src/raw.cc:4:
/root/.node-gyp/0.12.1/deps/v8/include/v8.h: In static member function 'static v8::Handle<v8::Value> raw::SocketWrap::New(const int&)':
/root/.node-gyp/0.12.1/deps/v8/include/v8.h:816:13: error: 'v8::HandleScope::HandleScope()' is protected
   V8_INLINE HandleScope() {}
             ^
../src/raw.cc:447:14: error: within this context
  HandleScope scope;
              ^
../src/raw.cc:451:11: error: request for member 'Length' in 'args', which is of non-class type 'const int'
  if (args.Length () < 1) {
           ^
../src/raw.cc:452:37: error: 'New' is not a member of 'v8::String'
   ThrowException (Exception::Error (String::New (
                                     ^
../src/raw.cc:453:33: error: 'ThrowException' was not declared in this scope
     "One argument is required")));
                                 ^
../src/raw.cc:454:16: error: 'class v8::HandleScope' has no member named 'Close'
   return scope.Close (args.This ());
                ^
../src/raw.cc:454:28: error: request for member 'This' in 'args', which is of non-class type 'const int'
   return scope.Close (args.This ());
                            ^
../src/raw.cc:457:14: error: invalid types 'const int[int]' for array subscript
  if (! args[0]->IsUint32 ()) {
              ^
../src/raw.cc:458:41: error: 'New' is not a member of 'v8::String'
   ThrowException (Exception::TypeError (String::New (
                                         ^
../src/raw.cc:459:54: error: 'ThrowException' was not declared in this scope
     "Protocol argument must be an unsigned integer")));
                                                      ^
../src/raw.cc:460:16: error: 'class v8::HandleScope' has no member named 'Close'
   return scope.Close (args.This ());
                ^
../src/raw.cc:460:28: error: request for member 'This' in 'args', which is of non-class type 'const int'
   return scope.Close (args.This ());
                            ^
../src/raw.cc:462:29: error: invalid types 'const int[int]' for array subscript
   socket->protocol_ = args[0]->ToUint32 ()->Value ();
                             ^
../src/raw.cc:465:11: error: request for member 'Length' in 'args', which is of non-class type 'const int'
  if (args.Length () > 1) {
           ^
../src/raw.cc:466:15: error: invalid types 'const int[int]' for array subscript
   if (! args[1]->IsUint32 ()) {
               ^
../src/raw.cc:467:42: error: 'New' is not a member of 'v8::String'
    ThrowException (Exception::TypeError (String::New (
                                          ^
../src/raw.cc:468:61: error: 'ThrowException' was not declared in this scope
      "Address family argument must be an unsigned integer")));
                                                             ^
../src/raw.cc:469:17: error: 'class v8::HandleScope' has no member named 'Close'
    return scope.Close (args.This ());
                 ^
../src/raw.cc:469:29: error: request for member 'This' in 'args', which is of non-class type 'const int'
    return scope.Close (args.This ());
                             ^
../src/raw.cc:471:14: error: invalid types 'const int[int]' for array subscript
    if (args[1]->ToUint32 ()->Value () == 2)
              ^
../src/raw.cc:484:37: error: 'New' is not a member of 'v8::String'
   ThrowException (Exception::Error (String::New (raw_strerror (rc))));
                                     ^
../src/raw.cc:484:69: error: 'ThrowException' was not declared in this scope
   ThrowException (Exception::Error (String::New (raw_strerror (rc))));
                                                                     ^
../src/raw.cc:485:16: error: 'class v8::HandleScope' has no member named 'Close'
   return scope.Close (args.This ());
                ^
../src/raw.cc:485:28: error: request for member 'This' in 'args', which is of non-class type 'const int'
   return scope.Close (args.This ());
                            ^
../src/raw.cc:488:10: error: 'class raw::SocketWrap' has no member named 'Wrap'
  socket->Wrap (args.This ());
          ^
../src/raw.cc:488:21: error: request for member 'This' in 'args', which is of non-class type 'const int'
  socket->Wrap (args.This ());
                     ^
../src/raw.cc:490:15: error: 'class v8::HandleScope' has no member named 'Close'
  return scope.Close (args.This ());
               ^
../src/raw.cc:490:27: error: request for member 'This' in 'args', which is of non-class type 'const int'
  return scope.Close (args.This ());
                           ^
../src/raw.cc: At global scope:
../src/raw.cc:493:27: error: variable or field 'OnClose' declared void
 void SocketWrap::OnClose (uv_handle_t *handle) {
                           ^
../src/raw.cc:493:27: error: 'uv_handle_t' was not declared in this scope
../src/raw.cc:493:40: error: 'handle' was not declared in this scope
 void SocketWrap::OnClose (uv_handle_t *handle) {
                                        ^
../src/raw.cc:497:40: error: 'Arguments' does not name a type
 Handle<Value> SocketWrap::Pause (const Arguments& args) {
                                        ^
In file included from /root/.node-gyp/0.12.1/src/node.h:61:0,
                 from ../src/raw.cc:4:
/root/.node-gyp/0.12.1/deps/v8/include/v8.h: In static member function 'static v8::Handle<v8::Value> raw::SocketWrap::Pause(const int&)':
/root/.node-gyp/0.12.1/deps/v8/include/v8.h:816:13: error: 'v8::HandleScope::HandleScope()' is protected
   V8_INLINE HandleScope() {}
             ^
../src/raw.cc:498:14: error: within this context
  HandleScope scope;
              ^
../src/raw.cc:499:23: error: 'Unwrap' is not a member of 'raw::SocketWrap'
  SocketWrap* socket = SocketWrap::Unwrap<SocketWrap> (args.This ());
                       ^
../src/raw.cc:499:52: error: expected primary-expression before '>' token
  SocketWrap* socket = SocketWrap::Unwrap<SocketWrap> (args.This ());
                                                    ^
../src/raw.cc:499:60: error: request for member 'This' in 'args', which is of non-class type 'const int'
  SocketWrap* socket = SocketWrap::Unwrap<SocketWrap> (args.This ());
                                                            ^
../src/raw.cc:501:11: error: request for member 'Length' in 'args', which is of non-class type 'const int'
  if (args.Length () < 2) {
           ^
../src/raw.cc:502:37: error: 'New' is not a member of 'v8::String'
   ThrowException (Exception::Error (String::New (
                                     ^
../src/raw.cc:503:35: error: 'ThrowException' was not declared in this scope
     "Two arguments are required")));
                                   ^
../src/raw.cc:504:16: error: 'class v8::HandleScope' has no member named 'Close'
   return scope.Close (args.This ());
                ^
../src/raw.cc:504:28: error: request for member 'This' in 'args', which is of non-class type 'const int'
   return scope.Close (args.This ());
                            ^
../src/raw.cc:507:14: error: invalid types 'const int[int]' for array subscript
  if (! args[0]->IsBoolean ()) {
              ^
../src/raw.cc:508:41: error: 'New' is not a member of 'v8::String'
   ThrowException (Exception::TypeError (String::New (
                                         ^
../src/raw.cc:509:40: error: 'ThrowException' was not declared in this scope
     "Recv argument must be a boolean")));
                                        ^
../src/raw.cc:510:16: error: 'class v8::HandleScope' has no member named 'Close'
   return scope.Close (args.This ());
                ^
../src/raw.cc:510:28: error: request for member 'This' in 'args', which is of non-class type 'const int'
   return scope.Close (args.This ());
                            ^
../src/raw.cc:512:26: error: invalid types 'const int[int]' for array subscript
  bool pause_recv = args[0]->ToBoolean ()->Value ();
                          ^
../src/raw.cc:514:14: error: invalid types 'const int[int]' for array subscript
  if (! args[1]->IsBoolean ()) {
              ^
../src/raw.cc:515:41: error: 'New' is not a member of 'v8::String'
   ThrowException (Exception::TypeError (String::New (
                                         ^
../src/raw.cc:516:40: error: 'ThrowException' was not declared in this scope
     "Send argument must be a boolean")));
                                        ^
../src/raw.cc:517:16: error: 'class v8::HandleScope' has no member named 'Close'
   return scope.Close (args.This ());
                ^
../src/raw.cc:517:28: error: request for member 'This' in 'args', which is of non-class type 'const int'
   return scope.Close (args.This ());
                            ^
../src/raw.cc:519:26: error: invalid types 'const int[int]' for array subscript
  bool pause_send = args[1]->ToBoolean ()->Value ();
                          ^
../src/raw.cc:521:33: error: 'UV_READABLE' was not declared in this scope
  int events = (pause_recv ? 0 : UV_READABLE)
                                 ^
../src/raw.cc:522:24: error: 'UV_WRITABLE' was not declared in this scope
    | (pause_send ? 0 : UV_WRITABLE);
                        ^
/../src/raw.cc:525:25: error: 'class raw::SocketWrap' has no member named 'poll_watcher_'
   uv_poll_stop (socket->poll_watcher_);
                         ^
../src/raw.cc:525:38: error: 'uv_poll_stop' was not declared in this scope
   uv_poll_stop (socket->poll_watcher_);
                                      ^
../src/raw.cc:527:27: error: 'class raw::SocketWrap' has no member named 'poll_watcher_'
    uv_poll_start (socket->poll_watcher_, events, IoEvent);
                           ^
../src/raw.cc:527:50: error: 'IoEvent' was not declared in this scope
    uv_poll_start (socket->poll_watcher_, events, IoEvent);
                                                  ^
../src/raw.cc:527:57: error: 'uv_poll_start' was not declared in this scope
    uv_poll_start (socket->poll_watcher_, events, IoEvent);
                                                         ^
../src/raw.cc:530:15: error: 'class v8::HandleScope' has no member named 'Close'
  return scope.Close (args.This ());
               ^
../src/raw.cc:530:27: error: request for member 'This' in 'args', which is of non-class type 'const int'
  return scope.Close (args.This ());
                           ^
../src/raw.cc: At global scope:
../src/raw.cc:533:39: error: 'Arguments' does not name a type
 Handle<Value> SocketWrap::Recv (const Arguments& args) {
                                       ^
In file included from /root/.node-gyp/0.12.1/src/node.h:61:0,
                 from ../src/raw.cc:4:
/root/.node-gyp/0.12.1/deps/v8/include/v8.h: In static member function 'static v8::Handle<v8::Value> raw::SocketWrap::Recv(const int&)':
/root/.node-gyp/0.12.1/deps/v8/include/v8.h:816:13: error: 'v8::HandleScope::HandleScope()' is protected
   V8_INLINE HandleScope() {}
             ^
../src/raw.cc:534:14: error: within this context
  HandleScope scope;
              ^
../src/raw.cc:535:23: error: 'Unwrap' is not a member of 'raw::SocketWrap'
  SocketWrap* socket = SocketWrap::Unwrap<SocketWrap> (args.This ());
                       ^
../src/raw.cc:535:52: error: expected primary-expression before '>' token
  SocketWrap* socket = SocketWrap::Unwrap<SocketWrap> (args.This ());
                                                    ^
../src/raw.cc:535:60: error: request for member 'This' in 'args', which is of non-class type 'const int'
  SocketWrap* socket = SocketWrap::Unwrap<SocketWrap> (args.This ());
                                                            ^
../src/raw.cc:551:11: error: request for member 'Length' in 'args', which is of non-class type 'const int'
  if (args.Length () < 2) {
           ^
../src/raw.cc:552:37: error: 'New' is not a member of 'v8::String'
   ThrowException (Exception::Error (String::New (
                                     ^
../src/raw.cc:553:36: error: 'ThrowException' was not declared in this scope
     "Five arguments are required")));
                                    ^
../src/raw.cc:554:16: error: 'class v8::HandleScope' has no member named 'Close'
   return scope.Close (args.This ());
                ^
../src/raw.cc:554:28: error: request for member 'This' in 'args', which is of non-class type 'const int'
   return scope.Close (args.This ());
                            ^
../src/raw.cc:557:41: error: invalid types 'const int[int]' for array subscript
  if (! node::Buffer::HasInstance (args[0])) {
                                         ^
../src/raw.cc:558:41: error: 'New' is not a member of 'v8::String'
   ThrowException (Exception::TypeError (String::New (
                                         ^
../src/raw.cc:559:53: error: 'ThrowException' was not declared in this scope
     "Buffer argument must be a node Buffer object")));
                                                     ^
../src/raw.cc:560:16: error: 'class v8::HandleScope' has no member named 'Close'
   return scope.Close (args.This ());
                ^
../src/raw.cc:560:28: error: request for member 'This' in 'args', which is of non-class type 'const int'
   return scope.Close (args.This ());
                            ^
../src/raw.cc:562:18: error: invalid types 'const int[int]' for array subscript
   buffer = args[0]->ToObject ();
                  ^
../src/raw.cc:565:14: error: invalid types 'const int[int]' for array subscript
  if (! args[1]->IsFunction ()) {
              ^
../src/raw.cc:566:41: error: 'New' is not a member of 'v8::String'
   ThrowException (Exception::TypeError (String::New (
                                         ^
../src/raw.cc:567:45: error: 'ThrowException' was not declared in this scope
     "Callback argument must be a function")));
                                             ^
../src/raw.cc:568:16: error: 'class v8::HandleScope' has no member named 'Close'
   return scope.Close (args.This ());
                ^
../src/raw.cc:568:28: error: request for member 'This' in 'args', which is of non-class type 'const int'
   return scope.Close (args.This ());
                            ^
../src/raw.cc:573:37: error: 'New' is not a member of 'v8::String'
   ThrowException (Exception::Error (String::New (raw_strerror (errno))));
                                     ^
../src/raw.cc:573:72: error: 'ThrowException' was not declared in this scope
   ThrowException (Exception::Error (String::New (raw_strerror (errno))));
                                                                        ^
../src/raw.cc:574:16: error: 'class v8::HandleScope' has no member named 'Close'
   return scope.Close (args.This ());
                ^
../src/raw.cc:574:28: error: request for member 'This' in 'args', which is of non-class type 'const int'
   return scope.Close (args.This ());
                            ^
../src/raw.cc:590:37: error: 'New' is not a member of 'v8::String'
   ThrowException (Exception::Error (String::New (raw_strerror (
                                     ^
../src/raw.cc:591:20: error: 'ThrowException' was not declared in this scope
     SOCKET_ERRNO))));
                    ^
../src/raw.cc:592:16: error: 'class v8::HandleScope' has no member named 'Close'
   return scope.Close (args.This ());
                ^
../src/raw.cc:592:28: error: request for member 'This' in 'args', which is of non-class type 'const int'
   return scope.Close (args.This ());
                            ^
../src/raw.cc:596:39: error: 'uv_ip6_name' was not declared in this scope
   uv_ip6_name (&sin6_address, addr, 50);
                                       ^
../src/raw.cc:598:38: error: 'uv_ip4_name' was not declared in this scope
   uv_ip4_name (&sin_address, addr, 50);
                                      ^
../src/raw.cc:600:52: error: invalid types 'const int[int]' for array subscript
  Local<Function> cb = Local<Function>::Cast (args[1]);
                                                    ^
../src/raw.cc:603:18: error: invalid types 'const int[int]' for array subscript
  argv[0] = args[0];
                  ^
../src/raw.cc:604:27: error: no matching function for call to 'v8::Number::New(int&)'
  argv[1] = Number::New (rc);
                           ^
../src/raw.cc:604:27: note: candidate is:
In file included from /root/.node-gyp/0.12.1/src/node.h:61:0,
                 from ../src/raw.cc:4:
/root/.node-gyp/0.12.1/deps/v8/include/v8.h:1999:24: note: static v8::Local<v8::Number> v8::Number::New(v8::Isolate*, double)
   static Local<Number> New(Isolate* isolate, double value);
                        ^
/root/.node-gyp/0.12.1/deps/v8/include/v8.h:1999:24: note:   candidate expects 2 arguments, 1 provided
../src/raw.cc:605:12: error: 'New' is not a member of 'v8::String'
  argv[2] = String::New (addr);
            ^
../src/raw.cc:606:12: error: 'GetCurrent' is not a member of 'v8::Context'
  cb->Call (Context::GetCurrent ()->Global (), argc, argv);
            ^
../src/raw.cc:608:15: error: 'class v8::HandleScope' has no member named 'Close'
  return scope.Close (args.This ());
               ^
../src/raw.cc:608:27: error: request for member 'This' in 'args', which is of non-class type 'const int'
  return scope.Close (args.This ());
                           ^
../src/raw.cc: At global scope:
../src/raw.cc:611:39: error: 'Arguments' does not name a type
 Handle<Value> SocketWrap::Send (const Arguments& args) {
                                       ^
In file included from /root/.node-gyp/0.12.1/src/node.h:61:0,
                 from ../src/raw.cc:4:
/root/.node-gyp/0.12.1/deps/v8/include/v8.h: In static member function 'static v8::Handle<v8::Value> raw::SocketWrap::Send(const int&)':
/root/.node-gyp/0.12.1/deps/v8/include/v8.h:816:13: error: 'v8::HandleScope::HandleScope()' is protected
   V8_INLINE HandleScope() {}
             ^
../src/raw.cc:612:14: error: within this context
  HandleScope scope;
              ^
../src/raw.cc:613:23: error: 'Unwrap' is not a member of 'raw::SocketWrap'
  SocketWrap* socket = SocketWrap::Unwrap<SocketWrap> (args.This ());
                       ^
../src/raw.cc:613:52: error: expected primary-expression before '>' token
  SocketWrap* socket = SocketWrap::Unwrap<SocketWrap> (args.This ());
                                                    ^
../src/raw.cc:613:60: error: request for member 'This' in 'args', which is of non-class type 'const int'
  SocketWrap* socket = SocketWrap::Unwrap<SocketWrap> (args.This ());
                                                            ^
../src/raw.cc:620:11: error: request for member 'Length' in 'args', which is of non-class type 'const int'
  if (args.Length () < 5) {
           ^
../src/raw.cc:621:37: error: 'New' is not a member of 'v8::String'
   ThrowException (Exception::Error (String::New (
                                     ^
../src/raw.cc:622:36: error: 'ThrowException' was not declared in this scope
     "Five arguments are required")));
                                    ^
../src/raw.cc:623:16: error: 'class v8::HandleScope' has no member named 'Close'
   return scope.Close (args.This ());
                ^
../src/raw.cc:623:28: error: request for member 'This' in 'args', which is of non-class type 'const int'
   return scope.Close (args.This ());
                            ^
../src/raw.cc:626:41: error: invalid types 'const int[int]' for array subscript
  if (! node::Buffer::HasInstance (args[0])) {
                                         ^
../src/raw.cc:627:41: error: 'New' is not a member of 'v8::String'
   ThrowException (Exception::TypeError (String::New (
                                         ^
../src/raw.cc:628:53: error: 'ThrowException' was not declared in this scope
     "Buffer argument must be a node Buffer object")));
                                                     ^
../src/raw.cc:629:16: error: 'class v8::HandleScope' has no member named 'Close'
   return scope.Close (args.This ());
                ^
../src/raw.cc:629:28: error: request for member 'This' in 'args', which is of non-class type 'const int'
   return scope.Close (args.This ());
                            ^
../src/raw.cc:632:14: error: invalid types 'const int[int]' for array subscript
  if (! args[1]->IsUint32 ()) {
              ^
../src/raw.cc:633:41: error: 'New' is not a member of 'v8::String'
   ThrowException (Exception::TypeError (String::New (
                                         ^
../src/raw.cc:634:52: error: 'ThrowException' was not declared in this scope
     "Offset argument must be an unsigned integer")));
                                                    ^
../src/raw.cc:635:16: error: 'class v8::HandleScope' has no member named 'Close'
   return scope.Close (args.This ());
                ^
../src/raw.cc:635:28: error: request for member 'This' in 'args', which is of non-class type 'const int'
   return scope.Close (args.This ());
                            ^
../src/raw.cc:638:14: error: invalid types 'const int[int]' for array subscript
  if (! args[2]->IsUint32 ()) {
              ^
../src/raw.cc:639:41: error: 'New' is not a member of 'v8::String'
   ThrowException (Exception::TypeError (String::New (
                                         ^
../src/raw.cc:640:52: error: 'ThrowException' was not declared in this scope
     "Length argument must be an unsigned integer")));
                                                    ^
../src/raw.cc:641:16: error: 'class v8::HandleScope' has no member named 'Close'
   return scope.Close (args.This ());
                ^
../src/raw.cc:641:28: error: request for member 'This' in 'args', which is of non-class type 'const int'
   return scope.Close (args.This ());
                            ^
../src/raw.cc:644:14: error: invalid types 'const int[int]' for array subscript
  if (! args[3]->IsString ()) {
              ^
../src/raw.cc:645:41: error: 'New' is not a member of 'v8::String'
   ThrowException (Exception::TypeError (String::New (
                                         ^
../src/raw.cc:646:42: error: 'ThrowException' was not declared in this scope
     "Address argument must be a string")));
                                          ^
../src/raw.cc:647:16: error: 'class v8::HandleScope' has no member named 'Close'
   return scope.Close (args.This ());
                ^
../src/raw.cc:647:28: error: request for member 'This' in 'args', which is of non-class type 'const int'
   return scope.Close (args.This ());
                            ^
../src/raw.cc:650:14: error: invalid types 'const int[int]' for array subscript
  if (! args[4]->IsFunction ()) {
              ^
../src/raw.cc:651:41: error: 'New' is not a member of 'v8::String'
   ThrowException (Exception::TypeError (String::New (
                                         ^
../src/raw.cc:652:45: error: 'ThrowException' was not declared in this scope
     "Callback argument must be a function")));
                                             ^
../src/raw.cc:653:16: error: 'class v8::HandleScope' has no member named 'Close'
   return scope.Close (args.This ());
                ^
../src/raw.cc:653:28: error: request for member 'This' in 'args', which is of non-class type 'const int'
   return scope.Close (args.This ());
                            ^
../src/raw.cc:658:37: error: 'New' is not a member of 'v8::String'
   ThrowException (Exception::Error (String::New (raw_strerror (errno))));
                                     ^
../src/raw.cc:658:72: error: 'ThrowException' was not declared in this scope
   ThrowException (Exception::Error (String::New (raw_strerror (errno))));
                                                                        ^
../src/raw.cc:659:16: error: 'class v8::HandleScope' has no member named 'Close'
   return scope.Close (args.This ());
                ^
../src/raw.cc:659:28: error: request for member 'This' in 'args', which is of non-class type 'const int'
   return scope.Close (args.This ());
                            ^
../src/raw.cc:662:17: error: invalid types 'const int[int]' for array subscript
  buffer = args[0]->ToObject ();
                 ^
../src/raw.cc:663:17: error: invalid types 'const int[int]' for array subscript
  offset = args[1]->ToUint32 ()->Value ();
                 ^
../src/raw.cc:664:17: error: invalid types 'const int[int]' for array subscript
  length = args[2]->ToUint32 ()->Value ();
                 ^
../src/raw.cc:665:2: error: 'AsciiValue' is not a member of 'v8::String'
  String::AsciiValue address (args[3]);
  ^
../src/raw.cc:670:44: error: 'address' was not declared in this scope
   struct sockaddr_in6 addr = uv_ip6_addr (*address, 0);
                                            ^
../src/raw.cc:670:54: error: 'uv_ip6_addr' was not declared in this scope
   struct sockaddr_in6 addr = uv_ip6_addr (*address, 0);
                                                      ^
../src/raw.cc:674:43: error: 'address' was not declared in this scope
   struct sockaddr_in addr = uv_ip4_addr (*address, 0);
                                           ^
../src/raw.cc:674:53: error: 'uv_ip4_addr' was not declared in this scope
   struct sockaddr_in addr = uv_ip4_addr (*address, 0);
                                                     ^
../src/raw.cc:680:37: error: 'New' is not a member of 'v8::String'
   ThrowException (Exception::Error (String::New (raw_strerror (
                                     ^
../src/raw.cc:681:20: error: 'ThrowException' was not declared in this scope
     SOCKET_ERRNO))));
                    ^
../src/raw.cc:682:16: error: 'class v8::HandleScope' has no member named 'Close'
   return scope.Close (args.This ());
                ^
../src/raw.cc:682:28: error: request for member 'This' in 'args', which is of non-class type 'const int'
   return scope.Close (args.This ());
                            ^
../src/raw.cc:685:52: error: invalid types 'const int[int]' for array subscript
  Local<Function> cb = Local<Function>::Cast (args[4]);
                                                    ^
../src/raw.cc:688:27: error: no matching function for call to 'v8::Number::New(int&)'
  argv[0] = Number::New (rc);
                           ^
../src/raw.cc:688:27: note: candidate is:
In file included from /root/.node-gyp/0.12.1/src/node.h:61:0,
                 from ../src/raw.cc:4:
/root/.node-gyp/0.12.1/deps/v8/include/v8.h:1999:24: note: static v8::Local<v8::Number> v8::Number::New(v8::Isolate*, double)
   static Local<Number> New(Isolate* isolate, double value);
                        ^
/root/.node-gyp/0.12.1/deps/v8/include/v8.h:1999:24: note:   candidate expects 2 arguments, 1 provided
../src/raw.cc:689:12: error: 'GetCurrent' is not a member of 'v8::Context'
  cb->Call (Context::GetCurrent ()->Global (), argc, argv);
            ^
../src/raw.cc:691:15: error: 'class v8::HandleScope' has no member named 'Close'
  return scope.Close (args.This ());
               ^
../src/raw.cc:691:27: error: request for member 'This' in 'args', which is of non-class type 'const int'
  return scope.Close (args.This ());
                           ^
../src/raw.cc: At global scope:
../src/raw.cc:694:44: error: 'Arguments' does not name a type
 Handle<Value> SocketWrap::SetOption (const Arguments& args) {
                                            ^
In file included from /root/.node-gyp/0.12.1/src/node.h:61:0,
                 from ../src/raw.cc:4:
/root/.node-gyp/0.12.1/deps/v8/include/v8.h: In static member function 'static v8::Handle<v8::Value> raw::SocketWrap::SetOption(const int&)':
/root/.node-gyp/0.12.1/deps/v8/include/v8.h:816:13: error: 'v8::HandleScope::HandleScope()' is protected
   V8_INLINE HandleScope() {}
             ^
../src/raw.cc:695:14: error: within this context
  HandleScope scope;
              ^
../src/raw.cc:696:23: error: 'Unwrap' is not a member of 'raw::SocketWrap'
  SocketWrap* socket = SocketWrap::Unwrap<SocketWrap> (args.This ());
                       ^
../src/raw.cc:696:52: error: expected primary-expression before '>' token
  SocketWrap* socket = SocketWrap::Unwrap<SocketWrap> (args.This ());
                                                    ^
../src/raw.cc:696:60: error: request for member 'This' in 'args', which is of non-class type 'const int'
  SocketWrap* socket = SocketWrap::Unwrap<SocketWrap> (args.This ());
                                                            ^
../src/raw.cc:698:11: error: request for member 'Length' in 'args', which is of non-class type 'const int'
  if (args.Length () < 3) {
           ^
-../src/raw.cc:699:37: error: 'New' is not a member of 'v8::String'
   ThrowException (Exception::Error (String::New (
                                     ^
../src/raw.cc:700:45: error: 'ThrowException' was not declared in this scope
     "Three or four arguments are required")));
                                             ^
../src/raw.cc:701:16: error: 'class v8::HandleScope' has no member named 'Close'
   return scope.Close (args.This ());
                ^
../src/raw.cc:701:28: error: request for member 'This' in 'args', which is of non-class type 'const int'
   return scope.Close (args.This ());
                            ^
../src/raw.cc:704:14: error: invalid types 'const int[int]' for array subscript
  if (! args[0]->IsNumber ()) {
              ^
../src/raw.cc:705:41: error: 'New' is not a member of 'v8::String'
   ThrowException (Exception::TypeError (String::New (
                                         ^
../src/raw.cc:706:40: error: 'ThrowException' was not declared in this scope
     "Level argument must be a number")));
                                        ^
../src/raw.cc:707:16: error: 'class v8::HandleScope' has no member named 'Close'
   return scope.Close (args.This ());
                ^
../src/raw.cc:707:28: error: request for member 'This' in 'args', which is of non-class type 'const int'
   return scope.Close (args.This ());
                            ^
../src/raw.cc:710:14: error: invalid types 'const int[int]' for array subscript
  if (! args[1]->IsNumber ()) {
              ^
../src/raw.cc:711:41: error: 'New' is not a member of 'v8::String'
   ThrowException (Exception::TypeError (String::New (
                                         ^
../src/raw.cc:712:41: error: 'ThrowException' was not declared in this scope
     "Option argument must be a number")));
                                         ^
../src/raw.cc:713:16: error: 'class v8::HandleScope' has no member named 'Close'
   return scope.Close (args.This ());
                ^
../src/raw.cc:713:28: error: request for member 'This' in 'args', which is of non-class type 'const int'
   return scope.Close (args.This ());
                            ^
../src/raw.cc:716:20: error: invalid types 'const int[int]' for array subscript
  int level = args[0]->ToInt32 ()->Value ();
                    ^
../src/raw.cc:717:21: error: invalid types 'const int[int]' for array subscript
  int option = args[1]->ToInt32 ()->Value ();
                     ^
../src/raw.cc:722:11: error: request for member 'Length' in 'args', which is of non-class type 'const int'
  if (args.Length () > 3) {
           ^
../src/raw.cc:723:42: error: invalid types 'const int[int]' for array subscript
   if (! node::Buffer::HasInstance (args[2])) {
                                          ^
../src/raw.cc:724:42: error: 'New' is not a member of 'v8::String'
    ThrowException (Exception::TypeError (String::New (
                                          ^
../src/raw.cc:726:18: error: 'ThrowException' was not declared in this scope
      "provided")));
                  ^
../src/raw.cc:727:17: error: 'class v8::HandleScope' has no member named 'Close'
    return scope.Close (args.This ());
                 ^
../src/raw.cc:727:29: error: request for member 'This' in 'args', which is of non-class type 'const int'
    return scope.Close (args.This ());
                             ^
../src/raw.cc:730:32: error: invalid types 'const int[int]' for array subscript
   Local<Object> buffer = args[2]->ToObject ();
                                ^
../src/raw.cc:733:15: error: invalid types 'const int[int]' for array subscript
   if (! args[3]->IsInt32 ()) {
               ^
../src/raw.cc:734:42: error: 'New' is not a member of 'v8::String'
    ThrowException (Exception::TypeError (String::New (
                                          ^
../src/raw.cc:735:53: error: 'ThrowException' was not declared in this scope
      "Length argument must be an unsigned integer")));
                                                     ^
../src/raw.cc:736:17: error: 'class v8::HandleScope' has no member named 'Close'
    return scope.Close (args.This ());
                 ^
../src/raw.cc:736:29: error: request for member 'This' in 'args', which is of non-class type 'const int'
    return scope.Close (args.This ());
                             ^
../src/raw.cc:739:15: error: invalid types 'const int[int]' for array subscript
   len = args[3]->ToInt32 ()->Value ();
               ^
../src/raw.cc:742:42: error: 'New' is not a member of 'v8::String'
    ThrowException (Exception::TypeError (String::New (
                                          ^
../src/raw.cc:743:54: error: 'ThrowException' was not declared in this scope
      "Length argument is larger than buffer length")));
                                                      ^
../src/raw.cc:744:17: error: 'class v8::HandleScope' has no member named 'Close'
    return scope.Close (args.This ());
                 ^
../src/raw.cc:744:29: error: request for member 'This' in 'args', which is of non-class type 'const int'
    return scope.Close (args.This ());
                             ^
../src/raw.cc:747:15: error: invalid types 'const int[int]' for array subscript
   if (! args[2]->IsUint32 ()) {
               ^
../src/raw.cc:748:42: error: 'New' is not a member of 'v8::String'
    ThrowException (Exception::TypeError (String::New (
                                          ^
../src/raw.cc:749:51: error: 'ThrowException' was not declared in this scope
      "Value argument must be a unsigned integer")));
                                                   ^
../src/raw.cc:750:17: error: 'class v8::HandleScope' has no member named 'Close'
    return scope.Close (args.This ());
                 ^
../src/raw.cc:750:29: error: request for member 'This' in 'args', which is of non-class type 'const int'
    return scope.Close (args.This ());
                             ^
../src/raw.cc:753:16: error: invalid types 'const int[int]' for array subscript
   ival = args[2]->ToUint32 ()->Value ();
                ^
../src/raw.cc:761:37: error: 'New' is not a member of 'v8::String'
   ThrowException (Exception::Error (String::New (
                                     ^
../src/raw.cc:762:34: error: 'ThrowException' was not declared in this scope
     raw_strerror (SOCKET_ERRNO))));
                                  ^
../src/raw.cc:763:16: error: 'class v8::HandleScope' has no member named 'Close'
   return scope.Close (args.This ());
                ^
../src/raw.cc:763:28: error: request for member 'This' in 'args', which is of non-class type 'const int'
   return scope.Close (args.This ());
                            ^
../src/raw.cc:766:15: error: 'class v8::HandleScope' has no member named 'Close'
  return scope.Close (args.This ());
               ^
../src/raw.cc:766:27: error: request for member 'This' in 'args', which is of non-class type 'const int'
  return scope.Close (args.This ());
                           ^
../src/raw.cc: At global scope:
../src/raw.cc:769:22: error: variable or field 'IoEvent' declared void
 static void IoEvent (uv_poll_t* watcher, int status, int revents) {
                      ^
../src/raw.cc:769:22: error: 'uv_poll_t' was not declared in this scope
../src/raw.cc:769:33: error: 'watcher' was not declared in this scope
 static void IoEvent (uv_poll_t* watcher, int status, int revents) {
                                 ^
../src/raw.cc:769:42: error: expected primary-expression before 'int'
 static void IoEvent (uv_poll_t* watcher, int status, int revents) {
                                          ^
../src/raw.cc:769:54: error: expected primary-expression before 'int'
 static void IoEvent (uv_poll_t* watcher, int status, int revents) {
                                                      ^
../src/raw.cc: In function 'v8::Handle<v8::Value> raw::CreateChecksum(const int&)':
../src/raw.cc:139:1: warning: control reaches end of non-void function [-Wreturn-type]
 }
 ^
../src/raw.cc: In function 'v8::Handle<v8::Value> raw::Htonl(const int&)':
../src/raw.cc:160:1: warning: control reaches end of non-void function [-Wreturn-type]
 }
 ^
../src/raw.cc: In function 'v8::Handle<v8::Value> raw::Htons(const int&)':
../src/raw.cc:186:1: warning: control reaches end of non-void function [-Wreturn-type]
 }
 ^
../src/raw.cc: In function 'v8::Handle<v8::Value> raw::Ntohl(const int&)':
../src/raw.cc:207:1: warning: control reaches end of non-void function [-Wreturn-type]
 }
 ^
../src/raw.cc: In function 'v8::Handle<v8::Value> raw::Ntohs(const int&)':
../src/raw.cc:233:1: warning: control reaches end of non-void function [-Wreturn-type]
 }
 ^
../src/raw.cc: In static member function 'static v8::Handle<v8::Value> raw::SocketWrap::Close(const int&)':
../src/raw.cc:308:1: warning: control reaches end of non-void function [-Wreturn-type]
 }
 ^
../src/raw.cc: In static member function 'static v8::Handle<v8::Value> raw::SocketWrap::GetOption(const int&)':
../src/raw.cc:417:1: warning: control reaches end of non-void function [-Wreturn-type]
 }
 ^
../src/raw.cc: In static member function 'static v8::Handle<v8::Value> raw::SocketWrap::New(const int&)':
../src/raw.cc:491:1: warning: control reaches end of non-void function [-Wreturn-type]
 }
 ^
../src/raw.cc: In static member function 'static v8::Handle<v8::Value> raw::SocketWrap::Pause(const int&)':
../src/raw.cc:531:1: warning: control reaches end of non-void function [-Wreturn-type]
 }
 ^
../src/raw.cc: In static member function 'static v8::Handle<v8::Value> raw::SocketWrap::Recv(const int&)':
../src/raw.cc:609:1: warning: control reaches end of non-void function [-Wreturn-type]
 }
 ^
../src/raw.cc: In static member function 'static v8::Handle<v8::Value> raw::SocketWrap::Send(const int&)':
../src/raw.cc:692:1: warning: control reaches end of non-void function [-Wreturn-type]
 }
 ^
../src/raw.cc: In static member function 'static v8::Handle<v8::Value> raw::SocketWrap::SetOption(const int&)':
../src/raw.cc:767:1: warning: control reaches end of non-void function [-Wreturn-type]
 }
 ^
raw.target.mk:81: recipe for target 'Release/obj.target/raw/src/raw.o' failed
make: *** [Release/obj.target/raw/src/raw.o] Error 1
make: Leaving directory '/root/uptime/node_modules/net-ping/node_modules/raw-socket/build'
gyp ERR! build error 
ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack     at ChildProcess.onExit (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:269:23)
gyp ERR! stack     at ChildProcess.emit (events.js:110:17)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (child_process.js:1067:12)
gyp ERR! System Linux 3.18.10-2-ARCH
gyp ERR! command "node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /root/uptime/node_modules/net-ping/node_modules/raw-socket
gyp ERR! node -v v0.12.1
gyp ERR! node-gyp -v v1.0.3
gyp ERR! not ok 

> bson@0.1.8 install /root/uptime/node_modules/mongoose/node_modules/mongodb/node_modules/bson
> (node-gyp rebuild 2> builderror.log) || (exit 0)

make: Entering directory '/root/uptime/node_modules/mongoose/node_modules/mongodb/node_modules/bson/build'
  CXX(target) Release/obj.target/bson/ext/bson.o
bson.target.mk:79: recipe for target 'Release/obj.target/bson/ext/bson.o' failed
make: Leaving directory '/root/uptime/node_modules/mongoose/node_modules/mongodb/node_modules/bson/build'

> ws@0.4.32 install /root/uptime/node_modules/socket.io/node_modules/socket.io-client/node_modules/ws
> (node-gyp rebuild 2> builderror.log) || (exit 0)

make: Entering directory '/root/uptime/node_modules/socket.io/node_modules/socket.io-client/node_modules/ws/build'
  CXX(target) Release/obj.target/bufferutil/src/bufferutil.o
  SOLINK_MODULE(target) Release/obj.target/bufferutil.node
  SOLINK_MODULE(target) Release/obj.target/bufferutil.node: Finished
  COPY Release/bufferutil.node
  CXX(target) Release/obj.target/validation/src/validation.o
  SOLINK_MODULE(target) Release/obj.target/validation.node
  SOLINK_MODULE(target) Release/obj.target/validation.node: Finished
  COPY Release/validation.node
make: Leaving directory '/root/uptime/node_modules/socket.io/node_modules/socket.io-client/node_modules/ws/build'
npm ERR! Linux 3.18.10-2-ARCH
npm ERR! argv "/usr/bin/node" "/usr/bin/npm" "install" "--python=python2.7"
npm ERR! node v0.12.1
npm ERR! npm  v2.7.4
npm ERR! code ELIFECYCLE

npm ERR! raw-socket@1.2.2 install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the raw-socket@1.2.2 install script 'node-gyp rebuild'.
npm ERR! This is most likely a problem with the raw-socket package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node-gyp rebuild
npm ERR! You can get their info via:
npm ERR!     npm owner ls raw-socket
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     /root/uptime/npm-debug.log
fred-snyder commented 8 years ago

I think I have similar error. Is this because this Node.JS version is not compatible with uptime?

$ npm install

> raw-socket@1.4.0 install /home/sv1-admin/uptime/node_modules/raw-socket
> node-gyp rebuild

gyp ERR! build error
gyp ERR! stack Error: not found: make
gyp ERR! stack     at F (/usr/lib/node_modules/npm/node_modules/which/which.js:78:19)
gyp ERR! stack     at E (/usr/lib/node_modules/npm/node_modules/which/which.js:82:29)
gyp ERR! stack     at /usr/lib/node_modules/npm/node_modules/which/which.js:93:16
gyp ERR! stack     at FSReqWrap.oncomplete (fs.js:82:15)
gyp ERR! System Linux 3.19.0-47-generic
gyp ERR! command "/usr/bin/nodejs" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /home/sv1-admin/uptime/node_modules/raw-socket
gyp ERR! node -v v5.5.0
gyp ERR! node-gyp -v v3.0.3
gyp ERR! not ok
node-uptime@3.2.0 /home/sv1-admin/uptime
├─┬ express@3.2.0
│ ├── commander@0.6.1
│ └── mkdirp@0.3.5
└─┬ webpagetest@0.2.0
  └─┬ mocha@1.13.0
    ├── commander@0.6.1
    ├── diff@1.0.7
    ├─┬ glob@3.2.3
    │ ├── graceful-fs@2.0.3
    │ ├── inherits@2.0.1
    │ └─┬ minimatch@0.2.14
    │   ├── lru-cache@2.7.3
    │   └── sigmund@1.0.1
    ├── growl@1.7.0
    └── mkdirp@0.3.5

npm ERR! Linux 3.19.0-47-generic
npm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "install"
npm ERR! node v5.5.0
npm ERR! npm  v3.3.12
npm ERR! code ELIFECYCLE

npm ERR! raw-socket@1.4.0 install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the raw-socket@1.4.0 install script 'node-gyp rebuild'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the raw-socket package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node-gyp rebuild
npm ERR! You can get their info via:
npm ERR!     npm owner ls raw-socket
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     /home/sv1-admin/uptime/npm-debug.log
fred-snyder commented 8 years ago

I tried a lot of older versions. Down to 0.10.26 I tried both these dockers: https://github.com/ekalinin/docker-uptime https://github.com/techtraits/docker-uptime But every time it fails on the raw-socket I'm on Ubuntu 14.04

fred-snyder commented 8 years ago

https://github.com/gunmetal313-nodejs/uptime2

This works perfectly !!