<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "http://bugs.gentoo.org/bugzilla.dtd">

<bugzilla version="2.22.7"
          urlbase="http://bugs.gentoo.org/"
          maintainer="bugzilla@gentoo.org"
>

    <bug>
          <bug_id>132791</bug_id>
          
          <creation_ts>2006-05-09 07:20 0000</creation_ts>
          <short_desc>Unable to emerge php 4.4.2-r2 with the Oracle Instant Client</short_desc>
          <delta_ts>2007-03-27 13:28:28 0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Gentoo Linux</product>
          <component>Ebuilds</component>
          <version>2005.0</version>
          <rep_platform>AMD64</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>hans-gunther.borrmann@rz.uni-freiburg.de</reporter>
          <assigned_to>dertobi123@gentoo.org</assigned_to>
          <cc>php-bugs@gentoo.org</cc>

      

      
          <long_desc isprivate="0">
            <who>hans-gunther.borrmann@rz.uni-freiburg.de</who>
            <bug_when>2006-05-09 07:20:41 0000</bug_when>
            <thetext>The emerge stops with:

checking for Oracle (OCI8) support using Oracle Instant Client... yes
checking Oracle Instant Client directory... tail: `-1&apos; option is obsolete; use `-n 1&apos; since this will be removed in the future
/usr/lib/oracle/current/client/lib
checking Oracle Instant Client SDK header directory... configure: error: Oracle Instant Client SDK header files not found

The reason lies in the configure script of php which sets:
  OCISDKZIPINC=$PHP_OCI8_INSTANT_CLIENT/sdk/include
but $PHP_OCI8_INSTANT_CLIENT/sdk/ does not exist

Installed Oracle Client:
eix -e dev-db/oracle-instantclient-basic
* dev-db/oracle-instantclient-basic 
     Available versions:  !10.1.0.2_p1 !10.1.0.2_p1-r1 !10.1.0.3 !10.1.0.4 !10.2.0.1 10.2.0.1-r1 10.2.0.2
     Installed:           10.2.0.1-r1</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>dertobi123@gentoo.org</who>
            <bug_when>2006-05-22 08:04:12 0000</bug_when>
            <thetext>checking for Oracle (OCI8) support using ORACLE_HOME installation... no
checking for Oracle (OCI8) support using Oracle Instant Client... yes
checking Oracle Instant Client directory... /usr/lib/oracle/10.1.0.4/client/lib
checking Oracle Instant Client SDK header directory... /usr/include/oracle/10.1.0.4/client
checking Oracle Instant Client version... 10.1

Kind of &quot;worksforme&quot;, also with the 10.2.0.1-r1 version you are using.

Please post the USE flags you&apos;re using with php, the output of &apos;emerge --info&apos; and the contents of $ORACLE_HOME, $LDPATH and $C_INCLUDE_PATH.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>hans-gunther.borrmann@rz.uni-freiburg.de</who>
            <bug_when>2006-05-23 00:58:01 0000</bug_when>
            <thetext>
&gt; Please post the USE flags you&apos;re using with php

emerge -pv dev-lang/php

These are the packages that I would merge, in order:

Calculating dependencies ...done!
[ebuild   R   ] dev-lang/php-4.4.2-r2  (-adabas) -apache -apache2 +bcmath +berkdb (-birdstep) +bzip2 +calendar +cdb +cgi -cjk +cli +crypt +ctype +curl -db2 -dbase (-dbmaker) -dbx -debug -discard-path -doc (-empress) (-empress-bcs) (-esoob) +exif +expat -fastbuild (-fdftk) (-filepro) (-firebird) -flatfile -force-cgi-redirect (-frontbase) -ftp +gd -gd-external +gdbm -gmp -hardenedphp -hyperwave-api +iconv -imap (-informix) -inifile -interbase -iodbc +ipv6 -java-external -java-internal -kerberos +ldap -libedit -mcal -mcve -memlimit +mhash -ming -mnogosearch -msql -mssql +mysql +ncurses +nls -oci8 +oci8-instant-client -odbc -oracle7 +overload -ovrimos +pcntl +pcre (-pfpro) -pic +posix -postgres +readline -recode -sapdb +session -sharedext +sharedmem -snmp +sockets (-solid) +spell -sqlite +ssl (-sybase) (-sybase-ct) +sysvipc -threads +tokenizer +truetype +wddx +xml +xmlrpc +xpm +xsl -yaz -zip +zlib

