php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #26826 Error compiling with sybase_ct and postgres support
Submitted: 2004-01-07 05:52 UTC Modified: 2004-01-07 21:11 UTC
From: u dot maiwald at kiss-net dot de Assigned:
Status: Not a bug Package: Compile Failure
PHP Version: 4.3.4 OS: Linux
Private report: No CVE-ID: None
 [2004-01-07 05:52 UTC] 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


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-01-07 21:11 UTC] sniper@php.net
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.

 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri May 03 08:01:29 2024 UTC