php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #58127 Install can't find Instant Client headers on x86_64
Submitted: 2008-03-28 09:40 UTC Modified: 2008-05-13 12:08 UTC
From: c dot c dot dean at durham dot ac dot uk Assigned:
Status: Closed Package: oci8 (PECL)
PHP Version: 5.2.5 OS: Fedora Core 6, x86_64
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: c dot c dot dean at durham dot ac dot uk
New email:
PHP Version: OS:

 

 [2008-03-28 09:40 UTC] c dot c dot dean at durham dot ac dot uk
Description:
------------
Running "pear install oci8-1.3.1.tgz" on Fedora 6 x86_64 with PHP 5.2.5, Oracle Instant Client 11.1.0.1-1 x86_64 devel and basic RPMs installed, and specifying "instantclient" (or anything else) for ORACLE_HOME when prompted, falls over, unable to find the Oracle headers.

A one line patch to config.m4 (appended below) fixes this, which is caused by failing to append LIBDIR_SUFFIX.


Reproduce code:
---------------
--- config.m4	2008-02-19 20:37:39.000000000 +0000
+++ config.m4.instant_libdir.fix	2008-03-28 11:32:59.000000000 +0000
@@ -334,7 +334,7 @@
   AC_MSG_CHECKING([Oracle Instant Client SDK header directory])
 
 dnl Header directory for Instant Client SDK RPM install
-  OCISDKRPMINC=`echo "$PHP_OCI8_INSTANT_CLIENT" | $PHP_OCI8_SED -e 's!^/usr/lib/oracle/\(.*\)/client/lib[/]*$!/usr/include/oracle/\1/client!'`
+  OCISDKRPMINC=`echo "$PHP_OCI8_INSTANT_CLIENT" | $PHP_OCI8_SED -e 's!^/usr/lib/oracle/\(.*\)/client'${LIBDIR_SUFFIX}'/lib[/]*$!/usr/include/oracle/\1/client'${LIBDIR_SUFFIX}'!'`
 
 dnl Header directory for Instant Client SDK zip file install
   OCISDKZIPINC=$PHP_OCI8_INSTANT_CLIENT/sdk/include


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2008-04-07 18:39 UTC] christopher dot jones at oracle dot com
Fixed in PHP 5.3 and PHP 6.  

The next PECL 1.3.x package will be built from PHP 5.3.

This bug is being left open so the fix can be merged to PHP 5.2 when the PHP 5.2.7 branch opens for development.
 [2008-05-13 12:08 UTC] christopher dot jones at oracle dot com
This bug has been fixed in CVS.

In case this was a documentation problem, the fix will show up at the
end of next Sunday (CET) on pecl.php.net.

In case this was a pecl.php.net website problem, the change will show
up on the website in short time.
 
Thank you for the report, and for helping us make PECL better.

Fix has been merged to 5.2.7
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Dec 26 19:01:30 2024 UTC