|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #51360 Config: l_pending_input from readline not a function!
Submitted: 2010-03-23 11:52 UTC Modified: 2013-02-18 00:34 UTC
Avg. Score:5.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:1 (100.0%)
From: psamman14 at gmail dot com Assigned:
Status: No Feedback Package: Readline related
PHP Version: 5.3.2 OS: HP-UX 11i
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Bug Type:
From: psamman14 at gmail dot com
New email:
PHP Version: OS:


 [2010-03-23 11:52 UTC] psamman14 at gmail dot com
Trying to compile PHP 5.3.2 on HP-UX 11i (B11.11) for command-line usage with : 

./configure --prefix=$HOME/bin/php-5.3.2 -with-zlib=$HOME/bin/zlib-1.2.3 --enable-zip --with-pcre-regex --enable-exif  --with-gd --enable-mbstring --with-readline=$HOME/bin/readline-6.1 --with-snmp --enable-soap --with-pear --with-zend-vm --enable-zend-multibyte --with-libxml-dir=$HOME/bin/libxml2-2.7.6 --with-png-dir=$HOME/bin/libpng-1.4.1

I get : 
checking for readline in -lreadline... yes
checking for rl_pending_input in -lreadline... no
configure: error: invalid readline installation detected. Try --with-libedit instead.

Looking at config.log, configure script is trying to compile this against libreadline : 

#line 78181 "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 rl_pending_input();

int main() {
; return 0; }

I checked in readline.c from versions 6.1 and 5.1, l_pending_input is declared as an int, not as a function.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2010-03-23 13:08 UTC]
-Status: Open +Status: Feedback -Package: *Compile Issues +Package: Readline related
 [2010-03-23 13:08 UTC]
Can you show the compiler error from the config test? What compiler are you using?
 [2010-03-23 13:44 UTC] psamman14 at gmail dot com
Here : 

configure:78173: checking for rl_pending_input in -lreadline
configure:78192: cc -o conftest -I/usr/include -g  -L/home/psamman14/bin/readline-6.1/lib -L/home/psamman14/bin/readline-6.1/lib -L/usr/lib  -L/home/psamman14/bin/libxml2-2.7.6/lib -L/home/psamman14/bin/libxml2-2.7.6/lib -L/home/psamman14/bin/zlib-1.2.3/lib -L/home/psamman14/bin/zlib-1.2.3/lib -L/home/psamman14/bin/libpng-1.4.1/lib -L/home/psamman14/bin/libpng-1.4.1/lib -L/home/psamman14/bin/readline-6.1/lib -L/home/psamman14/bin/readline-6.1/lib -ltermcap conftest.c -lreadline  -lreadline -ltermcap -lrt -lpng -lz -lz -lrt -lm -lnsl  -lxml2 -lm -lxml2 -lm 1>&5
/usr/ccs/bin/ld: Unsatisfied symbols:
   rl_pending_input (first referenced in conftest.o) (code)

I use the default compiler : /usr/bin/cc
 [2013-02-18 00:34 UTC] php-bugs at lists dot php dot net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Open". Thank you.
PHP Copyright © 2001-2019 The PHP Group
All rights reserved.
Last updated: Sat Aug 17 14:01:28 2019 UTC