Skip to content

2.0.1 compile error under Ubuntu #1233

@Sfinx

Description

@Sfinx

....
/home/toor/mongo-tokumx-2.0.1/src/mongo/db/storage/env.cpp: In function 'void mongo::storage::get_live_transaction_status(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_locks_callback, void, void_) {aka int ()(long unsigned int, long unsigned int, int ()(toku_db, toku_dbt, toku_dbt, void), void, void_)}' to 'iterate_transactions_callback {aka int ()(_toku_db_txn, int ()(toku_db, toku_dbt, toku_dbt, void), void, void_)}' [-fpermissive]
const int r = env->iterate_live_transactions(env, iterate_transactions::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, uint64_t) {aka bool ()(void, long unsigned int)}' [-fpermissive]
cursor->c_set_check_interrupt_callback(cursor, cursor_check_interrupt, &interrupt_extra);
^
/home/toor/mongo-tokumx-2.0.1/src/mongo/db/indexcursor.cpp: In constructor 'mongo::IndexCursor::IndexCursor(mongo::CollectionData
, const mongo::IndexDetails&, const boost::shared_ptrmongo::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, uint64_t) {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
......

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions