#50209 [NEW]: Compiling with libedit cannot find readline.h
| From: | tcallawa at redhat dot com | Date: | Tue, 17 Nov 2009 21:49:34 +0000 |
| Subject: | #50209 [NEW]: Compiling with libedit cannot find readline.h | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-144727@lists.php.net to get a copy of this message | ||
From: tcallawa at redhat dot com
Operating system: Linux (Fedora)
PHP version: 5.3.0
PHP Bug Type: Compile Failure
Bug description: Compiling with libedit cannot find readline.h
Description:
------------
The PHP code assumes that even with libedit in use (instead of readline),
that the header can be found in readline/readline.h.
libedit installs its "readline.h" into editline/ (to avoid the obvious
conflict with readline).
Accordingly, configure claims that libedit is not properly installed, when
it is. I've written a straightforward patch to fix this:
http://spot.fedorapeople.org/php-5.3.0-libedit.patch
It is also possible to use pkgconfig to ask libedit for its include flags
(and cflags), which would return "-I/usr/include/editline", but as that was
slightly more intrusive, I did not go down that road.
In addition, on a system where readline-devel and libedit-devel are both
installed, the existing code checking for /usr/include/readline-devel will
cause a false positive when checking for libedit, and will end up doing a
compile with readline's headers and libedit's library.
Reproduce code:
---------------
./configure --without-readline --with-libedit
Expected result:
----------------
checking for libedit readline replacement... yes
checking for readline in -ledit... yes
Actual result:
--------------
checking for libedit readline replacement... yes
configure: error: Please reinstall libedit - I cannot find readline.h
--
Edit bug report at http://bugs.php.net/?id=50209&edit=1
--
Try a snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=50209&r=trysnapshot52
Try a snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=50209&r=trysnapshot53
Try a snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=50209&r=trysnapshot60
Fixed in SVN: http://bugs.php.net/fix.php?id=50209&r=fixed
Fixed in SVN and need be documented: http://bugs.php.net/fix.php?id=50209&r=needdocs
Fixed in release: http://bugs.php.net/fix.php?id=50209&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=50209&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=50209&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=50209&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=50209&r=support
Expected behavior: http://bugs.php.net/fix.php?id=50209&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=50209&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=50209&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=50209&r=globals
PHP 4 support discontinued: http://bugs.php.net/fix.php?id=50209&r=php4
Daylight Savings: http://bugs.php.net/fix.php?id=50209&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=50209&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=50209&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=50209&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=50209&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=50209&r=mysqlcfg