Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 20 Apr 2003 19:15:05 +0200
From:      Roman Neuhauser <neuhauser@bellavista.cz>
To:        freebsd-ports <freebsd-ports@freebsd.org>
Subject:   libedit / readline
Message-ID:  <20030420171505.GE36951@freepuppy.bellavista.cz>

next in thread | raw e-mail | index | archive | help
Hi there,

I'd like to build PHP with libedit. The problem is, PHP's ./configure
script checks for readline() in libedit, but libedit.so.3 doesn't
contain that symbol; the port version of libedit is also configured to
not export it.

What I'd like to know is this: if libedit is meant to be a drop-in
replacement for readline, why doesn't it export readline()?

configure:64106: checking for readline in -ledit
configure:64125: gcc -o conftest -g -O2  
    -L/lib 
    conftest.c -ledit  -lncurses -lcrypt -lm  -lcrypt 1>&5
/tmp/ccpBx8F5.o: In function `main':
/home/roman/install/php/php-4.3.1/configure(.text+0x7): undefined reference to `readline'
configure: failed program was:
#line 64114 "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; }

-- 
If you cc me or remove the list(s) completely I'll most likely ignore
your message.    see http://www.eyrie.org./~eagle/faqs/questions.html



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030420171505.GE36951>