From owner-freebsd-questions@FreeBSD.ORG Tue Sep 20 07:39:17 2005 Return-Path: X-Original-To: freebsd-questions@freebsd.org 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 A9E2016A41F; Tue, 20 Sep 2005 07:39:17 +0000 (GMT) (envelope-from Hartmut.Brandt@dlr.de) Received: from smtp-3.dlr.de (smtp-3.dlr.de [195.37.61.187]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0F23E43D46; Tue, 20 Sep 2005 07:39:14 +0000 (GMT) (envelope-from Hartmut.Brandt@dlr.de) Received: from beagle.kn.op.dlr.de ([129.247.173.6]) by smtp-3.dlr.de over TLS secured channel with Microsoft SMTPSVC(6.0.3790.211); Tue, 20 Sep 2005 09:39:12 +0200 Date: Tue, 20 Sep 2005 09:39:15 +0200 (CEST) From: Harti Brandt X-X-Sender: brandt_h@beagle.kn.op.dlr.de To: Giorgos Keramidas In-Reply-To: <20050919223543.GA36112@flame.pc> Message-ID: <20050920093738.N754@beagle.kn.op.dlr.de> References: <20050919144227.GA36987@flame.pc> <20050919190038.DA21939AB7@ntp1.ntp.isc.org> <20050919223543.GA36112@flame.pc> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-OriginalArrivalTime: 20 Sep 2005 07:39:12.0913 (UTC) FILETIME=[652DE010:01C5BDB6] Cc: Harlan Stenn , freebsd-questions@freebsd.org Subject: Re: gmake/make dependency problem X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Harti Brandt List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 20 Sep 2005 07:39:17 -0000 On Tue, 20 Sep 2005, Giorgos Keramidas wrote: GK>On 2005-09-19 19:00, Harlan Stenn wrote: GK>> I'm confused. GK>> GK>> I believe that: GK>> GK>> a: b GK>> GK>> means that 'a' depends on 'b', and if 'b' has a later timestamp than 'a' GK>> then the rule will be invoked to produce a new 'a' from whatever is GK>> done with 'b'. GK>> GK>> In this case, 'a' is ntpd-opts.c, and 'b' is ntpd-opts.def. GK>> GK>> As can be seen on your system and mine: GK>> GK>> > It seems that ntpd-opts.c has a timestamp 1 minute after ntpd-opts.def, GK>> GK>> which means it is up-to-date with respect to its dependencies. GK> GK>True. I was confused when I posted my previous reply. With the tarball GK>you posted, I can run make(1) with -ddm and see what you mean: GK> GK> 1 % flame:/home/keramida/ws/ntp/obj/ntpq$ make -ddm GK> 2 % Caching ....done GK> 3 % Caching /usr/share/mk...done GK> 4 % expanding "sys.mk".../usr/share/mk/sys.mk GK> 5 % Searching for /etc/make.conf...Looking for "/etc/make.conf"...Caching 18:38:48 Sep 12, 2005 for /etc/make.conf GK> 6 % Searching for /etc/make.conf...Looking for "/etc/make.conf"...got it (in mtime cache) GK> 7 % Searching for bsd.compat.mk...failed. GK> 8 % Searching for bsd.compat.mk...failed. GK> 9 % Searching for bsd.compat.mk.../usr/share/mk...here...returning /usr/share/mk/bsd.compat.mk GK> 10 % Searching for bsd.cpu.mk...failed. GK> 11 % Searching for bsd.cpu.mk...failed. GK> 12 % Searching for bsd.cpu.mk.../usr/share/mk...here...returning /usr/share/mk/bsd.cpu.mk GK> 13 % Searching for BSDmakefile...failed. GK> 14 % Searching for BSDmakefile.../usr/share/mk...failed. GK> 15 % Searching for makefile...failed. GK> 16 % Searching for makefile.../usr/share/mk...failed. GK> 17 % Searching for ./.deps/ntpq.Po...failed. Trying subdirectories...failed. Looking for "./.deps/ntpq.Po"...Caching 01:09:41 Sep 20, 2005 for ./.deps/ntpq.Po GK> 18 % Searching for ./.deps/ntpq-opts.Po...failed. Trying subdirectories...failed. Looking for "./.deps/ntpq-opts.Po"...Caching 01:09:42 Sep 20, 2005 for ./.deps/ntpq-opts.Po GK> 19 % Searching for ./.deps/ntpq-subs.Po...failed. Trying subdirectories...failed. Looking for "./.deps/ntpq-subs.Po"...Caching 01:09:41 Sep 20, 2005 for ./.deps/ntpq-subs.Po GK> 20 % Searching for .depend...failed. GK> 21 % Searching for .depend.../usr/share/mk...failed. GK> 22 % Caching ../../ntp-4.2.0b/ntpq...done GK> 23 % Searching for ntpq-opts.def.c...../../ntp-4.2.0b/ntpq...failed. GK> 24 % Searching for ntpq-opts.def...failed. GK> 25 % Examining ntpq-opts.def...Searching for ntpq-opts.def...../../ntp-4.2.0b/ntpq...here...returning ../../ntp-4.2.0b/ntpq/ntpq-opts.def GK> 26 % modified 11:02:16 Aug 30, 2005...up-to-date. GK> 27 % Examining ntpq-opts.c...non-existent...modified before source...out-of-date. GK> 28 % cd ../../ntp-4.2.0b/ntpq && autogen ntpq-opts.def GK> 29 % autogen: not found GK> 30 % *** Error code 127 GK> 31 % GK> 32 % Stop in /home/keramida/ws/ntp/obj/ntpq. GK> 33 % flame:/home/keramida/ws/ntp/obj/ntpq$ GK> GK>At line 27 I see that ntpq-opts.c isn't looked up in VPATH. This may be GK>a make(1) bug, sorry for the initial confusion. GK> GK>I've Cc'ed Harti who's been working on make(1) lately. That seems to be a subtile bug in the suffix module (which I, it seems, now have to try to understand :-) For some reason that module decides that it doesn't need to look for the .c file actually. I look into this. harti