wizardofeast / nodeora

Node.js oracle addon for async execution.
Apache License 2.0
0 stars 0 forks source link

The c++ code does not compile #1

Open cshupp1 opened 10 years ago

cshupp1 commented 10 years ago

Here is my error trace:

[t192zcs@vahdrtvapp05 playnode]$ npm --python=/u01/dev/python/Python-2.7.5/python install nodeora npm http GET https://registry.npmjs.org/nodeora npm http 304 https://registry.npmjs.org/nodeora

nodeora@0.0.1 install /u01/dev/nodejs/playnode/node_modules/nodeora node-gyp rebuild

make: Entering directory /u01/dev/nodejs/playnode/node_modules/nodeora/build' CXX(target) Release/obj.target/nodeora/src/nodeora.o ../src/nodeora.cpp:559:55: warning: no newline at end of file ../src/nodeora.cpp:60: warning: \u2018class nodeora::Cell\u2019 has virtual functions but non-virtual destructor ../src/nodeora.cpp:81: warning: \u2018class nodeora::StringCell\u2019 has virtual functions but non-virtual destructor ../src/nodeora.cpp:98: warning: \u2018class nodeora::NullCell\u2019 has virtual functions but non-virtual destructor ../src/nodeora.cpp:108: warning: \u2018class nodeora::NumberCell\u2019 has virtual functions but non-virtual destructor ../src/nodeora.cpp:121: warning: \u2018class nodeora::BlobCell\u2019 has virtual functions but non-virtual destructor ../src/nodeora.cpp:147: warning: \u2018class nodeora::DateCell\u2019 has virtual functions but non-virtual destructor ../src/nodeora.cpp:221: error: \u2018shared_ptr\u2019 was not declared in this scope ../src/nodeora.cpp:221: error: \u2018cells\u2019 was not declared in this scope ../src/nodeora.cpp:221: error: template argument 1 is invalid ../src/nodeora.cpp:221: error: template argument 2 is invalid ../src/nodeora.cpp:223: error: expected unqualified-id before \u2018}\u2019 token ../src/nodeora.cpp: In destructor \u2018nodeora::Row::~Row()\u2019: ../src/nodeora.cpp:203: error: \u2018cells\u2019 was not declared in this scope ../src/nodeora.cpp: In member function \u2018v8::Handle<v8::Object> nodeora::Row::ToValue(std::vector<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::basic_string<char, std::char_traits<char>, std::allocator<char> > > >)\u2019: ../src/nodeora.cpp:213: error: \u2018shared_ptr\u2019 was not declared in this scope ../src/nodeora.cpp:213: error: \u2018::iterator\u2019 has not been declared ../src/nodeora.cpp:213: error: template argument 1 is invalid ../src/nodeora.cpp:213: error: template argument 2 is invalid ../src/nodeora.cpp:213: error: expected unqualified-id before \u2018)\u2019 token ../src/nodeora.cpp:218: error: expected primary-expression before \u2018return\u2019 ../src/nodeora.cpp:218: error: expected;' before \u2018return\u2019 ../src/nodeora.cpp:218: error: expected primary-expression before \u2018return\u2019 ../src/nodeora.cpp:218: error: expected )' before \u2018return\u2019 ../src/nodeora.cpp:212: warning: unused variable \u2018colindex\u2019 ../src/nodeora.cpp: At global scope: ../src/nodeora.cpp:231: error: \u2018shared_ptr\u2019 was not declared in this scope ../src/nodeora.cpp:231: error: \u2018Rows\u2019 was not declared in this scope ../src/nodeora.cpp:380: error: template argument 1 is invalid ../src/nodeora.cpp:380: error: template argument 2 is invalid ../src/nodeora.cpp: In member function \u2018int nodeora::Table::GetColumnNames(std::vector<nodeora::Column, std::allocator<nodeora::Column> >)\u2019: ../src/nodeora.cpp:387: error: cannot convert \u2018std::vector<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::basic_string<char, std::char_traits<char>, std::allocator<char> > > >\u2019 to \u2018int\u2019 in return ../src/nodeora.cpp: In member function \u2018v8::Handle<v8::Array> nodeora::Table::ToValue()\u2019: ../src/nodeora.cpp:393: error: conversion from \u2018int\u2019 to non-scalar type \u2018std::vector<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::basic_string<char, std::char_traits<char>, std::allocator<char> > > >\u2019 requested ../src/nodeora.cpp:394: error: \u2018shared_ptr\u2019 was not declared in this scope ../src/nodeora.cpp:394: error: \u2018::iterator\u2019 has not been declared ../src/nodeora.cpp:394: error: template argument 1 is invalid ../src/nodeora.cpp:394: error: template argument 2 is invalid ../src/nodeora.cpp:394: error: expected unqualified-id before \u2018)\u2019 token ../src/nodeora.cpp:399: error: expected primary-expression before \u2018return\u2019 ../src/nodeora.cpp:399: error: expected;' before \u2018return\u2019 ../src/nodeora.cpp:399: error: expected primary-expression before \u2018return\u2019 ../src/nodeora.cpp:399: error: expected )' before \u2018return\u2019 ../src/nodeora.cpp:391: warning: unused variable \u2018rowindex\u2019 ../src/nodeora.cpp: At global scope: ../src/nodeora.cpp:423: error: extra qualification \u2018nodeora::Connection::\u2019 on member \u2018Initialize\u2019 ../src/nodeora.cpp:537: error: extra qualification \u2018nodeora::Connection::\u2019 on member \u2018New\u2019 ../src/nodeora.cpp: In static member function \u2018static v8::Handle<v8::Value> nodeora::Connection::Query(const v8::Arguments&)\u2019: ../src/nodeora.cpp:476: warning: unused variable \u2018count\u2019 ../src/nodeora.cpp:482: warning: unused variable \u2018r\u2019 ../src/nodeora.cpp: In static member function \u2018static void nodeora::Connection::Read(uv_work_t*)\u2019: ../src/nodeora.cpp:492: error: no matching function for call to \u2018nodeora::Table::Table(std::vector<oracle::occi::MetaData, std::allocator<oracle::occi::MetaData> >&)\u2019 ../src/nodeora.cpp:226: note: candidates are: nodeora::Table::Table() ../src/nodeora.cpp:226: note: nodeora::Table::Table(const nodeora::Table&) ../src/nodeora.cpp:495: error: \u2018class nodeora::Table\u2019 has no member named \u2018ReadRow\u2019 ../src/nodeora.cpp: In static member function \u2018static void nodeora::Connection::Result(uv_work_t*, int)\u2019: ../src/nodeora.cpp:390: error: \u2018v8::Handle<v8::Array> nodeora::Table::ToValue()\u2019 is private ../src/nodeora.cpp:515: error: within this context make: *** [Release/obj.target/nodeora/src/nodeora.o] Error 1 make: Leaving directory/u01/dev/nodejs/playnode/node_modules/nodeora/build' gyp ERR! build error gyp ERR! stack Error: make failed with exit code: 2 gyp ERR! stack at ChildProcess.onExit (/u01/dev/nodejs/node-v0.10.20/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:267:23) gyp ERR! stack at ChildProcess.EventEmitter.emit (events.js:98:17) gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:789:12) gyp ERR! System Linux 2.6.18-348.6.1.el5 gyp ERR! command "node" "/u01/dev/nodejs/node-v0.10.20/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild" gyp ERR! cwd /u01/dev/nodejs/playnode/node_modules/nodeora gyp ERR! node -v v0.10.20 gyp ERR! node-gyp -v v0.10.10 gyp ERR! not ok npm ERR! weird error 1 npm ERR! not ok code 0

wizardofeast commented 10 years ago

I think you have been building in a Linux environment. I hope to check the build on SUSE 11 asap. Then fix the build.