|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2007-03-15 15:33 UTC] tony2001@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Nov 07 12:00:01 2025 UTC |
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.