#35907 [Opn->Asn]: Unlike OCI8, PDO-OCI always uses $ORACLE_HOME/lib

From: Date: Thu, 05 Jan 2006 18:21:54 +0000
Subject: #35907 [Opn->Asn]: Unlike OCI8, PDO-OCI always uses $ORACLE_HOME/lib
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-91554@lists.php.net to get a copy of this message
 ID:               35907
 Updated by:       iliaa@php.net
 Reported By:      flconseil at yahoo dot fr
-Status:           Open
+Status:           Assigned
 Bug Type:         PDO related
 Operating System: HP-UX
 PHP Version:      5.1.1
-Assigned To:      
+Assigned To:      tony2001


Previous Comments:
------------------------------------------------------------------------

[2006-01-05 17:33:10] flconseil at yahoo dot fr

Description:
------------
Compiling PHP 5.1.1 with Oracle 9.2.0 on HP-UX using pdo-oci.

$ORACLE_HOME/lib contains 64 bit libraries, and $ORACLE_HOME/lib32
contains 32 bit libraries.

During configure, OCI8 determines it the right way and generates
'-L$ORACLE_HOME/lib32', but PDO-OCI does not have this logic and always
looks into $ORACLE_HOME/lib. And, as it finds a 'libclntsh.sl.9.0' file
there, it takes this one, which is wrong in such a 32bit environment.

Note: If you use oci8, and if pdo-oci is shared, it will work, as the
oci8 additions in Makefile will mask the ones from pdo-oci.

Reproduce code:
---------------
./configure --with-pdo-oci=$ORACLE_HOME



Expected result:
----------------
the logic pdo-oci should follow to find oracle librairies is already in
oci8, in AC_OCI8_CHECK_LIB_DIR.

Actual result:
--------------
At link time, I get this error:

/usr/ccs/bin/ld: /logi/ora920/lib/libclntsh.sl: Mismatched ABI. 64-bit
PA shared library found in 32-bit link.
collect2: ld returned 1 exit status
*** Error exit code 1



------------------------------------------------------------------------


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


Thread (5 messages)

« previous php.bugs (#91554) next »