On Sun, 2 Sep 2001, Jordan Hubbard wrote:

> cd /usr/src/usr.bin/xinstall; make _EXTRADEPEND
> echo xinstall: /usr/obj/usr/src/i386/usr/lib/libc.a  >> .depend
> cc -O -pipe    -I/usr/obj/usr/src/i386/usr/include  -c /usr/src/usr.bin/xinstall
> /xinstall.c
> cc -O -pipe    -I/usr/obj/usr/src/i386/usr/include   -static -o xinstall xinstal
> l.o
> xinstall.o: In function `main':
> xinstall.o(.text+0x83): undefined reference to `strtofflags'
> *** Error code 1
> This is from a relatively old -current coming up to a new (today's)
> -current.  I suspect somebody added a call for install yet forgot to
> alter the bootstrap tools target accordingly (or did but in the wrong
> place).  Thanks.

Index: Makefile
RCS file: /home/ncvs/src/usr.bin/xinstall/Makefile,v
retrieving revision 1.15
diff -u -2 -r1.15 Makefile
--- Makefile    2 Apr 2001 11:54:59 -0000       1.15
+++ Makefile    3 Sep 2001 11:18:33 -0000
@@ -2,6 +2,9 @@
 # $FreeBSD: src/usr.bin/xinstall/Makefile,v 1.15 2001/04/02 11:54:59 ru Exp $

+.PATH: ${.CURDIR}/../../lib/libc/gen
 PROG=          xinstall
 PROGNAME=      install
+SRCS=          strtofflags.c xinstall.c
 MAN=           install.1

Unfixed bugs: this will have to be fixed better before turning on WARNS.
strtofflags() won't be declared in the host includes if the host libraries
don't have it.  Similarly in mtree (where I obtained this fix from) and
in any other tools that use strtofflags().  All these bugs were missing in
the old versions that used ls's version of strtofflags.

Nearby bugs: mtree/Makefile uses !defined(WORLD) to avoid depending on
the host having libmd, but someone removed the definition of WORLD from


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message

Reply via email to