Bug #39312 [Com]: Cannot install PDO_OCI

2010-06-24 Thread petri dot mahanen at brainalliance dot com
Edit report at http://bugs.php.net/bug.php?id=39312&edit=1

 ID:   39312
 Comment by:   petri dot mahanen at brainalliance dot com
 Reported by:  andrew dot nagy at villanova dot edu
 Summary:  Cannot install PDO_OCI
 Status:   Feedback
 Type: Bug
 Package:  PDO related
 Operating System: Linux
 PHP Version:  5.2.9
 Assigned To:  sixd

 New Comment:

The snapshot will still not compile on OS X as the patch of [2009-01-29
09:37 UTC] michael-ring at t-online dot de has not been applied.


Previous Comments:

[2010-03-25 12:12:34] ka...@php.net

Please try using this snapshot:

  http://snaps.php.net/php5.2-latest.tar.gz
 
For Windows:

  http://windows.php.net/snapshots/




[2010-03-16 20:54:32] jbrauer at llu dot edu

I got it to build on Redhat using the instantclient RPM.  Here's what I
did.



manually added the following to config.m4 to allow for Oracle instant
client 

11.1

(stolen from matts at iastate above)

@@ -7,6 +7,8 @@

   if test -s "$PDO_OCI_DIR/orainst/unix.rgs"; then

 PDO_OCI_VERSION=`grep '"ocommon"' $PDO_OCI_DIR/orainst/unix.rgs |
sed 's/[ 

][ ]*/:/g' | cut -d: -f 6 | cut -c 2-4`

 test -z "$PDO_OCI_VERSION" && PDO_OCI_VERSION=7.3

+  elif test -f $PDO_OCI_DIR/lib/libclntsh.$SHLIB_SUFFIX_NAME.11.1;
then

+PDO_OCI_VERSION=11.1

   elif test -f $PDO_OCI_DIR/lib/libclntsh.$SHLIB_SUFFIX_NAME.10.1;
then

 PDO_OCI_VERSION=10.1

   elif test -f $PDO_OCI_DIR/lib/libclntsh.$SHLIB_SUFFIX_NAME.9.0; then



AND



@@ -119,6 +126,9 @@

 10.2)

   PHP_ADD_LIBRARY(clntsh, 1, PDO_OCI_SHARED_LIBADD)

   ;;

+11.1)

+  dnl PHP_ADD_LIBRARY(clntsh, 1, PDO_OCI_SHARED_LIBADD)

+  ;;

 *)

   AC_MSG_ERROR(Unsupported Oracle version! $PDO_OCI_VERSION)

   ;;



if you have instant client of lower version its not needed.



Then I re phpize 'd it. and ran configure:

(esimard at mediagrif dot com)'s strace showed me the only dir I needed
was /usr



./configure --with-pdo-oci=instantclient,/usr,11.1.0.1



configure, make and make install completed successfully


[2009-09-16 21:15:51] matts at iastate dot edu

Since the above messed up the formatting, I'll keep a copy of the patch
here for the meantime:



http://booster.agron.iastate.edu/mattsteven/oci_patch_jaunty.patch


[2009-09-16 21:13:02] matts at iastate dot edu

Here is a patch which will let you build the pdo_oci lib with the
instant client on debian or ubuntu systems.  Save the contents to
oci_patch.txt, and then run it against your config.m4 file like so:



cd PDO_OCI-1.0 && patch -p0 < /path/to/oci_patch.txt



=



### Eclipse Workspace Patch 1.0

#P pdo_oci

Index: config.m4

===

--- config.m4   (revision 141)

+++ config.m4   (working copy)

@@ -7,6 +7,8 @@

   if test -s "$PDO_OCI_DIR/orainst/unix.rgs"; then

 PDO_OCI_VERSION=`grep '"ocommon"' $PDO_OCI_DIR/orainst/unix.rgs |
sed 's/[ ][ ]*/:/g' | cut -d: -f 6 | cut -c 2-4`

 test -z "$PDO_OCI_VERSION" && PDO_OCI_VERSION=7.3

+  elif test -f $PDO_OCI_DIR/lib/libclntsh.$SHLIB_SUFFIX_NAME.11.1;
then

+PDO_OCI_VERSION=11.1

   elif test -f $PDO_OCI_DIR/lib/libclntsh.$SHLIB_SUFFIX_NAME.10.1;
then

 PDO_OCI_VERSION=10.1

   elif test -f $PDO_OCI_DIR/lib/libclntsh.$SHLIB_SUFFIX_NAME.9.0; then

@@ -57,14 +59,19 @@

 AC_MSG_CHECKING([for oci.h])

 if test -f
$PDO_OCI_IC_PREFIX/include/oracle/$PDO_OCI_IC_VERS/client/oci.h ; then

  
PHP_ADD_INCLUDE($PDO_OCI_IC_PREFIX/include/oracle/$PDO_OCI_IC_VERS/client)

+ 
PDO_OCI_LIB_DIR="$PDO_OCI_IC_PREFIX/lib/oracle/$PDO_OCI_IC_VERS/client/lib"

  
AC_MSG_RESULT($PDO_OCI_IC_PREFIX/include/oracle/$PDO_OCI_IC_VERS/client)

 elif test -f
$PDO_OCI_IC_PREFIX/lib/oracle/$PDO_OCI_IC_VERS/client/include/oci.h ;
then

  
PHP_ADD_INCLUDE($PDO_OCI_IC_PREFIX/lib/oracle/$PDO_OCI_IC_VERS/client/include)

+ 
PDO_OCI_LIB_DIR="$PDO_OCI_IC_PREFIX/lib/oracle/$PDO_OCI_IC_VERS/client/lib"

  
AC_MSG_RESULT($PDO_OCI_IC_PREFIX/lib/oracle/$PDO_OCI_IC_VERS/client/include)

+elif test -f $PDO_OCI_IC_PREFIX/sdk/include/oci.h ; then

+  PHP_ADD_INCLUDE($PDO_OCI_IC_PREFIX/sdk/include)

+  AC_MSG_RESULT($PDO_OCI_IC_PREFIX/sdk/include)

+  PDO_OCI_LIB_DIR="$PDO_OCI_IC_PREFIX"

 else

   AC_MSG_ERROR([I'm too dumb to figure out where the include dir is
in your instant client install])

 fi

-   
PDO_OCI_LIB_DIR="$PDO_OCI_IC_PREFIX/lib/

#48086 [Bgs]: PDO-OCI fails to configure due to lib suffix assumptions

2009-04-28 Thread petri dot mahanen at brainalliance dot com
 ID:   48086
 User updated by:  petri dot mahanen at brainalliance dot com
 Reported By:  petri dot mahanen at brainalliance dot com
 Status:   Bogus
 Bug Type: PDO related
 Operating System: Mac OS X 10.5.6
 PHP Version:  5.2.9
 New Comment:

Same as comment [29 Jan 11:37am UTC] michael-ring at t-online dot de in
bug #39312.


Previous Comments:


[2009-04-27 15:11:27] j...@php.net

Same as bug #39312



[2009-04-27 10:15:54] petri dot mahanen at brainalliance dot com

Description:

PDO OCI fails to configure on OS X, as the library suffix is assumed to
be '.so', while it is '.dylib'. $SHLIB_SUFFIX_NAME is correctly set in
configure, but not used in this case.

The issue also seems to be reported in a comment to unrelated bug
39312, with a patch.

Reproduce code:
---
./configure [...] --enable-pdo
--with-pdo-oci=instantclient,/opt/instantclient_10_2,10.2.0.4


Expected result:

successful configure


Actual result:
--
checking Oracle OCI support for PDO... yes
checking Oracle Install-Dir...
instantclient,/opt/instantclient_10_2,10.2.0.4
checking if that is sane... yes
checking for oci.h... /opt/instantclient_10_2/sdk/include
configure: error: I'm too dumb to figure out where the libraries are in
your Instant Client install






-- 
Edit this bug report at http://bugs.php.net/?id=48086&edit=1



#48086 [NEW]: PDO-OCI fails to configure due to lib suffix assumptions

2009-04-27 Thread petri dot mahanen at brainalliance dot com
From: petri dot mahanen at brainalliance dot com
Operating system: Mac OS X 10.5.6
PHP version:  5.2.9
PHP Bug Type: Compile Failure
Bug description:  PDO-OCI fails to configure due to lib suffix assumptions

Description:

PDO OCI fails to configure on OS X, as the library suffix is assumed to be
'.so', while it is '.dylib'. $SHLIB_SUFFIX_NAME is correctly set in
configure, but not used in this case.

The issue also seems to be reported in a comment to unrelated bug 39312,
with a patch.

Reproduce code:
---
./configure [...] --enable-pdo
--with-pdo-oci=instantclient,/opt/instantclient_10_2,10.2.0.4


Expected result:

successful configure


Actual result:
--
checking Oracle OCI support for PDO... yes
checking Oracle Install-Dir...
instantclient,/opt/instantclient_10_2,10.2.0.4
checking if that is sane... yes
checking for oci.h... /opt/instantclient_10_2/sdk/include
configure: error: I'm too dumb to figure out where the libraries are in
your Instant Client install


-- 
Edit bug report at http://bugs.php.net/?id=48086&edit=1
-- 
Try a CVS snapshot (PHP 5.2):
http://bugs.php.net/fix.php?id=48086&r=trysnapshot52
Try a CVS snapshot (PHP 5.3):
http://bugs.php.net/fix.php?id=48086&r=trysnapshot53
Try a CVS snapshot (PHP 6.0):
http://bugs.php.net/fix.php?id=48086&r=trysnapshot60
Fixed in CVS:
http://bugs.php.net/fix.php?id=48086&r=fixedcvs
Fixed in CVS and need be documented: 
http://bugs.php.net/fix.php?id=48086&r=needdocs
Fixed in release:
http://bugs.php.net/fix.php?id=48086&r=alreadyfixed
Need backtrace:  
http://bugs.php.net/fix.php?id=48086&r=needtrace
Need Reproduce Script:   
http://bugs.php.net/fix.php?id=48086&r=needscript
Try newer version:   
http://bugs.php.net/fix.php?id=48086&r=oldversion
Not developer issue: 
http://bugs.php.net/fix.php?id=48086&r=support
Expected behavior:   
http://bugs.php.net/fix.php?id=48086&r=notwrong
Not enough info: 
http://bugs.php.net/fix.php?id=48086&r=notenoughinfo
Submitted twice: 
http://bugs.php.net/fix.php?id=48086&r=submittedtwice
register_globals:
http://bugs.php.net/fix.php?id=48086&r=globals
PHP 4 support discontinued:  http://bugs.php.net/fix.php?id=48086&r=php4
Daylight Savings:http://bugs.php.net/fix.php?id=48086&r=dst
IIS Stability:   
http://bugs.php.net/fix.php?id=48086&r=isapi
Install GNU Sed: 
http://bugs.php.net/fix.php?id=48086&r=gnused
Floating point limitations:  
http://bugs.php.net/fix.php?id=48086&r=float
No Zend Extensions:  
http://bugs.php.net/fix.php?id=48086&r=nozend
MySQL Configuration Error:   
http://bugs.php.net/fix.php?id=48086&r=mysqlcfg