Subject: bin/5895: distrib/utils/x_ftp needs -lutil
To: None <gnats-bugs@gnats.netbsd.org>
From: None <jbernard@ox.mines.edu>
List: netbsd-bugs
Date: 08/01/1998 09:51:39
>Number: 5895
>Category: bin
>Synopsis: distrib/utils/x_ftp needs -lutil
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: bin-bug-people (Utility Bug People)
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Sat Aug 1 09:05:00 1998
>Last-Modified:
>Originator: Jim Bernard
>Organization:
Speaking for myself
>Release: July 31, 1998
>Environment:
System: NetBSD zoo 1.3F NetBSD 1.3F (ZOO) #0: Sun Jun 14 09:09:08 MDT 1998 local@zoo:/home/local/compile/sys/arch/i386/compile/ZOO i386
>Description:
Recent changes to ftp require the addition of -lutil to the link
command of the build for x_ftp (the small ftp included on distribution
media).
>How-To-Repeat:
cd /usr/src/distrib; make
The build fails in utils/x_ftp with:
fetch.o: Undefined symbol `_fparseln' referenced from text segment
>Fix:
--- Makefile-dist Tue Nov 18 05:19:07 1997
+++ Makefile Sat Aug 1 09:39:39 1998
@@ -2,10 +2,14 @@
# Build a smaller ftp (i.e. for boot media)
PROG= ftp
NOMAN=
+# Need -lutil for: fparseln
+DPADD= ${LIBUTIL}
+LDADD= -lutil
+
SRCDIR= ${.CURDIR}/../../../usr.bin/ftp
SRCS= cmds.c cmdtab.c complete.c domacro.c fetch.c ftp.c main.c ruserpass.c \
util.c
>Audit-Trail:
>Unformatted: