When setting up TokuDB, you may encounter error 1126.
I’ve seen 2 recent invocations of it, so I wanted to share them both here in case you run into this issue:
MariaDB [(none)]> install soname 'ha_tokudb'; ERROR 1126 (HY000): Can't open shared library '/usr/lib/mysql/plugin/ha_tokudb.so' (errno: 2, undefined symbol: bitmap_free)
MariaDB [(none)]> install soname 'ha_tokudb'; ERROR 1126 (HY000): Can't open shared library 'ha_tokudb.so' (errno: 8, API version for STORAGE ENGINE plugin TokuDB not supported by this version of the server)
The latter is a bit more descriptive, but the former is fairly cryptic.
Given the latter, as you may have guessed it, if you run into either of these, you have the wrong version of ha_tokudb.so in your plugin directory – that is, it is not the correct version for your MariaDB/MySQL.
In both cases, 10.0.11 was used. In the first case, the ha_tokudb.so was from 5.5.37. In the second case, the ha_tokudb.so was from 10.0.12.
Hope this helps.