Skip to Content.
Sympa Menu

freetds - Re: Error Compiling FreeTDS0.51 with Php4.03Pl1

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: "Alex Verstraeten" <alex AT quad.com.ar>
  • To: "TDS Development Group" <freetds AT franklin.oit.unc.edu>
  • Subject: Re: Error Compiling FreeTDS0.51 with Php4.03Pl1
  • Date: Fri, 1 Dec 2000 06:02:22 -0300

I've made a patch for php-4.0.3pl1 in order to
compile --with-sybase-ct=/usr/local/freetds
this patch (at the attachment) is 100% based on the patch from a mssql7
column at phpbuilder.com , but adapted to work on 4.0.3pl1

copy this patch file to the parent directory of your php source dir. and use
it like:

patch -p0 < php.4.0.3pl1_freetds.patch

then cd php-4.0.3pl1
./configure --with-sybase-ct=/path/to/your/freetds --with-whatever-arguments
-you-use
make && make install
and it should compile ok

I've reported this problem to the bugs.php.net but I had no feedback yet.
you can get some more info at:

http://bugs.php.net/bugs.php?id=7792

let me know how it goes :)
good luck,
alex.


----- Original Message -----
From: "bao nguyen" <baonguyenx AT yahoo.com>
To: "TDS Development Group" <freetds AT franklin.oit.unc.edu>
Sent: Thursday, November 30, 2000 11:31 PM
Subject: [freetds] Error Compiling FreeTDS0.51 with Php4.03Pl1


> Hi
>
> Please help 911!!!
> System Info: Linux6.1,FreeTDS0.51,PHP4.03Pl1, MySQL3.23.28,Apache1.3.9
> DB Server: NT4.0, MSSQL 7.0, SP1
>
> 1. Install FreeTDS0.51
> >./configure --with-tdsver=4.2 --enable-msdblib --enable-dbmfix
> --with-gnu-ld --enable-shared --enable-static
> >make
> >make install
>
> Set enviroment in bash Shell
> > SYBASE=/usr/local/freetds
> > LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:$SYBASE/lib
> > export SYBASE LD_LIBRARY_PATH
>
> Insert /usr/local/freetds/lib to etc/ld.so.conf
> >ldconfig
>
> Edit file /usr/local/freetds/interfaces
> NTSVR4
> query tcp tds4.2 207.120.42.150 1433
> master tcp tds4.2 207.120.42.150 1433
>
> 2. Install PHP
> >./configure --enable-track-vars --with-mysql=/usr/local/mysql --with-apxs
> --with-sybase-ct=/usr/local/freetds
>
> Replace "dbopen" with "tdsdbopen" in
> /usr/local/php4/ext/sysbase/php_sybase_db.c
>
> >make
>
> Here is the error message
>
> /usr/bin/ld: cannot open -lsybtcl: No such file or directory
> collect2: ld returned 1 exit status
> make[1]: *** [libphp4.la] Error 1
> make[1]: Leaving directory `/usr/local/php4'
> make: *** [all-recursive] Error 1
>
> I searched all over php support forums, but I still haven't found a
> solution yet.
>
> Thanks
> Bn
>
> ---
> You are currently subscribed to freetds as: [alex AT quad.com.ar]
> To unsubscribe, forward this message to
$subst('Email.Unsub')
>

Attachment: php4.0.3pl1_freetds.patch
Description: Binary data




Archive powered by MHonArc 2.6.24.

Top of Page