Skip to content

Instantly share code, notes, and snippets.

@amcintyre99
Created April 22, 2015 21:44
Show Gist options
  • Save amcintyre99/c588fb2018675b385841 to your computer and use it in GitHub Desktop.
Save amcintyre99/c588fb2018675b385841 to your computer and use it in GitHub Desktop.
$ npm rebuild odbc
> [email protected] install /home/andrew/node_modules/odbc
> node-gyp rebuild
make: Entering directory `/home/andrew/node_modules/odbc/build'
CXX(target) Release/obj.target/odbc_bindings/src/odbc.o
In file included from ../src/odbc.cpp:25:0:
../src/odbc.h:92:48: error: ‘Arguments’ does not name a type
static Handle<Value> LoadODBCLibrary(const Arguments& args);
^
../src/odbc.h:92:59: error: ISO C++ forbids declaration of ‘args’ with no type [-fpermissive]
static Handle<Value> LoadODBCLibrary(const Arguments& args);
^
../src/odbc.cpp: In static member function ‘static Parameter* ODBC::GetParametersFromArray(v8::Local<v8::Array>, int*)’:
../src/odbc.cpp:686:11: warning: unused variable ‘length’ [-Wunused-variable]
int length = string->Length();
^
In file included from ../src/odbc.h:23:0,
from ../src/odbc.cpp:25:
../src/odbc.cpp: At global scope:
../src/odbc.cpp:970:12: error: prototype for ‘void ODBC::LoadODBCLibrary(const v8::FunctionCallbackInfo<v8::Value>&)’ does not match any in class ‘ODBC’
NAN_METHOD(ODBC::LoadODBCLibrary) {
^
../node_modules/nan/nan.h:1331:50: note: in definition of macro ‘NAN_METHOD’
#define NAN_METHOD(name) _NAN_METHOD_RETURN_TYPE name(_NAN_METHOD_ARGS)
^
In file included from ../src/odbc.cpp:25:0:
../src/odbc.h:92:26: error: candidate is: static v8::Handle<v8::Value> ODBC::LoadODBCLibrary(const int&)
static Handle<Value> LoadODBCLibrary(const Arguments& args);
^
../src/odbc.cpp: In function ‘void init(v8::Handle<v8::Object>)’:
../src/odbc.cpp:984:52: error: no matching function for call to ‘v8::FunctionTemplate::New(v8::Handle<v8::Value> (&)(const int&))’
FunctionTemplate::New(ODBC::LoadODBCLibrary)->GetFunction());
^
../src/odbc.cpp:984:52: note: candidate is:
In file included from ../src/odbc.cpp:19:0:
/home/andrew/.node-gyp/0.12.2/deps/v8/include/v8.h:3455:34: note: static v8::Local<v8::FunctionTemplate> v8::FunctionTemplate::New(v8::Isolate*, v8::FunctionCallback, v8::Handle<v8::Value>, v8::Handle<v8::Signature>, int)
static Local<FunctionTemplate> New(
^
/home/andrew/.node-gyp/0.12.2/deps/v8/include/v8.h:3455:34: note: no known conversion for argument 1 from ‘v8::Handle<v8::Value>(const int&)’ to ‘v8::Isolate*’
make: *** [Release/obj.target/odbc_bindings/src/odbc.o] Error 1
make: Leaving directory `/home/andrew/node_modules/odbc/build'
gyp ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:269:23)
gyp ERR! stack at ChildProcess.emit (events.js:110:17)
gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:1074:12)
gyp ERR! System Linux 3.13.0-48-generic
gyp ERR! command "node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /home/andrew/node_modules/odbc
gyp ERR! node -v v0.12.2
gyp ERR! node-gyp -v v1.0.3
gyp ERR! not ok
npm ERR! Linux 3.13.0-48-generic
npm ERR! argv "/usr/bin/node" "/usr/bin/npm" "rebuild" "odbc"
npm ERR! node v0.12.2
npm ERR! npm v2.7.4
npm ERR! code ELIFECYCLE
npm ERR! [email protected] install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] install script 'node-gyp rebuild'.
npm ERR! This is most likely a problem with the odbc 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 odbc
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! /home/andrew/npm-debug.log
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment