I just filed a very annoying bug when trying to compile with plugin engines using the 5.1.xx source tarball.
I am trying to test SphinxSE as a plugin instead of getting it statically linked and came across an annoying bug. When using the configure
--with-plugins option only once, the engine is statically linked. When using it twice, the first engine is created as a plugin, and the 2nd one is linked statically. Here are a couple of examples:./configure –prefix=/usr/local/mysql-5.1.33 –with-plugins=innobase –with-plugins=sphinx
plugin_innobase_shared_target='ha_innodb.la' <-- plugin plugin_innobase_static_target='' plugin_sphinx_shared_target='' plugin_sphinx_static_target='libsphinx.a' <-- static ./configure --prefix=/usr/local/mysql-5.1.33 --with-plugins=sphinx --with-plugins=innobase ~/src/mysql-5.1.33$ egrep "plugin_(innobase|sphinx)" config.log plugin_innobase_shared_target='' plugin_innobase_static_target='libinnobase.a' <-- static plugin_sphinx_shared_target='ha_sphinx.la' <-- plugin plugin_sphinx_static_target=''
The bug is filed as Bug #45440.
2 Responses to “Bug When Compiling MySQL 5.1 From Source”
Leave a Reply