Bug #28107 If XCode is not on OS X, ODBC 3 fails
Submitted: 26 Apr 2007 1:20 Modified: 3 May 2007 12:03
Reporter: Colin Charles
Status: Duplicate
Category:Connector/ODBC Severity:S2 (Serious)
Version:3.51 OS:Mac OS X (PowerPC)
Assigned to: Target Version:

[26 Apr 2007 1:20] Colin Charles
Description:
Install ODBC3 on OS X. If XCode is not installed, it fails. Installing XCode fixes it.

How to repeat:
Install ODBC3 on OS X, without XCode.

Try to get it working.

Fail, with error:
1: SQLDriverConnect = [iODBC][Driver Manager]dlopen(/usr/lib/libmyodbc3.dylib, 6):
Library not loaded: /usr/lib/libltdl.3.dylib
Referenced from: /usr/lib/libmyodbc3.dylib
Reason: image not found (0) SQLSTATE=00000
2: SQLDriverConnect = [iODBC][Driver Manager]Specified driver could not be loaded (0)
SQLSTATE=IM003 

Its missing /usr/lib/libltdl.3.dylib, provided by XCode

Suggested fix:
Include /usr/lib/libltdl.3.dylib (~72k file)

ALso, reference to http://bugs.mysql.com/bug.php?id=15326

These should become fixed for ODBC 5, imho.