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.