Bug #25413 Unable to build 5.0.34BK on windows
Submitted: 4 Jan 2007 12:50 Modified: 17 Jan 2007 8:20
Reporter: Tonci Grgin Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Server: Compiling Severity:S3 (Non-critical)
Version:5.0.34BK OS:Windows (WinXP)
Assigned to: Iggy Galarza CPU Architecture:Any

[4 Jan 2007 12:50] Tonci Grgin
Description:
mysys project is missing my_getpagesize.c thus build fails

How to repeat:
 - Clone on Linux
 - Make win source archive
 - Unzip, upgrade (if using VS2005) and build on Win

...\mysql-5.0.34>devenv.com mysql.sln /build "Max nt|Win32" 2>&1

------ Build started: Project: mysql_upgrade, Configuration: Release Win32 ------
Linking...
mysql_upgrade.obj : error LNK2019: unresolved external symbol _my_getpagesize referenced in function _create_defaults_file
../client_release/mysql_upgrade.exe : fatal error LNK1120: 1 unresolved externals
Build log was saved at "file://c:\ZaMySQL\Serveri\mysql-5.0.34-win-src\mysql-5.0.34\client\release\BuildLog.htm"

------ Build started: Project: mysqld, Configuration: Max nt Win32 ------
Linking...
log.obj : error LNK2019: unresolved external symbol _my_getpagesize referenced in function "public: virtual int __thiscall TC_LOG_MMAP::open(char const *)" (?open@TC_LOG_MMAP@@UAEHPBD@Z)
../client_release/mysqld-max-nt.exe : fatal error LNK1120: 1 unresolved externals
Build log was saved at "file://c:\ZaMySQL\Serveri\mysql-5.0.34-win-src\mysql-5.0.34\sql\max_nt\BuildLog.htm"
mysqld - 2 error(s), 0 warning(s)

Suggested fix:
Add my_getpagesize.c to mysys project.
[17 Jan 2007 8:22] Tonci Grgin
Fixed in 5.0.36