From:             u dot maiwald at kiss-net dot de
Operating system: Linux
PHP version:      4.3.4
PHP Bug Type:     Compile Failure
Bug description:  Error compiling with sybase_ct and postgres support

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 bug report at http://bugs.php.net/?id=26826&edit=1
-- 
Try a CVS snapshot (php4):  http://bugs.php.net/fix.php?id=26826&r=trysnapshot4
Try a CVS snapshot (php5):  http://bugs.php.net/fix.php?id=26826&r=trysnapshot5
Fixed in CVS:               http://bugs.php.net/fix.php?id=26826&r=fixedcvs
Fixed in release:           http://bugs.php.net/fix.php?id=26826&r=alreadyfixed
Need backtrace:             http://bugs.php.net/fix.php?id=26826&r=needtrace
Need Reproduce Script:      http://bugs.php.net/fix.php?id=26826&r=needscript
Try newer version:          http://bugs.php.net/fix.php?id=26826&r=oldversion
Not developer issue:        http://bugs.php.net/fix.php?id=26826&r=support
Expected behavior:          http://bugs.php.net/fix.php?id=26826&r=notwrong
Not enough info:            http://bugs.php.net/fix.php?id=26826&r=notenoughinfo
Submitted twice:            http://bugs.php.net/fix.php?id=26826&r=submittedtwice
register_globals:           http://bugs.php.net/fix.php?id=26826&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=26826&r=php3
Daylight Savings:           http://bugs.php.net/fix.php?id=26826&r=dst
IIS Stability:              http://bugs.php.net/fix.php?id=26826&r=isapi
Install GNU Sed:            http://bugs.php.net/fix.php?id=26826&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=26826&r=float

Reply via email to