#19024 [Fbk->NoF]: Compile error related to readlin

From: Date: Thu, 31 Oct 2002 07:00:03 +0000
Subject: #19024 [Fbk->NoF]: Compile error related to readlin
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-23758@lists.php.net to get a copy of this message
 ID:               19024
 Updated by:       php-bugs@lists.php.net
 Reported By:      hz11@nyu.edu
-Status:           Feedback
+Status:           No Feedback
 Bug Type:         Compile Failure
 Operating System: FreeBSD 4.6.2-RELEASE
 PHP Version:      4.2.2
 New Comment:

No feedback was provided for this bug for over 2 weeks, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".


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

[2002-10-14 09:38:26] nicos@php.net

By the way it looks like readline.c is still using PHP_FUNCTION and
PHP_FE which are depreciated and just aliases of Zend's. Shall I update
this or someone is working on it?

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

[2002-10-14 09:35:15] nicos@php.net

I'm using the same FreeBSD's version and the same package without any
error.

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

[2002-10-14 08:58:27] hz11@nyu.edu

I've compiled php4-200210140600, using this ./configure:

./configure --prefix=/home1/usr/local/psh --enable-cli --without-pear
--with-openssl=/usr/local/ssl --with-zlib --with-bcmath --with-bz2
--enable-ftp --with-readline --with-libedit
--with-mysql=/usr/local/mysql --with-ncurses --enable-pcntl
--enable-shmop --enable-sockets --enable-sysvsem --enable-sysvshm
--with-expat-dir=/usr/local --enable-inline-optimization

./configure seems to go ok, and with a snippet from config.log:

configure:59125: checking for PSPELL support
configure:59536: checking whether to include QDOM support
configure:60493: checking for libedit readline replacement
configure:60539: checking for readline support
configure:60625: checking for tgetent in -lncurses
configure:60644: gcc -o conftest -g -O2   -R/usr/local/ssl/lib
-L/usr/local/ssl/lib -R/usr/local/mysql/lib/mysql
-L/usr/local/mysql/lib/mysql conftest.c -lncurses  -lpanel -lncurses
-lmysqlclient -lbz2 -lz -lcrypt -lssl -lcrypto -lm  -lcrypt 1>&5
configure:60907: checking for readline in -lreadline
configure:60926: gcc -o conftest -g -O2  
    -L/usr/lib 
    -R/usr/local/ssl/lib -L/usr/local/ssl/lib
-R/usr/local/mysql/lib/mysql -L/usr/local/mysql/lib/mysql conftest.c
-lreadline  -lncurses -lpanel -lncurses -lmysqlclient -lbz2 -lz -lcrypt
-lssl -lcrypto -lm  -lcrypt 1>&5
configure:61059: checking for add_history in -lhistory
configure:61078: gcc -o conftest -g -O2  
    -L/usr/lib 
    -R/usr/local/ssl/lib -L/usr/local/ssl/lib
-R/usr/local/mysql/lib/mysql -L/usr/local/mysql/lib/mysql conftest.c
-lhistory  -lreadline -lncurses -lpanel -lncurses -lmysqlclient -lbz2
-lz -lcrypt -lssl -lcrypto -lm  -lcrypt 1>&5
configure:61466: checking for tgetent in -lncurses
configure:61748: checking for libedit
in -ledit
configure:61767: gcc -o conftest -g -O2  
    -L/usr/lib 
    -R/usr/local/ssl/lib -L/usr/local/ssl/lib
-R/usr/local/mysql/lib/mysql -L/usr/local/mysql/lib/mysql conftest.c
-ledit  -lncurses -lhistory -lreadline -lncurses -lpanel -lncurses
-lmysqlclient -lbz2 -lz -lcrypt -lssl -lcrypto -lm  -lcrypt 1>&5
configure:62116: checking for recode support
configure:62758: checking whether to enable PHP sessions


However the compile kicks right as the big link happens:

/home1/tmp/snapshot/php4-200210140600/ext/readline/readline.c(.text+0xc94):
multiple definition of `zif_readline_completion_function'
ext/readline/readline.o(.text+0xc94):/home1/tmp/snapshot/php4-200210140600/ext/readline/readline.c:
first defined here
ext/readline/readline.o: In function `zif_readline':
/home1/tmp/snapshot/php4-200210140600/ext/readline/readline.c(.data+0x80):
multiple definition of `readline_module_entry'
ext/readline/readline.o(.data+0x80):/home1/tmp/snapshot/php4-200210140600/ext/readline/readline.c:
first defined here
ext/readline/readline.o: In function `zm_startup_readline':
/home1/tmp/snapshot/php4-200210140600/ext/readline/readline.c(.text+0x0):
multiple definition of `zm_startup_readline'
ext/readline/readline.o(.text+0x0):/home1/tmp/snapshot/php4-200210140600/ext/readline/readline.c:
first defined here
ext/readline/readline.o: In function `zm_deactivate_readline':
/home1/tmp/snapshot/php4-200210140600/ext/readline/readline.c(.text+0x10):
multiple definition of `zm_deactivate_readline'
ext/readline/readline.o(.text+0x10):/home1/tmp/snapshot/php4-200210140600/ext/readline/readline.c:
first defined here
*** Error code 1

Stop in /home1/tmp/snapshot/php4-200210140600.


Let me know what other details may be needed.  Thanks,

Hans

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

[2002-10-10 22:43:52] iliaa@php.net

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



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

[2002-08-26 11:54:09] hz11@nyu.edu

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; }

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

The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
    http://bugs.php.net/19024

-- 
Edit this bug report at http://bugs.php.net/?id=19024&edit=1



Thread (9 messages)

« previous php.bugs (#23758) next »