Bug #34256 unresolved symbols "min" and "max" in libmyodbc3.so
Submitted: 3 Feb 2008 0:00 Modified: 14 Mar 2008 18:36
Reporter: Walter Mack Email Updates:
Status: Closed Impact on me:
None 
Category:Connector / ODBC Severity:S3 (Non-critical)
Version:mysql-connector-odbc-3.51.23r998 OS:Linux
Assigned to: Jess Balint CPU Architecture:Any

[3 Feb 2008 0:00] Walter Mack
Description:
sever driver modules use min() and max() without including header file that defines this

How to repeat:
download mysql-connector-odbc-3.51.23r998, ./configure, make check

Suggested fix:
add the following line to drivers/myodbc3.h

#include "../util/MYODBCUtil.h"
[23 Feb 2008 20:01] Jess Balint
fix for 3.51 branch

Attachment: bug34256_3.51.diff (application/octet-stream, text), 5.53 KiB.

[23 Feb 2008 20:01] Jess Balint
fix for 5.1 branch

Attachment: bug34256_5.1.diff (application/octet-stream, text), 9.00 KiB.

[23 Feb 2008 20:02] Jess Balint
Walter -

What compiler, OS (and version), and MySQL libraries are you using?
[23 Feb 2008 22:39] Walter Mack
Jess,

I didn't write down the details you asked. 

The OS must have been either Fedora 7 or Gentoo with very few modifications from its plain vanilla state.
compiler was GCC (in a 4.xx version)
I can't remember where I got the source code from. I did get the source and compiled it on the target system. Most likely it was either from Gentoo's repository or it was from MySQL's web site.
[13 Mar 2008 15:25] Jess Balint
Committed to 3.51 branch as rev 1061, will be released in 3.51.24.
[13 Mar 2008 15:47] Jess Balint
Committed to 5.1 branch as rev 1062, will be released in 5.1.3.
[14 Mar 2008 18:36] MC Brown
No documentation required.