From:             jruizmail at gmail dot com
Operating system: Linux (Gentoo) 2.6.20-r6
PHP version:      5.2.1
PHP Bug Type:     Compile Failure
Bug description:  (ibm-db2 + oracle-instant-client) == configure error

Description:
------------
Hi

I'm trying to compile php-5.2.1 with db2 and with pdo-oci support (using
instantclient).

Using my configure options, php compiles well (and works well) if I ONLY
include support for db2, and the same if I ONLY include support for
oracle-instantclient... but if I put both together I get a configure error
like:

checking for IBM DB2 support... no
configure: error: 
build test failed. Please check the config.log for details.
You need to source your DB2 environment before running PHP configure:
# . $IBM_DB2/db2profile


of course, I sourced the db2profile script in (in my case)
/home/db2inst2/sqllib/db2profile before running configure


Reproduce code:
---------------
./configure --prefix=/u01/LAMP/php-5.2.1 --exec-prefix=/u01/LAMP/php-5.2.1
--host=i686-pc-linux-gnu --cache-file=./config.cache
--enable-maintainer-zts --enable-cli
--with-apxs2=/u01/LAMP/apache-2.2.4/bin/apxs --without-pear
--disable-bcmath --with-bz2 --disable-calendar --disable-ctype
--without-curl --without-curlwrappers --enable-exif --without-fdftk
--disable-filter --enable-ftp --with-gettext --without-gmp --disable-hash
--disable-ipv6 --disable-json --without-kerberos --enable-mbstring
--without-mhash --with-ncurses --disable-pcntl --without-recode
--disable-shmop --without-snmp --enable-soap --enable-sockets
--disable-sysvmsg --disable-sysvsem --disable-sysvshm --disable-wddx
--with-libxml-dir=/u01/LAMP/libxml2-2.6.28 --with-xmlrpc --enable-zip
--with-zlib --disable-debug --without-gdbm --with-inifile --without-qdbm
--with-freetype-dir=/usr --with-t1lib=/usr --enable-gd-jis-conv
--with-jpeg-dir=/usr --with-png-dir=/usr --with-gd --without-ldap-sasl
--disable-dbase --without-fbsql --without-msql
--with-mssql=/u01/LAMP/freetds-0.64 --with-pgsql=/u01/LAMP/postgresql-8.2.4
--without-sybase --without-sybase-ct --enable-dba --without-cdb
--without-db4 --without-flatfile --with-mysql=/u01/LAMP/mysql-5.0.37
--without-mysqli --with-unixODBC=/u01/LAMP/unixODBC-2.2.12 --without-adabas
--without-birdstep --without-dbmaker --without-empress --without-esoob
--without-iodbc --without-sapdb --without-solid
--with-pdo-dblib=/u01/LAMP/freetds-0.64
--with-pdo-mysql=/u01/LAMP/mysql-5.0.37
--with-pdo-odbc=unixODBC,/u01/LAMP/unixODBC-2.2.12
--with-pdo-pgsql=/u01/LAMP/postgresql-8.2.4 --with-pdo-sqlite
--with-readline --without-libedit --without-mm --with-sqlite
--enable-sqlite-utf8
--with-oci8=instantclient,/u01/LAMP/oracle-instantclient/lib
--with-pdo-oci=instantclient,/u01/LAMP/oracle-instantclient,10.2.0.3
--with-ibm-db2=/opt/IBM/db2/V8.1

Expected result:
----------------
...
checking for IBM DB2 support... yes
...


Actual result:
--------------
checking for IBM DB2 support... no
configure: error: 
build test failed. Please check the config.log for details.
You need to source your DB2 environment before running PHP configure:
# . $IBM_DB2/db2profile


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

Reply via email to