|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #33651 configure fails on -lreadline but real failure is -lpq
Submitted: 2005-07-12 01:13 UTC Modified: 2005-07-20 01:00 UTC
Avg. Score:5.0 ± 0.0
Reproduced:2 of 2 (100.0%)
Same Version:0 (0.0%)
Same OS:2 (100.0%)
From: smileaf at smileaf dot org Assigned:
Status: No Feedback Package: *Compile Issues
PHP Version: 5.0.4 OS: Linux
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please — but make sure to vote on the bug!
Your email address:
Solve the problem:
33 + 1 = ?
Subscribe to this entry?

 [2005-07-12 01:13 UTC] smileaf at smileaf dot org
While running configure it failed on the line: 
checking for readline in -lreadline... no    
configure: error: readline library not found 
However when I check the config.log I see this: 
configure:72928: checking for readline in -lreadline   
configure:72947: gcc -o conftest -O3 -march=pentium4 
-Wl,-z,now -Wl,-rpath,/usr/local/lib -L/usr/local/lib 
conftest.c -lreadline  -lpspell -lpq -lpanel -lncurses 
-lmcrypt -lltdl -lldap -llber -lt1 -lfreetype  -lpng -lz 
-ljpeg -lfam -lgdbm -lcurl -lz -lresolv -lm -ldl -lnsl  
-lxml2 -lz  -lm -lssl -lcrypto -ldl -lcurl -lidn -lssl 
-lcrypto -ldl -lssl -lcrypto -ldl -lz -lxml2 -lz -lm 
cannot find -lpq   
collect2: ld returned 1 exit status   
configure: failed program was:   
#line 72936 "configure"   
#include "confdefs.h"   
/* Override any gcc2 internal prototype to avoid an error.  
/* We use char because int might match the return type of 
a gcc2   
    builtin and then its argument prototype would still 
apply.  */   
char readline();   
int main() {   
; return 0; }  
What I see is the script is using _way_ too many unneeded 
libraries which is causing the script to fail. Rightfully 
yes libpq was installed poorly however it should not fail 
while testing -lreadline 

Expected result:
I expect the test for -lreadline to only fail if 
libreadline cannot be found. 

Actual result:
-lreadline test is failing because of another library. 


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2005-07-12 01:25 UTC]
Please try using this CVS snapshot:
For Windows:

 [2005-07-20 01:00 UTC] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
PHP Copyright © 2001-2022 The PHP Group
All rights reserved.
Last updated: Sat Jan 22 03:03:33 2022 UTC