php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #35556 readline module
Submitted: 2005-12-05 14:48 UTC Modified: 2005-12-05 22:27 UTC
Votes:2
Avg. Score:5.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:0 (0.0%)
Same OS:0 (0.0%)
From: buildsmart at daleenterprise dot com Assigned:
Status: Closed Package: Compile Failure
PHP Version: 5.1.1 OS: darwin7.x, Darwin 8.x, Mac OSX
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
47 - 29 = ?
Subscribe to this entry?

 
 [2005-12-05 14:48 UTC] buildsmart at daleenterprise dot com
Description:
------------
unable to build with readline support using '--with-
libedit=/usr' in the following OS's: (OS's I have 
available)
Mac OSX Server 10.3.7
Mac OSX Server 10.3.8
Mac OSX Server 10.3.9
Mac OSX Server 10.4.0
Mac OSX Server 10.4.1
Mac OSX Server 10.4.2
Mac OSX Server 10.4.3
darwin 7.9
darwin 8.0
darwin 8.3

The problem does not occur in PHP-5.0.4

Here is the failure:

/bin/sh /SourceCache/BuildSmart/PHP/srcroot/php-5.1.1/
libtool --silent --preserve-dup-deps --mode=compile gcc  -
Iext/readline/ -I/SourceCache/BuildSmart/PHP/srcroot/php-
5.1.1/ext/readline/ -DPHP_ATOM_INC -I/SourceCache/
BuildSmart/PHP/srcroot/php-5.1.1/include -I/SourceCache/
BuildSmart/PHP/srcroot/php-5.1.1/main -I/SourceCache/
BuildSmart/PHP/srcroot/php-5.1.1 -I/usr/local/include/
libxml2 -I/usr/local/include -I/SourceCache/BuildSmart/PHP/
srcroot/php-5.1.1/ext/date/lib -I/usr/X11R6/include -I/usr/
local/include/freetype2 -I/SourceCache/BuildSmart/PHP/
srcroot/imap-2004e/c-client -I/SourceCache/BuildSmart/PHP/
srcroot/php-5.1.1/ext/mbstring/oniguruma -I/SourceCache/
BuildSmart/PHP/srcroot/php-5.1.1/ext/mbstring/libmbfl -I/
SourceCache/BuildSmart/PHP/srcroot/php-5.1.1/ext/mbstring/
libmbfl/mbfl -I/usr/include/mysql -I/SourceCache/
BuildSmart/PHP/build/postgresql-build/include -I/usr/local/
rrdtool-1.0.49/include -I/SourceCache/BuildSmart/PHP/
srcroot/php-5.1.1/TSRM -I/SourceCache/BuildSmart/PHP/
srcroot/php-5.1.1/Zend  -I/usr/local/include -no-cpp-
precomp  -D_INTL_REDIRECT_INLINE -UHAVE_SABLOT_GET_OPTIONS  
-c /SourceCache/BuildSmart/PHP/srcroot/php-5.1.1/ext/
readline/readline.c -o ext/readline/readline.lo 
/SourceCache/BuildSmart/PHP/srcroot/php-5.1.1/ext/readline/
readline.c: In function 'zif_readline_info':
/SourceCache/BuildSmart/PHP/srcroot/php-5.1.1/ext/readline/
readline.c:176: error: 'rl_mark' undeclared (first use in 
this function)
/SourceCache/BuildSmart/PHP/srcroot/php-5.1.1/ext/readline/
readline.c:176: error: (Each undeclared identifier is 
reported only once
/SourceCache/BuildSmart/PHP/srcroot/php-5.1.1/ext/readline/
readline.c:176: error: for each function it appears in.)
/SourceCache/BuildSmart/PHP/srcroot/php-5.1.1/ext/readline/
readline.c:177: error: 'rl_done' undeclared (first use in 
this function)
/SourceCache/BuildSmart/PHP/srcroot/php-5.1.1/ext/readline/
readline.c:178: error: 'rl_pending_input' undeclared (first 
use in this function)
/SourceCache/BuildSmart/PHP/srcroot/php-5.1.1/ext/readline/
readline.c: In function 'zif_readline_list_history':
/SourceCache/BuildSmart/PHP/srcroot/php-5.1.1/ext/readline/
readline.c:294: warning: assignment makes pointer from 
integer without a cast
/SourceCache/BuildSmart/PHP/srcroot/php-5.1.1/ext/readline/
readline.c:301: warning: passing argument 2 of 
'add_next_index_string' discards qualifiers from pointer 
target type
/SourceCache/BuildSmart/PHP/srcroot/php-5.1.1/ext/readline/
readline.c: In function '_readline_completion_cb':
/SourceCache/BuildSmart/PHP/srcroot/php-5.1.1/ext/readline/
readline.c:424: warning: passing argument 2 of 
'completion_matches' from incompatible pointer type
/SourceCache/BuildSmart/PHP/srcroot/php-5.1.1/ext/readline/
readline.c: In function 
'zif_readline_callback_handler_install':
/SourceCache/BuildSmart/PHP/srcroot/php-5.1.1/ext/readline/
readline.c:514: warning: passing argument 2 of 
'rl_callback_handler_install' from incompatible pointer 
type
make[1]: *** [ext/readline/readline.lo] Error 1


