w1nk/node-odbc — Issue #11: node-odbc doesn't build since node::EventEmitter was removed
Author: brunoqc
Created: 2011-11-07 19:14:18+00:00
State: open

While trying to build node-odbc I got :

../src/Database.cpp:20:25: error: node_events.h: No such file or directory

I think it's since [node::EventEmitter was removed from node.js](https://github.com/joyent/node/commit/4ef8f06fe62edb74fded0e817266cb6398e69f36) which could be about two releases ago but I only got it today when I upgraded to 0.6.0 (stable).

$ ./build.sh
Setting srcdir to : /home/bbigras/project/node_modules/node-odbc
Setting blddir to : /home/bbigras/project/node_modules/node-odbc/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 : not found
Checking for node prefix : ok /usr
Checking for library odbc : yes
'configure' finished successfully (1.002s)
Waf: Entering directory `/home/bbigras/project/node_modules/node-odbc/build'
[1/2] cxx: src/Database.cpp -> build/Release/src/Database_1.o
../src/Database.cpp:20:25: error: node_events.h: No such file or directory
In file included from ../src/Database.cpp:23:
../src/Database.h:34: error: expected class-name before ‘{’ token
../src/Database.h: In constructor ‘Database::Database()’:
../src/Database.h:41: error: class ‘Database’ does not have any field named ‘EventEmitter’
../src/Database.cpp: In static member function ‘static void Database::Init(v8::Handle)’:
../src/Database.cpp:45: error: ‘EventEmitter’ has not been declared
../src/Database.cpp: In static member function ‘static v8::Handle Database::New(const v8::Arguments&)’:
../src/Database.cpp:62: error: ‘class Database’ has no member named ‘Wrap’
../src/Database.cpp: In static member function ‘static int Database::EIO_AfterOpen(eio_req*)’:
../src/Database.cpp:80: error: ‘class Database’ has no member named ‘Unref’
../src/Database.cpp:87: error: ‘class Database’ has no member named ‘Emit’
../src/Database.cpp: In static member function ‘static v8::Handle Database::Open(const v8::Arguments&)’:
../src/Database.cpp:148: error: invalid conversion from ‘int (*)(eio_req*)’ to ‘void (*)(eio_req*)’
../src/Database.cpp:148: error: initializing argument 1 of ‘eio_req* eio_custom(void (*)(eio_req*), int, int (*)(eio_req*), void*)’
../src/Database.cpp:151: error: ‘class Database’ has no member named ‘Ref’
../src/Database.cpp: In static member function ‘static int Database::EIO_AfterClose(eio_req*)’:
../src/Database.cpp:172: error: ‘class Database’ has no member named ‘Unref’
../src/Database.cpp:179: error: ‘class Database’ has no member named ‘Emit’
../src/Database.cpp: In static member function ‘static v8::Handle Database::Close(const v8::Arguments&)’:
../src/Database.cpp:216: error: invalid conversion from ‘int (*)(eio_req*)’ to ‘void (*)(eio_req*)’
../src/Database.cpp:216: error: initializing argument 1 of ‘eio_req* eio_custom(void (*)(eio_req*), int, int (*)(eio_req*), void*)’
../src/Database.cpp:219: error: ‘class Database’ has no member named ‘Ref’
../src/Database.cpp: In static member function ‘static int Database::EIO_AfterQuery(eio_req*)’:
../src/Database.cpp:257: error: ‘class Database’ has no member named ‘Emit’
../src/Database.cpp:260: error: ‘class Database’ has no member named ‘Emit’
../src/Database.cpp:288: error: ‘class Database’ has no member named ‘Emit’
../src/Database.cpp:353: error: ‘class Database’ has no member named ‘Emit’
../src/Database.cpp:461: error: ‘class Database’ has no member named ‘Emit’
../src/Database.cpp:469: error: ‘class Database’ has no member named ‘Unref’
../src/Database.cpp: In static member function ‘static v8::Handle Database::Query(const v8::Arguments&)’:
../src/Database.cpp:530: error: invalid conversion from ‘int (*)(eio_req*)’ to ‘void (*)(eio_req*)’
../src/Database.cpp:530: error: initializing argument 1 of ‘eio_req* eio_custom(void (*)(eio_req*), int, int (*)(eio_req*), void*)’
../src/Database.cpp:533: error: ‘class Database’ has no member named ‘Ref’
../src/Database.cpp: In static member function ‘static v8::Handle Database::Tables(const v8::Arguments&)’:
../src/Database.cpp:608: error: invalid conversion from ‘int (*)(eio_req*)’ to ‘void (*)(eio_req*)’
../src/Database.cpp:608: error: initializing argument 1 of ‘eio_req* eio_custom(void (*)(eio_req*), int, int (*)(eio_req*), void*)’
../src/Database.cpp:611: error: ‘class Database’ has no member named ‘Ref’
../src/Database.cpp: In static member function ‘static v8::Handle Database::Columns(const v8::Arguments&)’:
../src/Database.cpp:687: error: invalid conversion from ‘int (*)(eio_req*)’ to ‘void (*)(eio_req*)’
../src/Database.cpp:687: error: initializing argument 1 of ‘eio_req* eio_custom(void (*)(eio_req*), int, int (*)(eio_req*), void*)’
../src/Database.cpp:690: error: ‘class Database’ has no member named ‘Ref’
Waf: Leaving directory `/home/bbigras/project/node_modules/node-odbc/build'
Build failed: -> task failed (err #1):
{task: cxx Database.cpp -> Database_1.o}