To get mysql-5.0.84 to compile on solaris, sql/sql_show.cc needs a patch since there is no strsep in solaris.
Created attachment 212320 [details, diff] mysql-5.0.84-r1.ebuild.patch
Created attachment 212322 [details, diff] solaris-sql_show.patch
Created attachment 212324 [details, diff] mysql-5.0.84-r1.ebuild.patch
What version of Solaris is this? It doesn't fail to compile for me.
/etc/release says: Solaris 10 5/09 s10x_u7wos_08 X86
Looks like percona patches introduced this strsep requirement. That explains a lot to me. I couldn't imagine MySQL upstream doing that.
10030_all_userstatv2-percona-5.0.84-b18-20090811.patch to be exact
In all three cases it looks like a simple hack using strchr is able to replace strsep in this patch.
Replacing strsep with strchr lead to this: sql_show.cc: In function 'int fill_schema_table_stats(THD*, TABLE_LIST*, COND*)': sql_show.cc:2250: error: cannot convert 'char**' to 'const char*' for argument '1' to 'char* strchr(const char*, int)' sql_show.cc: In function 'int fill_schema_index_stats(THD*, TABLE_LIST*, COND*)': sql_show.cc:2293: error: cannot convert 'char**' to 'const char*' for argument '1' to 'char* strchr(const char*, int)' sql_show.cc:2294: error: cannot convert 'char**' to 'const char*' for argument '1' to 'char* strchr(const char*, int)' By the way, have you found a bugtracker at percona?
Created attachment 220571 [details, diff] mysql-5.0.84-r1.ebuild.patch Includes solaris-sql_show.patch only for solaris 2.10
is this superseeded by bug #306647 now?
Yes, I think we can close this here. At least I don't need 5.0.84 if I can have 5.0.90.
ok, cool