From:             mactis at cram-sudest dot fr
Operating system: AIX 5.2 64bits
PHP version:      5.2.1
PHP Bug Type:     *Compile Issues
Bug description:  PHP with oci8 support for Oracle 10G

Description:
------------
When attempting to compile PHP 5.2.1 with oci8 for oracle 10G we've got an
error during 'make' : 
/bin/sh /fic/Install/Php/php-5.2.1/libtool --silent --preserve-dup-deps
--mode=compile gcc  -Iext/oci8/ -I/fic/Install/Php/php-5.2.1/ext/oci8/
-DPHP_ATOM_INC -I/fic/Install/Php/php-5.2.1/include
-I/fic/Install/Php/php-5.2.1/main -I/fic/Install/Php/php-5.2.1
-I/opt/freeware/include/libxml2 -I/fic/Install/Php/php-5.2.1/ext/date/lib
-I/usr/X11R6/include -I/usr/include/freetype2
-I/ofa/app/oracle/product/10.2.0/db_1//rdbms/public
-I/ofa/app/oracle/product/10.2.0/db_1//rdbms/demo
-I/ofa/app/oracle/product/10.2.0/db_1//plsql/public
-I/fic/Install/Php/php-5.2.1/TSRM -I/fic/Install/Php/php-5.2.1/Zend   
-I/usr/include -DHAVE_LONG_LONG   -c
/fic/Install/Php/php-5.2.1/ext/oci8/oci8.c -o ext/oci8/oci8.lo
In file included from /fic/Install/Php/php-5.2.1/ext/oci8/oci8.c:50:
/fic/Install/Php/php-5.2.1/ext/oci8/php_oci8_int.h:344: error: parse error
before "oraub8"
make: 1254-004 The error code from the last command is 1.
    

Reproduce code:
---------------
export ORACLE_HOME=/ofa/app/oracle/product/10.2.0/db_1
export
LD_LIBRARY_PATH=$ORACLE_HOME/lib:$ORACLE_HOME/instantclient:/opt/freeware/lib
export CFLAGS=" -DHAVE_LONG_LONG"
./configure --prefix=/usr/local \
                    --with-apxs2=/usr/local/apache/bin/apxs \
                    --with-config-file-path=/usr/local/apache/conf \
                    --with-oci8=$ORACLE_HOME \
                    --enable-shared \
                    --disable-static \
                    --with-gd \
                    --enable-sigchild \
                    --with-gettext-dir=/opt/freeware/lib \
                    --with-zlib-dir=/opt/freeware/lib \
                    --with-png-dir=/opt/freeware/lib \
                    --with-zlib-dir=/opt/freeware/lib \
                    --with-xml-dir=/opt/freeware/lib \
                    --with-png-dir=/opt/freeware/lib \
                    --with-jpeg-dir=/opt/freeware/lib \
                    --with-freetype-dir=/opt/freeware/lib \
                    --with-xpm-dir=/opt/freeware/lib

make

Expected result:
----------------
Successful Compile.

Actual result:
--------------
/bin/sh /fic/Install/Php/php-5.2.1/libtool --silent --preserve-dup-deps
--mode=compile gcc  -Iext/oci8/ -I/fic/Install/Php/php-5.2.1/ext/oci8/
-DPHP_ATOM_INC -I/fic/Install/Php/php-5.2.1/include
-I/fic/Install/Php/php-5.2.1/main -I/fic/Install/Php/php-5.2.1
-I/opt/freeware/include/libxml2 -I/fic/Install/Php/php-5.2.1/ext/date/lib
-I/usr/X11R6/include -I/usr/include/freetype2
-I/ofa/app/oracle/product/10.2.0/db_1//rdbms/public
-I/ofa/app/oracle/product/10.2.0/db_1//rdbms/demo
-I/ofa/app/oracle/product/10.2.0/db_1//plsql/public
-I/fic/Install/Php/php-5.2.1/TSRM -I/fic/Install/Php/php-5.2.1/Zend   
-I/usr/include -DHAVE_LONG_LONG   -c
/fic/Install/Php/php-5.2.1/ext/oci8/oci8.c -o ext/oci8/oci8.lo
In file included from /fic/Install/Php/php-5.2.1/ext/oci8/oci8.c:50:
/fic/Install/Php/php-5.2.1/ext/oci8/php_oci8_int.h:344: error: parse error
before "oraub8"
make: 1254-004 The error code from the last command is 1.

-- 
Edit bug report at http://bugs.php.net/?id=40821&edit=1
-- 
Try a CVS snapshot (PHP 4.4): 
http://bugs.php.net/fix.php?id=40821&r=trysnapshot44
Try a CVS snapshot (PHP 5.2): 
http://bugs.php.net/fix.php?id=40821&r=trysnapshot52
Try a CVS snapshot (PHP 6.0): 
http://bugs.php.net/fix.php?id=40821&r=trysnapshot60
Fixed in CVS:                 http://bugs.php.net/fix.php?id=40821&r=fixedcvs
Fixed in release:             
http://bugs.php.net/fix.php?id=40821&r=alreadyfixed
Need backtrace:               http://bugs.php.net/fix.php?id=40821&r=needtrace
Need Reproduce Script:        http://bugs.php.net/fix.php?id=40821&r=needscript
Try newer version:            http://bugs.php.net/fix.php?id=40821&r=oldversion
Not developer issue:          http://bugs.php.net/fix.php?id=40821&r=support
Expected behavior:            http://bugs.php.net/fix.php?id=40821&r=notwrong
Not enough info:              
http://bugs.php.net/fix.php?id=40821&r=notenoughinfo
Submitted twice:              
http://bugs.php.net/fix.php?id=40821&r=submittedtwice
register_globals:             http://bugs.php.net/fix.php?id=40821&r=globals
PHP 3 support discontinued:   http://bugs.php.net/fix.php?id=40821&r=php3
Daylight Savings:             http://bugs.php.net/fix.php?id=40821&r=dst
IIS Stability:                http://bugs.php.net/fix.php?id=40821&r=isapi
Install GNU Sed:              http://bugs.php.net/fix.php?id=40821&r=gnused
Floating point limitations:   http://bugs.php.net/fix.php?id=40821&r=float
No Zend Extensions:           http://bugs.php.net/fix.php?id=40821&r=nozend
MySQL Configuration Error:    http://bugs.php.net/fix.php?id=40821&r=mysqlcfg

Reply via email to