php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #28284 php_mssql.h:41: error: redefinition of `SHORT'
Submitted: 2004-05-05 16:00 UTC Modified: 2004-06-04 17:56 UTC
Votes:2
Avg. Score:3.0 ± 2.0
Reproduced:1 of 1 (100.0%)
Same Version:0 (0.0%)
Same OS:0 (0.0%)
From: begemot at php dot com dot ua Assigned:
Status: Closed Package: Compile Failure
PHP Version: 5CVS-2004-05-05 (dev) OS: FreeBSD 5.2-RELEASE
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: begemot at php dot com dot ua
New email:
PHP Version: OS:

 

 [2004-05-05 16:00 UTC] begemot at php dot com dot ua
Description:
------------
In file included from /usr/home/begemot/src/php5-200405051230/ext/mssql/php_mssql.c:33:
/usr/home/begemot/src/php5-200405051230/ext/mssql/php_mssql.h:41: error: redefinition of `SHORT'
/usr/local/include/sybdb.h:117: error: `SHORT' previously declared here
*** Error code 1



Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-06-04 16:58 UTC] nathanael dot morrison at cmc dot ca
I've run into the same compile failure using php-4.3.7 and freetds-0.62.3:

In file included from /servers/build/php-4.3.7/ext/mssql/php_mssql.c:33:
/servers/build/php-4.3.7/ext/mssql/php_mssql.h:41: redefinition of `SHORT'
/servers/lib/freetds-0.62.3/include/sybdb.h:117: `SHORT' previously declared here
make: *** [ext/mssql/php_mssql.lo] Error 1

I was able to get it to compile by removing the following lines in ext/mssql/php_mssql.h starting on line 40:

#ifndef SHORT
typedef short SHORT;
#endif

Please note that in php-4.3.6 this wasn't a problem and everything compiled fine.
 [2004-06-04 17:56 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.


 [2004-06-09 13:26 UTC] vgr_php at edainworks dot com
got the same error for stable PHP 4.3.7 on FreeBSD 4.7-RELEASE-p22

thanks Nathanael ;-)
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Wed Jul 30 17:00:02 2025 UTC