From owner-freebsd-bugs Thu Aug 22 11:30:11 2002 Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2F26837B400 for ; Thu, 22 Aug 2002 11:30:03 -0700 (PDT) Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 78E3E43E70 for ; Thu, 22 Aug 2002 11:30:02 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.4/8.12.4) with ESMTP id g7MIU2JU005150 for ; Thu, 22 Aug 2002 11:30:02 -0700 (PDT) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.4/8.12.4/Submit) id g7MIU2Q6005149; Thu, 22 Aug 2002 11:30:02 -0700 (PDT) Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 40D7B37B401 for ; Thu, 22 Aug 2002 11:23:03 -0700 (PDT) Received: from yeltsin.andrew.cmu.edu (YELTSIN.andrew.cmu.edu [128.2.121.175]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7E1D843E84 for ; Thu, 22 Aug 2002 11:23:02 -0700 (PDT) (envelope-from cg2v@yeltsin.andrew.cmu.edu) Received: from yeltsin.andrew.cmu.edu (localhost [127.0.0.1]) by yeltsin.andrew.cmu.edu (8.12.5/8.12.5) with ESMTP id g7MIMx21021284 for ; Thu, 22 Aug 2002 14:22:59 -0400 (EDT) (envelope-from cg2v@yeltsin.andrew.cmu.edu) Received: (from cg2v@localhost) by yeltsin.andrew.cmu.edu (8.12.5/8.12.5/Submit) id g7MIJsxH021252; Thu, 22 Aug 2002 14:19:54 -0400 (EDT) Message-Id: <200208221819.g7MIJsxH021252@yeltsin.andrew.cmu.edu> Date: Thu, 22 Aug 2002 14:19:54 -0400 (EDT) From: Chaskiel Grundman Reply-To: Chaskiel Grundman To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Subject: bin/41908: make: $? not always set Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org >Number: 41908 >Category: bin >Synopsis: make: $? not always set >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Thu Aug 22 11:30:01 PDT 2002 >Closed-Date: >Last-Modified: >Originator: Chaskiel Grundman >Release: FreeBSD 4.6-STABLE i386 >Organization: >Environment: System: FreeBSD yeltsin.andrew.cmu.edu 4.6-STABLE FreeBSD 4.6-STABLE #0: Tue Aug 20 09:48:10 EDT 2002 cg2v@yeltsin.andrew.cmu.edu:/usr/obj/usr/src/sys/MODERN2940 i386 >Description: if an archive's internal timestamp and file modtime are different make considers targets dependent on the archive to be out of date, but does not put the archive in $? >How-To-Repeat: with this makefile in an empty directory: all: test2.a test2.a: test.a install -c $? $@ test.a: t1.o ar crv $@ t1.o ranlib $@ t1.c: Makefile touch t1.c breakit: touch test.a run the following sequence: make; make breakit; make; make The last command (and any successive make invocations) will fail, and make -dm produces output like the following: Examining Makefile...modified 13:58:35 Aug 22, 2002...up-to-date. Examining t1.c...modified 13:58:37 Aug 22, 2002...up-to-date. Examining t1.o...modified 13:58:37 Aug 22, 2002...up-to-date. Examining test.a...modified 13:58:41 Aug 22, 2002...library.../ modified 13:58:37 Aug 22, 2002...up-to-date. Examining test2.a...modified 13:58:43 Aug 22, 2002...library.../ modified 13:58:37 Aug 22, 2002...out-of-date. install -c test2.a usage: install [-bCcpSsv] [-B suffix] [-f flags] [-g group] [-m mode] [-o owner] file1 file2 install [-bCcpSsv] [-B suffix] [-f flags] [-g group] [-m mode] [-o owner] file1 ... fileN directory install -d [-v] [-g group] [-m mode] [-o owner] directory ... In the peice of software I actually encountered this in, there is no "touch" involved, but somehow the 2 timestamps are a second apart. >Fix: >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message