From owner-freebsd-ports@FreeBSD.ORG Sun Apr 20 10:15:07 2003 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id CACEC37B401 for ; Sun, 20 Apr 2003 10:15:07 -0700 (PDT) Received: from mail.bellavista.cz (mail.bellavista.cz [213.235.167.218]) by mx1.FreeBSD.org (Postfix) with ESMTP id BE8DC43FB1 for ; Sun, 20 Apr 2003 10:15:06 -0700 (PDT) (envelope-from neuhauser@bellavista.cz) Received: from freepuppy.bellavista.cz (freepuppy.bellavista.cz [10.0.0.10]) by mail.bellavista.cz (Postfix) with ESMTP id 88ECE349 for ; Sun, 20 Apr 2003 19:15:05 +0200 (CEST) Received: by freepuppy.bellavista.cz (Postfix, from userid 1001) id 71A3B2FE0F4; Sun, 20 Apr 2003 19:15:05 +0200 (CEST) Date: Sun, 20 Apr 2003 19:15:05 +0200 From: Roman Neuhauser To: freebsd-ports Message-ID: <20030420171505.GE36951@freepuppy.bellavista.cz> Mail-Followup-To: freebsd-ports Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.1i Subject: libedit / readline X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 20 Apr 2003 17:15:08 -0000 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