Bug #37609 Issues with server build on windows (w/o cygwin)
Submitted: 24 Jun 2008 14:02 Modified: 25 Jun 2008 10:57
Reporter: Vladimir Kolesnikov Email Updates:
Status: Unsupported Impact on me:
None 
Category:MySQL Server: Compiling Severity:S3 (Non-critical)
Version: OS:Windows
Assigned to: CPU Architecture:Any

[24 Jun 2008 14:02] Vladimir Kolesnikov
Description:
While building server from bzr repo on Windows I had a number of issues that are not documented on http://forge.mysql.com/wiki/How_to_Build_MySQL_on_Windows/Presentation#Running_the_test_su... and related resources.

1. CMake - minimal required version not specified, while cmake of earlier versions (e.g. 2.2-patch 3) fails silently. The version that worked for me was 2.6.

2. Bison - the link to the version 2.1 leads to a broken version of the tool. During installation I get a "corrupted package" error. A previous version bison-1.875-4.exe worked fine for me, but it additionally requires m4. m4-1.4.9.exe worked fine for me.

3. mysql-tests contains som unix-specific code. E.g. test main.ctype_big5 fails with the following error:

mysqltest: At line 82: command "rm $MYSQLTEST_VARDIR/master-data/test/t1.txt" failed

obviously there's no "rm" on windows. Unfortunately it's also not a part of the gnu tools for windows package, so the easiest way probably to fix the script.

4. You need the diff tool to run tests: diffutils-2.8.7-1.exe worked ok

All the gnu tools mentioned can be found at http://gnuwin32.sourceforge.net/packages.html

How to repeat:
try to install e.g. mysql-5.1-opt on a windows box

Suggested fix:
Update the docs, fix the script
[24 Jun 2008 20:59] MySQL Verification Team
Thank you for the bug report.
[25 Jun 2008 10:57] Stefan Hinz
As for the bugs in the test scripts: An effort has been going on to fix all the non portable constructs in our .test files (as this bug points out one of those). The main work has been done.

As for the docs bug: On closer inspection I see that this is a public Wiki page, nothing that the MySQL Docs team is in charge of. Please feel free to edit it yourself. :-)