&gt; the output of &apos;emerge --info&apos;

 emerge --info
Portage 2.0.54 (default-linux/amd64/2005.0, gcc-3.4.5, glibc-2.3.5-r2, 2.6.15-gentoo-r7-1 x86_64)
=================================================================
System uname: 2.6.15-gentoo-r7-1 x86_64 AMD Opteron(tm) Processor 246
Gentoo Base System version 1.6.14
ccache version 2.3 [disabled]
dev-lang/python:     2.2.3, 2.3.4-r1, 2.4.2
dev-python/pycrypto: [Not Present]
dev-util/ccache:     2.3
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.12
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1
sys-devel/binutils:  2.16.1
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS=&quot;amd64&quot;
AUTOCLEAN=&quot;yes&quot;
CBUILD=&quot;x86_64-pc-linux-gnu&quot;
CFLAGS=&quot;-march=athlon64 -O2 -pipe&quot;
CHOST=&quot;x86_64-pc-linux-gnu&quot;
CONFIG_PROTECT=&quot;/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/lib/X11/xkb /usr/share/config /var/qmail/control&quot;
CONFIG_PROTECT_MASK=&quot;/etc/eselect/compiler /etc/gconf /etc/terminfo /etc/env.d&quot;
CXXFLAGS=&quot;-march=athlon64 -O2 -pipe&quot;
DISTDIR=&quot;/usr/portage/distfiles&quot;
FEATURES=&quot;autoconfig distlocks sandbox sfperms strict&quot;
GENTOO_MIRRORS=&quot;http://pandemonium.tiscali.de/pub/gentoo/&quot;
MAKEOPTS=&quot;-j6&quot;
PKGDIR=&quot;/usr/portage/packages&quot;
PORTAGE_TMPDIR=&quot;/var/tmp&quot;
PORTDIR=&quot;/usr/portage&quot;
PORTDIR_OVERLAY=&quot;/usr/local/portage&quot;
SYNC=&quot;rsync://rsync.gentoo.org/gentoo-portage&quot;
USE=&quot;amd64 X acl alsa avi berkdb bitmap-fonts bzip2 cdb cli crypt cups curl dri eds emboss encode expat f77 foomaticdb fortran gd gdbm gif glut gnome gpm gstreamer gtk gtk2 imagemagick imlib ipv6 isdnlog java jpeg kde ldap lzw lzw-tiff mhash motif mp3 mpeg mysql ncurses nls opengl pam pcre pdflib perl php png pppd python qt quicktime readline reflection sdl session slang spell spl ssl tcpd tiff truetype truetype-fonts type1-fonts udev usb xml2 xorg xpm xv zlib userland_GNU kernel_linux elibc_glibc&quot;
Unset:  ASFLAGS, CTARGET, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTAGE_RSYNC_EXTRA_OPTS, PORTAGE_RSYNC_OPTS

&gt; and the contents of $ORACLE_HOME, $LDPATH and $C_INCLUDE_PATH.
echo $ORACLE_HOME; echo $LDPATH; echo $C_INCLUDE_PATH
/usr/lib/oracle/10.2.0.1/client

/usr/lib/oracle/10.2.0.1/client/include

 

