Mombu the Php Forum sponsored links

Go Back   Mombu the Php Forum > Php > #35556 : readline module
User Name
Password
REGISTER NOW! Mark Forums Read

sponsored links


Reply
 
1 12th June 12:30
php-bugs@lists.php.net (buildsmart at daleenterprise dot
External User
 
Posts: 1
Default #35556 : readline module


From: buildsmart at daleenterprise dot com
Operating system: darwin7.x, Darwin 8.x, Mac OSX
PHP version: 5.1.1
PHP Bug Type: Compile Failure
Bug description: readline module

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

--
Edit bug report at http://bugs.php.net/?id=35556&edit=1
--
Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=35556&r=trysnapshot44
Try a CVS snapshot (PHP 5.1): http://bugs.php.net/fix.php?id=35556&r=trysnapshot51
Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=35556&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=35556&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=35556&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=35556&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=35556&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=35556&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=35556&r=support
Expected behavior: http://bugs.php.net/fix.php?id=35556&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=35556&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=35556&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=35556&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=35556&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=35556&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=35556&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=35556&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=35556&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=35556&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=35556&r=mysqlcfg
  Reply With Quote


  sponsored links


2 12th June 12:31
sniper
External User
 
Posts: 1
Default #35556 : readline module


ID: 35556
Updated by: sniper@php.net
Reported By: buildsmart at daleenterprise dot com
-Status: Open
+Status: Feedback
Bug Type: Compile Failure
Operating System: darwin7.x, Darwin 8.x, Mac OSX
PHP Version: 5.1.1
New Comment:

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


Previous Comments:
------------------------------------------------------------------------

[2005-12-05 14:48:36] 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


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


--
Edit this bug report at http://bugs.php.net/?id=35556&edit=1
  Reply With Quote
3 12th June 13:10
php-bugs@lists.php.net (buildsmart at daleenterprise dot
External User
 
Posts: 1
Default #35556 : readline module


ID: 35556
User updated by: buildsmart at daleenterprise dot com
Reported By: buildsmart at daleenterprise dot com
-Status: Feedback
+Status: Open
Bug Type: Compile Failure
Operating System: darwin7.x, Darwin 8.x, Mac OSX
PHP Version: 5.1.1
New Comment:

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


Previous Comments:
------------------------------------------------------------------------

[2005-12-05 15:14:50] 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 14:48:36] 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


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


--
Edit this bug report at http://bugs.php.net/?id=35556&edit=1
  Reply With Quote
4 12th June 13:10
tony2001
External User
 
Posts: 1
Default #35556 : readline module


ID: 35556
Updated by: tony2001@php.net
Reported By: buildsmart at daleenterprise dot com
-Status: Open
+Status: Closed
Bug Type: Compile Failure
Operating System: darwin7.x, Darwin 8.x, Mac OSX
PHP Version: 5.1.1
New Comment:

Fixed -> closed.


Previous Comments:
------------------------------------------------------------------------

[2005-12-05 22:20:43] 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 15:14:50] 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 14:48:36] 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


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


--
Edit this bug report at http://bugs.php.net/?id=35556&edit=1
  Reply With Quote


  sponsored links


Reply


Thread Tools
Display Modes




Copyright 2006 SmartyDevil.com - Dies Mies Jeschet Boenedoesef Douvema Enitemaus -
666