Bug #13944 libmysqlclient exporting sha1_result function
Submitted: 12 Oct 2005 1:47 Modified: 26 Jan 2006 2:59
Reporter: Ask Hansen (Basic Quality Contributor) Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Server Severity:S3 (Non-critical)
Version:5.0.13 OS:Any (All)
Assigned to: Konstantin Osipov CPU Architecture:Any

[12 Oct 2005 1:47] Ask Hansen
Description:
libmysqlclient has a "sha1_result" function.

This generic name makes it hard to compile software packages using an sha1 library with the same name.

See for example
http://dovecot.org/list/dovecot/2005-March/006736.html
http://dovecot.org/list/dovecot/2005-April/006755.html

How to repeat:
download the dovecot from dovecot.org and compile it (mysql support is enabled by default).

Suggested fix:
rename sha1_result to mysql_sha1_result.
[10 Jan 2006 14:06] Tom Sommer
This is preventing installation of other applications, could you please rename the function?
[11 Jan 2006 14:31] Bugs System
A patch for this bug has been committed. After review, it may
be pushed to the relevant source trees for release in the next
version. You can access the patch from:

  http://lists.mysql.com/commits/914
[11 Jan 2006 14:33] Konstantin Osipov
Fixed in 4.1 tree tagged 4.1.18, merged into 5.0 and up (5.0.19)
[18 Jan 2006 19:04] Mike Hillyer
Confirm 4.1.18 please, so far we are still adding changelog entries to 4.1.17.
[18 Jan 2006 19:27] Konstantin Osipov
4.1.17, indeed.
However, 4.1.18 tag is already in.
[26 Jan 2006 2:59] Mike Hillyer
Documented in 4.1.17 feature change section:

   <listitem>
        <para>
          Internal <literal>sha1_result</literal> function renamed to
          <literal>mysql_sha1_result</literal> to prevent conflicts with
          other projects. (Bug #13944)
        </para>
      </listitem>