Subject: pkg/13331: cannot compile lftp
To: None <gnats-bugs@gnats.netbsd.org>
From: None <hiramatu@boreas.dti.ne.jp>
List: netbsd-bugs
Date: 06/28/2001 06:07:29
>Number: 13331
>Category: pkg
>Synopsis: cannot compile lftp
>Confidential: no
>Severity: serious
>Priority: low
>Responsible: pkg-manager
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Thu Jun 28 06:05:00 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator: Hiramatsu Yoshifumi
>Release: -current (1.5W)
>Organization:
>Environment:
NetBSD river.my.domain 1.5W NetBSD 1.5W (HiraKern) #38: Mon Jun 25 20:45:32 JST 2001 hiramatsu@river.my.domain:/usr/src/sys/arch/i386/compile/HiraKern i386
>Description:
net/lftp fails to make.
>How-To-Repeat:
In net/lftp, make produces following error.
c++ -DHAVE_CONFIG_H -I. -I. -I../include -I../include -I/usr/include -O2 -Wall -Wwrite-strings -Woverloaded-virtual -fno-exceptions -fno-rtti -c complete.cc
complete.cc: In function `const char * find_word(const char *)':
complete.cc:208: warning: implicit declaration of function `int isspace(...)'
complete.cc: In function `char ** lftp_completion(char *, int, int)':
complete.cc:483: `rl_ignore_some_completions_function' undeclared (first use this function)
complete.cc:483: (Each undeclared identifier is reported only once
complete.cc:483: for each function it appears in.)
complete.cc:496: `rl_attempted_completion_over' undeclared (first use this function)
complete.cc:516: confused by earlier errors, bailing out
*** Error code 1
Stop.
*** Error code 1
Stop.
*** Error code 1
Stop.
*** Error code 1
Stop.
*** Error code 1
Stop.
>Fix:
Because lftp needs GNU readline, /usr/pkg/include must be searched
before /usr/include.
diff -u Makefile.orig Makefile
--- Makefile.orig Thu Jun 28 20:56:01 2001
+++ Makefile Thu Jun 28 21:53:05 2001
@@ -16,7 +16,7 @@
GNU_CONFIGURE= YES
USE_SSL= YES
-CONFIGURE_ARGS+=--with-ssl=${SSLBASE}
+CONFIGURE_ENV+= CPPFLAGS=-I${LOCALBASE}/include
USE_LIBINTL= YES
>Release-Note:
>Audit-Trail:
>Unformatted: