From: mb at netlogic dot ru Operating system: FreeBSD PHP version: 4.3.7 PHP Bug Type: Compile Failure Bug description: Compiling with FreeTDS failure
Description: ------------ On Linux we have following picture, when trying to compile PHP-4.3.7 with FreeTDS ...: ======================================================= gcc -Iext/mssql/ -I/usr/src/php-4.3.7/ext/mssql/ -DPHP_ATOM_INC -I/usr/src/php-4.3.7/include -I/usr/src/php-4.3.7/main -I/usr/src/php-4.3.7 -I/usr/src/php-4.3.7/Zend -I/usr/local/include -I/usr/src/php-4.3.7/ext/xml/expat -I/usr/src/php-4.3.7/TSRM -g -O2 -c /usr/src/php-4.3.7/ext/mssql/php_mssql.c -o ext/mssql/php_mssql.o && echo > ext/mssql/php_mssql.lo In file included from /usr/src/php-4.3.7/ext/mssql/php_mssql.c:33: /usr/src/php-4.3.7/ext/mssql/php_mssql.h:41: warning: redefinition of `SHORT' /usr/local/include/sybdb.h:103: warning: `SHORT' previously declared here ======================================================= But, on FreeBSD this warning became an error: ======================================================= gcc -Iext/mssql/ -I/usr/local/src/apache-php/php-4.3.7/ext/mssql/ -DPHP_ATOM_INC -I/usr/local/src/apache-php/php-4.3.7/include -I/usr/local/src/apache-php/php-4.3.7/main -I/usr/local/src/apache-php/php-4.3.7 -I/usr/local/src/apache-php/php-4.3.7/Zend -I/usr/local/include -I/usr/local/src/apache-php/php-4.3.7/ext/xml/expat -I/usr/local/src/apache-php/php-4.3.7/TSRM -g -O2 -c /usr/local/src/apache-php/php-4.3.7/ext/mssql/php_mssql.c -o ext/mssql/php_mssql.o && echo > ext/mssql/php_mssql.lo In file included from /usr/local/src/apache-php/php-4.3.7/ext/mssql/php_mssql.c:33: /usr/local/src/apache-php/php-4.3.7/ext/mssql/php_mssql.h:41: error: redefinition of `SHORT' /usr/local/include/sybdb.h:117: error: `SHORT' previously declared here *** Error code 1 Stop in /usr/local/src/apache-php/php-4.3.7. ======================================================= 1 platform: Debian Linux, 2.4.20 kernel, GCC 2.95.4, FreeTDS 0.61.1 2 platform: FreeBSD 5.2.1-RELEASE-p8, GCC 3.3.3, FreeTDS 0.62.3 Reproduce code: --------------- ext/mssql/php_mssql.h: #if HAVE_FREETDS #ifndef SHORT typedef short SHORT; #endif #define SQLTEXT SYBTEXT #define SQLCHAR SYBCHAR /usr/local/include/sybdb.h: typedef void *DBVOIDPTR; typedef short SHORT; typedef unsigned short USHORT; typedef int (*INTFUNCPTR) (void *, ...); -- Edit bug report at http://bugs.php.net/?id=29020&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=29020&r=trysnapshot4 Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=29020&r=trysnapshot5 Fixed in CVS: http://bugs.php.net/fix.php?id=29020&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=29020&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=29020&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=29020&r=needscript Try newer version: http://bugs.php.net/fix.php?id=29020&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=29020&r=support Expected behavior: http://bugs.php.net/fix.php?id=29020&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=29020&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=29020&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=29020&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=29020&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=29020&r=dst IIS Stability: http://bugs.php.net/fix.php?id=29020&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=29020&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=29020&r=float