Bug #55660 MySQL Client Does Not Build on Cygwin
Submitted: 31 Jul 2010 12:35 Modified: 27 Aug 2010 15:00
Reporter: Larry Adams Email Updates:
Status: Unsupported Impact on me:
None 
Category:MySQL Server: Compiling Severity:S2 (Serious)
Version:5.1.49 OS:Other
Assigned to: CPU Architecture:Any
Tags: client cygwin, Contribution

[31 Jul 2010 12:35] Larry Adams
Description:
Building MySQL Client Libraries on MySQL is a bit of a chore.  It's not bad, but requires a single code change that I have attached.

Please accept it free of charge, no strings attached.

TheWitness
www.cacti.net

How to repeat:
./configure --without-server

Suggested fix:
--- vi.c.orig   2010-07-31 08:31:06.047354500 -0400
+++ vi.c        2010-07-31 08:29:42.095897000 -0400
@@ -914,14 +914,14 @@
  * NB: posix implies that we should enter insert mode, however
  * this is against historical precedent...
  */
-#if defined(__weak_reference) && !defined(__FreeBSD__)
+#if defined(__weak_reference) && !defined(__FreeBSD__) && !defined(__CYGWIN__)
 extern char *get_alias_text(const char *) __weak_reference(get_alias_text);
 #endif
 protected el_action_t
 /*ARGSUSED*/
 vi_alias(EditLine *el, int c)
 {
-#if defined(__weak_reference) && !defined(__FreeBSD__)
+#if defined(__weak_reference) && !defined(__FreeBSD__) && !defined(__CYGWIN__)
        char alias_name[3];
        char *alias_text;
[2 Aug 2010 9:07] Sveta Smirnova
Thank you for the report.

Cygwin is not officially supported platform, therefore I have to close this bug as "Unsupported". But thank you for the patch anyway: I hope it will help other users.
[3 Aug 2010 3:15] Larry Adams
Uhm.  You mean 'no longer supported right'.

Run the following against the source tree:

grep -r CYGWIN * | wc -l

Then, tell me again that you plan on doing nothing.  Does this mean that you will  be removing all the NON supported code from the rest of the source?

You appear to want to drive me and the rest of the Cacti Global community towards MariaDB.  Is that your goal?

TheWitness
[3 Aug 2010 3:18] Larry Adams
Going to attempt to build with MariaDB.  If it doesn't build, I'll submit a bug to them.  Let's see who fixes it first....

TheWitness
[3 Aug 2010 4:05] Larry Adams
Same bug in MariaDB.

https://bugs.launchpad.net/maria/+bug/612832
[27 Aug 2010 15:00] Larry Adams
The following bug has been fixed by the Maria DB team. :)