Bug #14008 new object protocol_cursor.cpp does not compile
Submitted: 13 Oct 2005 15:11 Modified: 13 Oct 2005 16:05
Reporter: thomas anderson Email Updates:
Status: Can't repeat Impact on me:
None 
Category:MySQL Server Severity:S2 (Serious)
Version:5.0.13 OS:Windows (windows)
Assigned to: MySQL Verification Team CPU Architecture:Any

[13 Oct 2005 15:11] thomas anderson
Description:
new file protocol_cursor.cpp found in 5.0.13 source for Windows release downloaded 10/13/05 mirror  Hurricane Electric, San Jose, USA
MD5: c1cb5183bf55310c76bd2584aed3e4a0 
can not compile, missing .......

comparison with Linux source from same site does not include object, can it be removed without problems

How to repeat:
download windows 5.0.13 rc source, untar, build mysqld-debug

Suggested fix:
can file be removed as extra
[13 Oct 2005 16:05] MySQL Verification Team
I downloaded the source from another mirror site and was unable
to repeat the behavior reported compiling the server debu using
the Build->Batch.

------ Build started: Project: mysqld, Configuration: Debug Win32 ------

Linking...
LINK : warning LNK4075: ignoring '/EDITANDCONTINUE' due to '/INCREMENTAL:NO' specification

Build log was saved at "file://c:\temp\mysql-5.0.13-rc\sql\debug\BuildLog.htm"
mysqld - 0 error(s), 1 warning(s)

---------------------- Done ----------------------

    Build: 14 succeeded, 0 failed, 0 skipped
[19 Oct 2005 8:27] Sela Lerer
Have the same problem (using batch build or regular, doesn't change nothing).

Output:

------ Build started: Project: mysqld, Configuration: Debug Win32 ------

Compiling...
protocol_cursor.cpp
protocol_cursor.cpp(29) : error C2653: 'Protocol_cursor' : is not a class or namespace name
protocol_cursor.cpp(36) : error C3861: 'prepare_for_send': identifier not found, even with argument-dependent lookup
protocol_cursor.cpp(39) : error C2065: 'fields' : undeclared identifier
protocol_cursor.cpp(39) : error C2065: 'alloc' : undeclared identifier
protocol_cursor.cpp(39) : error C2065: 'field_count' : undeclared identifier
protocol_cursor.cpp(40) : error C3861: 'fields': identifier not found, even with argument-dependent lookup
protocol_cursor.cpp(43) : error C3861: 'fields': identifier not found, even with argument-dependent lookup
protocol_cursor.cpp(48) : error C3861: 'alloc': identifier not found, even with argument-dependent lookup
protocol_cursor.cpp(49) : error C3861: 'alloc': identifier not found, even with argument-dependent lookup
protocol_cursor.cpp(50) : error C3861: 'alloc': identifier not found, even with argument-dependent lookup
protocol_cursor.cpp(51) : error C3861: 'alloc': identifier not found, even with argument-dependent lookup
protocol_cursor.cpp(52) : error C3861: 'alloc': identifier not found, even with argument-dependent lookup
protocol_cursor.cpp(53) : error C3861: 'alloc': identifier not found, even with argument-dependent lookup
protocol_cursor.cpp(77) : error C3861: 'alloc': identifier not found, even with argument-dependent lookup
protocol_cursor.cpp(95) : error C2653: 'Protocol_cursor' : is not a class or namespace name
protocol_cursor.cpp(97) : error C2065: 'packet' : undeclared identifier
protocol_cursor.cpp(97) : error C2227: left of '->ptr' must point to class/struct/union
        type is ''unknown-type''
protocol_cursor.cpp(98) : error C2227: left of '->ptr' must point to class/struct/union
        type is ''unknown-type''
protocol_cursor.cpp(98) : error C2227: left of '->length' must point to class/struct/union
        type is ''unknown-type''
protocol_cursor.cpp(98) : error C3861: 'packet': identifier not found, even with argument-dependent lookup
protocol_cursor.cpp(98) : error C3861: 'packet': identifier not found, even with argument-dependent lookup
protocol_cursor.cpp(100) : error C3861: 'fields': identifier not found, even with argument-dependent lookup
protocol_cursor.cpp(101) : error C3861: 'fields': identifier not found, even with argument-dependent lookup
protocol_cursor.cpp(101) : error C3861: 'field_count': identifier not found, even with argument-dependent lookup
protocol_cursor.cpp(107) : error C2227: left of '->length' must point to class/struct/union
        type is ''unknown-type''
protocol_cursor.cpp(106) : error C3861: 'alloc': identifier not found, even with argument-dependent lookup
protocol_cursor.cpp(107) : error C3861: 'field_count': identifier not found, even with argument-dependent lookup
protocol_cursor.cpp(107) : error C3861: 'packet': identifier not found, even with argument-dependent lookup
protocol_cursor.cpp(113) : error C3861: 'field_count': identifier not found, even with argument-dependent lookup
protocol_cursor.cpp(140) : error C2065: 'prev_record' : undeclared identifier
protocol_cursor.cpp(141) : error C3861: 'prev_record': identifier not found, even with argument-dependent lookup
protocol_cursor.cpp(143) : error C2065: 'row_count' : undeclared identifier

Build log was saved at "file://c:\MySQL\srcWin\mysql-5.0.13-rc\sql\debug\BuildLog.htm"
mysqld - 32 error(s), 0 warning(s)

---------------------- Done ----------------------

    Build: 0 succeeded, 1 failed, 0 skipped
[19 Oct 2005 10:09] Sela Lerer
I use VC.net. This problem seems to reveal it self only when I open the "dsw" file. I deleted all the files and then unziped again the original files and opened the project using the "sln" file and used "Build Solution" and it built and ran every thing :-).