php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #28626 mssql, redefinition of `SHORT' compiler error
Submitted: 2004-06-03 23:21 UTC Modified: 2004-06-04 03:04 UTC
Votes:2
Avg. Score:5.0 ± 0.0
Reproduced:2 of 2 (100.0%)
Same Version:2 (100.0%)
Same OS:0 (0.0%)
From: matt at iws dot co dot nz Assigned:
Status: Closed Package: Compile Failure
PHP Version: 4.3.7 OS: Redhat 7.1
Private report: No CVE-ID: None
 [2004-06-03 23:21 UTC] matt at iws dot co dot nz
Description:
------------
When compiling php against freetds I get the following error:

In file included from /root/setup/php-4.3.7/ext/mssql/php_mssql.c:33:
/root/setup/php-4.3.7/ext/mssql/php_mssql.h:41: redefinition of `SHORT'
/usr/local/freetds/include/sybdb.h:103: `SHORT' previously declared here
make: *** [ext/mssql/php_mssql.lo] Error 1




PHP version: 4.3.7
FreeTDS version: 0.61



Configure:

./configure  --with-mysql=/usr/local/mysql --with-pgsql --enable-sockets --with-gd --with-jpeg-dir=/usr/lib --with-png-dir=/usr/lib --with-freetype-dir=/usr/local/lib --with-zlib-dir=/usr/lib --with-pdflib --with-pspell --with-apxs=/usr/local/apache/bin/apxs --with-xmlrpc --with-xml --with-mssql=/usr/local/freetds/ --with-curl --enable-sysvshm --enable-sysvsem --enable-sysvmsg --enable-shmop --enable-ftp --with-imap=/usr/local/imap-2000e --enable-dbase --with-openssl=/usr/local/ssl/


php version 4.3.6 works fine with the same configuration. I presume the error is caused by the latest update to the mssql extention to fix compile errors with older versions of freeTDS.


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-06-04 01:15 UTC] sinatosk at hotmail dot com
I too is also having the same problem... I am using Redhat 9.0 and freetds version 0.62.3
 [2004-06-04 03:04 UTC] pollita@php.net
This bug has been fixed in CVS.

Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.
 
Thank you for the report, and for helping us make PHP better.


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue May 07 22:01:30 2024 UTC