Click to See Complete Forum and Search --> : PHP 4.0.6 links against "sybtcl"


Anon
07-23-2001, 07:16 AM
I used to have a working system which consisted of Apache 1.3.12, PHP 4.0.1pl2 and FreeTDS 0.52pre2. This was running on a SCO Openserver 5.0.5 box and talking to MS SQL Server 7. The Unix parts were compiled with gcc 2.7.2.3.

I have recently attempt to add PostgreSQL support into PHP, but I ran into problems I upgraded to Apache 1.3.20, PHP 4.0.6 and FreeTDS 0.52. I must be forgetting to set some ./configure option, as PHP now links against sybtcl, which I suspect it never used to, because libsybtcl* doesn't exist anywhere. I have attempted to install Sybtcl, however having spent most of a week getting PostgreSQL hacked and then compiled I really can't be bothered with Sybtcl if I can avoid it.

How do I tell PHP to avoid Sybtcl? I have no need for TCL support as far as I am aware. Is this a PHP or a FreeTDS oddity?

Anon
07-24-2001, 03:09 AM
The clue is, of course, in the question. There is an article about accessing Sybase or MS SQL Server from PHP under unix, and in this article a patch is applied to PHP... The patch is called patch.freetds. I can't find it in PHP 4.0.6 or FreeTDS 0.52 but it's out there. It won't work with PHP 4.0.6, however, it's easy enough to "read" the patch file and apply the patch yourself.

Perhaps the PHP configure script could be modified to test whether it is using FreeTDS or Sybase's own libraries, and link accordingly?