From: smileaf at smileaf dot org Operating system: Linux PHP version: 5.0.4 PHP Bug Type: *Compile Issues Bug description: configure fails on -lreadline but real failure is -lpq
Description: ------------ 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 -fomit-frame-pointer -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 -lodbc1>&5 /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.5-20050130/../../../../i686-pc-linux-gnu/bin/ld: 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() { readline() ; 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. -- Edit bug report at http://bugs.php.net/?id=33651&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=33651&r=trysnapshot4 Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=33651&r=trysnapshot50 Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=33651&r=trysnapshot51 Fixed in CVS: http://bugs.php.net/fix.php?id=33651&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=33651&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=33651&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=33651&r=needscript Try newer version: http://bugs.php.net/fix.php?id=33651&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=33651&r=support Expected behavior: http://bugs.php.net/fix.php?id=33651&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=33651&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=33651&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=33651&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=33651&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=33651&r=dst IIS Stability: http://bugs.php.net/fix.php?id=33651&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=33651&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=33651&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=33651&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=33651&r=mysqlcfg