Bug #6674 Fail to build "message.rc"
Submitted: 17 Nov 2004 2:18 Modified: 17 Nov 2004 2:38
Reporter: Dan Tong Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Server: Compiling Severity:S1 (Critical)
Version:mysql-4.1.7 OS:Windows (Windows 2000)
Assigned to: CPU Architecture:Any

[17 Nov 2004 2:18] Dan Tong
Description:
Hi there,
I've compiled and built the mySQL source (version 4.1.7) using Visual Studio 6.0 (I've installed SP5, but I am not sure the preprocessor package was in SP5 or not), and I got the following error message.

Generating Code...
Creating library...
--------------------Configuration: mysqld - Win32 Debug--------------------
Build : warning : failed to (or don't know how to) build 'C:\endevor\work\mySQL\mysql-4.1.7\sql\message.rc'
Compiling resources...
RC : fatal error RC1110 : could not open C:\endevor\work\mySQL\mysql-4.1.7\sql\message.rc
Error executing rc.exe.
 
mysqld.exe - 1 error(s), 3 warning(s)

Thank you for your help

Dan Tong

How to repeat:
1. Start Visual Studio 6.0
2. Open Workspace from File menu
3. Open 'mysql.dsw'
4. From Build menu, select Set Active Configuration 
5. Then select "mysqld - Win32 Debug" and click OK
6. Press F7
[17 Nov 2004 2:38] MySQL Verification Team
Thank you for the bug report, this issue was already fixed with a custom
build on BK source tree. Please apply the below custom build to message.mc:

Commands:
mc.exe "$(InputDir)\$(InputName).mc"

Outputs:
$(InputDir)\$(InputName).rc
$(InputDir)\$(InputName).h
[17 Nov 2004 18:34] Dan Tong
It fixed the error.  But now I got the other error message.
 
Generating Code...
Compiling...
my_compress.c
Creating library...
Performing Custom Build Step on \endevor\work\mySQL\mysql-4.1.7\lib_debug\mysqlclient.lib
MC: Compiling C:\endevor\work\mySQL\mysql-4.1.7\sql\message.mc
--------------------Configuration: mysql - Win32 Debug--------------------
Compiling...
completion_hash.cpp
mysql.cpp
readline.cpp
sql_string.cpp
Generating Code...
Linking...
mysqlclient.lib(my_compress.obj) : error LNK2001: unresolved external symbol _compress
mysqlclient.lib(my_compress.obj) : error LNK2001: unresolved external symbol _uncompress
../client_debug/mysql.exe : fatal error LNK1120: 2 unresolved externals
Error executing link.exe.
 
mysqld.exe - 3 error(s), 0 warning(s)

 
Please advise me how to fix it.  Thanks!
 
Dan Tong
[2 Aug 2005 4:09] Honest Qiao
the same as http://bugs.mysql.com/bug.php?id=12294