Bug #75603 [Com]: Error during installation PDO_OCI-1.0
| From: | spereuda at gmail dot com | Date: | Fri, 15 Dec 2017 16:19:09 +0000 |
| Subject: | Bug #75603 [Com]: Error during installation PDO_OCI-1.0 | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-213120@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
Comment by: spereuda at gmail dot com
Reported by: spereuda at gmail dot com
Summary: Error during installation PDO_OCI-1.0
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:
Good evening. Also, I have problem with installing the OCI8 extension:
#./configure --with-php-config=/var/local/php/php-7.1.2/bin/php-config
--with-oci8=shared,instantclient,/usr/lib/oracle/12.2/client64/lib
#make
#make install
To enable the extension, I add a file named oci8.ini in /etc/php.d with this content:
extension=oci8.so
And now, when I run the php -v I get the follow warning:
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib64/php/modules/oci8.so'
- /usr/lib64/php/modules/oci8.so: undefined symbol: _call_user_function_ex in Unknown on line 0
Warning: PHP Startup: Unable to load dynamic library '/usr/lib64/php/modules/oci8.so' -
/usr/lib64/php/modules/oci8.so: undefined symbol: _call_user_function_ex in Unknown on line 0
The phpinfo.php script does not produce an "oci8" section saying "OCI8 Support
enabled".
Please, help me install the oci8 extension.
Previous Comments:
------------------------------------------------------------------------
[2017-12-14 20:43:37] sixd@php.net
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.
------------------------------------------------------------------------
[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