With mariadb-5.5.33.tar.gz src on RHEL6.3, using cmake 2.8.11.2 (2.8.9 needed by storage/tokudb/CMakeLists.txt) and gcc 4.8.1 (built using GNU SRC - http://www.gnu.org/software/gsrc/), adding the bin dirs for these to PATH and gcc lib dirs to LD_LIBRARY_PATH,
and with "-flto -fuse-linker-plugin" removed from CMAKE_MODULE_LINKER_FLAGS_RELEASE in storage/tokudb/CMakeLists.txt
and "-fuse-linker-plugin" removed from storage/tokudb/ft-index/cmake_modules/TokuSetupCompiler.cmake (I did not try using --fwhole-program)
I can compile, link and pass all "make test" tests with:
cmake . -DCMAKE_CXX_COMPILER=/path/to/gcc_4_8_1/bin/c++
make test
When running the mariadb 5.5.33 bintar package built by "make package" on RHEL6.3 after disabling transparent hugepage support:
INSTALL SONAME 'ha_tokudb';
Query OK, 0 rows affected (0.09 sec)
INSTALL PLUGIN handlersocket SONAME 'handlersocket.so';
ERROR 1126 (HY000): Can't open shared library '<removed>mariadb-5.5.33-linux-x86_64/lib/plugin/handlersocket.so' (errno: 2 /usr/lib64/libstdc++.so.6: version `GLIBCXX_3.4.15' not found (required by <removed>mariadb-5.5.33-linux-x86_64/lib/p)
If I set LD_LIBRARY_PATH in support-files/mysql.server to the location of the gcc 4.8.1 lib64 then:
INSTALL PLUGIN handlersocket SONAME 'handlersocket.so';
Query OK, 0 rows affected (0.00 sec)
UPDATE:
Link to https://github.com/Tokutek/mariadb/issues/6
With mariadb-5.5.33.tar.gz src on RHEL6.3, using cmake 2.8.11.2 (2.8.9 needed by storage/tokudb/CMakeLists.txt) and gcc 4.8.1 (built using GNU SRC - http://www.gnu.org/software/gsrc/), adding the bin dirs for these to PATH and gcc lib dirs to LD_LIBRARY_PATH,
and with "-flto -fuse-linker-plugin" removed from CMAKE_MODULE_LINKER_FLAGS_RELEASE in storage/tokudb/CMakeLists.txt
and "-fuse-linker-plugin" removed from storage/tokudb/ft-index/cmake_modules/TokuSetupCompiler.cmake (I did not try using --fwhole-program)
I can compile, link and pass all "make test" tests with:
cmake . -DCMAKE_CXX_COMPILER=/path/to/gcc_4_8_1/bin/c++
make test
When running the mariadb 5.5.33 bintar package built by "make package" on RHEL6.3 after disabling transparent hugepage support:
INSTALL SONAME 'ha_tokudb';
Query OK, 0 rows affected (0.09 sec)
INSTALL PLUGIN handlersocket SONAME 'handlersocket.so';
ERROR 1126 (HY000): Can't open shared library '<removed>mariadb-5.5.33-linux-x86_64/lib/plugin/handlersocket.so' (errno: 2 /usr/lib64/libstdc++.so.6: version `GLIBCXX_3.4.15' not found (required by <removed>mariadb-5.5.33-linux-x86_64/lib/p)
If I set LD_LIBRARY_PATH in support-files/mysql.server to the location of the gcc 4.8.1 lib64 then:
INSTALL PLUGIN handlersocket SONAME 'handlersocket.so';
Query OK, 0 rows affected (0.00 sec)
UPDATE:
Link to https://github.com/Tokutek/mariadb/issues/6