php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #40821 PHP with oci8 support for Oracle 10G
Submitted: 2007-03-15 15:02 UTC Modified: 2007-03-15 15:33 UTC
From: mactis at cram-sudest dot fr Assigned:
Status: Not a bug Package: *Compile Issues
PHP Version: 5.2.1 OS: AIX 5.2 64bits
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: mactis at cram-sudest dot fr
New email:
PHP Version: OS:

 

 [2007-03-15 15:02 UTC] mactis at cram-sudest dot fr
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.

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2007-03-15 15:33 UTC] tony2001@php.net
See bug #39178.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Wed Jul 02 12:01:36 2025 UTC