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

LevelDB builds fail when perf schema is enabled

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:

      Description

      I get this after doing "cmake ." and then make. The error does not occur when I use "cmake -DWITH_PERFSCHEMA_STORAGE_ENGINE=0 .". The LevelDB handler has PS specific code.

      Linking CXX executable test_rowlocks
      cd /home/mcallaghan/b/mysql-5.6-leveldb/storage/leveldb/unittest && /usr/bin/cmake -E cmake_link_script CMakeFiles/test_rowlocks.dir/link.txt --verbose=1
      /usr/bin/c++ -Wall -Wno-unused-parameter -O3 -g -fabi-version=2 -fno-omit-frame-pointer -fno-strict-aliasing -DDBUG_OFF CMakeFiles/test_rowlocks.dir/test_rowlocks.cc.o CMakeFiles/test_rowlocks.dir/__/ldb_locks.cc.o -o test_rowlocks -lpthread ../../../unittest/mytap/libmytap.a ../../../mysys/libmysys.a ../../../dbug/libdbug.a ../../../strings/libstrings.a ../../../mysys/libmysys.a ../../../dbug/libdbug.a ../../../strings/libstrings.a ../../../zlib/libzlib.a -lm -lrt -lpthread
      CMakeFiles/test_rowlocks.dir/__/ldb_locks.cc.o: In function `_current_thd':
      /home/mcallaghan/b/mysql-5.6-leveldb/sql/mysqld.h:734: undefined reference to `THR_THD'
      CMakeFiles/test_rowlocks.dir/__/ldb_locks.cc.o: In function `LockTable::get_lock(LF_PINS*, unsigned char const*, unsigned long, int)':
      /home/mcallaghan/b/mysql-5.6-leveldb/storage/leveldb/ldb_locks.cc:202: undefined reference to `stage_waiting_on_row_lock'
      /home/mcallaghan/b/mysql-5.6-leveldb/storage/leveldb/ldb_locks.cc:202: undefined reference to `thd_enter_cond'
      /home/mcallaghan/b/mysql-5.6-leveldb/storage/leveldb/ldb_locks.cc:210: undefined reference to `thd_killed'
      /home/mcallaghan/b/mysql-5.6-leveldb/storage/leveldb/ldb_locks.cc:237: undefined reference to `thd_exit_cond'
      collect2: ld returned 1 exit status
      make[2]: *** [storage/leveldb/unittest/test_rowlocks] Error 1
      make[2]: Leaving directory `/home/mcallaghan/b/mysql-5.6-leveldb'
      make[1]: *** [storage/leveldb/unittest/CMakeFiles/test_rowlocks.dir/all] Error 2
      make[1]: Leaving directory `/home/mcallaghan/b/mysql-5.6-leveldb'
      make: *** [all] Error 2

        Gliffy Diagrams

          Attachments

            Activity

            Hide
            elenst Elena Stepanova added a comment -

            That's new, we didn't have it on revno 4591, it came with revno 4593.

            Show
            elenst Elena Stepanova added a comment - That's new, we didn't have it on revno 4591, it came with revno 4593.
            Hide
            psergey Sergei Petrunia added a comment -

            (Don't know if this is apparent, but just in case This is a problem with linking "test_rowlocks" unit test binary. If one runs "make -k" then mysqld binary will be built.

            The failure was caused by a recent change.

            Show
            psergey Sergei Petrunia added a comment - (Don't know if this is apparent, but just in case This is a problem with linking "test_rowlocks" unit test binary. If one runs "make -k" then mysqld binary will be built. The failure was caused by a recent change.

              People

              • Assignee:
                psergey Sergei Petrunia
                Reporter:
                mdcallag Mark Callaghan
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: