From owner-freebsd-questions@FreeBSD.ORG Wed Oct 1 15:31:00 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 84A5F16A4B3 for ; Wed, 1 Oct 2003 15:31:00 -0700 (PDT) Received: from dan.emsphone.com (dan.emsphone.com [199.67.51.101]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0579043FE3 for ; Wed, 1 Oct 2003 15:30:59 -0700 (PDT) (envelope-from dan@dan.emsphone.com) Received: (from dan@localhost) by dan.emsphone.com (8.12.9/8.12.9) id h91MUndI052009; Wed, 1 Oct 2003 17:30:49 -0500 (CDT) (envelope-from dan) Date: Wed, 1 Oct 2003 17:30:49 -0500 From: Dan Nelson To: Julian Elischer Message-ID: <20031001223049.GC2421@dan.emsphone.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-OS: FreeBSD 5.1-CURRENT X-message-flag: Outlook Error User-Agent: Mutt/1.5.4i cc: questions@freebsd.org Subject: Re: Need a Makefile expert. X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 01 Oct 2003 22:31:00 -0000 In the last episode (Oct 01), Julian Elischer said: > > I'm trying to compile npasswd (from utexas). > I know that it doesn't work on freeBSD, but I have > some work to make it do so, if only I could get the damned thing to > compile automatically.. (I can do lots of it by hand but it's a pain) > > After running Configure, I type "make" > and I get: > [lots-o-stuff] > Making all in src... > cd Methods; make libmethod.a > make: don't know how to make .o. Stop > *** Error code 2 > ... (much clipping ahead) > ######################################################################## > # Makefile generated from Makefile.SH on Wed Oct 1 14:39:29 PDT 2003 ... > SHADOW_M = ... > libmethod.a: $(METHOD_OBJ) $(SHADOW_M).o > $(RM) $@ > $(AR) $@ $(METHOD_OBJ) $(SHADOW_M).o > $(RANLIB) $@ SHADOW_M expands to the empty string, so the dependency list for libmethod.a is whatever METHOD_OBJ expands to, plus ".o". Try removing $(SHADOW_M).o from both lines above? -- Dan Nelson dnelson@allantgroup.com