php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #6739 PHP will not compile with FreeTDS
Submitted: 2000-09-13 18:01 UTC Modified: 2000-12-30 13:59 UTC
From: c dot just at phoenixdigital dot com Assigned:
Status: Closed Package: Compile Failure
PHP Version: 4.0.2 OS: Redhat 6.2
Private report: No CVE-ID: None
 [2000-09-13 18:01 UTC] c dot just at phoenixdigital dot com
Hi,

I am trying to install the following on Redhat 6.1
I need to get PHP to talk to a MSSQL 6.5 server so I am trying to install FreeTDS as suggested.

FreeTDS compiled as follows
./configure --with-tdsver=4.2 --enable-msdblib --enable-static --enable-dbmfix
make
make install


PHP 4.0.2 compiled as follows
./configure --with-sybase-ct=/usr/local/freetds --enable-track-vars --with-mysql --with-apxs
make

it then fails here with the error
--------------------------------
Making all in .
make[1]: Entering directory `/home/phoenix/installs/php-4.0.2'
/bin/sh /home/phoenix/installs/php-4.0.2/libtool --silent --mode=compile gcc  -I. -I/home/phoenix/installs/php-4.0.2/ -I/home/phoenix/installs/php-4.0.2 -I/home/phoenix/installs/php-4.0.2/main -I/usr/include/apache -I/home/phoenix/installs/php-4.0.2/Zend -I/home/phoenix/installs/php-4.0.2 -I/home/phoenix/installs/php-4.0.2/ext/mysql/libmysql -I/usr/local/freetds/include -I/home/phoenix/installs/php-4.0.2/ext/xml/expat/xmltok -I/home/phoenix/installs/php-4.0.2/ext/xml/expat/xmlparse  -DXML_BYTE_ORDER=12 -g -O2  -c stub.c
/bin/sh /home/phoenix/installs/php-4.0.2/libtool --silent --mode=link gcc  -I. -I/home/phoenix/installs/php-4.0.2/ -I/home/phoenix/installs/php-4.0.2 -I/home/phoenix/installs/php-4.0.2/main -I/usr/include/apache -I/home/phoenix/installs/php-4.0.2/Zend -I/home/phoenix/installs/php-4.0.2 -I/home/phoenix/installs/php-4.0.2/ext/mysql/libmysql -I/usr/local/freetds/include -I/home/phoenix/installs/php-4.0.2/ext/xml/expat/xmltok -I/home/phoenix/installs/php-4.0.2/ext/xml/expat/xmlparse  -DXML_BYTE_ORDER=12 -g -O2   -o libphp4.la -rpath /home/phoenix/installs/php-4.0.2/libs -avoid-version -L/usr/local/freetds/lib  -R /usr/local/freetds/lib stub.lo  Zend/libZend.la sapi/apache/libsapi.la main/libmain.la regex/libregex.la ext/db/libdb.la ext/gd/libgd.la ext/mysql/libmysql.la ext/pcre/libpcre.la ext/posix/libposix.la ext/session/libsession.la ext/standard/libstandard.la ext/sybase_ct/libsybase_ct.la ext/xml/libxml.la  -lgdbm -lpam -ldl -lsybtcl -lintl -lcomn -lct -lcs -lttf -lgd -lresolv -lm -ldl -lcrypt -lnsl -lresolv
make[1]: Leaving directory `/home/phoenix/installs/php-4.0.2'

/usr/bin/ld: cannot open -lsybtcl: No such file or directory
collect2: ld returned 1 exit status
make[1]: *** [libphp4.la] Error 1
make: *** [all-recursive] Error 1
--------------------------------
Can someone please explain why this might be happening?
Even if they don't know how to fix it just give me a reason so I can try to fix it myself

Thanks


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-11-23 18:36 UTC] sniper@php.net
Have you tried PHP4.0.3pl1 or latest snapshot from http://snaps.php.net ??
Does this bug still exist with them?

--Jani
 [2000-12-30 13:59 UTC] sniper@php.net
No feedback. And more likely an user error. 
If problem still exists with PHP 4.0.4 and you have followed all
the install instructions, reopen this bug report.

--Jani
 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Thu Oct 08 21:00:02 2026 UTC