[freetds] Building libtdsS.so on Mac OS X

James K. Lowden jklowden at freetds.org
Thu Oct 14 00:09:35 EDT 2010


A Jesse Jiryu Davis wrote:
> Executing a particular SELECT
> statement throws this:
> 
>                Error: ('IM001', '[IM001] [unixODBC][Driver
> Manager]Driver does not
> support this function (0) (SQLColAttribute)')
> 
> ... so I thought I'd try the latest version of FreeTDS.  I downloaded
> the source and tried various ./configure options, and no matter what I
> do no libtdsS.so is generated by 'make'.  I've also tried substituting
> libtdsodbc.0.so for libtdsS.so, like so:
> 
> [SQL Server]
> Description = FreeTDS Driver
> Driver=/usr/local/lib/libtdsodbc.0.so
> Setup=/usr/local/lib/libtdsodbc.0.so

I don't know what this Setup line does.  Is it really needed?  

> So it looks like I really need libtdsS.so.  

I don't think so.  libtds is no longer a shared object; it's a static
library incorporated in each client library.  

$ otool -L /usr/local/lib/libtdsodbc.so
/usr/local/lib/libtdsodbc.so:
        /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current
version 88.1.11)

It looks to me like you have an error in your odbc.ini or maybe
odbcinst.ini.  


> Error: ('IM001', '[IM001] [unixODBC][Driver
> Manager]Driver does not
> support this function (0) (SQLColAttribute)')

You might try TDSDUMP to see if you get more information.  

HTH.

--jkl



More information about the FreeTDS mailing list