From nobody@FreeBSD.org  Wed Oct 16 04:42:39 2002
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 627D237B401
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 16 Oct 2002 04:42:39 -0700 (PDT)
Received: from www.freebsd.org (www.freebsd.org [216.136.204.117])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 23C3043EAF
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 16 Oct 2002 04:42:39 -0700 (PDT)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.12.6/8.12.6) with ESMTP id g9GBgd7R031655
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 16 Oct 2002 04:42:39 -0700 (PDT)
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.12.6/8.12.6/Submit) id g9GBgceZ031654;
	Wed, 16 Oct 2002 04:42:38 -0700 (PDT)
Message-Id: <200210161142.g9GBgceZ031654@www.freebsd.org>
Date: Wed, 16 Oct 2002 04:42:38 -0700 (PDT)
From: Trevor Johnson <trevor@FreeBSD.org>
To: freebsd-gnats-submit@FreeBSD.org
Subject: "make most" fails on rmail (RELENG_4)
X-Send-Pr-Version: www-1.0

>Number:         44137
>Category:       bin
>Synopsis:       "make most" fails on rmail (RELENG_4)
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    ru
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Oct 16 04:50:01 PDT 2002
>Closed-Date:    Fri Oct 03 13:51:44 PDT 2003
>Last-Modified:  Fri Oct 03 13:51:44 PDT 2003
>Originator:     Trevor Johnson
>Release:        4.7-PRERELEASE i386
>Organization:
-
>Environment:
4.7-PRERELEASE i386
>Description:
      ===> bin/rmail
Warning: Object directory not changed from original /usr/src/bin/rmail
ln -sf /usr/src/bin/rmail/../../contrib/sendmail/include/sm/os/sm_os_freebsd.h sm_os.h
cc -Dmycflags  -I/usr/src/bin/rmail/../../contrib/sendmail/include -I.  -Wall -Wformat    -c /usr/src/bin/rm
ail/../../contrib/sendmail/rmail/rmail.c
cc -Dmycflags  -I/usr/src/bin/rmail/../../contrib/sendmail/include -I.  -Wall -Wformat      -o rmail rmail.o /usr/src/bin/rmail/../../lib/libsm/libsm.a 
cc: /usr/src/bin/rmail/../../lib/libsm/libsm.a: No such file or directory
*** Error code 1
>How-To-Repeat:
      cvs -R co -rRELENG_4 src; cd src; make most
>Fix:
      
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->jmallet 
Responsible-Changed-By: gshapiro 
Responsible-Changed-When: Sat Feb 8 11:39:03 PST 2003 
Responsible-Changed-Why:  
Give to make maintainer.  I believe this may be a bug in make.  If not 
it affects many more programs than rmail (e.g., dig, nslookup, anything 
that uses a static library not installed into /usr/lib). 

Using the rmail example (the first to trip over this since it is in /bin), 
src/rmail/Makefile properly adds a libsm.a dependency (verified in 
.depend file) but make doesn't try to build it if it doesn't exist. 
More over, it claims it does: 

> make /src/FreeBSD/RELENG_4/src/bin/rmail/../../lib/libsm/libsm.a 
`/src/FreeBSD/RELENG_4/src/bin/rmail/../../lib/libsm/libsm.a' is up to date. 
> ls -l !$ 
ls -l /src/FreeBSD/RELENG_4/src/bin/rmail/../../lib/libsm/libsm.a 
ls: /src/FreeBSD/RELENG_4/src/bin/rmail/../../lib/libsm/libsm.a: No such file or directory 


http://www.freebsd.org/cgi/query-pr.cgi?pr=44137 
Responsible-Changed-From-To: jmallet->freebsd-bugs 
Responsible-Changed-By: gshapiro 
Responsible-Changed-When: Sat Feb 8 14:51:59 PST 2003 
Responsible-Changed-Why:  
From: Juli Mallett <jmallett@FreeBSD.ORG> 
To: Gregory Neil Shapiro <gshapiro@FreeBSD.ORG> 
Cc: freebsd-bugs@FreeBSD.ORG 
Subject: Re: bin/44137: "make most" fails on rmail (RELENG_4) 
Date: Sat, 8 Feb 2003 16:50:29 -0600 

* De: Gregory Neil Shapiro <gshapiro@FreeBSD.ORG> [ Data: 2003-02-08 ] 
[ Subjecte: Re: bin/44137: "make most" fails on rmail (RELENG_4) ] 
> jmallett> Does it exist in the OBJDIR or MAKEOBJDIR ? 
>  
> No, in fact, you can reproduce this with this simple Makefile: 
>  
> DPADD=/not/a/real/path/libfoo.a 
> LDADD=/not/a/real/path/libfoo.a 
> PROG=foo 
> NOMAN=yes 
>  
> foo.c: 
> 	echo 'int main() { exit(0); }' > foo.c 
>  
> .include <bsd.prog.mk> 

OK.  I've run across this before, and it should be fairly easy 
to fix.  If you just look for where Dir_FindFile goes on, and 
the fstat'ing, and so on, and trace this down to the simplest 
failure case, and fix it.  I'm not the make maintainer, and as 
I was reminded "make belongs to all of us", you surely can find 
someone else who would do it. 

I'm sorry I can't help you, it's just too hard to work on make. 

Thanx, 
juli. 
--  
Juli Mallett <jmallett@FreeBSD.org> 
AIM: BSDFlata -- IRC: juli on EFnet 
OpenDarwin, Mono, FreeBSD Developer 
ircd-hybrid Developer, EFnet addict 
FreeBSD on MIPS-Anything on FreeBSD 


http://www.freebsd.org/cgi/query-pr.cgi?pr=44137 
State-Changed-From-To: open->closed 
State-Changed-By: ru 
State-Changed-When: Fri Oct 3 13:47:58 PDT 2003 
State-Changed-Why:  
I've fixed the false up-to-date matches for .a libraries, 
but this won't fix "make most", the latter should just die. 


Responsible-Changed-From-To: freebsd-bugs->ru 
Responsible-Changed-By: ru 
Responsible-Changed-When: Fri Oct 3 13:47:58 PDT 2003 
Responsible-Changed-Why:  

http://www.freebsd.org/cgi/query-pr.cgi?pr=44137 
>Unformatted:
