#22160 [Fbk->Csd]: --with-mssql fails
ID: 22160
User updated by: jeremy@transparentblue.com
Reported By: jeremy@transparentblue.com
-Status: Feedback
+Status: Closed
Bug Type: Compile Failure
Operating System: RH Linux 8.0 2.4.18-14smp
PHP Version: 4CVS-2003-02-10 (stable)
New Comment:
Was using freetds 0.51
After changing SHORT => short in php_mssql.c
compilation died with call to undefined function dbsetmaxprocs
upgrade to freetds 0.61 (without changing php_mssql.c:338 back to
SHORT) and compiling with
--prefix=/usr/local --tdsver=7.0 --enable-msdblib
configure string.....php compiled with no errors
Thanks alot
Previous Comments:
------------------------------------------------------------------------
[2003-02-10 23:17:39] fmk@php.net
I'm unable to reproduce this. I use FreeTDS-0.61 compiled with
--prefix=/usr/local --tdsver=7.0 --enable-msdblib.
tdsver is specifying the default version you can overwrite this in
freetds.conf.
What version of FreeTDS are you using ?
I can send you a modified version of php_mssql.c (SHORT => short in
line 338) or you can make this change and see if that does the trick.
------------------------------------------------------------------------
[2003-02-10 22:03:26] jeremy@transparentblue.com
Previously reported bug
Bug #21544
compiling php4-STABLE-200302110230 fails
/usr/local/src/php4-STABLE-200302110230/ext/mssql/php_mssql.c: In
function `zm_activate_mssql':
/usr/local/src/php4-STABLE-200302110230/ext/mssql/php_mssql.c:338:
`SHORT' undeclared (first use in this function)
/usr/local/src/php4-STABLE-200302110230/ext/mssql/php_mssql.c:338:
(Each undeclared identifier is reported only once
/usr/local/src/php4-STABLE-200302110230/ext/mssql/php_mssql.c:338: for
each function it appears in.)
my configure string
note: /usr/local/freetds exists (freetds compiled --with-tdsver=4.2)
./configure --with-mysql=/usr/local/mysql \
--with-apache=../apache_1.3.27-http \
--with-mssql=/usr/local/freetds \
--with-gd=/usr/local/src/gd \
--with-jpeg-dir=/usr/local/src/jpeg-6b \
--with-xml \
--enable-wddx \
--with-png-dir=/usr/lib \
--with-zlib-dir=shared \
--with-curl=/usr/local
Very stuck.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=22160&edit=1
Thread (6 messages)