Tokutek / mongo

TokuMX is a high-performance, concurrent, compressing, drop-in replacement engine for MongoDB | Issue tracker: https://tokutek.atlassian.net/browse/MX/ |
http://www.tokutek.com/products/tokumx-for-mongodb/
703 stars 97 forks source link

2.0.1 compile error under Ubuntu #1233

Open Sfinx opened 9 years ago

Sfinx commented 9 years ago

.... /home/toor/mongo-tokumx-2.0.1/src/mongo/db/storage/env.cpp: In function 'void mongo::storage::get_live_transactionstatus(std::vectormongo::BSONObj&)': /home/toor/mongo-tokumx-2.0.1/src/mongo/db/storage/env.cpp:1037:97: error: invalid conversion from 'int ()(uint64_t, uint64_t, iterate_row_lockscallback, void, void) {aka int ()(long unsigned int, long unsigned int, int (_)(toku_db, tokudbt, tokudbt, void), void, void_)}' to 'iterate_transactionscallback {aka int ()(toku_dbtxn, int (_)(__toku_db, tokudbt, tokudbt, void), void, void_)}' [-fpermissive] const int r = env->iterate_live_transactions(env, iteratetransactions::callback, &e); ^ /home/toor/mongo-tokumx-2.0.1/src/mongo/db/indexcursor.cpp: In constructor 'mongo::IndexCursor::IndexCursor(mongo::CollectionData, const mongo::IndexDetails&, const mongo::BSONObj&, const mongo::BSONObj&, bool, int, int)': /home/toor/mongo-tokumx-2.0.1/src/mongo/db/indexcursor.cpp:180:97: error: invalid conversion from 'bool ()(void)' to 'bool ()(void, uint64t) {aka bool ()(void_, long unsigned int)}' [-fpermissive] cursor->c_set_check_interrupt_callback(cursor, cursor_check_interrupt, &_interruptextra); ^ /home/toor/mongo-tokumx-2.0.1/src/mongo/db/indexcursor.cpp: In constructor 'mongo::IndexCursor::IndexCursor(mongo::CollectionData, const mongo::IndexDetails&, const boost::sharedptrmongo::FieldRangeVector&, int, int, int)': /home/toor/mongo-tokumx-2.0.1/src/mongo/db/indexcursor.cpp:214:97: error: invalid conversion from 'bool ()(void)' to 'bool ()(void_, uint64t) {aka bool ()(void_, long unsigned int)}' [-fpermissive] cursor->c_set_check_interrupt_callback(cursor, cursor_check_interrupt, &_interrupt_extra); ^ src/mongo/db/CMakeFiles/coredb.dir/build.make:1641: recipe for target 'src/mongo/db/CMakeFiles/coredb.dir/storage/env.cpp.o' failed make[2]: * [src/mongo/db/CMakeFiles/coredb.dir/storage/env.cpp.o] Error 1 CMakeFiles/Makefile2:3623: recipe for target 'src/mongo/db/CMakeFiles/coredb.dir/all' failed make[1]: * [src/mongo/db/CMakeFiles/coredb.dir/all] Error 2 make[1]: * Waiting for unfinished jobs.... [ 81%] Building CXX object src/mongo/db/CMakeFiles/serveronly.dir/matcher_covered.cpp.o src/mongo/db/CMakeFiles/serveronly.dir/build.make:698: recipe for target 'src/mongo/db/CMakeFiles/serveronly.dir/indexcursor.cpp.o' failed make[2]: * [src/mongo/db/CMakeFiles/serveronly.dir/indexcursor.cpp.o] Error 1 make[2]: * Waiting for unfinished jobs.... ^Csrc/mongo/db/CMakeFiles/serveronly.dir/build.make:836: recipe for target 'src/mongo/db/CMakeFiles/serveronly.dir/matcher_covered.cpp.o' failed make[2]: * [src/mongo/db/CMakeFiles/serveronly.dir/matcher_covered.cpp.o] Interrupt CMakeFiles/Makefile2:4134: recipe for target 'src/mongo/db/CMakeFiles/serveronly.dir/all' failed make[1]: * [src/mongo/db/CMakeFiles/serveronly.dir/all] Interrupt Makefile:137: recipe for target 'all' failed make: * [all] Interrupt ......