Bug #68124 [NEW]: Can not compile OCI8 with PHP5.6

From: Date: Wed, 01 Oct 2014 16:51:48 +0000
Subject: Bug #68124 [NEW]: Can not compile OCI8 with PHP5.6
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-187779@lists.php.net to get a copy of this message
From: afaurtosh at ucmerced dot edu Operating system: RHEL 6.5 PHP version: 5.6.0 Package: OCI8 related Bug Type: Bug Bug description:Can not compile OCI8 with PHP5.6 Description: ------------ When you follow the following procedure, to download and create the oci8 extension. It does hits an error. Below is the error, it seems that OCI8 can not be complied with PHP5.6 properly. I believe it is because ifdef HAVE_OCI8_DTRACE is somehow set.. when it shouldn't be. This is the code that throws the error ------------------------------------ #ifdef HAVE_OCI8_DTRACE #include "oci8_dtrace_gen.h" #endif This is the error that 5.6 when making it with 5.6 throws. ------------------------------------- /bin/sh /opt/oracle/oci8-2.0.8/libtool --mode=compile cc -I. -I/opt/oracle/oci8-2.0.8 -DPHP_ATOM_INC -I/opt/oracle/oci8-2.0.8/include -I/opt/oracle/oci8-2.0.8/main -I/opt/oracle/oci8-2.0.8 -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -I/usr/include/oracle/12.1/client64 -DHAVE_CONFIG_H -g -O2 -c /opt/oracle/oci8-2.0.8/oci8.c -o oci8.lo libtool: compile: cc -I. -I/opt/oracle/oci8-2.0.8 -DPHP_ATOM_INC -I/opt/oracle/oci8-2.0.8/include -I/opt/oracle/oci8-2.0.8/main -I/opt/oracle/oci8-2.0.8 -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -I/usr/include/oracle/12.1/client64 -DHAVE_CONFIG_H -g -O2 -c /opt/oracle/oci8-2.0.8/oci8.c -fPIC -DPIC -o .libs/oci8.o In file included from /opt/oracle/oci8-2.0.8/oci8.c:46: /opt/oracle/oci8-2.0.8/php_oci8_int.h:48:29: error: oci8_dtrace_gen.h: No such file or directory make: *** [oci8.lo] Error 1 Test script: --------------- # go to the following website # http://www.oracle.com/technetwork/topics/linuxx86-64soft-092277.html # Download the basic and SDK version # Download oracle-instantclient12.1-basic-12.1.0.2.0-1.x86_64.rpm Download oracle-instantclient12.1-devel-12.1.0.2.0-1.x86_64.rpm sudo pear download pecl/oci8 sudo tar xvzf oci8-2.0.8.tgz cd oci8-2.0.8/ sudo phpize sudo ./configure --with-oci8=shared,instantclient,/usr/lib/oracle/12.1/client64/lib/ make Expected result: ---------------- When your run the script above it should make an oci8.so extension, as outlined here: http://php.net/manual/en/oci8.installation.php It worked after i downgraded to php5.5 and it was able to compile correctly. Actual result: -------------- look at the button of the description -- Edit bug report at https://bugs.php.net/bug.php?id=68124&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=68124&r=trysnapshot54 Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=68124&r=trysnapshot55 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=68124&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=68124&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=68124&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=68124&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=68124&r=needscript Try newer version: https://bugs.php.net/fix.php?id=68124&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=68124&r=support Expected behavior: https://bugs.php.net/fix.php?id=68124&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=68124&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=68124&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=68124&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=68124&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=68124&r=dst IIS Stability: https://bugs.php.net/fix.php?id=68124&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=68124&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=68124&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=68124&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=68124&r=mysqlcfg

« previous php.bugs (#187779) next »