Skip to Content.
Sympa Menu

freetds - [freetds] Producing mssql.so

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: "Richard Soderberg" <richard.soderberg AT kib.ki.se>
  • To: <vorlon AT netexpress.net>, <freetds AT lists.ibiblio.org>
  • Cc:
  • Subject: [freetds] Producing mssql.so
  • Date: Thu, 31 Jul 2003 15:10:39 +0200

Steve Langasek wrote:

>You must compile FreeTDS first, and then compile the mssql extension
>*that's in the PHP source tree*, pointing it to the FreeTDS libs. This
>is the DSO named mssql.so

I found a similar hint in the php docs:

./libtool --mode=link gcc -L/usr/path/to/freetdsl/lib -lsybdb -I.
-I/usr/src/php-devel -DEAPI -g -02 -o php_mssql.la -avoid-version
-module -rpath /usr/src/php-devel/ext/mssql/modules php_mssql.lo

After some localisation/tweaking I managed to get this to run (sort
of...) but the finished "product" (mssql.so) did not load when php
started, php complained that it did not look lika a php library


The source for the mssql extension sits in /tmp/php-4.1.2/ext/mssql/
The freeTDS libs live in /usr/local/freedts/lib/

What would a correct libtool command like the above look like?

TIA,
/RS
Richard Söderberg, MD
Specialist in Clinical Physiology,
Flight Surgeon/AME Class 1
Systems Analyst






Archive powered by MHonArc 2.6.24.

Top of Page