orlandov/node-sqlite — Issue #38: Install fails for Node v0.6.x
Author: mcantelon
Created: 2011-12-28 20:06:22+00:00
State: open

Hi Orlando and contributin' folks,

I'm using npm 1.0.104 and the n utility to switch versions of Node. I can install the sqlite module using Node v0.4.x, but not v0.6.x. with v0.6.x I get a long gory dump, as shown below:

[3/6] cxx: src/database.cc -> build/Release/src/database_2.o
../src/database.cc: In static member function ‘static v8::Handle Database::Open(const v8::Arguments&)’:
../src/database.cc:137: error: invalid conversion from ‘int (*)(eio_req*)’ to ‘void (*)(eio_req*)’
../src/database.cc:137: error: initializing argument 1 of ‘eio_req* eio_custom(void (*)(eio_req*), int, int (*)(eio_req*), void*)’
../src/database.cc: In static member function ‘static v8::Handle Database::Close(const v8::Arguments&)’:
../src/database.cc:202: error: invalid conversion from ‘int (*)(eio_req*)’ to ‘void (*)(eio_req*)’
../src/database.cc:202: error: initializing argument 1 of ‘eio_req* eio_custom(void (*)(eio_req*), int, int (*)(eio_req*), void*)’
../src/database.cc: In static member function ‘static v8::Handle Database::PrepareAndStep(const v8::Arguments&)’:
../src/database.cc:370: error: invalid conversion from ‘int (*)(eio_req*)’ to ‘void (*)(eio_req*)’
../src/database.cc:370: error: initializing argument 1 of ‘eio_req* eio_custom(void (*)(eio_req*), int, int (*)(eio_req*), void*)’
../src/database.cc: In static member function ‘static v8::Handle Database::Prepare(const v8::Arguments&)’:
../src/database.cc:506: error: invalid conversion from ‘int (*)(eio_req*)’ to ‘void (*)(eio_req*)’
../src/database.cc:506: error: initializing argument 1 of ‘eio_req* eio_custom(void (*)(eio_req*), int, int (*)(eio_req*), void*)’
../deps/sqlite/sqlite3.c: In function ‘proxyGetHostID’:
../deps/sqlite/sqlite3.c:28396: warning: unused variable ‘timeout’
Waf: Leaving directory `/Users/mike/node_modules/sqlite/build'
Build failed: -> task failed (err #1):
{task: cxx database.cc -> database_2.o}
npm ERR! error installing sqlite@1.0.4 Error: sqlite@1.0.4 preinstall: `node-waf configure build`
npm ERR! error installing sqlite@1.0.4 `sh "-c" "node-waf configure build"` failed with 1
npm ERR! error installing sqlite@1.0.4 at ChildProcess. (/usr/local/lib/node_modules/npm/lib/utils/exec.js:49:20)
npm ERR! error installing sqlite@1.0.4 at ChildProcess.emit (events.js:70:17)
npm ERR! error installing sqlite@1.0.4 at maybeExit (child_process.js:359:16)
npm ERR! error installing sqlite@1.0.4 at Process.onexit (child_process.js:395:5)
npm ERR! sqlite@1.0.4 preinstall: `node-waf configure build`
npm ERR! `sh "-c" "node-waf configure build"` failed with 1
npm ERR!
npm ERR! Failed at the sqlite@1.0.4 preinstall script.
npm ERR! This is most likely a problem with the sqlite package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node-waf configure build
npm ERR! You can get their info via:
npm ERR! npm owner ls sqlite
npm ERR! There is likely additional logging output above.
npm ERR!
npm ERR! System Darwin 10.6.0
npm ERR! command "node" "/usr/local/bin/npm" "install" "sqlite"
npm ERR! cwd /Users/mike/tmp/sqlite
npm ERR! node -v v0.6.6
npm ERR! npm -v 1.0.104
npm ERR! code ELIFECYCLE
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /Users/mike/tmp/sqlite/npm-debug.log
npm not ok

Elven rock,
Mike