MySQL Forums
Forum List  »  Custom Storage Engines

embedded server cannot accept a plugin engine
Posted by: Steve Yuan
Date: March 09, 2015 01:21PM

Hi,

I have developed a storage engine, ha_mybase.so, which works just fine with MySQL 5.6.23 used as a server. However, when I tried to load the engine into my application program using the embedded server, libmysqld.a, the loading is always rejected as shown below:

my_app_using_mysql> INSTALL PLUGIN fpcbase SONAME 'ha_mybase.so';
ERROR 1126: Can't open shared library '/usr/local/mysql/lib/plugin/ha_mybase.so' (errno: 2 /usr/local/mysql/lib/plugin/ha_mybase.so: undefined symbol: _ZN7handler10unbind_psiEv)

Note that the function symbol, _ZN7handler10unbind_psiEv, is indeed available in libmysqld.a as shown at the end of this post, but the application program keeps rejecting the loading. My application program is compiled using:

linux> g++ -I/usr/loca/mysql/include -L/usr/local/mysql/lib myapp.c -o myapp -lmysqld -lpthread -lm -lrt -lcrypt -ldl -laio -fno-rttiG -fno-rtti

Many attempts have been made to load the plugin engine with no luck, including
(1) using server_options
(2) using --mybase=FORCE_PLUS_PERMANENT in CMake and/or Makefile

Any help is greatly appreciated.

-- Steve

----------------------------------------------
linux> nm libmysqld.a |grep _ZN7handler10unbind_psiEv
U _ZN7handler10unbind_psiEv
U _ZN7handler10unbind_psiEv
U _ZN7handler10unbind_psiEv
U _ZN7handler10unbind_psiEv
U _ZN7handler10unbind_psiEv
U _ZN7handler10unbind_psiEv
U _ZN7handler10unbind_psiEv
U _ZN7handler10unbind_psiEv
U _ZN7handler10unbind_psiEv
U _ZN7handler10unbind_psiEv
0000000000000130 T _ZN7handler10unbind_psiEv

Options: ReplyQuote


Subject
Views
Written By
Posted
embedded server cannot accept a plugin engine
3671
March 09, 2015 01:21PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.