mariano/node-db-mysql — Issue #56: Installation error on gentoo-r5
Author: mengy007
Created: 2012-02-16 17:05:20+00:00
State: open

Running node v0.7.5-pre - built from src
Python 2.7.2 installed

I get this error when I run npm install db-mysql
----------
> db-mysql@0.7.6 install /home/gtc/local/lib/node_modules/db-mysql
> node-waf configure build

Checking for program g++ or c++ : /usr/bin/g++
Checking for program cpp : /usr/bin/cpp
Checking for program ar : /usr/bin/ar
Checking for program ranlib : /usr/bin/ranlib
Checking for g++ : ok
Checking for node path : ok /home/gtc/local/bin/node
Checking for node prefix : ok /home/gtc/local
Checking for program mysql_config : /usr/bin/mysql_config
Checking for library mysqlclient_r : yes
'configure' finished successfully (0.136s)
Waf: Entering directory `/home/gtc/local/lib/node_modules/db-mysql/build'
[ 1/12] cxx: lib/node-db/binding.cc -> build/Release/lib/node-db/binding_1.o
[ 2/12] cxx: lib/node-db/connection.cc -> build/Release/lib/node-db/connection_1.o
[ 3/12] cxx: lib/node-db/events.cc -> build/Release/lib/node-db/events_1.o
[ 4/12] cxx: lib/node-db/exception.cc -> build/Release/lib/node-db/exception_1.o
[ 5/12] cxx: lib/node-db/query.cc -> build/Release/lib/node-db/query_1.o
[ 6/12] cxx: lib/node-db/result.cc -> build/Release/lib/node-db/result_1.o
[ 7/12] cxx: src/connection.cc -> build/Release/src/connection_1.o
[ 8/12] cxx: src/mysql.cc -> build/Release/src/mysql_1.o
../lib/node-db/binding.cc: In static member function 'static v8::Handle node_db::Binding::Connect(const v8::Arguments&)':
../lib/node-db/binding.cc:86:76: error: too few arguments to function 'eio_req* eio_custom(void (*)(eio_req*), int, int (*)(eio_req*), void*, eio_channel*)'
/home/gtc/local/include/node/uv-private/eio.h:361:10: note: declared here
../lib/node-db/query.cc: In static member function 'static v8::Handle node_db::Query::Execute(const v8::Arguments&)':
../lib/node-db/query.cc:646:76: error: too few arguments to function 'eio_req* eio_custom(void (*)(eio_req*), int, int (*)(eio_req*), void*, eio_channel*)'
/home/gtc/local/include/node/uv-private/eio.h:361:10: note: declared here
Waf: Leaving directory `/home/gtc/local/lib/node_modules/db-mysql/build'
Build failed:
-> task failed (err #1):
{task: cxx binding.cc -> binding_1.o}
-> task failed (err #1):
{task: cxx query.cc -> query_1.o}
npm ERR! error installing db-mysql@0.7.6

> db-mysql@0.7.6 preuninstall /home/gtc/local/lib/node_modules/db-mysql
> rm -rf build/*

npm ERR! db-mysql@0.7.6 install: `node-waf configure build`
npm ERR! `sh "-c" "node-waf configure build"` failed with 1
npm ERR!
npm ERR! Failed at the db-mysql@0.7.6 install script.
npm ERR! This is most likely a problem with the db-mysql 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 db-mysql
npm ERR! There is likely additional logging output above.
npm ERR!
npm ERR! System Linux 2.6.36-gentoo-r5
npm ERR! command "node" "/home/gtc/local/bin/npm" "install" "db-mysql"
npm ERR! cwd /home/gtc/local/lib
npm ERR! node -v v0.7.5-pre
npm ERR! npm -v 1.1.1
npm ERR! code ELIFECYCLE
npm ERR! message db-mysql@0.7.6 install: `node-waf configure build`
npm ERR! message `sh "-c" "node-waf configure build"` failed with 1
npm ERR! errno {}
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /home/gtc/local/lib/npm-debug.log
npm not ok