Skip to content

Instantly share code, notes, and snippets.

@amcintyre99
Created April 25, 2015 03:53
Show Gist options
  • Save amcintyre99/cdfd05418b3614b17ef1 to your computer and use it in GitHub Desktop.
Save amcintyre99/cdfd05418b3614b17ef1 to your computer and use it in GitHub Desktop.
$ npm rebuild odbc
> [email protected] install /home/andrew/dma/prd/node_modules/odbc
> node-gyp rebuild
make: Entering directory `/home/andrew/dma/prd/node_modules/odbc/build'
CXX(target) Release/obj.target/odbc_bindings/src/odbc.o
../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();
^
CXX(target) Release/obj.target/odbc_bindings/src/odbc_connection.o
../src/odbc_connection.cpp: In static member function ‘static void ODBCConnection::QuerySync(const v8::FunctionCallbackInfo<v8::Value>&)’:
../src/odbc_connection.cpp:1035:56: error: no matching function for call to ‘v8::Object::Get(v8::Persistent<v8::String, v8::NonCopyablePersistentTraits<v8::String> >&)’
sql = new String::Utf8Value(obj->Get(OPTION_SQL)->ToString());
^
../src/odbc_connection.cpp:1035:56: note: candidates are:
In file included from ../src/odbc_connection.cpp:19:0:
/home/andrew/.node-gyp/0.12.2/deps/v8/include/v8.h:2128:16: note: v8::Local<v8::Value> v8::Object::Get(v8::Handle<v8::Value>)
Local<Value> Get(Handle<Value> key);
^
/home/andrew/.node-gyp/0.12.2/deps/v8/include/v8.h:2128:16: note: no known conversion for argument 1 from ‘v8::Persistent<v8::String, v8::NonCopyablePersistentTraits<v8::String> >’ to ‘v8::Handle<v8::Value>’
/home/andrew/.node-gyp/0.12.2/deps/v8/include/v8.h:2130:16: note: v8::Local<v8::Value> v8::Object::Get(uint32_t)
Local<Value> Get(uint32_t index);
^
/home/andrew/.node-gyp/0.12.2/deps/v8/include/v8.h:2130:16: note: no known conversion for argument 1 from ‘v8::Persistent<v8::String, v8::NonCopyablePersistentTraits<v8::String> >’ to ‘uint32_t {aka unsigned int}’
make: *** [Release/obj.target/odbc_bindings/src/odbc_connection.o] Error 1
make: Leaving directory `/home/andrew/dma/prd/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/dma/prd/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/dma/prd/npm-debug.log
@bzuillsmith
Copy link

Ahah, that happens to me when UNICODE is not defined. Did you mean not to define UNICODE?

@amcintyre99
Copy link
Author

commenting back in other thread

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment