From:             info at ch2o dot info
Operating system: HP-UX
PHP version:      4.4.0
PHP Bug Type:     OCI8 related
Bug description:  linking probleme oci8 in 32bit with oracle 64bit...

Description:
------------
all oracle 64Bit version are delivered with 32bit and 64bit client...

on hp-ux with Oracle 9i 64Bit, the $ORACLE_HOME/lib have 64bit client
library and $ORACLE_HOME/lib32 the 32Bit version...
(seem to be the same on AIX, and i think is the same probleme on other
64bit plateforme with oracle 64bit)

with Oracle 8i 64bit the $ORACLE_HOME/lin containt 32bit version and
$ORACLE_HOME/lib64 the 64Bit version...

when you whant compile php + oci8 in 32bit with oracle 8i 64bit have no
probleme...
but with 9i they dont work beceause the 32bit client lib are in
$ORACLE_HOME/lib32 not in $ORACLE_HOME/lib...

with the detection schema used in oci8 ext, they cannot compile php + oci8
in 32bit with oracle 9i 64Bit...

why i whant to compile php in 32Bit with Oracle 64Bit...
on hp-ux there no precompiled version for 64Bit of all opensource needed
for compiling php and all the nessary for use php...

i think the probleme is the same with the 10g...


Reproduce code:
---------------
na

Expected result:
----------------
na

Actual result:
--------------
have modified the config.m4 of the oci8...

have replace $OCI8_DIR/lib with $OCI8_LIBDIR...
and have added at the start of AC_OCI8_VERSION:
OCI8_LIBDIR=$OCI8_DIR/lib

and have added :
  elif test -f $OCI8_DIR/lib32/libclntsh.$SHLIB_SUFFIX_NAME.9.0; then
    OCI8_VERSION=9.0
    OCI8_LIBDIR=$OCI8_DIR/lib32
before:
  elif test -f $OCI8_LIBDIR/libclntsh.$SHLIB_SUFFIX_NAME.9.0; then

and they worked fine...

but with that, they privilege the 32bit version vs the default version
(the 64bit version with oracle 9i 64Bit)

the seconde posibility is to add --oci8-32bit to force the use of lib32 in
place of lib...for use with >=9i 64Bit in 32bit mode...

and --oci8-64bit to force the use of lib64 in place of lib for compile
with Oracle 8i 64bit in 64Bit mode...



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

Reply via email to