gaze icon indicating copy to clipboard operation
gaze copied to clipboard

gaze doesn't build on mac os x (v 10.9.3) and XCode version 5.1.1

Open pr0ton opened this issue 10 years ago • 4 comments

npm http 304 https://registry.npmjs.org/inherits

> [email protected] install /Users/red2/workspace/redacted/node_modules/gaze
> node-gyp rebuild

  CXX(target) Release/obj.target/pathwatcher/src/main.o
  CXX(target) Release/obj.target/pathwatcher/src/common.o
  CXX(target) Release/obj.target/pathwatcher/src/handle_map.o
../src/handle_map.cc:41:3: warning: 'NanDispose' is deprecated [-Wdeprecated-declarations]
  NanDispose(iter->second); // Deprecated, use NanDisposePersistent when v0.12 lands
  ^
../node_modules/nan/nan.h:612:48: note: 'NanDispose' declared here
  template<class T> static NAN_DEPRECATED(void NanDispose(
                                               ^
../node_modules/nan/nan.h:149:65: note: expanded from macro 'NAN_DEPRECATED'
# define NAN_DEPRECATED(declarator) __attribute__((deprecated)) declarator
                                                                ^
../src/handle_map.cc:48:5: warning: 'NanDispose' is deprecated [-Wdeprecated-declarations]
    NanDispose(iter->second); // Deprecated, use NanDisposePersistent when v0.12 lands
    ^
../node_modules/nan/nan.h:612:48: note: 'NanDispose' declared here
  template<class T> static NAN_DEPRECATED(void NanDispose(
                                               ^
../node_modules/nan/nan.h:149:65: note: expanded from macro 'NAN_DEPRECATED'
# define NAN_DEPRECATED(declarator) __attribute__((deprecated)) declarator
                                                                ^
2 warnings generated.
  CXX(target) Release/obj.target/pathwatcher/src/pathwatcher_mac.o
In file included from ../src/pathwatcher_mac.mm:30:
In file included from ../src/common.h:26:
In file included from ../node_modules/nan/nan.h:133:
In file included from /Users/red2/.node-gyp/0.8.8/deps/uv/include/uv.h:61:
In file included from /Users/red2/.node-gyp/0.8.8/deps/uv/include/uv-private/uv-unix.h:27:
/Users/red2/.node-gyp/0.8.8/deps/uv/include/uv-private/ev.h:229:3: error: expected '}'
  EV_ERROR    = (-2147483647 - 1) /* sent when an error occurs */
  ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/usr/include/sys/event.h:144:18: note: expanded from macro 'EV_ERROR'
#define EV_ERROR        0x4000          /* error, data contains errno */
                        ^
/Users/red2/.node-gyp/0.8.8/deps/uv/include/uv-private/ev.h:205:6: note: to match this '{'
enum {
     ^
1 error generated.
make: *** [Release/obj.target/pathwatcher/src/pathwatcher_mac.o] Error 1
gyp ERR! build error 
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack     at ChildProcess.onExit (/opt/foobar/nvm/v0.8.8/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:267:23)
gyp ERR! stack     at ChildProcess.EventEmitter.emit (events.js:91:17)
gyp ERR! stack     at Process._handle.onexit (child_process.js:674:10)
gyp ERR! System Darwin 13.2.0
gyp ERR! command "node" "/opt/foobar/nvm/v0.8.8/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /Users/red2/workspace/redacted/node_modules/gaze
gyp ERR! node -v v0.8.8
gyp ERR! node-gyp -v v0.13.0
gyp ERR! not ok 
npm http GET https://registry.npmjs.org/esutils
npm http GET https://registry.npmjs.org/source-map
npm http 304 https://registry.npmjs.org/esutils
npm http GET https://registry.npmjs.org/nopt
npm http GET https://registry.npmjs.org/mkdirp
npm http 304 https://registry.npmjs.org/source-map
npm WARN engine [email protected]: wanted: {"node":">=0.10.0"} (current: {"node":"v0.8.8","npm":"1.4.10"})
npm http 304 https://registry.npmjs.org/nopt
npm http 304 https://registry.npmjs.org/mkdirp
npm http GET https://registry.npmjs.org/abbrev
npm http GET https://registry.npmjs.org/amdefine
npm http 304 https://registry.npmjs.org/abbrev
npm http 304 https://registry.npmjs.org/amdefine
npm ERR! [email protected] install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the [email protected] install script.
npm ERR! This is most likely a problem with the gaze 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 gaze
npm ERR! There is likely additional logging output above.

npm ERR! System Darwin 13.2.0
npm ERR! command "node" "/opt/foobar/nvm/v0.8.8/bin/npm" "install"
npm ERR! cwd /Users/red2/workspace/redacted
npm ERR! node -v v0.8.8
npm ERR! npm -v 1.4.10
npm ERR! code ELIFECYCLE
npm ERR! 
npm ERR! Additional logging details can be found in:
npm ERR!     /Users/red2/workspace/redacted/npm-debug.log
npm ERR! not ok code 0

pr0ton avatar May 21 '14 04:05 pr0ton

Node v0.8.8 is pretty old. Are you able to upgrade it?

shama avatar May 21 '14 05:05 shama

I see similar warnings/errors with Node v0.10.26, and have issues trying to use gaze 0.6.4

> node-gyp rebuild

  CXX(target) Release/obj.target/pathwatcher/src/main.o
  CXX(target) Release/obj.target/pathwatcher/src/common.o
  CXX(target) Release/obj.target/pathwatcher/src/handle_map.o
../src/handle_map.cc:41:3: warning: 'NanDispose' is deprecated [-Wdeprecated-declarations]
  NanDispose(iter->second); // Deprecated, use NanDisposePersistent when v0.12 lands
  ^
../node_modules/nan/nan.h:612:48: note: 'NanDispose' declared here
  template<class T> static NAN_DEPRECATED(void NanDispose(
                                               ^
../node_modules/nan/nan.h:149:65: note: expanded from macro 'NAN_DEPRECATED'
# define NAN_DEPRECATED(declarator) __attribute__((deprecated)) declarator
                                                                ^
../src/handle_map.cc:48:5: warning: 'NanDispose' is deprecated [-Wdeprecated-declarations]
    NanDispose(iter->second); // Deprecated, use NanDisposePersistent when v0.12 lands
    ^
../node_modules/nan/nan.h:612:48: note: 'NanDispose' declared here
  template<class T> static NAN_DEPRECATED(void NanDispose(
                                               ^
../node_modules/nan/nan.h:149:65: note: expanded from macro 'NAN_DEPRECATED'
# define NAN_DEPRECATED(declarator) __attribute__((deprecated)) declarator
                                                                ^
2 warnings generated.
  CXX(target) Release/obj.target/pathwatcher/src/pathwatcher_mac.o
  SOLINK_MODULE(target) Release/pathwatcher.node
  SOLINK_MODULE(target) Release/pathwatcher.node: Finished
[email protected] node_modules/gaze
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
└── [email protected] ([email protected], [email protected], [email protected])

bclinkinbeard avatar Jun 03 '14 02:06 bclinkinbeard

The 'NanDispose' is deprecated warnings come from NanDispose being renamed to NanDisposePersistent here: https://github.com/rvagg/nan/issues/54

They are safe to ignore and I haven't updated yet because I want to have node v0.11 compatibility. Other than that, any other issues @bclinkinbeard?

shama avatar Jun 03 '14 06:06 shama

I realize this is not terribly helpful without a repro example, but I was having issues getting notified of changes to files added to the watch list after initial creation in 0.6.4. I could confirm this.add(filename) was being called in my code, but the existing 'changed' listener was not called when those files were edited.

bclinkinbeard avatar Jun 03 '14 12:06 bclinkinbeard