From: hz11@nyu.edu
Operating system: FreeBSD 4.6.2-RELEASE
PHP version: 4.2.2
PHP Bug Type: Compile Failure
Bug description: Compile error related to readlin
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 bug report at http://bugs.php.net/?id=19024&edit=1
--
Try a CVS snapshot: http://bugs.php.net/fix.php?id=19024&r=trysnapshot
Fixed in CVS: http://bugs.php.net/fix.php?id=19024&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=19024&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=19024&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=19024&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=19024&r=support
Expected behavior: http://bugs.php.net/fix.php?id=19024&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=19024&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=19024&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=19024&r=globals