xiezhenye / mysql-plugin-disable-myisam

MySQL plugin to disable creating MYISAM tables.
GNU General Public License v2.0
25 stars 7 forks source link

Unable to build plugin #2

Closed adedommelin-zz closed 10 years ago

adedommelin-zz commented 10 years ago

Hello,

First of all : thanks for this plugin !

I've tried to build it and it fails with the following error :

[100%] Building CXX object plugin/disable_myisam/CMakeFiles/disablemyisam.dir/dm.cc.o
In file included from /home/adedomme/tmp/Percona-Server-5.5.34-rel32.0/plugin/disable_myisam/dm.cc:23:
/home/adedomme/tmp/Percona-Server-5.5.34-rel32.0/include/../storage/myisam/ha_myisam.h: In member function ‘virtual FT_INFO* ha_myisam::ft_init_ext(uint, uint, String*)’:
/home/adedomme/tmp/Percona-Server-5.5.34-rel32.0/include/../storage/myisam/ha_myisam.h:95: error: invalid use of incomplete type ‘struct String’
/home/adedomme/tmp/Percona-Server-5.5.34-rel32.0/sql/my_decimal.h:39: error: forward declaration of ‘struct String’
/home/adedomme/tmp/Percona-Server-5.5.34-rel32.0/include/../storage/myisam/ha_myisam.h:95: error: invalid use of incomplete type ‘struct String’
/home/adedomme/tmp/Percona-Server-5.5.34-rel32.0/sql/my_decimal.h:39: error: forward declaration of ‘struct String’
/home/adedomme/tmp/Percona-Server-5.5.34-rel32.0/include/../storage/myisam/ha_myisam.h:95: error: invalid use of incomplete type ‘struct String’
/home/adedomme/tmp/Percona-Server-5.5.34-rel32.0/sql/my_decimal.h:39: error: forward declaration of ‘struct String’
make[2]: *** [plugin/disable_myisam/CMakeFiles/disablemyisam.dir/dm.cc.o] Error 1
make[1]: *** [plugin/disable_myisam/CMakeFiles/disablemyisam.dir/all] Error 2
make: *** [all] Error 2

Any idea ?

Thanks !

dynek commented 10 years ago

Jumping in as I am having the same issue: Oddely enough, including sql_string.h right before include of ha_myisam.h fixed it

Was able to build it without this modification for Percona Server 5.6 if that helps xiezhenye fixing the issue for 5.5.

xiezhenye commented 10 years ago

fixed. thanks to dynek :)