ID: 15903 Updated by: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] -Status: Open +Status: Bogus Bug Type: Compile Failure Operating System: Linux 2.4.10 PHP Version: 4.1.2 New Comment:
This is a conflict between freedtds and the sapdb library, and PHP can't do anything about this problem. You should contact the FreeTDS or SapDB guys and ask if they want to change the name of their constants. Derick Previous Comments: ------------------------------------------------------------------------ [2002-03-06 11:27:10] [EMAIL PROTECTED] 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 this bug report at http://bugs.php.net/?id=15903&edit=1