php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #5154 apache compile fails when php compiled with --with-ibm-db2
Submitted: 2000-06-20 19:53 UTC Modified: 2000-09-28 21:19 UTC
From: marshall dot lewis at ScholarOne dot com Assigned:
Status: Closed Package: Compile Failure
PHP Version: 4.0.0 Release OS: Linux
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: marshall dot lewis at ScholarOne dot com
New email:
PHP Version: OS:

 

 [2000-06-20 19:53 UTC] marshall dot lewis at ScholarOne dot 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)...

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-06-30 08:33 UTC] marshall dot lewis at ScholarOne dot com
just tested with 4.0.1, same problem/same fix
 [2000-08-20 08:05 UTC] sniper@php.net
Please include your configure line here.

--Jani
 [2000-08-20 10:07 UTC] marshall dot lewis at ScholarOne dot 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-21 13:55 UTC] sniper@php.net
To the developer who maintains odbc-extension:

Could you check this one??

--Jani
 [2000-09-28 21:19 UTC] andi@php.net
I commited the recommended fix to the CVS.
 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Sun Jun 28 08:00:01 2026 UTC