php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #22160 --with-mssql fails
Submitted: 2003-02-10 22:03 UTC Modified: 2003-06-01 10:46 UTC
From: jeremy at transparentblue dot com Assigned:
Status: Closed Package: Compile Failure
PHP Version: 4CVS-2003-02-10 (stable) OS: RH Linux 8.0 2.4.18-14smp
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: jeremy at transparentblue dot com
New email:
PHP Version: OS:

 

 [2003-02-10 22:03 UTC] 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.


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-02-10 23:17 UTC] 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 23:54 UTC] 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-05-30 05:20 UTC] meebey@php.net
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.

 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Tue Jul 22 06:00:03 2025 UTC