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

From: Date: Tue, 22 Apr 2014 04:19:55 +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-185362@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:

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 !!!


Previous Comments:
------------------------------------------------------------------------
[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


Thread (8 messages)

« previous php.bugs (#185362) next »