From:             
Operating system: Ubuntu 11.10
PHP version:      5.3.9
Package:          Compile Failure
Bug Type:         Bug
Bug description:DB4/DB5 configure library lookup broken 
--build=x86_64-linux-gnu is passed

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.

-- 
Edit bug report at https://bugs.php.net/bug.php?id=60772&edit=1
-- 
Try a snapshot (PHP 5.4):            
https://bugs.php.net/fix.php?id=60772&r=trysnapshot54
Try a snapshot (PHP 5.3):            
https://bugs.php.net/fix.php?id=60772&r=trysnapshot53
Try a snapshot (trunk):              
https://bugs.php.net/fix.php?id=60772&r=trysnapshottrunk
Fixed in SVN:                        
https://bugs.php.net/fix.php?id=60772&r=fixed
Fixed in SVN and need be documented: 
https://bugs.php.net/fix.php?id=60772&r=needdocs
Fixed in release:                    
https://bugs.php.net/fix.php?id=60772&r=alreadyfixed
Need backtrace:                      
https://bugs.php.net/fix.php?id=60772&r=needtrace
Need Reproduce Script:               
https://bugs.php.net/fix.php?id=60772&r=needscript
Try newer version:                   
https://bugs.php.net/fix.php?id=60772&r=oldversion
Not developer issue:                 
https://bugs.php.net/fix.php?id=60772&r=support
Expected behavior:                   
https://bugs.php.net/fix.php?id=60772&r=notwrong
Not enough info:                     
https://bugs.php.net/fix.php?id=60772&r=notenoughinfo
Submitted twice:                     
https://bugs.php.net/fix.php?id=60772&r=submittedtwice
register_globals:                    
https://bugs.php.net/fix.php?id=60772&r=globals
PHP 4 support discontinued:          
https://bugs.php.net/fix.php?id=60772&r=php4
Daylight Savings:                    https://bugs.php.net/fix.php?id=60772&r=dst
IIS Stability:                       
https://bugs.php.net/fix.php?id=60772&r=isapi
Install GNU Sed:                     
https://bugs.php.net/fix.php?id=60772&r=gnused
Floating point limitations:          
https://bugs.php.net/fix.php?id=60772&r=float
No Zend Extensions:                  
https://bugs.php.net/fix.php?id=60772&r=nozend
MySQL Configuration Error:           
https://bugs.php.net/fix.php?id=60772&r=mysqlcfg

Reply via email to