Hi, Nihal!
On Feb 25, Nihal Dindar wrote:
> Hi again,
>
> Thank you for your help. I built skeleton with safemalloc by adding
>
> INCLUDES =3D -DMYSQL_DYNAMIC_PLUGIN -DDBUG_ON -DSAFE_MUTEX
> -DUNIV_MUST_NOT_INLINE -DEXTRA_DEBUG -DFORCE_INIT_OF_VARS -DSAFEMALLOC
> -DPEDANTIC_SAFEMALLOC -DSAFE_MUTEX $(MYSQL_INC)
>
> into src/Makefile.am but I still get the same error when I try to install
> the plugin.
Well, that means you haven't built your server with safemalloc.
In the include/my_sys.h:
#ifdef SAFEMALLOC
...
#define my_free(PTR,FLAG) _myfree((PTR), __FILE__, __LINE__,FLAG)
...
#else
...
extern void my_no_flags_free(void *ptr);
...
#define my_free(PTR,FG) ((void)FG,my_no_flags_free(PTR))
...
#endif
You you have SAFEMALLOC defined, you don't see my_no_flags_free().
Try gcc -dDI -E, it often helps in cases like this.
> Sergei Golubchik wrote:
>> On Feb 20, Nihal Dindar wrote:
>>>
>>> I am using Ubuntu 8.04 and mysql-6.0.3-alpha. I want to use gdb (GNU
>>> Project Debugger) with Skeleton engine. However, when I install
>>> mysql with gdb I can not install plugin for skeleton engine. Mysql
>>> gives ERROR 1126 (HY000): Cant open shared library
>>> .../libskeleton_engine.so (errno: 2 undefined symbol:
>>> my_no_flags_free) error although skeleton lib files are in the
>>> plugin directory. Do you have any ideas?
>>>
>> You have a plugin built w/o safemalloc, while your server is built with
>> safemalloc.
>>
Regards / Mit vielen Grüßen,
Sergei
--
__ ___ ___ ____ __
/ |/ /_ __/ __/ __ \/ / Sergei Golubchik <serg@stripped>
/ /|_/ / // /\ \/ /_/ / /__ Principal Software Engineer/Server Architect
/_/ /_/\_, /___/\___\_\___/ Sun Microsystems GmbH, HRB München 161028
<___/ Sonnenallee 1, 85551 Kirchheim-Heimstetten
Geschäftsführer: Thomas Schroeder, Wolfgang Engels, Dr. Roland Boemer
Vorsitzender des Aufsichtsrates: Martin Häring