Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

When i try compile freetds-stable from source (today is a 0.91 version) with:

./configure --with-iodbc=/usr/local --with-tdsver=7.2 --disable-libiconv
make install

i didn't find the library as it was in the previous version from the original ports. There were just .a and .la extension files.

So where i can find it, or how to compile it in a right way cause the iODBC refers to .so library in odbcinst.ini config:

Description=freetds driver
share|improve this question

There is currently 2 ports for FreeTDS from the FreeBSD port tree:

  • database/freetds which is indeed quite old (v 0.64)
  • database/freetds-devel which is more in pair with the version you are mentioning.

New versions of FreeTDS do not create a shared library (.so) since quite a while as mentioned on FreeTDS site FAQ: doesn't exist and isn't needed. Any reference to it in your linker commands can be safely removed.

As of version 0.82, the TDS utility library is not built as a shared object. The static library libtds.a, is not installed by make install and is not needed by an applications that uses a client library (CT-Library, DB-Library, or ODBC). Because libtds is statically linked to the client libraries, they each now contain all the TDS functionality they need.

So now the question is what for are you needing such a new version, then how to update the client application to link to this new FreeTDS version.

If it is ODBC, there is also some hints regarding its configuration in the FreeTDS FAQ (...)

share|improve this answer
i need to link it to the chain: PHP -> FreeTDS -> unixODBC -> SQL Server 2005. Compile PHP with FreeTDS ? – dima.h Feb 17 '14 at 3:52
oh yeah. PHP compiled it as a MSSQL module and it works. But i have a lot of code with odbc_query – dima.h Feb 17 '14 at 8:58

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.