Bug #51558 [Com]: configuration script fails at building readline shared library module

From: Date: Mon, 30 Jan 2012 05:42:26 +0000
Subject: Bug #51558 [Com]: configuration script fails at building readline shared library module
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-166943@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=51558&edit=1

 ID:                 51558
 Comment by:         lzsiga at freemail dot c3 dot hu
 Reported by:        cremator at mail dot bg
 Summary:            configuration script fails at building readline
                     shared library module
 Status:             Open
 Type:               Bug
 Package:            Compile Failure
 Operating System:   AIX 5.3 oslevel -r 5300-11
 PHP Version:        5.3, 5.4, trunk
 Block user comment: N
 Private report:     N

 New Comment:

Basically the problem is that ./configure checks for function 'rl_pending_input', which
happens to be a variable. In AIX variables and functions are exported differently, so the detection
fails.

In Aix, functions and variables are exported differently, which prevents ld from resolving a
variable as a function.

nm -Bgx /usr/local/lib/libreadline.so | grep rl_pending_input # variable
0x20003338 D rl_pending_input

 nm -Bgx /usr/local/lib/libreadline.so | grep rl_yank_pop # function
0x10031acc T .rl_yank_pop
0x20003f58 D rl_yank_pop

(So it is only 'D' for variables, both 'T' and 'D' for functions.)


Previous Comments:
------------------------------------------------------------------------
[2012-01-27 21:09:31] felipe@php.net

We got a new feedback from another reported bug related to this issue:

"Bug #60881	readline detection fails because of rl_pending_input variable"

------------------------------------------------------------------------
[2010-06-08 14:13:28] tony2001@php.net

What's in your config.log? I do not mean to paste it all, but I need to see the parts related
to readline and rl_pending_input() in particular. Put config.log online, if possible.
I guess your lib is broken or was built in a wrong way.

------------------------------------------------------------------------
[2010-04-15 10:50:05] cremator at mail dot bg

Description:
------------
readline shared library 6.0 has been build on aix with gcc 4.2.0, gnu make 3.80, shared library
ncurses 5.7, following a bit the guide at http://www.tekwire.net/joomla/building/apache/http_AIX_5.2.htm#p2.29
Everything seems to be working except that readline.h include file doesn't cope well with php
5.3.2 configure script. After downgrade php to 5.2.6 and patching it for openssl 1.0 everything
works like it should.
excuse my bad english and my less than little knowledge in coding

Expected result:
----------------
Thank you for using PHP.

Actual result:
--------------
checking for libedit readline replacement... no
checking for readline support... yes, shared
checking for tgetent in -lncurses... yes
checking for readline in -lreadline... yes
checking for rl_pending_input in -lreadline... no
configure: error: invalid readline installation detected. Try --with-libedit instead.


------------------------------------------------------------------------



-- 
Edit this bug report at https://bugs.php.net/bug.php?id=51558&edit=1


Thread (9 messages)

« previous php.bugs (#166943) next »