|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #60772 DB4/DB5 configure library lookup broken --build=x86_64-linux-gnu is passed
Submitted: 2012-01-16 19:25 UTC Modified: 2013-10-15 11:54 UTC
Avg. Score:4.0 ± 1.0
Reproduced:4 of 4 (100.0%)
Same Version:2 (50.0%)
Same OS:3 (75.0%)
From: david at davidfavor dot com Assigned:
Status: No Feedback Package: Compile Failure
PHP Version: 5.3.9 OS: Ubuntu 11.10
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Bug Type:
From: david at davidfavor dot com
New email:
PHP Version: OS:


 [2012-01-16 19:25 UTC] david at davidfavor dot com
First DB4/DB5 library lookup is far to simple.

Lookups are done for /usr/lib/libdb.a then /usr/lib/ in that order.

First problem is there's no consideration of 'shared', which if specified should 
reverse the search looking for .so before .a as they usually both exist.

Second problem is when --build=x86_64-linux-gnu (or any other value) is passed 
no consideration is given. This means /usr/lib/x86_64-linux-gnu libraries are 

Neither --with-libdir=/usr/lib/x86_64-linux-gnu or --libdir=x86_64-linux-gnu 
have any effect.

Third problem is diagnostics as many systems may have multiple copies of DB 
installed. Be great to echo the info out of /usr/include/db.h as in...

DB_VERSION_{MAJOR,RELEASE,MINOR,PATCH} to clarify what's occurring.

Probably logic similar to libcurl is a good place to start.

Ugly fix is ln -s /usr/lib/x86_64-linux-gnu/ /usr/lib/.

Expected result:
Use all /usr/lib/(--build) libraries if --build is specified.

Actual result:
--build is ignored.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2013-10-01 12:43 UTC]
-Status: Open +Status: Feedback
 [2013-10-01 12:43 UTC]
How about --with-libdir=lib/x86_64-linux-gnu?
 [2013-10-15 11:54 UTC] php-bugs at lists dot php dot net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Re-Opened". Thank you.
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Mar 03 23:01:32 2024 UTC