kuno / GeoIP

GeoIP binding for nodejs(>=0.10) and iojs
GNU Lesser General Public License v2.1
414 stars 129 forks source link

OS X 10.11 Installation Issues #89

Open shanac opened 8 years ago

shanac commented 8 years ago

geoip@0.4.12 install /Users/ShanaC/hummingbird/node_modules/geoip node-gyp rebuild

CC(target) Release/obj.target/geoip/deps/geoip-api-c-1.5.2/libGeoIP/GeoIP.o ../deps/geoip-api-c-1.5.2/libGeoIP/GeoIP.c:1691:15: warning: comparison of integers of different signs: 'int' and 'unsigned int' [-Wsign-compare] if (seek_org == gi->databaseSegments[0])


../deps/geoip-api-c-1.5.2/libGeoIP/GeoIP.c:1743:16: warning: comparison of integers of different
      signs: 'int' and 'unsigned int' [-Wsign-compare]
  if (seek_org == gi->databaseSegments[0])
      ~~~~~~~~ ^  ~~~~~~~~~~~~~~~~~~~~~~~
../deps/geoip-api-c-1.5.2/libGeoIP/GeoIP.c:1821:20: warning: comparison of integers of different
      signs: 'int' and 'unsigned int' [-Wsign-compare]
          && target_value == _GeoIP_seek_record_gl(gi, left_seek - 1, &t) ) {
             ~~~~~~~~~~~~ ^  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../deps/geoip-api-c-1.5.2/libGeoIP/GeoIP.c:1830:20: warning: comparison of integers of different
      signs: 'int' and 'unsigned int' [-Wsign-compare]
          && target_value == _GeoIP_seek_record_gl(gi, right_seek + 1, &t) ) {
             ~~~~~~~~~~~~ ^  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
4 warnings generated.
  CC(target) Release/obj.target/geoip/deps/geoip-api-c-1.5.2/libGeoIP/GeoIPCity.o
  CC(target) Release/obj.target/geoip/deps/geoip-api-c-1.5.2/libGeoIP/GeoIPUpdate.o
../deps/geoip-api-c-1.5.2/libGeoIP/GeoIPUpdate.c:466:34: warning: comparison of integers of different
      signs: 'size_t' (aka 'unsigned long') and 'int' [-Wsign-compare]
                if ( fwrite(block,1,amt,gi_fh) != amt ){
                     ~~~~~~~~~~~~~~~~~~~~~~~~~ ^  ~~~
../deps/geoip-api-c-1.5.2/libGeoIP/GeoIPUpdate.c:909:12: warning: comparison of integers of different
      signs: 'int' and 'size_t' (aka 'unsigned long') [-Wsign-compare]
                if ( amt != fwrite(block,1,amt,gi_fh) ){
                     ~~~ ^  ~~~~~~~~~~~~~~~~~~~~~~~~~
2 warnings generated.
  CC(target) Release/obj.target/geoip/deps/geoip-api-c-1.5.2/libGeoIP/base64.o
  CC(target) Release/obj.target/geoip/deps/geoip-api-c-1.5.2/libGeoIP/md5.o
  CC(target) Release/obj.target/geoip/deps/geoip-api-c-1.5.2/libGeoIP/timeZone.o
  CC(target) Release/obj.target/geoip/deps/geoip-api-c-1.5.2/libGeoIP/regionName.o
  CC(target) Release/obj.target/geoip/deps/geoip-api-c-1.5.2/libGeoIP/GeoIP_deprecated.o
  LIBTOOL-STATIC Release/libgeoip.a
  CXX(target) Release/obj.target/geoip/src/global.o
In file included from ../src/global.cc:7:
In file included from ../src/global.h:10:
/Users/ShanaC/hummingbird/node_modules/nan/nan.h:303:13: error: no member named 'New' in 'v8::String'
    return  _NAN_ERROR(v8::Exception::Error, errmsg);
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/ShanaC/hummingbird/node_modules/nan/nan.h:294:50: note: expanded from macro '_NAN_ERROR'
# define _NAN_ERROR(fun, errmsg) fun(v8::String::New(errmsg))

```
                                 ~~~~~~~~~~~~^
```

/Users/ShanaC/hummingbird/node_modules/nan/nan.h:307:5: error: no member named 'ThrowException' in
      namespace 'v8'
    _NAN_THROW_ERROR(v8::Exception::Error, errmsg);
    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/ShanaC/hummingbird/node_modules/nan/nan.h:299:11: note: expanded from macro '_NAN_THROW_ERROR'
      v8::ThrowException(_NAN_ERROR(fun, errmsg));                             \
      ~~~~^
/Users/ShanaC/hummingbird/node_modules/nan/nan.h:307:5: error: no member named 'New' in 'v8::String'
    _NAN_THROW_ERROR(v8::Exception::Error, errmsg);
    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/ShanaC/hummingbird/node_modules/nan/nan.h:299:26: note: expanded from macro '_NAN_THROW_ERROR'
      v8::ThrowException(_NAN_ERROR(fun, errmsg));                             \
                         ^~~~~~~~~~~~~~~~~~~~~~~
/Users/ShanaC/hummingbird/node_modules/nan/nan.h:294:50: note: expanded from macro '_NAN_ERROR'
# define _NAN_ERROR(fun, errmsg) fun(v8::String::New(errmsg))

```
                                 ~~~~~~~~~~~~^
```

/Users/ShanaC/hummingbird/node_modules/nan/nan.h:312:9: error: no type named 'ThrowException' in
      namespace 'v8'
    v8::ThrowException(error);
    ~~~~^
/Users/ShanaC/hummingbird/node_modules/nan/nan.h:319:53: error: no member named 'New' in 'v8::String';
      did you mean 'v8::TypeSwitch::New'?
    v8::Localv8::Value err = v8::Exception::Error(v8::String::New(msg));
                                                    ^~~~~~~~~~~~~~~
                                                    v8::TypeSwitch::New
/Users/ShanaC/.node-gyp/5.8.0/include/node/v8.h:4704:28: note: 'v8::TypeSwitch::New' declared here
  static Local<TypeSwitch> New(Local<FunctionTemplate> type);
                           ^
In file included from ../src/global.cc:7:
In file included from ../src/global.h:10:
/Users/ShanaC/hummingbird/node_modules/nan/nan.h:319:69: error: calling a private constructor of class
      'v8::Localv8::FunctionTemplate'
    v8::Localv8::Value err = v8::Exception::Error(v8::String::New(msg));
                                                                    ^
/Users/ShanaC/.node-gyp/5.8.0/include/node/v8.h:326:13: note: declared private here
  V8_INLINE Local(S\* that)
            ^
In file included from ../src/global.cc:7:
In file included from ../src/global.h:10:
/Users/ShanaC/hummingbird/node_modules/nan/nan.h:321:65: error: too few arguments to function call,
      expected 2, have 1
    obj->Set(v8::String::New("code"), v8::Int32::New(errorNumber));
                                      ~~~~~~~~~~~~~~            ^
/Users/ShanaC/.node-gyp/5.8.0/include/node/v8.h:2496:3: note: 'New' declared here
  static Local<Integer> New(Isolate\* isolate, int32_t value);
  ^
In file included from ../src/global.cc:7:
In file included from ../src/global.h:10:
/Users/ShanaC/hummingbird/node_modules/nan/nan.h:321:26: error: no member named 'New' in 'v8::String'
    obj->Set(v8::String::New("code"), v8::Int32::New(errorNumber));
             ~~~~~~~~~~~~^
/Users/ShanaC/hummingbird/node_modules/nan/nan.h:333:12: error: no member named 'New' in 'v8::String'
    return _NAN_ERROR(v8::Exception::TypeError, errmsg);
           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/ShanaC/hummingbird/node_modules/nan/nan.h:294:50: note: expanded from macro '_NAN_ERROR'
# define _NAN_ERROR(fun, errmsg) fun(v8::String::New(errmsg))

```
                                 ~~~~~~~~~~~~^
```

/Users/ShanaC/hummingbird/node_modules/nan/nan.h:337:5: error: no member named 'ThrowException' in
      namespace 'v8'
    _NAN_THROW_ERROR(v8::Exception::TypeError, errmsg);
    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/ShanaC/hummingbird/node_modules/nan/nan.h:299:11: note: expanded from macro '_NAN_THROW_ERROR'
      v8::ThrowException(_NAN_ERROR(fun, errmsg));                             \
      ~~~~^
/Users/ShanaC/hummingbird/node_modules/nan/nan.h:337:5: error: no member named 'New' in 'v8::String'
    _NAN_THROW_ERROR(v8::Exception::TypeError, errmsg);
    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/ShanaC/hummingbird/node_modules/nan/nan.h:299:26: note: expanded from macro '_NAN_THROW_ERROR'
      v8::ThrowException(_NAN_ERROR(fun, errmsg));                             \
                         ^~~~~~~~~~~~~~~~~~~~~~~
/Users/ShanaC/hummingbird/node_modules/nan/nan.h:294:50: note: expanded from macro '_NAN_ERROR'
# define _NAN_ERROR(fun, errmsg) fun(v8::String::New(errmsg))

```
                                 ~~~~~~~~~~~~^
```

/Users/ShanaC/hummingbird/node_modules/nan/nan.h:341:12: error: no member named 'New' in 'v8::String'
    return _NAN_ERROR(v8::Exception::RangeError, errmsg);
           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/ShanaC/hummingbird/node_modules/nan/nan.h:294:50: note: expanded from macro '_NAN_ERROR'
# define _NAN_ERROR(fun, errmsg) fun(v8::String::New(errmsg))

```
                                 ~~~~~~~~~~~~^
```

/Users/ShanaC/hummingbird/node_modules/nan/nan.h:345:5: error: no member named 'ThrowException' in
      namespace 'v8'
    _NAN_THROW_ERROR(v8::Exception::RangeError, errmsg);
    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/ShanaC/hummingbird/node_modules/nan/nan.h:299:11: note: expanded from macro '_NAN_THROW_ERROR'
      v8::ThrowException(_NAN_ERROR(fun, errmsg));                             \
      ~~~~^
/Users/ShanaC/hummingbird/node_modules/nan/nan.h:345:5: error: no member named 'New' in 'v8::String'
    _NAN_THROW_ERROR(v8::Exception::RangeError, errmsg);
    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/ShanaC/hummingbird/node_modules/nan/nan.h:299:26: note: expanded from macro '_NAN_THROW_ERROR'
      v8::ThrowException(_NAN_ERROR(fun, errmsg));                             \
                         ^~~~~~~~~~~~~~~~~~~~~~~
/Users/ShanaC/hummingbird/node_modules/nan/nan.h:294:50: note: expanded from macro '_NAN_ERROR'
# define _NAN_ERROR(fun, errmsg) fun(v8::String::New(errmsg))

```
                                 ~~~~~~~~~~~~^
```

/Users/ShanaC/hummingbird/node_modules/nan/nan.h:364:13: error: no member named 'smalloc' in namespace
      'node'
    , node::smalloc::FreeCallback callback
      ~~~~~~^
/Users/ShanaC/hummingbird/node_modules/nan/nan.h:115:71: note: expanded from macro 'NAN_INLINE'
# define NAN_INLINE(declarator) inline **attribute**((always_inline)) declarator

```
                                                                  ^~~~~~~~~~
```

/Users/ShanaC/hummingbird/node_modules/nan/nan.h:374:12: error: no matching function for call to 'New'
    return node::Buffer::New(data, size);
           ^~~~~~~~~~~~~~~~~
/Users/ShanaC/.node-gyp/5.8.0/include/node/node_buffer.h:28:40: note: candidate function not viable:
      no known conversion from 'char _' to 'v8::Isolate *' for 1st argument
NODE_EXTERN v8::MaybeLocalv8::Object New(v8::Isolate_ isolate, size_t length);
                                       ^
/Users/ShanaC/.node-gyp/5.8.0/include/node/node_buffer.h:31:40: note: candidate function not viable:
      no known conversion from 'char _' to 'v8::Isolate *' for 1st argument
NODE_EXTERN v8::MaybeLocalv8::Object New(v8::Isolate_ isolate,
                                       ^
/Users/ShanaC/.node-gyp/5.8.0/include/node/node_buffer.h:43:40: note: candidate function not viable:
      requires 3 arguments, but 2 were provided
NODE_EXTERN v8::MaybeLocalv8::Object New(v8::Isolate\* isolate,
                                       ^
/Users/ShanaC/.node-gyp/5.8.0/include/node/node_buffer.h:36:40: note: candidate function not viable:
      requires 5 arguments, but 2 were provided
NODE_EXTERN v8::MaybeLocalv8::Object New(v8::Isolate\* isolate,
                                       ^
In file included from ../src/global.cc:7:
In file included from ../src/global.h:10:
/Users/ShanaC/hummingbird/node_modules/nan/nan.h:378:12: error: no matching function for call to 'New'
    return node::Buffer::New(size);
           ^~~~~~~~~~~~~~~~~
/Users/ShanaC/.node-gyp/5.8.0/include/node/node_buffer.h:28:40: note: candidate function not viable:
      requires 2 arguments, but 1 was provided
NODE_EXTERN v8::MaybeLocalv8::Object New(v8::Isolate\* isolate, size_t length);
                                       ^
/Users/ShanaC/.node-gyp/5.8.0/include/node/node_buffer.h:31:40: note: candidate function not viable:
      requires at least 2 arguments, but 1 was provided
NODE_EXTERN v8::MaybeLocalv8::Object New(v8::Isolate\* isolate,
                                       ^
/Users/ShanaC/.node-gyp/5.8.0/include/node/node_buffer.h:43:40: note: candidate function not viable:
      requires 3 arguments, but 1 was provided
NODE_EXTERN v8::MaybeLocalv8::Object New(v8::Isolate\* isolate,
                                       ^
/Users/ShanaC/.node-gyp/5.8.0/include/node/node_buffer.h:36:40: note: candidate function not viable:
      requires 5 arguments, but 1 was provided
NODE_EXTERN v8::MaybeLocalv8::Object New(v8::Isolate\* isolate,
                                       ^
In file included from ../src/global.cc:7:
In file included from ../src/global.h:10:
/Users/ShanaC/hummingbird/node_modules/nan/nan.h:385:26: error: no member named 'Use' in namespace
      'node::Buffer'
    return node::Buffer::Use(data, size);
           ~~~~~~~~~~~~~~^
/Users/ShanaC/hummingbird/node_modules/nan/nan.h:647:49: error: too few arguments to function call,
      single argument 'isolate' was not specified
    v8::Localv8::Object obj = v8::Object::New();
                                ~~~~~~~~~~~~~~~ ^
/Users/ShanaC/.node-gyp/5.8.0/include/node/v8.h:2930:3: note: 'New' declared here
  static Local<Object> New(Isolate\* isolate);
  ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
make: **\* [Release/obj.target/geoip/src/global.o] Error 1
gyp ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack     at ChildProcess.onExit (/usr/local/opt/nvm/versions/node/v5.8.0/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:276:23)
gyp ERR! stack     at emitTwo (events.js:100:13)
gyp ERR! stack     at ChildProcess.emit (events.js:185:7)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:204:12)
gyp ERR! System Darwin 15.3.0
gyp ERR! command "/usr/local/opt/nvm/versions/node/v5.8.0/bin/node" "/usr/local/opt/nvm/versions/node/v5.8.0/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /Users/ShanaC/hummingbird/node_modules/geoip
gyp ERR! node -v v5.8.0
gyp ERR! node-gyp -v v3.2.1
gyp ERR! not ok
npm WARN hummingbird@0.2.0-17 No license field.
npm ERR! Darwin 15.3.0
npm ERR! argv "/usr/local/opt/nvm/versions/node/v5.8.0/bin/node" "/usr/local/opt/nvm/versions/node/v5.8.0/bin/npm" "install"
npm ERR! node v5.8.0
npm ERR! npm  v3.7.3
npm ERR! code ELIFECYCLE

npm ERR! geoip@0.4.12 install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the geoip@0.4.12 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 geoip 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 information on how to open an issue for this project with:
npm ERR!     npm bugs geoip
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!     npm owner ls geoip
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     /Users/ShanaC/hummingbird/npm-debug.log
Pianoforte:hummingbird ShanaC$

Session Restored

Last login: Wed Apr 13 23:47:38 on ttys000
Pianoforte:hummingbird ShanaC$ npm install

> geoip@0.4.12 install /Users/ShanaC/hummingbird/node_modules/geoip
> node-gyp rebuild

  CC(target) Release/obj.target/geoip/deps/geoip-api-c-1.5.2/libGeoIP/GeoIP.o
../deps/geoip-api-c-1.5.2/libGeoIP/GeoIP.c:1691:15: warning: comparison of integers of different signs: 'int' and
      'unsigned int' [-Wsign-compare]
        if (seek_org == gi->databaseSegments[0])
            ~~~~~~~~ ^  ~~~~~~~~~~~~~~~~~~~~~~~
../deps/geoip-api-c-1.5.2/libGeoIP/GeoIP.c:1743:16: warning: comparison of integers of different signs: 'int' and
      'unsigned int' [-Wsign-compare]
  if (seek_org == gi->databaseSegments[0])
      ~~~~~~~~ ^  ~~~~~~~~~~~~~~~~~~~~~~~
../deps/geoip-api-c-1.5.2/libGeoIP/GeoIP.c:1821:20: warning: comparison of integers of different signs: 'int' and
      'unsigned int' [-Wsign-compare]
          && target_value == _GeoIP_seek_record_gl(gi, left_seek - 1, &t) ) {
             ~~~~~~~~~~~~ ^  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../deps/geoip-api-c-1.5.2/libGeoIP/GeoIP.c:1830:20: warning: comparison of integers of different signs: 'int' and
      'unsigned int' [-Wsign-compare]
          && target_value == _GeoIP_seek_record_gl(gi, right_seek + 1, &t) ) {
             ~~~~~~~~~~~~ ^  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
4 warnings generated.
  CC(target) Release/obj.target/geoip/deps/geoip-api-c-1.5.2/libGeoIP/GeoIPCity.o
  CC(target) Release/obj.target/geoip/deps/geoip-api-c-1.5.2/libGeoIP/GeoIPUpdate.o
../deps/geoip-api-c-1.5.2/libGeoIP/GeoIPUpdate.c:466:34: warning: comparison of integers of different signs:
      'size_t' (aka 'unsigned long') and 'int' [-Wsign-compare]
                if ( fwrite(block,1,amt,gi_fh) != amt ){
                     ~~~~~~~~~~~~~~~~~~~~~~~~~ ^  ~~~
../deps/geoip-api-c-1.5.2/libGeoIP/GeoIPUpdate.c:909:12: warning: comparison of integers of different signs: 'int'
      and 'size_t' (aka 'unsigned long') [-Wsign-compare]
                if ( amt != fwrite(block,1,amt,gi_fh) ){
                     ~~~ ^  ~~~~~~~~~~~~~~~~~~~~~~~~~
2 warnings generated.
  CC(target) Release/obj.target/geoip/deps/geoip-api-c-1.5.2/libGeoIP/base64.o
  CC(target) Release/obj.target/geoip/deps/geoip-api-c-1.5.2/libGeoIP/md5.o
  CC(target) Release/obj.target/geoip/deps/geoip-api-c-1.5.2/libGeoIP/timeZone.o
  CC(target) Release/obj.target/geoip/deps/geoip-api-c-1.5.2/libGeoIP/regionName.o
  CC(target) Release/obj.target/geoip/deps/geoip-api-c-1.5.2/libGeoIP/GeoIP_deprecated.o
  LIBTOOL-STATIC Release/libgeoip.a
  CXX(target) Release/obj.target/geoip/src/global.o
In file included from ../src/global.cc:7:
In file included from ../src/global.h:10:
/Users/ShanaC/hummingbird/node_modules/nan/nan.h:303:13: error: no member named 'New' in 'v8::String'
    return  _NAN_ERROR(v8::Exception::Error, errmsg);
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/ShanaC/hummingbird/node_modules/nan/nan.h:294:50: note: expanded from macro '_NAN_ERROR'
# define _NAN_ERROR(fun, errmsg) fun(v8::String::New(errmsg))

```
                                 ~~~~~~~~~~~~^
```

/Users/ShanaC/hummingbird/node_modules/nan/nan.h:307:5: error: no member named 'ThrowException' in namespace 'v8'
    _NAN_THROW_ERROR(v8::Exception::Error, errmsg);
    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/ShanaC/hummingbird/node_modules/nan/nan.h:299:11: note: expanded from macro '_NAN_THROW_ERROR'
      v8::ThrowException(_NAN_ERROR(fun, errmsg));                             \
      ~~~~^
/Users/ShanaC/hummingbird/node_modules/nan/nan.h:307:5: error: no member named 'New' in 'v8::String'
    _NAN_THROW_ERROR(v8::Exception::Error, errmsg);
    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/ShanaC/hummingbird/node_modules/nan/nan.h:299:26: note: expanded from macro '_NAN_THROW_ERROR'
      v8::ThrowException(_NAN_ERROR(fun, errmsg));                             \
                         ^~~~~~~~~~~~~~~~~~~~~~~
/Users/ShanaC/hummingbird/node_modules/nan/nan.h:294:50: note: expanded from macro '_NAN_ERROR'
# define _NAN_ERROR(fun, errmsg) fun(v8::String::New(errmsg))

```
                                 ~~~~~~~~~~~~^
```

/Users/ShanaC/hummingbird/node_modules/nan/nan.h:312:9: error: no type named 'ThrowException' in namespace 'v8'
    v8::ThrowException(error);
    ~~~~^
/Users/ShanaC/hummingbird/node_modules/nan/nan.h:319:53: error: no member named 'New' in 'v8::String'; did you mean
      'v8::TypeSwitch::New'?
    v8::Localv8::Value err = v8::Exception::Error(v8::String::New(msg));
                                                    ^~~~~~~~~~~~~~~
                                                    v8::TypeSwitch::New
/Users/ShanaC/.node-gyp/5.8.0/include/node/v8.h:4704:28: note: 'v8::TypeSwitch::New' declared here
  static Local<TypeSwitch> New(Local<FunctionTemplate> type);
                           ^
In file included from ../src/global.cc:7:
In file included from ../src/global.h:10:
/Users/ShanaC/hummingbird/node_modules/nan/nan.h:319:69: error: calling a private constructor of class
      'v8::Localv8::FunctionTemplate'
    v8::Localv8::Value err = v8::Exception::Error(v8::String::New(msg));
                                                                    ^
/Users/ShanaC/.node-gyp/5.8.0/include/node/v8.h:326:13: note: declared private here
  V8_INLINE Local(S\* that)
            ^
In file included from ../src/global.cc:7:
In file included from ../src/global.h:10:
/Users/ShanaC/hummingbird/node_modules/nan/nan.h:321:65: error: too few arguments to function call, expected 2, have
      1
    obj->Set(v8::String::New("code"), v8::Int32::New(errorNumber));
                                      ~~~~~~~~~~~~~~            ^
/Users/ShanaC/.node-gyp/5.8.0/include/node/v8.h:2496:3: note: 'New' declared here
  static Local<Integer> New(Isolate\* isolate, int32_t value);
  ^
In file included from ../src/global.cc:7:
In file included from ../src/global.h:10:
/Users/ShanaC/hummingbird/node_modules/nan/nan.h:321:26: error: no member named 'New' in 'v8::String'
    obj->Set(v8::String::New("code"), v8::Int32::New(errorNumber));
             ~~~~~~~~~~~~^
/Users/ShanaC/hummingbird/node_modules/nan/nan.h:333:12: error: no member named 'New' in 'v8::String'
    return _NAN_ERROR(v8::Exception::TypeError, errmsg);
           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/ShanaC/hummingbird/node_modules/nan/nan.h:294:50: note: expanded from macro '_NAN_ERROR'
# define _NAN_ERROR(fun, errmsg) fun(v8::String::New(errmsg))

```
                                 ~~~~~~~~~~~~^
```

/Users/ShanaC/hummingbird/node_modules/nan/nan.h:337:5: error: no member named 'ThrowException' in namespace 'v8'
    _NAN_THROW_ERROR(v8::Exception::TypeError, errmsg);
    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/ShanaC/hummingbird/node_modules/nan/nan.h:299:11: note: expanded from macro '_NAN_THROW_ERROR'
      v8::ThrowException(_NAN_ERROR(fun, errmsg));                             \
      ~~~~^
/Users/ShanaC/hummingbird/node_modules/nan/nan.h:337:5: error: no member named 'New' in 'v8::String'
    _NAN_THROW_ERROR(v8::Exception::TypeError, errmsg);
    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/ShanaC/hummingbird/node_modules/nan/nan.h:299:26: note: expanded from macro '_NAN_THROW_ERROR'
      v8::ThrowException(_NAN_ERROR(fun, errmsg));                             \
                         ^~~~~~~~~~~~~~~~~~~~~~~
/Users/ShanaC/hummingbird/node_modules/nan/nan.h:294:50: note: expanded from macro '_NAN_ERROR'
# define _NAN_ERROR(fun, errmsg) fun(v8::String::New(errmsg))

```
                                 ~~~~~~~~~~~~^
```

/Users/ShanaC/hummingbird/node_modules/nan/nan.h:341:12: error: no member named 'New' in 'v8::String'
    return _NAN_ERROR(v8::Exception::RangeError, errmsg);
           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/ShanaC/hummingbird/node_modules/nan/nan.h:294:50: note: expanded from macro '_NAN_ERROR'
# define _NAN_ERROR(fun, errmsg) fun(v8::String::New(errmsg))

```
                                 ~~~~~~~~~~~~^
```

/Users/ShanaC/hummingbird/node_modules/nan/nan.h:345:5: error: no member named 'ThrowException' in namespace 'v8'
    _NAN_THROW_ERROR(v8::Exception::RangeError, errmsg);
    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/ShanaC/hummingbird/node_modules/nan/nan.h:299:11: note: expanded from macro '_NAN_THROW_ERROR'
      v8::ThrowException(_NAN_ERROR(fun, errmsg));                             \
      ~~~~^
/Users/ShanaC/hummingbird/node_modules/nan/nan.h:345:5: error: no member named 'New' in 'v8::String'
    _NAN_THROW_ERROR(v8::Exception::RangeError, errmsg);
    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/ShanaC/hummingbird/node_modules/nan/nan.h:299:26: note: expanded from macro '_NAN_THROW_ERROR'
      v8::ThrowException(_NAN_ERROR(fun, errmsg));                             \
                         ^~~~~~~~~~~~~~~~~~~~~~~
/Users/ShanaC/hummingbird/node_modules/nan/nan.h:294:50: note: expanded from macro '_NAN_ERROR'
# define _NAN_ERROR(fun, errmsg) fun(v8::String::New(errmsg))

```
                                 ~~~~~~~~~~~~^
```

/Users/ShanaC/hummingbird/node_modules/nan/nan.h:364:13: error: no member named 'smalloc' in namespace 'node'
    , node::smalloc::FreeCallback callback
      ~~~~~~^
/Users/ShanaC/hummingbird/node_modules/nan/nan.h:115:71: note: expanded from macro 'NAN_INLINE'
# define NAN_INLINE(declarator) inline **attribute**((always_inline)) declarator

```
                                                                  ^~~~~~~~~~
```

/Users/ShanaC/hummingbird/node_modules/nan/nan.h:374:12: error: no matching function for call to 'New'
    return node::Buffer::New(data, size);
           ^~~~~~~~~~~~~~~~~
/Users/ShanaC/.node-gyp/5.8.0/include/node/node_buffer.h:28:40: note: candidate function not viable: no known
      conversion from 'char _' to 'v8::Isolate *' for 1st argument
NODE_EXTERN v8::MaybeLocalv8::Object New(v8::Isolate_ isolate, size_t length);
                                       ^
/Users/ShanaC/.node-gyp/5.8.0/include/node/node_buffer.h:31:40: note: candidate function not viable: no known
      conversion from 'char _' to 'v8::Isolate *' for 1st argument
NODE_EXTERN v8::MaybeLocalv8::Object New(v8::Isolate_ isolate,
                                       ^
/Users/ShanaC/.node-gyp/5.8.0/include/node/node_buffer.h:43:40: note: candidate function not viable: requires 3
      arguments, but 2 were provided
NODE_EXTERN v8::MaybeLocalv8::Object New(v8::Isolate\* isolate,
                                       ^
/Users/ShanaC/.node-gyp/5.8.0/include/node/node_buffer.h:36:40: note: candidate function not viable: requires 5
      arguments, but 2 were provided
NODE_EXTERN v8::MaybeLocalv8::Object New(v8::Isolate\* isolate,
                                       ^
In file included from ../src/global.cc:7:
In file included from ../src/global.h:10:
/Users/ShanaC/hummingbird/node_modules/nan/nan.h:378:12: error: no matching function for call to 'New'
    return node::Buffer::New(size);
           ^~~~~~~~~~~~~~~~~
/Users/ShanaC/.node-gyp/5.8.0/include/node/node_buffer.h:28:40: note: candidate function not viable: requires 2
      arguments, but 1 was provided
NODE_EXTERN v8::MaybeLocalv8::Object New(v8::Isolate\* isolate, size_t length);
                                       ^
/Users/ShanaC/.node-gyp/5.8.0/include/node/node_buffer.h:31:40: note: candidate function not viable: requires at
      least 2 arguments, but 1 was provided
NODE_EXTERN v8::MaybeLocalv8::Object New(v8::Isolate\* isolate,
                                       ^
/Users/ShanaC/.node-gyp/5.8.0/include/node/node_buffer.h:43:40: note: candidate function not viable: requires 3
      arguments, but 1 was provided
NODE_EXTERN v8::MaybeLocalv8::Object New(v8::Isolate\* isolate,
                                       ^
/Users/ShanaC/.node-gyp/5.8.0/include/node/node_buffer.h:36:40: note: candidate function not viable: requires 5
      arguments, but 1 was provided
NODE_EXTERN v8::MaybeLocalv8::Object New(v8::Isolate\* isolate,
                                       ^
In file included from ../src/global.cc:7:
In file included from ../src/global.h:10:
/Users/ShanaC/hummingbird/node_modules/nan/nan.h:385:26: error: no member named 'Use' in namespace 'node::Buffer'
    return node::Buffer::Use(data, size);
           ~~~~~~~~~~~~~~^
/Users/ShanaC/hummingbird/node_modules/nan/nan.h:647:49: error: too few arguments to function call, single argument
      'isolate' was not specified
    v8::Localv8::Object obj = v8::Object::New();
                                ~~~~~~~~~~~~~~~ ^
/Users/ShanaC/.node-gyp/5.8.0/include/node/v8.h:2930:3: note: 'New' declared here
  static Local<Object> New(Isolate\* isolate);
  ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
make: **\* [Release/obj.target/geoip/src/global.o] Error 1
gyp ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack     at ChildProcess.onExit (/usr/local/opt/nvm/versions/node/v5.8.0/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:276:23)
gyp ERR! stack     at emitTwo (events.js:100:13)
gyp ERR! stack     at ChildProcess.emit (events.js:185:7)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:204:12)
gyp ERR! System Darwin 15.4.0
gyp ERR! command "/usr/local/opt/nvm/versions/node/v5.8.0/bin/node" "/usr/local/opt/nvm/versions/node/v5.8.0/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /Users/ShanaC/hummingbird/node_modules/geoip
gyp ERR! node -v v5.8.0
gyp ERR! node-gyp -v v3.2.1
gyp ERR! not ok
npm WARN hummingbird@0.2.0-17 No license field.
npm ERR! Darwin 15.4.0
npm ERR! argv "/usr/local/opt/nvm/versions/node/v5.8.0/bin/node" "/usr/local/opt/nvm/versions/node/v5.8.0/bin/npm" "install"
npm ERR! node v5.8.0
npm ERR! npm  v3.7.3
npm ERR! code ELIFECYCLE

npm ERR! geoip@0.4.12 install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the geoip@0.4.12 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 geoip 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 information on how to open an issue for this project with:
npm ERR!     npm bugs geoip
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!     npm owner ls geoip
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     /Users/ShanaC/hummingbird/npm-debug.log

Ideas as to why?
jasonmadigan commented 8 years ago

Seeing something similar on Node 4.4.3:

npm install geoip@0.6.1 --save
npm WARN package.json component@1.3.0-BUILD-NUMBER No license field.
npm WARN deprecated pangyp@2.3.3: use node-gyp@3+ instead
npm WARN deprecated graceful-fs@3.0.8: graceful-fs version 3 and before will fail on newer node releases. Please update to graceful-fs@^4.0.0 as soon as possible.
-
> geoip@0.6.1 install /mnt/src/component/component/node_modules/geoip
> node-gyp rebuild

gyp: /home/hadmin/.node-gyp/4.4.3/common.gypi not found (cwd: /mnt/src/component/component/node_modules/geoip) while reading includes of binding.gyp while trying to load binding.gyp
gyp ERR! configure error
gyp ERR! stack Error: `gyp` failed with exit code: 1
gyp ERR! stack     at ChildProcess.onCpExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:357:16)
gyp ERR! stack     at emitTwo (events.js:87:13)
gyp ERR! stack     at ChildProcess.emit (events.js:172:7)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:200:12)
gyp ERR! System Linux 3.2.0-23-generic
gyp ERR! command "/usr/local/nodejs-binary-4.4.3/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /mnt/src/component/component/node_modules/geoip
gyp ERR! node -v v4.4.3
gyp ERR! node-gyp -v v2.0.2
gyp ERR! not ok
npm ERR! Linux 3.2.0-23-generic
npm ERR! argv "/usr/local/nodejs-binary-4.4.3/bin/node" "/usr/local/bin/npm" "install" "geoip@0.6.1" "--save"
npm ERR! node v4.4.3
npm ERR! npm  v2.13.5
npm ERR! code ELIFECYCLE

npm ERR! geoip@0.6.1 install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the geoip@0.6.1 install script 'node-gyp rebuild'.
npm ERR! This is most likely a problem with the geoip 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 geoip
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
frranck commented 8 years ago

I have node v6.2.1 and can't compile either :(