[MDEV-5610] tokudb does not compile Created: 2014-02-04  Updated: 2014-02-04  Resolved: 2014-02-04

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

Type: Bug Priority: Major
Reporter: Jan Lindström (Inactive) Assignee: Sergei Golubchik
Resolution: Duplicate Votes: 0
Labels: tokudb
Environment:

jan@jan-GE70-0NC-0ND ~/mysql/maria-10.0-galera $ gcc --version
gcc (Ubuntu/Linaro 4.8.1-10ubuntu9) 4.8.1


Issue Links:
Duplicate
is duplicated by MDEV-5347 TokuDB compilation errors @ 5.5.34 Closed

 Description   

Compiler failure seen on build (not using -DCMAKE_BUILD_TYPE=Debug).

 
/home/jan/mysql/maria-10.0-galera/storage/tokudb/ft-index/ft/ft-ops.cc: In function ‘ft_leaf_run_gc’:
/home/jan/mysql/maria-10.0-galera/storage/tokudb/ft-index/ft/ft-ops.cc:2261:26: error: ‘leaf_entry’ may be used uninitialized in this function [-Werror=maybe-uninitialized]
     if (leaf_entry->type != LE_MVCC) {
                          ^
lto1: all warnings being treated as errors
lto-wrapper: /usr/bin/c++ returned 1 exit status
/usr/bin/ld: lto-wrapper failed
collect2: error: ld returned 1 exit status

Fix:

jan@jan-GE70-0NC-0ND ~/mysql/maria-10.0-galera $ bzr diff
=== modified file 'storage/tokudb/ft-index/ft/ft-ops.cc'
--- storage/tokudb/ft-index/ft/ft-ops.cc	2013-10-04 20:49:53 +0000
+++ storage/tokudb/ft-index/ft/ft-ops.cc	2014-02-04 18:04:06 +0000
@@ -2330,7 +2330,7 @@
     while (index < (num_leafentries_before = bn->data_buffer.omt_size())) {
         void* keyp = NULL;
         uint32_t keylen = 0;
-        LEAFENTRY leaf_entry;
+        LEAFENTRY leaf_entry = 0;
         bn->data_buffer.fetch_klpair(index, &leaf_entry, &keylen, &keyp);
         assert_zero(r);
         ft_basement_node_gc_once(


Generated at Thu Feb 08 07:05:41 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.