Bug #68124 [Fbk->Asn]: Can not compile OCI8 with PHP5.6
| From: | afaurtosh at ucmerced dot edu | Date: | Thu, 02 Oct 2014 16:21:49 +0000 |
| Subject: | Bug #68124 [Fbk->Asn]: Can not compile OCI8 with PHP5.6 | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-187793@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
User updated by: afaurtosh at ucmerced dot edu
Reported by: afaurtosh at ucmerced dot edu
Summary: Can not compile OCI8 with PHP5.6
-Status: Feedback
+Status: Assigned
Type: Bug
Package: OCI8 related
Operating System: RHEL 6.5
PHP Version: 5.6.0
Assigned To: sixd
Block user comment: N
Private report: N
New Comment:
I installed php on my RHEL6.5 using the following commands:
sudo yum --enablerepo=remi,remi-php56 install php-fpm
====================================================================================
Package Arch Version Repository Size
====================================================================================
Installing:
php-fpm x86_64 5.6.0-1.el6.remi.2 remi-php56 1.3 M
Installing for dependencies:
php-cli x86_64 5.6.0-1.el6.remi.2 remi-php56 3.7 M
php-common x86_64 5.6.0-1.el6.remi.2 remi-php56 1.0 M
php-pear noarch 1:1.9.5-3.el6.remi remi 375 k
php-pecl-jsonc x86_64 1.3.6-1.el6.remi.5.6.1 remi-php56 47 k
php-pecl-zip x86_64 1.12.4-2.el6.remi.5.6 remi-php56 269 k
php-process x86_64 5.6.0-1.el6.remi.2 remi-php56 56 k
php-xml x86_64 5.6.0-1.el6.remi.2 remi-php56 208 k
sudo yum --enablerepo=remi,remi-php56 install php-devel
=====================================================================================
Package Arch Version Repository Size
=====================================================================================
Installing:
php-devel x86_64 5.6.0-1.el6.remi.2 remi-php56 1.2 M
Installing for dependencies:
php-pecl-jsonc-devel x86_64 1.3.6-1.el6.remi.5.6.1 remi-php56 25 k
I also don't think I have any Systemtap / DTrace RPMs installed, I can post my rpm -qa command
if needed tho.
When I tried the command sudo ./configure --enable-dtrace
--with-oci8=shared,instantclient,/usr/lib/oracle/12.1/client64/lib/
I got the following warning at the end:
configure: WARNING: unrecognized options: --enable-dtrace
along with the same warning after I did a sudo make:
libtool: compile: cc -I. -I/local/users/appadmin/oci8-2.0.8 -DPHP_ATOM_INC
-I/local/users/appadmin/oci8-2.0.8/include -I/local/users/appadmin/oci8-2.0.8/main
-I/local/users/appadmin/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
/local/users/appadmin/oci8-2.0.8/oci8.c -fPIC -DPIC -o .libs/oci8.o
In file included from /local/users/appadmin/oci8-2.0.8/oci8.c:46:
/local/users/appadmin/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
Previous Comments:
------------------------------------------------------------------------
[2014-10-02 15:15:59] sixd@php.net
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
------------------------------------------------------------------------
[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