ID: 21153
Comment by: [EMAIL PROTECTED]
Reported By: [EMAIL PROTECTED]
Status: Open
Bug Type: Readline related
Operating System: Mandrake 9.0
PHP Version: 4.3.0RC4
New Comment:
It does not work with:
cd ext/readline;phpize;aclocal
./configure --with-readline
[--SNIP--]
checking for libedit readline replacement... yes, shared
checking for readline support... yes, shared
checking for tgetent in -lncurses... yes
checking for readline in -lreadline... no
configure: error: readline library not found
The problem is it checks for tgetent in -lncurses, but it doesn't add
the lib
in the $LIBS variable.
I have the GNU readline library, version 4.3
I managed to get it work, but then, it also insists on checking *both*
readline and libedit.
So I installed libedit, and the same problem with the -lncurses
appeared.
Seems to me someone should check the config.m4....
Previous Comments:
------------------------------------------------------------------------
[2002-12-22 19:29:40] [EMAIL PROTECTED]
Hi.
(sorry, this one was accidently also filed as #21152, I forgot to
change the summary...)
readline won't build as a external module. Here's my configure line
that don't work:
./configure \
--prefix=/usr \
--exec-prefix=/usr \
--bindir=/usr/bin \
--sbindir=/usr/sbin \
--datadir=/usr/share \
--sysconfdir=/etc \
--libdir=/usr/lib \
--includedir=/usr/include \
--infodir=/usr/share/info \
--mandir=/usr/share/man \
--with-apxs2=/usr/sbin/apxs \
--enable-force-cgi-redirect \
--enable-discard-path \
--enable-debug \
--with-layout=GNU \
--with-config-file-path=/etc \
--with-config-file-scan-dir=/etc/httpd/conf.d \
--with-pear=/usr/lib/php \
--enable-safe-mode \
--with-exec-dir=/usr/bin \
--enable-magic-quotes \
--disable-rpath \
--with-openssl=shared,/usr --with-zlib=shared,/usr
--with-zlib-dir=/usr \
--enable-bcmath=shared \
--with-bz2=shared,/usr \
--enable-calendar=shared \
--without-cpdflib \
--with-jpeg-dir=/usr \
--with-tiff-dir=/usr \
--without-crack \
--with-ctype=shared \
--with-curl=shared,/usr \
--without-cyrus \
--without-db \
--enable-dba=shared,/usr \
--with-gdbm=shared,/usr \
--without-ndbm \
--without-db2 \
--without-db3 \
--with-db4=shared,/usr \
--without-dbm \
--with-cdb=shared,/usr \
--with-flatfile=shared \
--enable-dbase=shared \
--enable-dbx=shared,/usr \
--enable-dio=shared,/usr \
--with-dom=shared,/usr --with-zlib-dir=/usr
--with-dom-xslt=shared,/usr --with-dom-exslt=shared,/usr \
--enable-exif=shared \
--without-fbsql \
--without-fdftk \
--enable-filepro=shared \
--without-fribidi \
--enable-ftp=shared \
--with-gd=shared --with-jpeg-dir=/usr --with-png-dir=/usr
--with-zlib-dir=/usr --with-xpm-dir=/usr/X11R6/lib/ \
--with-ttf=/usr \
--with-freetype-dir=/usr \
--with-t1lib=/usr \
--enable-gd-native-ttf \
--with-gettext=shared,/usr \
--with-gmp=shared,/usr \
--without-hwapi \
--without-hyperwave \
--without-iconv \
--with-imap=shared,/usr \
--without-kerberos \
--with-imap-ssl=shared,/usr \
--without-informix \
--without-ingres \
--without-interbase \
--without-ircg \
--with-ircg-config=/dev/null \
--without-java \
--with-ldap=shared,/usr \
--enable-mbstring=shared \
--enable-mbregex=shared \
--without-mcal \
--with-mcrypt=shared,/usr \
--without-mcve \
--with-mhash=shared,/usr \
--enable-mime-magic=shared \
--with-ming=shared,/usr \
--with-mnogosearch=shared,/usr \
--without-msession \
--without-msql \
--without-mssql \
--with-mysql=shared,/usr
--with-mysql-sock=/var/lib/mysql/mysql.sock --with-zlib-dir=/usr \
--with-ncurses=shared,/usr \
--without-oci8 \
--without-adabas \
--without-sapdb \
--without-solid \
--without-ibm-db2 \
--without-empress \
--without-empress-bcs \
--without-birdstep \
--without-custom-odbc \
--without-iodbc \
--without-esoob \
--with-unixODBC=shared,/usr \
--without-openlink \
--without-dbmaker \
--without-oracle \
--enable-overload=shared \
--without-ovrimos \
--disable-pcntl \
--without-pcre-regex \
--with-pcre-regex=shared,/usr \
--without-pdflib --with-jpeg-dir=/usr --with-png-dir=/usr
--with-zlib-dir=/usr --with-tiff-dir=/usr \
--without-pfpro \
--with-pgsql=shared,/usr \
--enable-posix=shared \
--with-pspell=shared,/usr \
--without-qtdom \
--without-libedit \
--with-readline=shared,/usr \
--with-recode=shared,/usr \
--enable-session=shared \
--without-mm \
--enable-shmop=shared \
--with-snmp=shared,/usr \
--enable-ucd-snmp-hack \
--enable-sockets=shared \
--with-regex=php \
--without-swf \
--without-sybase \
--with-sybase-ct=shared,/usr \
--enable-sysvmsg=shared \
--enable-sysvsem=shared \
--enable-sysvshm=shared \
--enable-tokenizer=shared \
--enable-wddx=shared \
--disable-xml \
--with-expat-dir=shared,/usr \
--with-xmlrpc=shared,/usr \
--with-expat-dir=shared,/usr \
--without-iconv-dir \
--enable-xslt=shared,/usr \
--with-xslt-sablot=shared,/usr \
--with-expat-dir=shared,/usr \
--without-iconv-dir \
--with-sablot-js=shared,/usr \
--without-yaz \
--enable-yp=shared \
--with-zip=shared,/usr \
--enable-shared \
--with-pic \
--enable-inline-optimization \
--enable-memory-limit
Here's the configure line that does work:
READLINE_SHARED_LIBADD="-lhistory -lreadline -lncurses" ./configure
--with-readline=shared,/usr
Somewhere down the line the configure stuff gets messed up..., I have
no idea where and why... It doesn't matter if I add the
READLINE_SHARED_LIBADD environment to the first configure line. And of
course I have all the needed dev stuff installed.
Chears.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=21153&edit=1