php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #58412 Unable to locate instantclient on HP-UX
Submitted: 2008-11-13 12:24 UTC Modified: 2012-10-26 05:46 UTC
From: catalin at isp-software dot de Assigned: sixd (profile)
Status: No Feedback Package: OCI8 related
PHP Version: Irrelevant OS: HP-UX 11.23
Private report: No CVE-ID: None
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
5 + 2 = ?
Subscribe to this entry?

 
 [2008-11-13 12:24 UTC] catalin at isp-software dot de
Description:
------------
On HP-UX the default shared library suffix is .sl in the configure script; however Oracle provides the libraries of the instantclient and it's database on HP-UX with .so suffix.
If I change the lines in configure which build the shlib suffix on hp-ux and change the .sl to .so it works fine.


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2008-11-13 12:56 UTC] christopher dot jones at oracle dot com
Just to confirm, are you on Itanium or PA-RISC? Are you on 32 or 64 bit? And which version of Instant Client are you using?
 [2008-11-13 14:05 UTC] catalin at isp-software dot de
It's a Itanium/64bit box.
I've tried with instantclient 11.1.0.6 and 10.2.0.4; both are the 32 bit versions downloaded from the oracle web site; the 32bit version for IA64
 [2008-11-19 21:02 UTC] christopher dot jones at oracle dot com
I'm told Instant Client uses .sl file extension on HP PA RISC and .so on HP Itanium. This is apparently what the 'ld' man pages specify.

Somehow the PHP build scripts need to differentiate between the two.
 [2009-03-10 16:03 UTC] christopher dot jones at oracle dot com
I don't have access to HP machines to test.  What is the effect of the following patch?  If it works, it will change the base shared library extension for PHP on Itanium.  This may or may not be a good thing.

--- acinclude.m4.orig	2008-12-03 13:55:53.000000000 -0800
+++ acinclude.m4	2009-03-10 13:57:10.000000000 -0700
@@ -1975,8 +1975,16 @@
  SHLIB_DL_SUFFIX_NAME=$SHLIB_SUFFIX_NAME
  case $host_alias in
  *hpux*[)]
-   SHLIB_SUFFIX_NAME=sl
-   SHLIB_DL_SUFFIX_NAME=sl
+   case $host_cpu in
+     ia64*[)]
+       SHLIB_SUFFIX_NAME=so
+       SHLIB_DL_SUFFIX_NAME=so
+       ;;
+     *[)]
+       SHLIB_SUFFIX_NAME=sl
+       SHLIB_DL_SUFFIX_NAME=sl
+       ;;
+   esac
    ;;
  *darwin*[)]
    SHLIB_SUFFIX_NAME=dylib
 [2009-03-11 12:36 UTC] christopher dot jones at oracle dot com
To test the patch:
cd php53
make clean
patch < file_containing_the_patch
rm configure
./buildconf --force
./configure --with_your_desired_options
make test
 [2009-03-12 02:51 UTC] catalin at isp-software dot de
I tried the patch on php-5.2.9 and it works just fine.
On php-5.3.0beta1 it fails with a different error:
 'error: Oracle Instant Client libraries not found'
I get same error on Linux, though I daresay it is a different issue. I am working on tracking it down.
 [2009-03-12 11:51 UTC] christopher dot jones at oracle dot com
Let us know how it goes.
 [2012-10-26 05:46 UTC] sixd@php.net
-Status: Feedback +Status: No Feedback -Package: oci8 +Package: OCI8 related
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Oct 11 01:01:27 2024 UTC