</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>chtekk@gentoo.org</who>
            <bug_when>2006-07-14 09:00:20 0000</bug_when>
            <thetext>A fix to ext/oci8&apos;s configure was added to dev-lang/php-4.4.2-r6, please try that release as soon as it appears on the mirrors in a couple of hours. I&apos;m not exactly sure it will help, because I never was able to reproduce this problem either.
Best regards, CHTEKK.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>hans-gunther.borrmann@rz.uni-freiburg.de</who>
            <bug_when>2006-07-21 02:38:26 0000</bug_when>
            <thetext>(In reply to comment #3)
&gt; A fix to ext/oci8&apos;s configure was added to dev-lang/php-4.4.2-r6, please try
&gt; that release as soon as it appears on the mirrors in a couple of hours. I&apos;m not
&gt; exactly sure it will help, because I never was able to reproduce this problem
&gt; either.
&gt; Best regards, CHTEKK.
&gt; 

The problem still persists The reason seems to be the contents of /usr/lib/oracle:

 ls l /usr/lib/oracle 
total 28
drwxr-xr-x   3 root root  4096 Jan 31 11:24 10.2.0.1
lrwxrwxrwx   1 root root     8 Mar 30 14:53 current -&gt;10.2.0.1

So configure determines /usr/lib/oracle/current/client/lib as PHP_OCI8_INSTANT_CLIENT. But /usr/include/oracle does not contain the &quot;current&quot; link:

ls l /usr/include/oracle
total 16
drwxr-xr-x   2 root root 4096 May  9 15:41 10.2.0.1

So the test test -f &quot;$OCISDKRPMINC/oci.h&quot; fails which would otherwise succeed.
And the test test -f &quot;$OCISDKZIPINC/oci.h&quot; fails because $PHP_OCI8_INSTANT_CLIENT/sdk does not exist on my machine. So the problem seems to be the &quot;current&quot; link mentioned above. May be the problem is in the oracle-instantclient-basic ebuild.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>dertobi123@gentoo.org</who>
            <bug_when>2007-03-25 17:30:21 0000</bug_when>
            <thetext>Please test again and report back using php-4.4.6 and/or 5.2.1 and instantclient-10.2.0.3. Neither CHTEKK nor I are able to reproduce this problem.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>hans-gunther.borrmann@rz.uni-freiburg.de</who>
            <bug_when>2007-03-26 10:12:02 0000</bug_when>
            <thetext>(In reply to comment #5)
&gt; Please test again and report back using php-4.4.6 and/or 5.2.1 and
&gt; instantclient-10.2.0.3. Neither CHTEKK nor I are able to reproduce this
&gt; problem.
&gt; 

instantclient-10.2.0.3. is ok. You can close the bug. Thanks!</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>jakub@gentoo.org</who>
            <bug_when>2007-03-26 10:18:57 0000</bug_when>
            <thetext>(In reply to comment #6)
&gt; instantclient-10.2.0.3. is ok. You can close the bug. Thanks!

Tobias, can we get this stabilized on x86?
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>dertobi123@gentoo.org</who>
            <bug_when>2007-03-26 18:22:58 0000</bug_when>
            <thetext>(In reply to comment #7)
&gt; (In reply to comment #6)
&gt; &gt; instantclient-10.2.0.3. is ok. You can close the bug. Thanks!
&gt; 
&gt; Tobias, can we get this stabilized on x86?

Sure, we can.

@x86: please mark instantclient-basic-10.2.0.3 stable (and if you&apos;d like to also oracle-instantclient-jdbc and oracle-instantclient-sqlplus).

</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>fauli@gentoo.org</who>
            <bug_when>2007-03-27 06:18:54 0000</bug_when>
            <thetext>x86 stable and closing (basic only)</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>wolf31o2@gentoo.org</who>
            <bug_when>2007-03-27 13:28:28 0000</bug_when>
            <thetext>I went ahead and marked JDBC and SQL*Plus stable, too.  I have a friend at work who says they work fine.</thetext>
          </long_desc>
      
    </bug>

</bugzilla>