PHP 4.0 Bug #5154 Updated: apache compile fails when php compiled with --with-ibm-db2
| From: | Bug Database | Date: | Fri, 29 Sep 2000 01:19:58 +0000 |
| Subject: | PHP 4.0 Bug #5154 Updated: apache compile fails when php compiled with --with-ibm-db2 | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-33812@lists.php.net to get a copy of this message | ||
ID: 5154
Updated by: andi
Reported By: marshall.lewis@ScholarOne.com
Status: Closed
Bug Type: Compile Failure
Assigned To:
Comments:
I commited the recommended fix to the CVS.
Previous Comments:
---------------------------------------------------------------------------
[2000-08-21 13:55:51] sniper@php.net
To the developer who maintains odbc-extension:
Could you check this one??
--Jani
---------------------------------------------------------------------------
[2000-08-20 10:07:23] marshall.lewis@ScholarOne.com
For PHP:
./configure --prefix=/opt/apache --with-config-file-path=/opt/apache/conf --disable-debug
--enable-track-vars --disable-short-tags --with-apache=/opt/server_build/apache_1.3.12 --with-dbase
--enable-ftp --with-mysql=/opt/mysql --with-pgsql=/usr --enable-trans-sid --enable-sysvsem
--enable-sysvshm --enable-xml --with-ibm-db2=/opt/db2inst1/sqllib --enable-wddx
--enable-inline-optimization
I also received an email from some that says he found a true fix for it:
---------
I have a similar issue when building a loadable module (libphp4.so) for
apache. Everything compiles fine but the link fails. Turns out that the
configure script is broken (and I suspect it is for other ODBC-api
databases). Adding the line:
ODBC_LFLAGS=-L$ODBC_LIBDIR
directly under the line
ODBC_INCLUDE=-I$ODBC_INCDIR
in the --with-ibm-db2 part of the configure file fixes the problem.
I took the liberty of emailing you as I cannot be bothered applying for a
CVS account to just submit a bug report.
Also, if it is of interest to you, php-3.0.16 will not work with IBM DB2
V7.1 on RedHat Linux 6.1, apache core dumps every time.
Please feel free to contribute this information on my behalf.
john...
John Howie
System Architect
Paradigm Investment Services
JHowie@pdgm.com
---------
I would have posted that sooner, but for some reason everytime I tried to modify this bug it would
ask me for cvs account information , which I don't have. (it's not now.. I must have been
going about it the wrong way)
---------------------------------------------------------------------------
[2000-08-20 08:05:31] sniper@php.net
Please include your configure line here.
--Jani
---------------------------------------------------------------------------
[2000-06-30 08:33:15] marshall.lewis@ScholarOne.com
just tested with 4.0.1, same problem/same fix
---------------------------------------------------------------------------
[2000-06-20 19:53:27] marshall.lewis@ScholarOne.com
I get the same error as bug# 4550
I can alter src/modules/php4/libphp4.module .. adding the text
-Wl,-rpath,/opt/db2inst1/sqllib/lib -L/opt/db2inst1/sqllib/lib
and it will compile correctly
(should be obvious, but /opt/db2inst1/sqllib/lib is the location of my instances lib directory)
also of note (although this has nothing to do with PHP's coding.. but it could be added to the
documentation) is that in order to use IBM DB2 in PHP, the DB2INSTANCE environmental variable must
be set (to your instance name) prior to starting Apache (or whatever webserver is in use)...
---------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view the rest of the comments,
please view the bug report online.
Full Bug description available at: http://bugs.php.net/?id=5154