#28284 [Com]: php_mssql.h:41: error: redefinition of `SHORT'
ID: 28284
Comment by: vgr_php at edainworks dot com
Reported By: begemot at php dot com dot ua
Status: Closed
Bug Type: Compile Failure
Operating System: FreeBSD 5.2-RELEASE
PHP Version: 5CVS-2004-05-05 (dev)
New Comment:
got the same error for stable PHP 4.3.7 on FreeBSD 4.7-RELEASE-p22
thanks Nathanael ;-)
Previous Comments:
------------------------------------------------------------------------
[2004-06-04 17:56:05] 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-04 16:58:19] 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-05-05 16:00:57] 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
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=28284&edit=1
Thread (4 messages)