Reproduce code:
---------------
./configure --prefix=$(/usr/local/php) \
	--with-apxs --with-curl=/usr/local \
	--with-expat-dir=/usr/local --with-iconv=/usr/local \
	--with-iodbc=/usr --with-kerberos=/usr \
	--with-ldap=/usr --with-libedit=/usr \
	--with-readline=no --with-openssl=/usr \
	--with-openssl-dir=/usr --with-config-file-path=/etc \
	--sysconfdir=/private/etc --with-ncurses \
	--with-ndbm --with-xmlrpc \
	--with-xsl --with-gd \
	--enable-gd-native-ttf --with-freetype-dir=/usr/local \
	--with-jpeg-dir=/usr/local --with-png-dir=/usr/local \
	--with-tiff-dir=/usr/local --with-t1lib=/usr/local \
	--with-pdflib=/usr/local --with-xpm-dir=/usr/X11R6 \
	--enable-cgi --enable-cli --enable-bcmath \
 --enable-calendar \
	--enable-dba --enable-dbase \
	--enable-dbx --enable-dio \
	--enable-exif --enable-fastcgi \
	--enable-filepro --enable-force-cgi-redirect \
	--enable-ftp --enable-libgcc \
	--enable-mbstring --enable-memory-limit \
	--enable-shmop --enable-soap \
	--enable-sockets --enable-trans-sid \
	--enable-wddx --enable-xml \
	--enable-zend-multibyte --with-bz2=/usr \
	--with-libxml-dir=/usr/local --with-dom-exslt=/usr/local \
	--with-gettext=/usr/local --with-libxml-dir=/usr/local \
	--with-mcrypt=/usr/local --with-mcve=/usr/local \
	--with-mhash=/usr/local --with-mssql=/usr/local \
	--with-curlwrappers --enable-sqlite-utf8 \
	--with-mysql=/usr --with-mysql-sock=/var/mysql/mysql.sock \
	--with-zlib=/usr/local --with-zlib-dir=/usr/local



Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-12-05 15:14 UTC] sniper@php.net
Please try using this CVS snapshot:

  http://snaps.php.net/php5.1-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php5.1-win32-latest.zip


 [2005-12-05 22:20 UTC] buildsmart at daleenterprise dot com
using php-5.1-latest.tar.gz the issue doesn't occur, 
looking close, it appears that the latest is basically 
using the readline module code from php-5.0.4.

Looking further into the differences, the 'if' surrounding 
the libedit/readline seems to be a partial cause of 
problems but swapping config.m4's didn't entirely correct 
the issue.

I've added many custom modules in an attempt to see if 
anything breaks it and it appears to be stable.

The addition of 'hash' support is very welcomed.

All I need now is a Zend Optimizer that will work with it.

SEE:
http://www.daleenterprise.com/info.php
 [2005-12-05 22:27 UTC] tony2001@php.net
Fixed -> closed.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Apr 28 03:01:28 2024 UTC