From:             flconseil at yahoo dot fr
Operating system: HP-UX
PHP version:      5.1.1
PHP Bug Type:     Oracle related
Bug description:  Unlike OCI8, PDO-OCI always uses $ORACLE_HOME/lib

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 bug report at http://bugs.php.net/?id=35907&edit=1
-- 
Try a CVS snapshot (PHP 4.4): 
http://bugs.php.net/fix.php?id=35907&r=trysnapshot44
Try a CVS snapshot (PHP 5.1): 
http://bugs.php.net/fix.php?id=35907&r=trysnapshot51
Try a CVS snapshot (PHP 6.0): 
http://bugs.php.net/fix.php?id=35907&r=trysnapshot60
Fixed in CVS:                 http://bugs.php.net/fix.php?id=35907&r=fixedcvs
Fixed in release:             
http://bugs.php.net/fix.php?id=35907&r=alreadyfixed
Need backtrace:               http://bugs.php.net/fix.php?id=35907&r=needtrace
Need Reproduce Script:        http://bugs.php.net/fix.php?id=35907&r=needscript
Try newer version:            http://bugs.php.net/fix.php?id=35907&r=oldversion
Not developer issue:          http://bugs.php.net/fix.php?id=35907&r=support
Expected behavior:            http://bugs.php.net/fix.php?id=35907&r=notwrong
Not enough info:              
http://bugs.php.net/fix.php?id=35907&r=notenoughinfo
Submitted twice:              
http://bugs.php.net/fix.php?id=35907&r=submittedtwice
register_globals:             http://bugs.php.net/fix.php?id=35907&r=globals
PHP 3 support discontinued:   http://bugs.php.net/fix.php?id=35907&r=php3
Daylight Savings:             http://bugs.php.net/fix.php?id=35907&r=dst
IIS Stability:                http://bugs.php.net/fix.php?id=35907&r=isapi
Install GNU Sed:              http://bugs.php.net/fix.php?id=35907&r=gnused
Floating point limitations:   http://bugs.php.net/fix.php?id=35907&r=float
No Zend Extensions:           http://bugs.php.net/fix.php?id=35907&r=nozend
MySQL Configuration Error:    http://bugs.php.net/fix.php?id=35907&r=mysqlcfg

Reply via email to