|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2013-10-01 12:43 UTC] mike@php.net
-Status: Open
+Status: Feedback
[2013-10-01 12:43 UTC] mike@php.net
[2013-10-15 11:54 UTC] php-bugs at lists dot php dot net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Oct 25 16:00:02 2025 UTC |
Description: ------------ First DB4/DB5 library lookup is far to simple. Lookups are done for /usr/lib/libdb.a then /usr/lib/libdb.so 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 ignored. 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/libdb-5.1.so /usr/lib/. Expected result: ---------------- Use all /usr/lib/(--build) libraries if --build is specified. Actual result: -------------- --build is ignored.