As you may or may not know, Windows is not yet a supported platform for XtraDB.
I thought I’d try to build it, and see what happens:
- Download XtraDB 5.5 Source
- cd C:\xtradb-5.5
- mkdir bld
- cd bld
- cmake ..
- VS08: File -> Open -> Solution -> C:\xtradb-5.5\bld\MySQL.sln
Build Ended With:
========== Build: 70 succeeded, 17 failed, 2 up-to-date, 10 skipped ==========
The first failure had to do with innobase:
18>Generating Code... 18>Build log was saved at "file://c:\..\innobase.dir\Debug\BuildLog.htm" 18>innobase - 9 error(s), 3 warning(s)
I checked the innobase build log and found this:
sql_prepare.cc ..\sql_prepare.cc(2199) : error C3861: 'gettimeofday': identifier not found ..\sql_prepare.cc(2232) : error C3861: 'gettimeofday': identifier not found ..\sql_prepare.cc(2639) : error C3861: 'gettimeofday': identifier not found ..\sql_prepare.cc(2672) : error C3861: 'gettimeofday': identifier not found ..\sql_prepare.cc(2808) : error C3861: 'gettimeofday': identifier not found ..\sql_prepare.cc(2848) : error C3861: 'gettimeofday': identifier not found ..\sql_prepare.cc(2940) : error C3861: 'gettimeofday': identifier not found ..\sql_prepare.cc(2973) : error C3861: 'gettimeofday': identifier not found ... sql_parse.cc ..\sql_parse.cc(5750) : error C3861: 'gettimeofday': identifier not found ..\sql_parse.cc(5827) : error C3861: 'gettimeofday': identifier not found
The ‘gettimeofday’ function is a Unix-only (i.e., there is no direct analog of the gettimeofday() in Windows) .. more details here.
So, this part of the code has simply not been ported to Windows yet.
I got to looking, and it is a reported bug already:
https://bugs.launchpad.net/percona-server/+bug/737895
https://bugs.launchpad.net/percona-patches/+bug/421925
https://bugs.launchpad.net/percona-patches/+bug/390156
But, do not worry. If you want to take advantage of the InnoDB enhancements found in XtraDB on Windows, you can simply use MariaDB.
There are pre-built MariaDB binaries for Windows, and MariaDB contains XtraDB+ (which is XtraDB plus some additional enhancements on top of it).
..
Related Build Links:
- Building MySQL and MariaDB on Windows using Visual Studio 2012 Express versus Visual Studio 2010 Express:
http://www.chriscalender.com/?p=1245 - How to Build MySQL 5.6 on Windows from Source Code:
http://www.chriscalender.com/?p=1233 - How to Build MariaDB 10.0 on Windows from Source Code:
http://www.chriscalender.com/?p=1224 - How to Build MariaDB 5.5 on Windows from Source Code:
http://www.chriscalender.com/?p=1087 - How to Build MySQL 5.5 on Windows from Source Code:
http://www.chriscalender.com/?p=689 - Building MariaDB 5.1 on Windows:
http://www.chriscalender.com/?p=736 - Building MariaDB 5.3 on Windows:
http://www.chriscalender.com/?p=864 - MySQL 5.5 Windows Build Appendix : Full Outputs and Common Errors from Building MySQL 5.5 on Windows:
http://www.chriscalender.com/?p=720 - Maintaining (and Building) your MySQL Source Tree on Windows:
http://www.chriscalender.com/?p=759 - Resolving the bison.exe m4 Invalid argument Error when building MySQL/MariaDB/XtraDB on Windows:
http://www.chriscalender.com/?p=798 - Building XtraDB on Windows:
http://www.chriscalender.com/?p=820
Hope this helps.
