Bug #66576 [Com]: phpdbg must link -lreadline during build

From: Date: Tue, 22 Apr 2014 04:24:23 +0000
Subject: Bug #66576 [Com]: phpdbg must link -lreadline during build
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-185363@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=66576&edit=1 ID: 66576 Comment by: glen at delfi dot ee Reported by: rainer dot jung at kippdata dot de Summary: phpdbg must link -lreadline during build Status: Closed Type: Bug Package: phpdbg Operating System: Linux PHP Version: 5.6.0alpha1 Assigned To: krakjoe Block user comment: N Private report: N New Comment: rainer: can you reopen this bug (you know bug password), and change state Assigned->Open then the bug should be spotted better. i don't know why krakjoe@php.net said commit is made, if Git/SVN commits tab is empty and as you can see fix is not present in next version similar annoyance is in https://bugs.php.net/bug.php?id=63228 - they claim patches applied but really not (5 time reported there that patch not applied and each time someone claims it's applied!) i suppose it's common issue with php-src that they have no control and lose patches :S, they do not even respond why it was not applied, no shame Previous Comments: ------------------------------------------------------------------------ [2014-04-22 04:19:54] glen at delfi dot ee this is NOT FIXED as of php5.6.0alpha1 the fix is committed here: https://github.com/krakjoe/phpdbg/commit/1c0fccfc9abaaea02ae717547bc3b69fcb2de86c but NOT in php-src !!! ------------------------------------------------------------------------ [2014-01-27 08:02:46] rainer dot jung at kippdata dot de In addition: the readline lib has a dependency on the termcap or curses or ncurses lib. It is *not* linked against those to let applications using libreadline decide which one they want to use. So when linking against the readline lib, one also has to add one of termcap, curses or ncurses. See the detection mechanism for the php readline extension. ------------------------------------------------------------------------ [2014-01-27 07:40:27] krakjoe@php.net The fix for this bug has been committed. Snapshots of the sources are packaged every three hours; this change will be in the next snapshot. You can grab the snapshot at http://snaps.php.net/. For Windows: http://windows.php.net/snapshots/ Thank you for the report, and for helping us make PHP better. This is fixed in the master repository for phpdbg, which will be merged into the php-src tree before the next alpha release of 5.6 ------------------------------------------------------------------------ [2014-01-25 15:20:29] rainer dot jung at kippdata dot de Workaround: Add "-lreadline" to PHPDBG_EXTRA_LIBS. The file needing libreadline is sapi/phpdbg/phpdbg_cmd.c. ------------------------------------------------------------------------ [2014-01-25 15:10:10] rainer dot jung at kippdata dot de Description: ------------ phpdbg correctly uses readling header files during compilation but does not link against libreadline during linking, so linkage fails because symbols readline and add_history are not know. Add -lreadline to the linking flags if libreadline existence was detected. ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=66576&edit=1

« previous php.bugs (#185363) next »