Skip to Content.
Sympa Menu

freetds - [freetds] Compiling for PHP extension error

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: "jleelim online" <jleelim AT hotmail.com>
  • To: freetds AT lists.ibiblio.org
  • Subject: [freetds] Compiling for PHP extension error
  • Date: Fri, 08 Apr 2005 10:49:36 -0400

Hi,

I need to install PHP Sybase support for Fedora Core 3. It has to be Sybase because the Mssql library functions are not compatible with legacy codes. I keep getting this Apache error when loading my sybase.so extension:

"PHP Warning: Unknown(): Unable to load dynamic library '/usr/lib/php4/sybase.so' - /usr/lib/php4/sybase.so: undefined symbol: dbversion in Unknown on line 0"

I first installed freetds-0.63:

./configure --with-tdsver=4.2
make
make install

SYBASE=/usr/local/freetds
LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:$SYBASE/lib
export SYBASE LD_LIBRARY_PATH

After I tried to compile PHP 4.3.9 sybase extension from php-src package:

phpize
./configure --with-php-configure=/usr/bin/­php-config --with-sybase=/usr/local/freetds
make
make install

My Apache is running httpd-2.0.52-3 and my Linux kernel is 2.6.9-1.667. Is this problem related to FreeTDS or PHP?

Any help is appreciated. Thanks, Steve






Archive powered by MHonArc 2.6.24.

Top of Page