Uploaded image for project: 'MariaDB Server'
  1. MariaDB Server
  2. MDEV-12431

MariaRocks unittest does not compile

    XMLWordPrintable

Details

    Description

      There is a unit test in storage/rocksdb/unittests/test_properties_collector.cc .

      It was developed when the server was linked statically.
      It was not compiled after switching to ha_rocksdb.so build.
      An attempt to enable its compilation 44bc2a0ef71b034a0efea13cde96033743a69651 caused a compile error:

      CMakeFiles/test_properties_collector.dir/test_properties_collector.cc.o: In function `rocksdb::Status::Status(rocksdb::Status::Code, rocksdb::Slice const&, rocksdb::Slice const&)':
      /home/ubuntu/mariadb-10.2-comp2/storage/rocksdb/rocksdb/include/rocksdb/status.h:248: undefined reference to `rocksdb::Status::Status(rocksdb::Status::Code, rocksdb::Status::SubCode, rocksdb::Slice const&, rocksdb::Slice const&)'
      /home/ubuntu/mariadb-10.2-comp2/storage/rocksdb/rocksdb/include/rocksdb/status.h:248: undefined reference to `rocksdb::Status::Status(rocksdb::Status::Code, rocksdb::Status::SubCode, rocksdb::Slice const&, rocksdb::Slice const&)'
      CMakeFiles/test_properties_collector.dir/test_properties_collector.cc.o: In function `main':
      /home/ubuntu/mariadb-10.2-comp2/storage/rocksdb/unittest/test_properties_collector.cc:41: undefined reference to `myrocks::Rdb_tbl_prop_coll::Rdb_tbl_prop_coll(myrocks::Rdb_ddl_manager*, myrocks::Rdb_compact_params const&, unsigned int const&, unsigned char const&)'
      CMakeFiles/test_properties_collector.dir/test_properties_collector.cc.o: In function `myrocks::Rdb_tbl_prop_coll::~Rdb_tbl_prop_coll()':
      /home/ubuntu/mariadb-10.2-comp2/storage/rocksdb/unittest/.././properties_collector.h:74: undefined reference to `vtable for myrocks::Rdb_tbl_prop_coll'
      CMakeFiles/test_properties_collector.dir/test_properties_collector.cc.o: In function `myrocks::Rdb_tbl_prop_coll::~Rdb_tbl_prop_coll()':
      /home/ubuntu/mariadb-10.2-comp2/storage/rocksdb/unittest/.././properties_collector.h:74: undefined reference to `vtable for myrocks::Rdb_tbl_prop_coll'
      collect2: error: ld returned 1 exit status
      storage/rocksdb/unittest/CMakeFiles/test_properties_collector.dir/build.make:107: recipe for target 'storage/rocksdb/unittest/test_properties_collector' failed
      make[2]: *** [storage/rocksdb/unittest/test_properties_collector] Error 1
      CMakeFiles/Makefile2:8690: recipe for target 'storage/rocksdb/unittest/CMakeFiles/test_properties_collector.dir/all' failed
      make[1]: *** [storage/rocksdb/unittest/CMakeFiles/test_properties_collector.dir/all] Error 2
      Makefile:160: recipe for target 'all' failed
      make: *** [all] Error 2
      
      

      Attachments

        Issue Links

          Activity

            People

              psergei Sergei Petrunia
              psergei Sergei Petrunia
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:

                Git Integration

                  Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.