[MDEV-2782] LP:600744 - XtraDB compile error with VS 10 64-bit Created: 2010-07-02 Updated: 2015-02-02 Resolved: 2012-10-04 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Major |
| Reporter: | Hakan Küçükyılmaz (Inactive) | Assignee: | Unassigned |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | Launchpad | ||
| Attachments: |
|
| Description |
|
Compiling XtraDB with VS 2010 on 64-bit Windows fails with several errors all of the type: Error 10 error C2440: 'initializing' : cannot convert from 'ulint *' to 'unsigned long *' C:\Users\hakan\work\monty_program\maria-5.2\storage\xtradb\handler\ha_innodb.cc 10410 The code in question is: Error 10 error C2440: 'initializing' : cannot convert from 'ulint *' to 'unsigned long *' C:\Users\hakan\work\monty_program\maria-5.2\storage\xtradb\handler\ha_innodb.cc 10410 static MYSQL_SYSVAR_ULONG(use_purge_thread, srv_use_purge_thread, And line 10410 is |
| Comments |
| Comment by Bo Thorsen (Inactive) [ 2010-07-02 ] |
|
Re: XtraDB compile error with VS 10 64-bit |
| Comment by Bo Thorsen (Inactive) [ 2010-07-02 ] |
|
The problem is that xtradb tries to store a ulint using unsigned long. This works on all architecures except 64 bit Windows because ulint is defined as __int64 on that. There is currently no MYSQL_SYSVAR_xx that matches this, so I have added a MYSQL_SYSVAR_ULINT and changed the calls to this. See the attached patch. |
| Comment by Bo Thorsen (Inactive) [ 2010-07-02 ] |
|
Re: XtraDB compile error with VS 10 64-bit |
| Comment by Bo Thorsen (Inactive) [ 2010-07-02 ] |
|
New attempt at a patch. This one doesn't modify plugin.h but is local to xtradb. |
| Comment by Bo Thorsen (Inactive) [ 2010-07-02 ] |
|
Re: XtraDB compile error with VS 10 64-bit |
| Comment by Bo Thorsen (Inactive) [ 2010-07-02 ] |
|
Here is a smaller patch, which is the one I'll push to MariaDB. |
| Comment by Rasmus Johansson (Inactive) [ 2011-06-07 ] |
|
Launchpad bug id: 600744 |
| Comment by Stewart Smith [ 2011-06-07 ] |
|
Re: XtraDB compile error with VS 10 64-bit Thanks, |