Bug #75603 [Opn->Nab]: Error during installation PDO_OCI-1.0
| From: | sixd@php.net | Date: | Thu, 14 Dec 2017 20:43:38 +0000 |
| Subject: | Bug #75603 [Opn->Nab]: Error during installation PDO_OCI-1.0 | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-213108@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=75603&edit=1
ID: 75603
Updated by: sixd@php.net
Reported by: spereuda at gmail dot com
Summary: Error during installation PDO_OCI-1.0
-Status: Open
+Status: Not a bug
Type: Bug
Package: PDO OCI
Operating System: Oracle Linux 6.8, x86_64
PHP Version: 7.0.26
Block user comment: N
Private report: N
New Comment:
It looks like you used the unmaintained PECL version. The top of the PECL page mentions this is
obsolete.
Use the PDO_OCI bundled with your version of PHP. Run phpize etc as normal to add it.
Previous Comments:
------------------------------------------------------------------------
[2017-11-30 16:06:28] spereuda at gmail dot com
Description:
------------
---
From manual page: http://www.php.net/ref.pdo-oci
---
# make
/bin/sh /opt/PDO_OCI-1.0/libtool --mode=compile cc -I -I. -I/opt/PDO_OCI-1.0 -DPHP_ATOM_INC
-I/opt/PDO_OCI-1.0/include -I/opt/PDO_OCI-1.0/main -I/opt/PDO_OCI-1.0
-I/var/local/php/php-7.1.2/include/php -I/var/local/php/php-7.1.2/include/php/main
-I/var/local/php/php-7.1.2/include/php/TSRM -I/var/local/php/php-7.1.2/include/php/Zend
-I/var/local/php/php-7.1.2/include/php/ext -I/var/local/php/php-7.1.2/include/php/ext/date/lib
-I/usr/include/oracle/12.2/client -DHAVE_CONFIG_H -g -O2 -c /opt/PDO_OCI-1.0/oci_driver.c -o
oci_driver.lo
libtool: compile: cc -I -I. -I/opt/PDO_OCI-1.0 -DPHP_ATOM_INC -I/opt/PDO_OCI-1.0/include
-I/opt/PDO_OCI-1.0/main -I/opt/PDO_OCI-1.0 -I/var/local/php/php-7.1.2/include/php
-I/var/local/php/php-7.1.2/include/php/main -I/var/local/php/php-7.1.2/include/php/TSRM
-I/var/local/php/php-7.1.2/include/php/Zend -I/var/local/php/php-7.1.2/include/php/ext
-I/var/local/php/php-7.1.2/include/php/ext/date/lib -I/usr/include/oracle/12.2/client
-DHAVE_CONFIG_H -g -O2 -c /opt/PDO_OCI-1.0/oci_driver.c -fPIC -DPIC -o .libs/oci_driver.o
/opt/PDO_OCI-1.0/oci_driver.c: In function âpdo_oci_fetch_error_funcâ:
/opt/PDO_OCI-1.0/oci_driver.c:51: error: too many arguments to function
âadd_next_index_stringâ
/opt/PDO_OCI-1.0/oci_driver.c: In function âoci_handle_preparerâ:
/opt/PDO_OCI-1.0/oci_driver.c:238: warning: passing argument 5 of âpdo_parse_paramsâ from
incompatible pointer type
/var/local/php/php-7.1.2/include/php/ext/pdo/php_pdo_driver.h:678: note: expected âsize_t
*â but argument is of type âint *â
/opt/PDO_OCI-1.0/oci_driver.c: At top level:
/opt/PDO_OCI-1.0/oci_driver.c:411: warning: initialization from incompatible pointer type
/opt/PDO_OCI-1.0/oci_driver.c:412: warning: initialization from incompatible pointer type
/opt/PDO_OCI-1.0/oci_driver.c:413: warning: initialization from incompatible pointer type
make: *** [oci_driver.lo] Error 1
Test script:
---------------
# make
/bin/sh /opt/PDO_OCI-1.0/libtool --mode=compile cc -I -I. -I/opt/PDO_OCI-1.0 -DPHP_ATOM_INC
-I/opt/PDO_OCI-1.0/include -I/opt/PDO_OCI-1.0/main -I/opt/PDO_OCI-1.0
-I/var/local/php/php-7.1.2/include/php -I/var/local/php/php-7.1.2/include/php/main
-I/var/local/php/php-7.1.2/include/php/TSRM -I/var/local/php/php-7.1.2/include/php/Zend
-I/var/local/php/php-7.1.2/include/php/ext -I/var/local/php/php-7.1.2/include/php/ext/date/lib
-I/usr/include/oracle/12.2/client -DHAVE_CONFIG_H -g -O2 -c /opt/PDO_OCI-1.0/oci_driver.c -o
oci_driver.lo
libtool: compile: cc -I -I. -I/opt/PDO_OCI-1.0 -DPHP_ATOM_INC -I/opt/PDO_OCI-1.0/include
-I/opt/PDO_OCI-1.0/main -I/opt/PDO_OCI-1.0 -I/var/local/php/php-7.1.2/include/php
-I/var/local/php/php-7.1.2/include/php/main -I/var/local/php/php-7.1.2/include/php/TSRM
-I/var/local/php/php-7.1.2/include/php/Zend -I/var/local/php/php-7.1.2/include/php/ext
-I/var/local/php/php-7.1.2/include/php/ext/date/lib -I/usr/include/oracle/12.2/client
-DHAVE_CONFIG_H -g -O2 -c /opt/PDO_OCI-1.0/oci_driver.c -fPIC -DPIC -o .libs/oci_driver.o
/opt/PDO_OCI-1.0/oci_driver.c: In function âpdo_oci_fetch_error_funcâ:
/opt/PDO_OCI-1.0/oci_driver.c:51: error: too many arguments to function
âadd_next_index_stringâ
/opt/PDO_OCI-1.0/oci_driver.c: In function âoci_handle_preparerâ:
/opt/PDO_OCI-1.0/oci_driver.c:238: warning: passing argument 5 of âpdo_parse_paramsâ from
incompatible pointer type
/var/local/php/php-7.1.2/include/php/ext/pdo/php_pdo_driver.h:678: note: expected âsize_t
*â but argument is of type âint *â
/opt/PDO_OCI-1.0/oci_driver.c: At top level:
/opt/PDO_OCI-1.0/oci_driver.c:411: warning: initialization from incompatible pointer type
/opt/PDO_OCI-1.0/oci_driver.c:412: warning: initialization from incompatible pointer type
/opt/PDO_OCI-1.0/oci_driver.c:413: warning: initialization from incompatible pointer type
make: *** [oci_driver.lo] Error 1
Expected result:
----------------
Hello!
I'm trying to install PDO_OCI-1.0(you can find in atach PDO_OCI-1.0.tgz), but when I run the
make command, I get the following error:
# make
/bin/sh /opt/PDO_OCI-1.0/libtool --mode=compile cc -I -I. -I/opt/PDO_OCI-1.0 -DPHP_ATOM_INC
-I/opt/PDO_OCI-1.0/include -I/opt/PDO_OCI-1.0/main -I/opt/PDO_OCI-1.0
-I/var/local/php/php-7.1.2/include/php -I/var/local/php/php-7.1.2/include/php/main
-I/var/local/php/php-7.1.2/include/php/TSRM -I/var/local/php/php-7.1.2/include/php/Zend
-I/var/local/php/php-7.1.2/include/php/ext -I/var/local/php/php-7.1.2/include/php/ext/date/lib
-I/usr/include/oracle/12.2/client -DHAVE_CONFIG_H -g -O2 -c /opt/PDO_OCI-1.0/oci_driver.c -o
oci_driver.lo
libtool: compile: cc -I -I. -I/opt/PDO_OCI-1.0 -DPHP_ATOM_INC -I/opt/PDO_OCI-1.0/include
-I/opt/PDO_OCI-1.0/main -I/opt/PDO_OCI-1.0 -I/var/local/php/php-7.1.2/include/php
-I/var/local/php/php-7.1.2/include/php/main -I/var/local/php/php-7.1.2/include/php/TSRM
-I/var/local/php/php-7.1.2/include/php/Zend -I/var/local/php/php-7.1.2/include/php/ext
-I/var/local/php/php-7.1.2/include/php/ext/date/lib -
Please help me to resolve this bug. Thank you.
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=75603&edit=1