Skip to content

Instantly share code, notes, and snippets.

@amcintyre99
Created January 2, 2021 15:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save amcintyre99/d52b3f3c0d409635649faf57ab0b61af to your computer and use it in GitHub Desktop.
Save amcintyre99/d52b3f3c0d409635649faf57ab0b61af to your computer and use it in GitHub Desktop.
andrew@quark:~/dma/odbc_ibm$ rm -r node_modules/
andrew@quark:~/dma/odbc_ibm$ npm install ibm_db@2.7.1
npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142
npm WARN deprecated har-validator@5.1.5: this library is no longer supported
> ibm_db@2.7.1 install /home/andrew/dma/odbc_ibm/node_modules/ibm_db
> node installer/driverInstall.js
platform = linux , arch = x64 , node.js version = v12.20.0
make version = GNU Make 4.1
IBM_DB_HOME environment variable have already been set to -> /home/db2inst1/sqllib
Downloading of clidriver skipped - build is in progress...
make: Entering directory '/home/andrew/dma/odbc_ibm/node_modules/ibm_db/build'
CXX(target) Release/obj.target/odbc_bindings/src/odbc.o
CXX(target) Release/obj.target/odbc_bindings/src/odbc_connection.o
odbc_bindings.target.mk:118: recipe for target 'Release/obj.target/odbc_bindings/src/odbc_connection.o' failed
make: Leaving directory '/home/andrew/dma/odbc_ibm/node_modules/ibm_db/build'
Error: Command failed: node-gyp configure build --IS_DOWNLOADED=false --IBM_DB_HOME="$IBM_DB_HOME"
../src/odbc.cpp: In static member function ‘static void ODBC::UV_AfterCreateConnection(uv_work_t*, int)’:
../src/odbc.cpp:216:27: warning: ‘v8::Local<v8::Value> Nan::Callback::Call(int, v8::Local<v8::Value>*) const’ is deprecated [-Wdeprecated-declarations]
data->cb->Call(1, info);
^
In file included from ../src/odbc.h:23:0,
from ../src/odbc.cpp:29:
../../nan/nan.h:1742:3: note: declared here
Call(int argc, v8::Local<v8::Value> argv[]) const {
^~~~
../src/odbc.cpp:228:27: warning: ‘v8::Local<v8::Value> Nan::Callback::Call(int, v8::Local<v8::Value>*) const’ is deprecated [-Wdeprecated-declarations]
data->cb->Call(2, info);
^
In file included from ../src/odbc.h:23:0,
from ../src/odbc.cpp:29:
../../nan/nan.h:1742:3: note: declared here
Call(int argc, v8::Local<v8::Value> argv[]) const {
^~~~
../src/odbc.cpp: In static member function ‘static void ODBC::GetArrayParam(v8::Local<v8::Value>, Parameter*, int)’:
../src/odbc.cpp:1223:25: warning: deleting ‘SQLPOINTER {aka void*}’ is undefined [-Wdelete-incomplete]
delete param->buffer;
^~~~~~
../src/odbc.cpp:1244:25: warning: deleting ‘SQLPOINTER {aka void*}’ is undefined [-Wdelete-incomplete]
delete param->buffer;
^~~~~~
../src/odbc.cpp:1278:44: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if( param->length > 0 && bufflen > param->length ) {
~~~~~~~~^~~~~~~~~~~~~~~
../src/odbc.cpp: In static member function ‘static v8::Local<v8::Value> ODBC::CallbackSQLError(SQLSMALLINT, SQLHANDLE, char*, Nan::Callback*)’:
../src/odbc.cpp:1394:19: warning: ‘v8::Local<v8::Value> Nan::Callback::Call(int, v8::Local<v8::Value>*) const’ is deprecated [-Wdeprecated-declarations]
cb->Call(1, info);
^
In file included from ../src/odbc.h:23:0,
from ../src/odbc.cpp:29:
../../nan/nan.h:1742:3: note: declared here
Call(int argc, v8::Local<v8::Value> argv[]) const {
^~~~
../src/odbc.cpp: In static member function ‘static v8::Local<v8::Value> ODBC::GetColumnValue(SQLHSTMT, Column, uint16_t*, int)’:
../src/odbc.cpp:570:9: warning: this statement may fall through [-Wimplicit-fallthrough=]
if((int) column.type == SQL_NUMERIC)
^~
../src/odbc.cpp:572:5: note: here
case SQL_DECIMAL :
^~~~
../src/odbc.cpp:573:9: warning: this statement may fall through [-Wimplicit-fallthrough=]
if((int) column.type == SQL_DECIMAL)
^~
../src/odbc.cpp:575:5: note: here
case SQL_BIGINT :
^~~~
../src/odbc.cpp:576:9: warning: this statement may fall through [-Wimplicit-fallthrough=]
if((int) column.type == SQL_BIGINT)
^~
../src/odbc.cpp:578:5: note: here
case SQL_DBCLOB:
^~~~
../src/odbc.cpp:579:9: warning: this statement may fall through [-Wimplicit-fallthrough=]
if((int) column.type == SQL_DBCLOB)
^~
../src/odbc.cpp:585:5: note: here
case SQL_BLOB :
^~~~
../src/odbc.cpp:586:9: warning: this statement may fall through [-Wimplicit-fallthrough=]
if((int) column.type == SQL_BLOB)
^~
../src/odbc.cpp:592:5: note: here
default :
^~~~~~~
../src/odbc.cpp: In static member function ‘static v8::Local<v8::Value> ODBC::GetOutputParameter(Parameter)’:
../src/odbc.cpp:721:9: warning: this statement may fall through [-Wimplicit-fallthrough=]
if((int) prm.type == SQL_NUMERIC)
^~
../src/odbc.cpp:723:5: note: here
case SQL_BIGINT :
^~~~
../src/odbc.cpp:767:9: warning: this statement may fall through [-Wimplicit-fallthrough=]
if((int) prm.type == SQL_DECIMAL)
^~
../src/odbc.cpp:769:5: note: here
case SQL_FLOAT :
^~~~
../src/odbc.cpp:812:9: warning: this statement may fall through [-Wimplicit-fallthrough=]
if((int) prm.type == SQL_DBCLOB)
^~
../src/odbc.cpp:816:5: note: here
case SQL_BLOB :
^~~~
../src/odbc.cpp:817:9: warning: this statement may fall through [-Wimplicit-fallthrough=]
if((int) prm.type == SQL_BLOB)
^~
../src/odbc.cpp:821:5: note: here
default :
^~~~~~~
../src/odbc_connection.cpp: In static member function ‘static void ODBCConnection::UV_AfterOpen(uv_work_t*, int)’:
../src/odbc_connection.cpp:310:35: warning: ‘v8::Local<v8::Value> Nan::Callback::Call(int, v8::Local<v8::Value>*) const’ is deprecated [-Wdeprecated-declarations]
data->cb->Call(err ? 1 : 0, argv);
^
In file included from ../src/odbc.h:23:0,
from ../src/odbc_connection.cpp:25:
../../nan/nan.h:1742:3: note: declared here
Call(int argc, v8::Local<v8::Value> argv[]) const {
^~~~
../src/odbc_connection.cpp: In static member function ‘static void ODBCConnection::UV_AfterClose(uv_work_t*, int)’:
../src/odbc_connection.cpp:534:35: warning: ‘v8::Local<v8::Value> Nan::Callback::Call(int, v8::Local<v8::Value>*) const’ is deprecated [-Wdeprecated-declarations]
data->cb->Call(err ? 1 : 0, argv);
^
In file included from ../src/odbc.h:23:0,
from ../src/odbc_connection.cpp:25:
../../nan/nan.h:1742:3: note: declared here
Call(int argc, v8::Local<v8::Value> argv[]) const {
^~~~
../src/odbc_connection.cpp: In static member function ‘static void ODBCConnection::UV_AfterCreateStatement(uv_work_t*, int)’:
../src/odbc_connection.cpp:909:26: warning: ‘v8::Local<v8::Value> Nan::Callback::Call(int, v8::Local<v8::Value>*) const’ is deprecated [-Wdeprecated-declarations]
data->cb->Call( 2, info);
^
In file included from ../src/odbc.h:23:0,
from ../src/odbc_connection.cpp:25:
../../nan/nan.h:1742:3: note: declared here
Call(int argc, v8::Local<v8::Value> argv[]) const {
^~~~
../src/odbc_connection.cpp: In static member function ‘static void ODBCConnection::UV_Query(uv_work_t*)’:
../src/odbc_connection.cpp:1094:51: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
(SQLPOINTER)data->arraySize, 0);
^~~~~~~~~
../src/odbc_connection.cpp: In static member function ‘static void ODBCConnection::UV_AfterQuery(uv_work_t*, int)’:
../src/odbc_connection.cpp:1148:27: warning: ‘v8::Local<v8::Value> Nan::Callback::Call(int, v8::Local<v8::Value>*) const’ is deprecated [-Wdeprecated-declarations]
data->cb->Call(2, info);
^
In file included from ../src/odbc.h:23:0,
from ../src/odbc_connection.cpp:25:
../../nan/nan.h:1742:3: note: declared here
Call(int argc, v8::Local<v8::Value> argv[]) const {
^~~~
../src/odbc_connection.cpp:1178:27: warning: ‘v8::Local<v8::Value> Nan::Callback::Call(int, v8::Local<v8::Value>*) const’ is deprecated [-Wdeprecated-declarations]
data->cb->Call(3, info);
^
In file included from ../src/odbc.h:23:0,
from ../src/odbc_connection.cpp:25:
../../nan/nan.h:1742:3: note: declared here
Call(int argc, v8::Local<v8::Value> argv[]) const {
^~~~
../src/odbc_connection.cpp: In static member function ‘static Nan::NAN_METHOD_RETURN_TYPE ODBCConnection::QuerySync(Nan::NAN_METHOD_ARGS_TYPE)’:
../src/odbc_connection.cpp:1341:46: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
(SQLPOINTER) arraySize, 0);
^~~~~~~~~
../src/odbc_connection.cpp: In static member function ‘static void ODBCConnection::UV_AfterBeginTransaction(uv_work_t*, int)’:
../src/odbc_connection.cpp:1714:36: warning: ‘v8::Local<v8::Value> Nan::Callback::Call(int, v8::Local<v8::Value>*) const’ is deprecated [-Wdeprecated-declarations]
data->cb->Call( err ? 1 : 0, argv);
^
In file included from ../src/odbc.h:23:0,
from ../src/odbc_connection.cpp:25:
../../nan/nan.h:1742:3: note: declared here
Call(int argc, v8::Local<v8::Value> argv[]) const {
^~~~
../src/odbc_connection.cpp: In static member function ‘static void ODBCConnection::UV_AfterEndTransaction(uv_work_t*, int)’:
../src/odbc_connection.cpp:1896:35: warning: ‘v8::Local<v8::Value> Nan::Callback::Call(int, v8::Local<v8::Value>*) const’ is deprecated [-Wdeprecated-declarations]
data->cb->Call(err ? 1 : 0, argv);
^
In file included from ../src/odbc.h:23:0,
from ../src/odbc_connection.cpp:25:
../../nan/nan.h:1742:3: note: declared here
Call(int argc, v8::Local<v8::Value> argv[]) const {
^~~~
../src/odbc_connection.cpp: In static member function ‘static void ODBCConnection::UV_AfterGetInfo(uv_work_t*, int)’:
../src/odbc_connection.cpp:2100:26: warning: ‘v8::Local<v8::Value> Nan::Callback::Call(int, v8::Local<v8::Value>*) const’ is deprecated [-Wdeprecated-declarations]
data->cb->Call( 2, info);
^
In file included from ../src/odbc.h:23:0,
from ../src/odbc_connection.cpp:25:
../../nan/nan.h:1742:3: note: declared here
Call(int argc, v8::Local<v8::Value> argv[]) const {
^~~~
../src/odbc_connection.cpp: In function ‘v8::Local<v8::Value> getInfoValue(SQLUSMALLINT, SQLPOINTER)’:
../src/odbc_connection.cpp:2138:14: error: ‘SQL_DBMS_FUNCTIONLVL’ was not declared in this scope
case SQL_DBMS_FUNCTIONLVL :
^~~~~~~~~~~~~~~~~~~~
../src/odbc_connection.cpp:2138:14: note: suggested alternative: ‘SQL_PT_FUNCTION’
case SQL_DBMS_FUNCTIONLVL :
^~~~~~~~~~~~~~~~~~~~
SQL_PT_FUNCTION
make: *** [Release/obj.target/odbc_bindings/src/odbc_connection.o] Error 1
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:194:23)
gyp ERR! stack at ChildProcess.emit (events.js:314:20)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:276:12)
gyp ERR! System Linux 5.4.0-58-generic
gyp ERR! command "/usr/bin/node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "configure" "build" "--IS_DOWNLOADED=false" "--IBM_DB_HOME=/home/db2inst1/sqllib"
gyp ERR! cwd /home/andrew/dma/odbc_ibm/node_modules/ibm_db
gyp ERR! node -v v12.20.0
gyp ERR! node-gyp -v v5.1.0
gyp ERR! not ok
at ChildProcess.exithandler (child_process.js:308:12)
at ChildProcess.emit (events.js:314:20)
at maybeClose (internal/child_process.js:1022:16)
at Process.ChildProcess._handle.onexit (internal/child_process.js:287:5) {
killed: false,
code: 1,
signal: null,
cmd: 'node-gyp configure build --IS_DOWNLOADED=false --IBM_DB_HOME="$IBM_DB_HOME"'
}
npm WARN enoent ENOENT: no such file or directory, open '/home/andrew/dma/odbc_ibm/package.json'
npm WARN odbc_ibm No description
npm WARN odbc_ibm No repository field.
npm WARN odbc_ibm No README data
npm WARN odbc_ibm No license field.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! ibm_db@2.7.1 install: `node installer/driverInstall.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the ibm_db@2.7.1 install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /home/andrew/.npm/_logs/2021-01-02T15_11_06_356Z-debug.log
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment