Bug #51268 Embedded server does not build on Windows
Submitted: 18 Feb 2010 6:55 Modified: 22 Mar 2010 11:11
Reporter: Alexander Nozdrin Email Updates:
Status: No Feedback Impact on me:
None 
Category:MySQL Server: Performance Schema Severity:S1 (Critical)
Version:M3 (Celosia) OS:Microsoft Windows
Assigned to: Marc Alff CPU Architecture:Any
Triage: Needs Triage: D1 (Critical)

[18 Feb 2010 6:55] Alexander Nozdrin
Description:
When configured with WITH_EMBEDDED_SERVER
the sources don't build on Windows.

Errors like:
1>f:\home\mysql\bzr\mysql-next-mr-build\storage\perfschema\pfs_instr_class.h(213) : error C2065: 'PSI_mutex_key' : undeclared identifier
1>f:\home\mysql\bzr\mysql-next-mr-build\storage\perfschema\pfs_instr_class.h(213) : error C2146: syntax error : missing ')' before identifier 'key'
1>f:\home\mysql\bzr\mysql-next-mr-build\storage\perfschema\pfs_instr_class.h(213) : error C2059: syntax error : ')'
1>f:\home\mysql\bzr\mysql-next-mr-build\storage\perfschema\pfs_instr_class.h(215) : error C2065: 'PSI_rwlock_key' : undeclared identifier
1>f:\home\mysql\bzr\mysql-next-mr-build\storage\perfschema\pfs_instr_class.h(215) : error C2146: syntax error : missing ')' before identifier 'key'
1>f:\home\mysql\bzr\mysql-next-mr-build\storage\perfschema\pfs_instr_class.h(215) : error C2059: syntax error : ')'

How to repeat:
- Get fresh copy of mysql-next-mr
- win\configure WITH_EMBEDDED_SERVER
- win\build-vs9_x64.bat
- Start build using generated MySql.sln
[18 Feb 2010 13:22] Miguel Solorzano
Thank you for the bug report.

1>c:\build\mysql-next-mr\storage\perfschema\pfs_instr_class.h(221) : error C2065: 'PSI_file_key' : undeclared identifier
1>c:\build\mysql-next-mr\storage\perfschema\pfs_instr_class.h(221) : error C2146: syntax error : missing ')' before identifier 'key'
1>c:\build\mysql-next-mr\storage\perfschema\pfs_instr_class.h(221) : error C2059: syntax error : ')'
1>Generating Code...
1>Build log was saved at "file://c:\build\mysql-next-mr\libmysqld\mysqlserver.dir\Debug\BuildLog.htm"
1>mysqlserver - 377 error(s), 78 warning(s)
[22 Feb 2010 11:11] Alexander Nozdrin
This bug seems to be fixed in mysql-next-mr-cmake/mysql-6.0-codebase-cmake.
[23 Mar 2010 0:00] Bugs System
No feedback was provided for this bug for over a month, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".