Bug #68124 [Opn->Fbk]: Can not compile OCI8 with PHP5.6

From: Date: Thu, 02 Oct 2014 15:15:59 +0000
Subject: Bug #68124 [Opn->Fbk]: Can not compile OCI8 with PHP5.6
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-187792@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=68124&edit=1 ID: 68124 Updated by: sixd@php.net Reported by: afaurtosh at ucmerced dot edu Summary: Can not compile OCI8 with PHP5.6 -Status: Open +Status: Feedback Type: Bug Package: OCI8 related Operating System: RHEL 6.5 PHP Version: 5.6.0 -Assigned To: +Assigned To: sixd Block user comment: N Private report: N New Comment: What 'configure' options was PHP built with? What Systemtap / DTrace RPMs are installed? Have you tried ./configure --enable-dtrace --with-oci8=...? Also see http://php.net/manual/en/oci8.dtrace.php Previous Comments: ------------------------------------------------------------------------ [2014-10-01 17:20:06] afaurtosh at ucmerced dot edu Updated the test script with installing the rpm # 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 rpm -ivh oracle-instantclient12.1-basic-12.1.0.2.0-1.x86_64.rpm sudo rpm -ivh 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 ------------------------------------------------------------------------ [2014-10-01 16:51:47] afaurtosh at ucmerced dot edu 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 this bug report at https://bugs.php.net/bug.php?id=68124&edit=1

« previous php.bugs (#187792) next »