#13038 closed defect (fixed)
freetds 0.64_0 iODBC throwing runtime error on Mac OS X 10.5 Leopard
Reported by: | gary@… | Owned by: | macports-tickets@… |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 1.5.0 |
Keywords: | Cc: | gary@… | |
Port: |
Description
When trying to use freetds as a driver for iODBC I get this runtime error:
iODBC Demonstration program This program shows an interactive SQL processor Driver Manager: 03.52.0406.1211 1: SQLDriverConnect = [iODBC][Driver Manager]dlopen(/opt/local/lib/libtdsodbc.so, 6): Symbol not found: _MD4Final
Referenced from: /opt/local/lib/libtdsodbc.so Expected in: flat namespace
(0) SQLSTATE=00000
2: SQLDriverConnect = [iODBC][Driver Manager]Specified driver could not be loaded (0) SQLSTATE=IM003
However, when I run tsql %tsql -C Compile-time settings (established with the "configure" script):
Version: freetds v0.64
MS db-lib source compatibility: yes Sybase binary compatibility: unknown Thread safety: yes iconv library: yes TDS version: 8.0
iODBC: yes
Change History (5)
comment:1 Changed 17 years ago by ryandesign (Ryan Carsten Schmidt)
Cc: | gary@… added |
---|---|
Milestone: | → Port Bugs |
Summary: | Mac OS X 10.5 Leopard freetds iODBC throwing runtime error. → freetds 0.64_0 iODBC throwing runtime error on Mac OS X 10.5 Leopard |
comment:2 Changed 17 years ago by gary@…
comment:3 Changed 17 years ago by nerdrew@…
It worked for me using 10.5's built in glibtool (/usr/bin/glibtool) In the Portfile for FreeTDS add:
platform darwin 9 { patchfiles patch-src-tds-Makefile.in patch-src-server-Makefile.in \ patch-src-ctlib-Makefile.in patch-src-odbc-Makefile.in \ patch-src-dblib-Makefile.in patch-src-apps-Makefile.in configure.compiler gcc-4.0 pre-build { system "cp /usr/bin/glibtool ${worksrcpath}/libtool" } }
According to this thread http://article.gmane.org/gmane.comp.db.tds.freetds/8992
libtool seems to be the culprit