jeremyfa / node-exec-sync

IMPORTANT: This repository is no longer maintained.
48 stars 26 forks source link

Problems #2

Closed aklt closed 12 years ago

aklt commented 12 years ago

Hi,

I ran into this error:

  SOLINK_MODULE(target) Release/obj.target/ffi_bindings.node
/usr/bin/ld: /home/alt/projects/node-exec-sync/node_modules/node-ffi/deps/libffi/.libs/libffi.a(closures.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC
/home/alt/projects/node-exec-sync/node_modules/node-ffi/deps/libffi/.libs/libffi.a: could not read symbols: Bad value
collect2: error: ld returned 1 exit status
make: *** [Release/obj.target/ffi_bindings.node] Error 1
make: Leaving directory `/home/alt/projects/node-exec-sync/node_modules/node-ffi/build'
ERR! Error: `make` failed with exit code: 2
    at ChildProcess.onExit (/home/alt/install/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:212:23)
    at ChildProcess.emit (events.js:70:17)
    at maybeExit (child_process.js:362:16)
    at Process.onexit (child_process.js:398:5)
ERR! not ok

npm ERR! node-ffi@0.5.5 install: `node-gyp rebuild`
npm ERR! `sh "-c" "node-gyp rebuild"` failed with 1
npm ERR! 
npm ERR! Failed at the node-ffi@0.5.5 install script.
...

while running npm install. Changing from node-ffito ffi v1.0.1 fixes this problem for me and execSync functions.

Cheers!

jeremyfa commented 12 years ago

Thanks for this fix, I will update npm module ASAP.