Bug 84113 - php-4.2.2-15 can not find db3 and refuses to --rebuild
php-4.2.2-15 can not find db3 and refuses to --rebuild
Status: CLOSED DUPLICATE of bug 83434
Product: Red Hat Linux
Classification: Retired
Component: php (Show other bugs)
i386 Linux
medium Severity medium
: ---
: ---
Assigned To: Joe Orton
David Lawrence
Depends On:
Blocks: 79578
  Show dependency treegraph
Reported: 2003-02-12 09:04 EST by d. johnson
Modified: 2008-01-17 12:49 EST (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2006-02-21 13:51:44 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)
Config.log file from a failed build (153.75 KB, text/plain)
2003-02-13 16:54 EST, d. johnson
no flags Details

  None (edit)
Description d. johnson 2003-02-12 09:04:31 EST
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.2.1) Gecko/20030203

Description of problem:
./configure is looking for libdb3 or libdb-3, neither of which is found in
phoebe or rawhide.

Version-Release number of selected component (if applicable):

How reproducible:

Steps to Reproduce:
1. rpmbuild --rebuild php-4.2.2-15.src.rpm

Actual Results:  After running ./configure ...

checking for db_create in -ldb... no
checking for db_create in -ldb-3... no
checking for db_create in -ldb3... no
configure: error: cannot find necessary library
error: Bad exit status from /var/tmp/rpm-tmp.80673 (%build)

Expected Results:  Profit!

Additional info:

One line fix to resolve:

--- php.spec    2003-02-10 09:13:10.000000000 -0600
+++ php.spec.dj3        2003-02-12 07:35:59.000000000 -0600
@@ -256,7 +256,7 @@
        --disable-rpath \
        --enable-inline-optimization \
        --with-bz2 \
-       --with-db3 \
+       --with-db \
        --with-curl \
        --with-dom=%{_prefix} \
        --with-exec-dir=%{_bindir} \
Comment 1 d. johnson 2003-02-12 13:58:26 EST
The above makes php compile, but does not permit php to use db functions.  Do
not use the above.  Appending "-ldb -lpthread" to LIBS (in the .spec) may work.
Comment 2 d. johnson 2003-02-12 14:35:54 EST
Latest/stable php (4.3.0) compiles fine.  (this may be preferable to the ugly
cludge listed above).
Comment 3 Joe Orton 2003-02-13 11:45:21 EST
Do you have the db4-devel package installed? db_create should be found in the
-ldb provided by db4-devel. Can you attach the build-cgi/config.log produced a
--rebuild which failed as above?
Comment 4 d. johnson 2003-02-13 16:54:26 EST
Created attachment 90068 [details]
Config.log file from a failed build

Yes, I do have db4-devel-4.0.14-18 installed.  The above attachment is from "%
rpmbuild --rebuild php-4.2.2-16.src.rpm"
Comment 5 Joe Orton 2003-02-14 03:49:35 EST
Curious.  I can link against -ldb without needing -lpthread on my Phoebe system.
You're also using CC=/usr/local/bin/gcc - have you tried CC=/usr/bin/gcc?
Or maybe the -18 db4 package breaks this.
Comment 6 Joe Orton 2003-02-14 04:02:09 EST
Yeah, looks like this was a transient breakage in db4-devel.

*** This bug has been marked as a duplicate of 83434 ***
Comment 7 d. johnson 2003-02-16 01:27:10 EST
Just FYI,  I'm using /usr/local/bin/gcc to take advantage of ccache.  (It simply
caches from gcc-3.2.1-7)
Comment 8 Red Hat Bugzilla 2006-02-21 13:51:44 EST
Changed to 'CLOSED' state since 'RESOLVED' has been deprecated.

Note You need to log in before you can comment on or make changes to this bug.