ID: 26826 Updated by: [EMAIL PROTECTED] Reported By: u dot maiwald at kiss-net dot de -Status: Open +Status: Bogus Bug Type: Compile Failure Operating System: Linux PHP Version: 4.3.4 New Comment:
As you can workaround this easily, we're not going to add yet another hack into the configure just because some project hasn't "namespace-protected" their header files. Complain to postgresql dev team about this. Previous Comments: ------------------------------------------------------------------------ [2004-01-07 05:52:05] u dot maiwald at kiss-net dot de Description: ------------ Error compiling php 4.3.4 with sybase_ct and pgsql support. I use Sybase ASE 12.5 and PostgreSQL 7.4 installed in standard locations Configuraion: ./configure --with-apache=/usr/src/apache_1.3.26 --with-sybase-ct=/opt/sybase-12.5/OCS --with-pgsql=/usr/local/pgsq l --with-config-file-path=/etc/httpd --enable-versioning Problem: Since PostgreSQL 7.4 the file "sqlda.h" exists in /usr/local/pgsql/include (surprisingly it is empty). This file conflicts with /opt/sybase-12.5/OCS/include/sqlda.h Proposed Solution: the INCLUDES order in the Makefile of php should be changed to -I/opt/sybase-12.5/OCS/include -I/usr/local/pgsql/include -> first include sybase, then pgsql at least, this will work as long as sqlda.h of postgres is empty. Actual result: -------------- compiler output: gcc -Iext/sybase_ct/ -I//usr/src/php-4.3.4/ext/sybase_ct/ -DPHP_ATOM_INC -I//usr/src/php-4.3.4/include -I//usr/src/ php-4.3.4/main -I//usr/src/php-4.3.4 -I//usr/src/php-4.3.4/Zend -I/usr/local/pgsql/include -I/opt/sybase-12.5/OCS/in clude -I//usr/src/php-4.3.4/ext/xml/expat -I//usr/src/php-4.3.4/TSRM -g -O2 -c //usr/src/php-4.3.4/ext/sybase_ct/ php_sybase_ct.c -o ext/sybase_ct/php_sybase_ct.o && echo > ext/sybase_ct/php_sybase_ct.lo In file included from //usr/src/php-4.3.4/ext/sybase_ct/php_sybase_ct.h:62, from //usr/src/php-4.3.4/ext/sybase_ct/php_sybase_ct.c:29: /opt/sybase-12.5/OCS/include/ctpublic.h:273: parse error before "SQLDA" make: *** [ext/sybase_ct/php_sybase_ct.lo] Error 1 ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=26826&edit=1