mscdex / node-xxhash

An xxhash binding for node.js
Other
193 stars 28 forks source link

Building fails on Ubuntu #2

Closed nifoc closed 11 years ago

nifoc commented 11 years ago

Tried to install xxhash on Ubuntu (using clang++ or g++), but it fails with both compilers complaining about the free(state) line.

npm http GET https://registry.npmjs.org/xxhash
npm http 304 https://registry.npmjs.org/xxhash

> xxhash@0.1.0 install /var/webapps/nMatch/shared/node_modules/xxhash
> node-gyp rebuild

make: Entering directory `/var/webapps/nMatch/shared/node_modules/xxhash/build'
  CXX(target) Release/obj.target/hash/src/hash.o
clang: warning: argument unused during compilation: '-fno-tree-vrp'
../src/hash.cc:21:9: error: use of undeclared identifier 'free'
        free(state);
        ^
1 error generated.
make: *** [Release/obj.target/hash/src/hash.o] Error 1
make: Leaving directory `/var/webapps/nMatch/shared/node_modules/xxhash/build'
gyp ERR! build error 
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack     at ChildProcess.onExit (/usr/lib/nodejs/npm/node_modules/node-gyp/lib/build.js:255:23)
gyp ERR! stack     at ChildProcess.EventEmitter.emit (events.js:99:17)
gyp ERR! stack     at Process._handle.onexit (child_process.js:678:10)
gyp ERR! System Linux 3.2.0-29-generic
gyp ERR! command "node" "/usr/lib/nodejs/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /var/webapps/nMatch/shared/node_modules/xxhash
gyp ERR! node -v v0.8.18
gyp ERR! node-gyp -v v0.8.2
gyp ERR! not ok 
npm ERR! xxhash@0.1.0 install: `node-gyp rebuild`
npm ERR! `sh "-c" "node-gyp rebuild"` failed with 1
npm ERR! 
npm ERR! Failed at the xxhash@0.1.0 install script.
npm ERR! This is most likely a problem with the xxhash 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 xxhash
npm ERR! There is likely additional logging output above.

npm ERR! System Linux 3.2.0-29-generic
npm ERR! command "nodejs" "/usr/bin/npm" "install" "xxhash"
npm ERR! cwd /var/webapps/nMatch/shared
npm ERR! node -v v0.8.18
npm ERR! npm -v 1.1.71
npm ERR! code ELIFECYCLE
npm ERR! 
npm ERR! Additional logging details can be found in:
npm ERR!     /var/webapps/nMatch/shared/npm-debug.log
npm ERR! not ok code 0
mscdex commented 11 years ago

Fixed in 247d558. Thanks!