From: [EMAIL PROTECTED] Operating system: Linux 2.4.10 PHP version: 4.1.2 PHP Bug Type: Compile Failure Bug description: Compile failure when SAPDB + freeTDS
Compiled PHP 4.1.2 with support for SAPDB with --with-sapdb=/opt/sapdb/interfaces/odbc --NO-PROBLEM Compiled with support for MSSQL (freeTDS) with --with-sybase=/usr/local/freetds --NO-PROBLEM BUT when I try to compile with both of them I get the following Compile-Error: make[2]: Entering directory `/root/compile/php-4.1.2/main' /bin/sh /root/compile/php-4.1.2/libtool --silent --mode=compile gcc -I. -I/root/compile/php-4.1.2/main -I/root/compile/php-4.1.2/main -I/root/compile/php-4.1.2 -I/usr/include/apache -I/root/compile/php-4.1.2/Zend -I/usr/include/mysql -I/opt/sapdb/interfaces/odbc/incl -I/usr/local/freetds/include -I/root/compile/php-4.1.2/ext/xml/expat -DEAPI_MM -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DHARD_SERVER_LIMIT=2048 -DDYNAMIC_MODULE_LIMIT=128 -DLINUX=22 -DMOD_SSL=208104 -DEAPI -DUSE_EXPAT -I/root/compile/php-4.1.2/TSRM -g -O2 -prefer-pic -c internal_functions.c In file included from /usr/local/freetds/include/sybfront.h:23, from /root/compile/php-4.1.2/ext/sybase/php_sybase_db.h:67, from internal_functions.c:40: /usr/local/freetds/include/sybdb.h:72: conflicting types for `RETCODE' /opt/sapdb/interfaces/odbc/incl/sqltypes.h:164: previous declaration of `RETCODE' /usr/local/freetds/include/sybdb.h:80: conflicting types for `BOOL' /opt/sapdb/interfaces/odbc/incl/WINDOWS.H:66: previous declaration of `BOOL' /usr/local/freetds/include/sybdb.h:106: redefinition of `BYTE' /opt/sapdb/interfaces/odbc/incl/WINDOWS.H:74: `BYTE' previously declared here make[2]: *** [internal_functions.lo] Error 1 make[2]: Leaving directory `/root/compile/php-4.1.2/main' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/root/compile/php-4.1.2/main' make: *** [all-recursive] Error 1 -- Edit bug report at http://bugs.php.net/?id=15903&edit=1 -- Fixed in CVS: http://bugs.php.net/fix.php?id=15903&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=15903&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=15903&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=15903&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=15903&r=support Expected behavior: http://bugs.php.net/fix.php?id=15903&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=15903&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=15903&r=submittedtwice