Bug #7706 | MinGW compilation not very friendly | ||
---|---|---|---|
Submitted: | 6 Jan 2005 14:28 | Modified: | 9 Jun 2005 17:30 |
Reporter: | Mirza Hadzic | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | MySQL Server | Severity: | S3 (Non-critical) |
Version: | 4.1.8a | OS: | Windows (Windows 2000) |
Assigned to: | Jim Winstead | CPU Architecture: | Any |
[6 Jan 2005 14:28]
Mirza Hadzic
[6 Jan 2005 22:07]
MySQL Verification Team
Thank you for the bug report.
[21 Jan 2005 0:03]
Jim Winstead
I was not able to repeat the rint problem using MinGW 3.1.0-1 (and looking at the source, do not see how it could be a problem), but was able to fix the macro redefinitions. I've documented the steps for producing libmysql.a and opened a new feature request (Bug #8059) to get it added to our Windows packages.
[21 Jan 2005 13:23]
Mirza Hadzic
I investigate rint problem: if you include <math.h> as most program do, this has on line 544: /* 7.12.9.4 */ /* round, using fpu control word settings */ extern __inline__ double __cdecl rint (double x) { double retval; __asm__ ("frndint;": "=t" (retval) : "0" (x)); return retval; } which conflicts with mysql's config-win.h line 189: inline double rint(double nr) { double f = floor(nr); double c = ceil(nr); return (((c-nr) >= (nr-f)) ? f :c); }
[9 Jun 2005 17:30]
Jim Winstead
Thank you for your bug report. This issue has already been fixed in the latest released version of that product, which you can download at http://www.mysql.com/downloads/ Additional info: This was fixed by another commit.
[22 Jul 2005 14:06]
Mirza Hadzic
Please reopen this bug as in 4.1.13 version those symbols are double #defined too.