From: ssc at coolspot dot de Operating system: Linux 2.6.7 / Debian sarge PHP version: 4.3.8 PHP Bug Type: Compile Failure Bug description: PHP does not compile with freetds 0.62.4
Description: ------------ I installed freetds version 0.62.4 on some debian sarge system, using ./configure --prefix=/usr/freetds --enable-msdblib --with-tdsver=8.0 --enable-shared echo "/usr/freetds/lib" >> /etc/ld.so.conf ; ldconfig FreeTDS work ok. I then tried to compile php with ... --with-mssql=/usr/freetds ... and to link it against freetds resulting in : In file included from /root/php-4.3.8/ext/mssql/php_mssql.c:33: /root/php-4.3.8/ext/mssql/php_mssql.h:41: error: redefinition of `SHORT' /usr/freetds/include/sybdb.h:117: error: `SHORT' previously declared here make: *** [ext/mssql/php_mssql.lo] Fehler 1 I commented out the line 41 in ext/mssql/php_mssql.h, which is only a typdef short SHORT;, and it then worked, as expected. Compiler Version used is : Lese Spezifikationen von /usr/lib/gcc-lib/i486-linux/3.3.4/specs Konfiguriert mit: ../src/configure -v --enable-languages=c,c++,java,f77,pascal,objc,ada,treelang --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --with-gxx-include-dir=/usr/include/c++/3.3 --enable-shared --with-system-zlib --enable-nls --without-included-gettext --enable-__cxa_atexit --enable-clocale=gnu --enable-debug --enable-java-gc=boehm --enable-java-awt=xlib --enable-objc-gc i486-linux Thread-Modell: posix gcc-Version 3.3.4 (Debian 1:3.3.4-3) Reproduce code: --------------- Any Expected result: ---------------- Should compile Actual result: -------------- Does not compile -- Edit bug report at http://bugs.php.net/?id=29488&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=29488&r=trysnapshot4 Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=29488&r=trysnapshot5 Fixed in CVS: http://bugs.php.net/fix.php?id=29488&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=29488&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=29488&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=29488&r=needscript Try newer version: http://bugs.php.net/fix.php?id=29488&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=29488&r=support Expected behavior: http://bugs.php.net/fix.php?id=29488&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=29488&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=29488&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=29488&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=29488&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=29488&r=dst IIS Stability: http://bugs.php.net/fix.php?id=29488&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=29488&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=29488&r=float