Closed noritama closed 11 years ago
I hit this as well using node 0.10.5.
I got this error too.
1.1.5 should build now. Please pull from NPM (or github) and report back if there are any issues.
The problem is resolved by 1.1.5 (and node v0.10.5)!!
Thank you so much for your help.
$ node ~/.nvm/v0.10.1/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js rebuild --verbose gyp info it worked if it ends with ok gyp verb cli [ 'node', gyp verb cli '~/.nvm/v0.10.1/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js', gyp verb cli 'rebuild', gyp verb cli '--verbose' ] gyp info using node-gyp@0.8.5 gyp info using node@0.10.1 | darwin | x64 gyp verb command rebuild [] gyp verb command clean [] gyp verb clean removing "build" directory gyp verb command configure [] gyp verb check python checking for Python executable "python" in the PATH gyp verb
which
succeeded for%s
python /usr/bin/python gyp verb check python versionpython -c "import platform; print(platform.python_version());"
returned: "2.6.1\n" gyp verb get node dir no --target version specified, falling back to host node version: v0.10.1 gyp verb command install [ 'v0.10.1' ] gyp verb install input version string "v0.10.1" gyp verb installing legacy version? false gyp verb install installing version: 0.10.1 gyp verb install --ensure was passed, so won't reinstall if already installed gyp verb install version is already installed, need to check "installVersion" gyp verb got "installVersion" 9 gyp verb needs "installVersion" 9 gyp verb install version is good gyp verb get node dir target node version installed: 0.10.1 gyp verb build dir attempting to create "build" dir: /private/tmp/node-LDAP/build gyp verb build dir "build" dir needed to be created? /private/tmp/node-LDAP/build gyp verb build/config.gypi creating config file gyp verb build/config.gypi writing out config file: /private/tmp/node-LDAP/build/config.gypi gyp verb config.gypi checking for gypi file: /private/tmp/node-LDAP/config.gypi gyp verb common.gypi checking for gypi file: /private/tmp/node-LDAP/common.gypi gyp verb gyp gyp format was not specified; forcing "make" gyp info spawn python gyp info spawn args [ '~/.nvm/v0.10.1/lib/node_modules/npm/node_modules/node-gyp/gyp/gyp', gyp info spawn args 'binding.gyp', gyp info spawn args '-f', gyp info spawn args 'make', gyp info spawn args '-I', gyp info spawn args '/private/tmp/node-LDAP/build/config.gypi', gyp info spawn args '-I', gyp info spawn args '~/.nvm/v0.10.1/lib/node_modules/npm/node_modules/node-gyp/addon.gypi', gyp info spawn args '-I', gyp info spawn args '~/.node-gyp/0.10.1/common.gypi', gyp info spawn args '-Dlibrary=shared_library', gyp info spawn args '-Dvisibility=default', gyp info spawn args '-Dnode_root_dir=~/.node-gyp/0.10.1', gyp info spawn args '-Dmodule_root_dir=/private/tmp/node-LDAP', gyp info spawn args '--depth=.', gyp info spawn args '--generator-output', gyp info spawn args 'build', gyp info spawn args '-Goutput_dir=.' ] gyp verb command build [] gyp verb build type Release gyp verb architecture x64 gyp verb node dev dir ~/.node-gyp/0.10.1 gyp verbwhich
succeeded formake
/usr/bin/make gyp info spawn make gyp info spawn args [ 'V=1', 'BUILDTYPE=Release', '-C', 'build' ] g++ '-D_DARWIN_USE_64_BIT_INODE=1' '-D_LARGEFILE_SOURCE' '-D_FILE_OFFSET_BITS=64' '-DLDAP_DEPRECATED' '-DBUILDING_NODE_EXTENSION' -I~/.node-gyp/0.10.1/src -I~/.node-gyp/0.10.1/deps/uv/include -I~/.node-gyp/0.10.1/deps/v8/include -I/usr/local/include -Os -gdwarf-2 -mmacosx-version-min=10.5 -arch x86_64 -Wall -Wendif-labels -W -Wno-unused-parameter -fno-rtti -fno-exceptions -fno-threadsafe-statics -fno-strict-aliasing -MMD -MF ./Release/.deps/Release/obj.target/LDAP/src/LDAP.o.d.raw -c -o Release/obj.target/LDAP/src/LDAP.o ../src/LDAP.cc ../src/LDAP.cc: In static member function ‘static void LDAPConnection::io_event(uv_pollt, int, int)’: ../src/LDAP.cc:794: error: ‘EVREAD’ was not declared in this scope ../src/LDAP.cc: In member function ‘v8::Localv8::Value LDAPConnection::uuid2array(BerValue)’: ../src/LDAP.cc:1014: warning: suggest a space before ‘;’ or explicit braces around empty body in ‘for’ statement make: *\ [Release/obj.target/LDAP/src/LDAP.o] Error 1 gyp ERR! build error gyp ERR! stack Error:make
failed with exit code: 2 gyp ERR! stack at ChildProcess.onExit (~/.nvm/v0.10.1/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:256:23) gyp ERR! stack at ChildProcess.EventEmitter.emit (events.js:98:17) gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:754:12) gyp ERR! System Darwin 10.8.0 gyp ERR! command "node" "~/.nvm/v0.10.1/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild" "--verbose" gyp ERR! cwd /private/tmp/node-LDAP gyp ERR! node -v v0.10.1 gyp ERR! node-gyp -v v0.8.5 gyp ERR! not ok