ID: 39888
User updated by: Martin dot Schnoy at hydro dot com
Reported By: Martin dot Schnoy at hydro dot com
Status: Wont fix
Bug Type: OCI8 related
Operating System: AIX 5.3 ML05
PHP Version: 4.4.4
New Comment:
I tried that already last December. Here is an extract of my posting to
Orcale SR 6032016.994:
I linked libclntsh.a as libclntsh.so and
libclntsh.so.10.1 and compiled PHP 4.4.4. There were no errors at
compile time.
However, there was an error when Apache 2 tried to load the PHP
module:
httpd: Syntax error on line 53 of /usr/local/apache2/conf/httpd.conf:
Cannot load /usr/local/apache2/modules/libphp4.so into server:
rtld: 0712-001 Symbol OCIInitialize was referenced from module
/usr/local/apache2/modules/libphp4.so
(), but a runtime definition of the symbol was not found.
nrtld: 0712-001 Symbol OCIEnvInit was referenced from module
/usr/local/apache2/modules/libphp4.so(),
but a runtime definition of the symbol was not found.
rtld: 0712-001 Symbol OCIHandleAlloc was referenced from module
/usr/local/apache2/modules/libphp4.so(),
but a runtime definition of the symbol was not found.
rtld: 0712-001 Symbol OCIErrorGet was referenced from module
/usr/local/apache2/modules/libphp4.so(),
but a runtime definition of the symbol was not found.
rtld: 0712-001 Symbol OCIHandleFree was referenced from module
/usr/local/apache2/modules/libphp4.so(),
but a runtime definition of the symbol was not found.
rtld: 0712-001 Symbol OCITransRollback was referenced from module
/usr/local/apache2/modules/libphp4.so(),
but a runtime definition of the symbol was not found.
rtld: 0712-001 Symbol OCIDescriptorFree was referenced from module
/usr/local/apache2/modules/libphp4.so(), but a runtime definition of
the symbol
was not found.
0509-021 Additional errors occurred but are not reported.
This is because libclntsh.a is in fact no shared library. It is a
static
library that can not be used as a shared library.
Previous Comments:
------------------------------------------------------------------------
[2007-01-11 10:53:07] [EMAIL PROTECTED]
Then create both .so and .so.10.1 as symlinks to .a.
------------------------------------------------------------------------
[2007-01-11 10:31:56] Martin dot Schnoy at hydro dot com
There is no /usr/local/instantclient10_1/libclntsh.so, only a
/usr/local/instantclient10_1/libclntsh.a. Orcale does not ship
libclntsh.so with instant client for AIX.
------------------------------------------------------------------------
[2007-01-11 10:20:48] [EMAIL PROTECTED]
>Configure failes because it does not find
>/usr/local/instantclient10_1/libclntsh.so.10.1
ln -s /usr/local/instantclient10_1/libclntsh.so
/usr/local/instantclient10_1/libclntsh.so.10.1
------------------------------------------------------------------------
[2007-01-11 10:10:39] Martin dot Schnoy at hydro dot com
I replaced the oci8 extension that was shipped with PHP 4.4.4 by the
latest version from PECL, ran buildconf --force and called configure
with parameter --with-oci8=instantclient,/usr/local/instantclient10_1.
The result was the same as with the originally shipped oci8:
checking for Oracle (OCI8) support... yes
checking Oracle Instant Client directory...
/usr/local/instantclient10_1
checking Oracle Instant Client SDK header directory...
/usr/local/instantclient1
0_1/sdk/include
checking Oracle Instant Client version... configure: error: Oracle
Instant Clien
t library version not supported
Configure failes because it does not find
/usr/local/instantclient10_1/libclntsh.so.10.1
------------------------------------------------------------------------
[2006-12-21 08:55:20] Martin dot Schnoy at hydro dot com
Will try OCI8 from PECL. Due to holidays I will probably not find the
time until Jan. 15.
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/39888
--
Edit this bug report at http://bugs.php.net/?id=39888&edit=1