#28284 [Com]: php_mssql.h:41: error: redefinition of `SHORT'
ID: 28284
Comment by: nathanael dot morrison at cmc dot ca
Reported By: begemot at php dot com dot ua
Status: Open
Bug Type: Compile Failure
Operating System: FreeBSD 5.2-RELEASE
PHP Version: 5CVS-2004-05-05 (dev)
New Comment:
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.
Previous Comments:
------------------------------------------------------------------------
[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)