Bug #12294 unresolved external symbol _compress (mysqlclient.lib)
Submitted: 1 Aug 2005 9:11 Modified: 1 Aug 2005 12:45
Reporter: Honest Qiao Email Updates:
Status: Can't repeat Impact on me:
None 
Category:MySQL Server: Compiling Severity:S2 (Serious)
Version:4.0.25 OS:Windows (Windows)
Assigned to: CPU Architecture:Any

[1 Aug 2005 9:11] Honest Qiao
Description:
I've compiled and built the mySQL source (version 4.0.25) using Visual Studio 6.0, and I got the following error message.

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)

How to repeat:
0. Download mysql-4.0.25-win-src.zip and extract to F:\mysql-4.0.25
1. Start Visual Studio 6.0
2. Open Workspace from File menu
3. Open 'mysql.dsw'
4. visit http://bugs.mysql.com/bug.php?id=6674 ,
apply the below custom build to message.mc:
Commands:
mc.exe "F:\mysql-4.0.25\sql\message.mc"

Outputs:
F:\mysql-4.0.25\sql\message.rc
F:\mysql-4.0.25\sql\message.h

5. From Build menu, select Set Active Configuration 
6. Then select "mysqld - Win32 Debug" and click OK
7. Press F7
[1 Aug 2005 9:17] Honest Qiao
my setting of custom build

Attachment: Snap1.JPG (image/pjpeg, text), 95.44 KiB.

[1 Aug 2005 9:18] Honest Qiao
I install mysqld as NT Server named my-mysqld .
How to monitor mysql by use winmysqladmin.exe?
If you can give me some advise ,please letter to honestqiao@gmail.com.
thakns!

This error like http://bugs.mysql.com/bug.php?id=6674
If disable step 4, it's error :

Build : warning : failed to (or don't know how to) build
'F:\mysql-4.0.25\sql\message.rc'
Compiling resources...
RC : fatal error RC1110 : could not open
F:\mysql-4.0.25\sql\message.rc
Error executing rc.exe.
 
mysqld.exe - 1 error(s), 3 warning(s)
[1 Aug 2005 9:34] Honest Qiao
download it form 
http://dev.mysql.com/downloads/mysql/4.0.html#Source

Windows Source (zip)  4.0.25 7.4M Pick a mirror 
MD5: 70c8fd83e04f15e9b1894eb8fc704796 | Signature 
  Standard 4.0.25 5.8M Pick a mirror 
MD5: 7de6840ca6edb216bfced2ae03d8cfb1 | Signature
[1 Aug 2005 12:45] MySQL Verification Team
I was able to compile without the issue reported. Please read the Manual
how to build the source in Windows and which packages are necessary
for VC++.

--------------------Configuration: mysqld - Win32 Debug--------------------
Compiling resources...
Compiling...
convert.cpp

<cut>

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

mysqld.exe - 0 error(s), 4 warning(s)
[1 Aug 2005 13:39] Honest Qiao
could you tell me your ENV?
my ENV is:
MSVC6
masm6.13

source files:
mysql-4.0.25-win-src.zip 7.35 MB (7,709,631 字节)
[1 Aug 2005 13:43] Honest Qiao
can i use SP6 for MSVC???
It can be show on http://msdn.microsoft.com/vstudio/downloads/updates/sp/vs6/sp6/default.aspx
[2 Aug 2005 4:04] Honest Qiao
Today , I test it again.
My step:
0、Uninstall Microsoft Visual Studio 6.0, and restart my computer.

1、visit http://dev.mysql.com/doc/mysql/en/windows-source-build.html
   MySQL Reference Manual :: 2.8.6 Installing MySQL from Source on Windows

2、Install Microsoft Visual Studio 6.0, only Select Product VC6++

3、visit http://msdn.microsoft.com/vstudio/downloads/updates/sp/vs6/sp5/faq.aspx

4、visit http://msdn.microsoft.com/vstudio/downloads/updates/sp/vs6/sp5/default.aspx
   visit http://msdn.microsoft.com/vstudio/downloads/updates/sp/vs6/sp5/dnldoverview.aspx
   visit http://msdn.microsoft.com/vstudio/downloads/updates/sp/vs6/sp5/sp5_en.aspx
   download Service Pack 5 - Full Download - English,
   Description vs6sp5.exe 125.98 MB file 

5、visit http://msdn.microsoft.com/vstudio/downloads/tools/ppack/default.asp
   visit http://msdn.microsoft.com/vstudio/downloads/tools/ppack/download.aspx
   download The Visual C++ 6.0 Processor Pack for the Visual Studio 6.0 Service Pack 5
   Description vcpp5.exe 1.13 MB file

6、Install vs6sp5.exe and vcpp5.exe

7、Now ,I have VC++ 6.0 compiler (updated 5 SP and pre-processor package)

8、visit http://dev.mysql.com/downloads/
   visit http://dev.mysql.com/downloads/mysql/4.0.html
   scroll to bottom of the page
   download the Windows Source (zip)
   Description Standard 4.0.25 5.8M , file name is mysql-4.0.25-win-src.tar.gz

 9、visit http://dev.mysql.com/doc/mysql/en/windows-vc-plus-plus-build.html
    MySQL Reference Manual :: 2.8.6.1 Building MySQL Using VC++

 10、Create a work directory C:\workdir.  

 11、Extract mysql-4.0.25-win-src.tar.gz to C:\workdir
 
 12、Now the mysql source root directory is C:\workdir\mysql-4.0.25

 13、Start Microsoft Visual C++ 6.0. 

 14、In the File menu, select Open Workspace. 

 15、Open the mysql.dsw workspace in C:\workdir\mysql-4.0.25. 

 16、From the Build menu, select the Set Active Configuration menu

 17、Click over the screen selecting mysqld - Win32 Debug and click OK

 18、Press F7 to begin the build 

 19、Microsoft Visual C++ 6.0's Build window show:
 --------------------Configuration: mysqld - Win32 Debug--------------------
Build : warning : failed to (or don't know how to) build 'C:\workdir\mysql-4.0.25\sql\message.rc'
Compiling resources...
RC : fatal error RC1110 : could not open C:\workdir\mysql-4.0.25\sql\message.rc
Error executing rc.exe.

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

 20、I want know what wrong if my step , Please tell me, thanks very much

 21、my email is honestqiao@gmail.com