Bug #6692 Refer back to Bug #6674
Submitted: 18 Nov 2004 0:04 Modified: 19 Nov 2004 6:58
Reporter: Dan Tong Email Updates:
Status: Can't repeat Impact on me:
None 
Category:MySQL Server: Compiling Severity:S1 (Critical)
Version:mysql-4.1.7 OS:
Assigned to: CPU Architecture:Any

[18 Nov 2004 0:04] Dan Tong
Description:
I think the error got fixed.  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

[16 Nov 6:18pm] 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

Suggested fix:
[16 Nov 6:38pm] Miguel Solorzano 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

How to repeat:
I just followed your instruction.  I did not see the previous error, but the new error appears.
[18 Nov 2004 1:39] MySQL Verification Team
I downloaded the source package and besides the custom build for
message.mc, I wasn't able for to get the error here mentioned:

uniques.cpp
Generating Code...
Linking...

mysqld.exe - 0 error(s), 1 warning(s)

Just unpack again the source, apply the custom build
to message.mc and try again. Maybe you removed
accidentally a file from the project.

Thanks
[19 Nov 2004 2:21] Dan Tong
I tried it several times, but I  got the same error message.

Here is how I did.

1.  Unpack the source.

2.  Apply the Custom Build to message.mc
     *  From Project menu, select Settings
     *  Click on Custom Build tab.  
         On Commands text list I enter 
                mc.exe "C:\endevor\work\mySQL\mysql-4.1.7\sql\message.mc"

         On Outputs text list I enter
                C:\endevor\work\mySQL\mysql-4.1.7\sql\message.rc
                C:\endevor\work\mySQL\mysql-4.1.7\sql\message.h

         Then click OK.

3.  From Build menu, select Set Active Configuration 

4.  Then select "mysqld - Win32 Debug" and click OK

5.  Press F7

Please let me know if I did any thing wrong.  Thanks!

Dan Tong
[19 Nov 2004 6:58] MySQL Verification Team
I downloaded the package of 12.9 MB and I will download the
package Standard	4.1.7	11.3M and verify if this is your
case. I will let you know what I will find.
[9 Dec 2004 4:48] Dan Tong
Do you have any good news about the error I got yet?
I also want to let you know that I got the same error when compiling on other PC (Windows XP).

Please let me know what you find out.

Thank you

Dan Tong