ID: 19024 Updated by: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] -Status: Open +Status: Feedback Bug Type: Compile Failure Operating System: FreeBSD 4.6.2-RELEASE PHP Version: 4.2.2 New Comment:
Please try using this CVS snapshot: http://snaps.php.net/php4-latest.tar.gz For Windows: http://snaps.php.net/win32/php4-win32-latest.zip Previous Comments: ------------------------------------------------------------------------ [2002-08-26 11:54:09] [EMAIL PROTECTED] Here is the config.log, from the point where it starts to get interesting. I'm not really sure why it's breaking, but would be interested in knowing. Let me know if there is anything else needed. Hans ... configure:53236: checking for PSPELL support configure:53644: checking whether to include QDOM support configure:54738: checking for libedit readline replacement configure:54787: checking for readline support configure:55705: checking for tgetent in -lncurses configure:55724: gcc -o conftest -g -O2 -R/usr/local/ssl/lib -L/usr/local/ssl/lib -R/usr/local/lib -L/usr/local/lib -R/usr/local/mysql/lib/mysql -L/usr/local/mysql/lib/mysql conftest.c -lncurses -lncurses -lmysqlclient -lintl -lbz2 -lz -lcrypt -lssl -lcrypto -lm -lcrypt 1>&5 configure:55983: checking for readline in -ledit configure:56002: gcc -o conftest -g -O2 -L/lib -R/usr/local/ssl/lib -L/usr/local/ssl/lib -R/usr/local/lib -L/usr/local/lib -R/usr/local/mysql/lib/mysql -L/usr/local/mysql/lib/mysql conftest.c -ledit -lncurses -lncurses -lmysqlclient -lintl -lbz2 -lz -lcrypt -lssl -lcrypto -lm -lcrypt 1>&5 /tmp/cccEIFqx.o: In function `main': /root/INSTALLED/php-4.2.2/configure(.text+0x7): undefined reference to `readline' configure: failed program was: #line 55991 "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 readline(); int main() { readline() ; return 0; } ------------------------------------------------------------------------ [2002-08-23 21:18:25] [EMAIL PROTECTED] Please check config.log for more details why the check fails. ------------------------------------------------------------------------ [2002-08-21 14:13:40] [EMAIL PROTECTED] My last post wasn't very clear, and so here are some more details: Using a source tree directly from tarball: ./configure --with-libedit gives: checking for libedit readline replacement... yes checking for readline support... no checking for tgetent in -lncurses... yes checking for readline in -ledit... no configure: error: edit library required by readline not found ./configure --with-readline ./configure and compile are successful ./configure --with-libedit --with-readline ./configure successful compile failed with error as posted previously It seems the same behavior occurs when reusing a source tree as well. Both ledit and lreadline show up in ldconfig -r. ------------------------------------------------------------------------ [2002-08-21 11:56:04] [EMAIL PROTECTED] I'm compiling php 4.2.2 on a stock FreeBSD 4.6.2-RELEASE box for use on the command line. I'm using: ./configure --prefix=/usr/local/psh --enable-cli --without-pear --with-openssl=/usr/local/ssl --with-zlib --with-bcmath --with-bz2 --enable-ftp --with-gettext --with-mysql=/usr/local/mysql --with-ncurses --enable-pcntl --with-libedit --with-readline --enable-shmop --enable-sockets --enable-sysvsem --enable-sysvshm --with-expat-dir=/usr/local --enable-inline-optimization The ./configure runs through fine (seemingly) but the compile dies with: Making all in readline gcc -I. -I/root/INSTALLED/php-4.2.2/ext/readline -I/root/INSTALLED/php-4.2.2/main -I/root/INSTALLED/php-4.2.2 -I/root/INSTALLED/php-4.2.2/Zend -I/usr/local/ssl/include -I/usr/local/include -I/usr/local/mysql/include/mysql -I/root/INSTALLED/php-4.2.2/TSRM -g -O2 -c readline.c && touch readline.lo readline.c: In function `zif_readline_list_history': readline.c:264: `HIST_ENTRY' undeclared (first use in this function) readline.c:264: (Each undeclared identifier is reported only once readline.c:264: for each function it appears in.) readline.c:264: `history' undeclared (first use in this function) readline.c:265: syntax error before `int' readline.c:267: `ac' undeclared (first use in this function) *** Error code 1 Stop in /root/INSTALLED/php-4.2.2/ext/readline. *** Error code 1 Stop in /root/INSTALLED/php-4.2.2/ext/readline. *** Error code 1 Stop in /root/INSTALLED/php-4.2.2/ext. *** Error code 1 Stop in /root/INSTALLED/php-4.2.2. This probably won't make a difference, but I had compiled the from the same source as a DSO (but I did make distclean before running the above ./configure). Thanks, Hans ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=19024&edit=1
