[MDEV-4155] LevelDB builds fail when perf schema is enabled Created: 2013-02-08  Updated: 2013-02-09  Resolved: 2013-02-09

Status: Closed
Project: MariaDB Server
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Minor
Reporter: Mark Callaghan Assignee: Sergei Petrunia
Resolution: Fixed Votes: 0
Labels: leveldb


 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



 Comments   
Comment by Elena Stepanova [ 2013-02-08 ]

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

Comment by Sergei Petrunia [ 2013-02-09 ]

(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.

Generated at Thu Feb 08 06:54:12 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.