Bug #65887 mysql_library_init and mysql_library_end are not visible in dll
Submitted: 12 Jul 2012 19:50 Modified: 14 Aug 2012 0:49
Reporter: l b Email Updates:
Status: No Feedback Impact on me:
None 
Category:MySQL Server: C API (client library) Severity:S3 (Non-critical)
Version:5 OS:Windows
Assigned to: CPU Architecture:Any
Tags: dll, windows

[12 Jul 2012 19:50] l b
Description:
mysql_library_init and mysql_library_end are not visible in libmysql.dll or libmysqld.dll

How to repeat:
This can be verified by examining the dll: dumpbin libmysqld.dll /EXPORTS
[13 Jul 2012 4:04] Valeriy Kravchuk
What exact version, 5.x.y, do you use?
[13 Jul 2012 12:57] l b
I tried two versions 5.1.63 and 5.5.25a.
I used the dll that ships with 5.1.63.  
I compiled 5.5.25a myself.
[14 Jul 2012 0:49] MySQL Verification Team
This looks to me a Documentation bug. In the Manual:

http://dev.mysql.com/doc/refman/5.0/en/mysql-library-init.html

you find:

mysql_library_init() was added in MySQL 5.0.3. For older versions of MySQL, call mysql_server_init() instead.

I wasn't able to find in the source mysql_library_init.

H:\yose>dumpbin "C:\Program Files\MySQL\MySQL Server 5.5\lib\libmysql.dll" /EXPORTS | findstr mysql_library_init

H:\yose>dumpbin "C:\Program Files\MySQL\MySQL Server 5.5\lib\libmysql.dll" /EXPORTS | findstr mysql_server_init
         63   3E 00014C40 mysql_server_init

H:\yose>dumpbin "C:\Program Files\MySQL\MySQL Server 5.5\lib\libmysql.dll" /EXPORTS | findstr mysql_library_end

H:\yose>dumpbin "C:\Program Files\MySQL\MySQL Server 5.5\lib\libmysql.dll" /EXPORTS | findstr mysql_server_end
         62   3D 00014D30 mysql_server_end
[14 Aug 2012 1:00] Bugs System
No feedback was provided for this bug for over a month, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".