From owner-freebsd-bugs Tue Mar 5 13:50: 8 2002 Delivered-To: freebsd-bugs@hub.freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 4DF7437B416 for ; Tue, 5 Mar 2002 13:50:01 -0800 (PST) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.6/8.11.6) id g25Lo1069411; Tue, 5 Mar 2002 13:50:01 -0800 (PST) (envelope-from gnats) Received: from gtok-vm.andrew.cmu.edu (GTOK-VM.ANDREW.CMU.EDU [128.2.122.230]) by hub.freebsd.org (Postfix) with ESMTP id 590A337B41A for ; Tue, 5 Mar 2002 13:40:43 -0800 (PST) Received: (from cg2v@localhost) by gtok-vm.andrew.cmu.edu (8.11.6/8.11.6) id g25Leds20652; Tue, 5 Mar 2002 16:40:39 -0500 (EST) (envelope-from cg2v) Message-Id: <200203052140.g25Leds20652@gtok-vm.andrew.cmu.edu> Date: Tue, 5 Mar 2002 16:40:39 -0500 (EST) From: Chaskiel Grundman Reply-To: Chaskiel Grundman To: FreeBSD-gnats-submit@freebsd.org X-Send-Pr-Version: 3.113 Subject: bin/35568: make declares target out of date, but $? is empty 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: 35568 >Category: bin >Synopsis: make declares target out of date, but $? is empty >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Tue Mar 05 13:50:01 PST 2002 >Closed-Date: >Last-Modified: >Originator: Chaskiel Grundman >Release: FreeBSD 4.5-RELEASE i386 >Organization: Carnegie Mellon University >Environment: System: FreeBSD gtok-vm.andrew.cmu.edu 4.5-RELEASE FreeBSD 4.5-RELEASE #0: Mon Jan 28 14:31:56 GMT 2002 murray@builder.freebsdmall.com:/usr/src/sys/compile/GENERIC i386 >Description: A makefile containing the following (this is not the complete makefile...) all: ${TOP_LIBDIR}/libafsrpc.a libafsrpc.a: ${LIBOBJS} $(RM) -f $@ $(AR) crv $@ ${LIBOBJS} $(RANLIB) $@ case "${SYS_NAME}" in \ rs_aix*) \ $(AR) crv $@ ../sys/afsl.exp;; \ esac ${TOP_LIBDIR}/libafsrpc.a: libafsrpc.a ${INSTALL} $? $@ has the following behaavior if make is invoked when the library is up to date (this is a subset of the make -d lmv output): Examining libafsrpc.a...modified 15:22:39 Mar 05, 2002...library.../ modified 15:22:38 Mar 05, 2002...up-to-date. Examining /usr/home/cg2v/openafs/lib/libafsrpc.a...modified 15:22:39 Mar 05, 2002...library.../ modified 15:22:38 Mar 05, 2002...out-of-date. /usr/home/cg2v/openafs/lib/libafsrpc.a:> = libafsrpc.a /usr/home/cg2v/openafs/lib/libafsrpc.a:? = /usr/home/cg2v/openafs/src/pinstall/pinstall /usr/home/cg2v/openafs/lib/libafsrpc.a Not enough file names *** Error code 1 The obvious work around is to use $< or $> in the rule instead of $?, but that isn't workable in this case since some older makes don't impliment those. I can't be sure that nothing else changed, but I believe that this problem did not affect my FreeBSD 4.4 system >How-To-Repeat: I tried to produce a minimal makefile that triggered the problem, but I was unable to come up with something simple that did not work. The actual makefile that triggers the problem comes from openafs. A version that otherwise compiles on freebsd is available here: http://grand.central.org/dl/openafs/1.3.1/openafs-1.3.1-src.tar.bz2 >Fix: >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message