[freetds] Compiling for PHP extension error

jleelim online jleelim at hotmail.com
Fri Apr 8 10:49:36 EDT 2005


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




More information about the FreeTDS mailing list