#22160 [Fbk->Csd]: --with-mssql fails

2003-06-02 Thread sniper
 ID:   22160
 Updated by:   [EMAIL PROTECTED]
 Reported By:  jeremy at transparentblue dot 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)


Previous Comments:


[2003-05-30 05:20:54] [EMAIL PROTECTED]

I got exactly the same problem with freetds 0.5.3
in the help of the configure script it should say that is depends on
0.6.1...
I was searching in the ext/mssql/php_mssql.c code and was trying to
figure out what that SHORT is used for, and where it comes from :)
this version note about freetds in the help could solve pain.




[2003-02-10 23:54:46] jeremy at transparentblue dot com

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



[2003-02-10 23:17:39] [EMAIL PROTECTED]

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 at transparentblue dot 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



#22160 [Fbk->Csd]: --with-mssql fails

2003-02-10 Thread jeremy
 ID:   22160
 User updated by:  [EMAIL PROTECTED]
 Reported By:  [EMAIL PROTECTED]
-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] [EMAIL PROTECTED]

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] [EMAIL PROTECTED]

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