From owner-freebsd-ports Fri May 1 08:44:28 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id IAA01252 for freebsd-ports-outgoing; Fri, 1 May 1998 08:44:28 -0700 (PDT) (envelope-from owner-freebsd-ports@FreeBSD.ORG) Received: from tweedledumb.cygnus.com (tweedledumb.cygnus.com [192.80.44.1]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id IAA01241 for ; Fri, 1 May 1998 08:44:26 -0700 (PDT) (envelope-from ian@cygnus.com) Received: from subrogation.cygnus.com (subrogation.cygnus.com [192.80.44.76]) by tweedledumb.cygnus.com (8.8.5/8.8.5) with ESMTP id LAA07773; Fri, 1 May 1998 11:44:07 -0400 (EDT) Received: (ian@localhost) by subrogation.cygnus.com (950413.SGI.8.6.12/8.6.4) id LAA08846; Fri, 1 May 1998 11:44:07 -0400 Date: Fri, 1 May 1998 11:44:07 -0400 Message-Id: <199805011544.LAA08846@subrogation.cygnus.com> From: Ian Lance Taylor To: peter.jeremy@alcatel.com.au CC: bug-gnu-utils@gnu.org, freebsd-ports@FreeBSD.ORG In-reply-to: <199805010017.KAA12929@gsms01.alcatel.com.au> (message from Peter Jeremy on Fri, 01 May 1998 10:17:07 +1000 (EST)) Subject: Re: Circular dependency in libiberty Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Date: Fri, 01 May 1998 10:17:07 +1000 (EST) From: Peter Jeremy When building libiberty as part of either binutils 2.9 or gdb 4.17 with a FreeBSD 2.x host, gnu make (3.76.1) successfully builds libiberty.a, but reports a circular dependency. Running gnu make in the libiberty directory after the library is successfully built gives: pc0640% gmake gmake[1]: Entering directory `/usr/users/jeremyp/src/binutils/libiberty' gmake[1]: Circular vasprintf.o <- config.h dependency dropped. gmake[1]: Leaving directory `/usr/users/jeremyp/src/binutils/libiberty' pc0640% The standard FreeBSD 2.2.5 make is unable to handle the circular dependency and exits without building the library. Thanks for the bug report. I think the appended patch to libiberty/Makefile.in will avoid the problem. Ian Index: Makefile.in =================================================================== RCS file: /cvs/cvsfiles/devo/libiberty/Makefile.in,v retrieving revision 1.135 retrieving revision 1.136 diff -u -r1.135 -r1.136 --- Makefile.in 1998/01/14 02:43:04 1.135 +++ Makefile.in 1998/05/01 15:43:14 1.136 @@ -252,8 +252,6 @@ required-list: Makefile echo $(REQUIRED_OFILES) > required-list -$(HOST_OFILES) $(REQUIRED_OFILES) : config.h - RULE1 = $(TARGETLIB) $(RULE1): $(REQUIRED_OFILES) $(DO_ALSO) .always. @$(MAKE) RULE1=not-used RULE2=$(TARGETLIB) $(FLAGS_TO_PASS) \ @@ -312,25 +310,27 @@ Makefile: $(srcdir)/Makefile.in $(host_makefile_frag) $(target_makefile_frag) $(SHELL) ./config.status +alloca.o: config.h argv.o: $(INCDIR)/libiberty.h -basename.o: $(INCDIR)/libiberty.h +basename.o: config.h $(INCDIR)/libiberty.h +choose-temp.o: config.h concat.o: $(INCDIR)/libiberty.h cplus-dem.o: $(INCDIR)/demangle.h fdmatch.o: $(INCDIR)/libiberty.h -fnmatch.o: $(INCDIR)/fnmatch.h -getopt.o: $(INCDIR)/getopt.h -getopt1.o: $(INCDIR)/getopt.h +fnmatch.o: config.h $(INCDIR)/fnmatch.h +getopt.o: config.h $(INCDIR)/getopt.h +getopt1.o: config.h $(INCDIR)/getopt.h getruntime.o: $(INCDIR)/libiberty.h hex.o: $(INCDIR)/libiberty.h floatformat.o: $(INCDIR)/floatformat.h objalloc.o: $(INCDIR)/objalloc.h obstack.o: $(INCDIR)/obstack.h -pexecute.o: $(INCDIR)/libiberty.h +pexecute.o: config.h $(INCDIR)/libiberty.h spaces.o: $(INCDIR)/libiberty.h -strerror.o: $(INCDIR)/libiberty.h -strsignal.o: $(INCDIR)/libiberty.h +strerror.o: config.h $(INCDIR)/libiberty.h +strsignal.o: config.h $(INCDIR)/libiberty.h xatexit.o: $(INCDIR)/libiberty.h xexit.o: $(INCDIR)/libiberty.h xmalloc.o: $(INCDIR)/libiberty.h xstrdup.o: $(INCDIR)/libiberty.h -xstrerror.o: $(INCDIR)/libiberty.h +xstrerror.o: config.h $(INCDIR)/libiberty.h To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message