Bug 44137

Summary: "make most" fails on rmail (RELENG_4)
Product: Base System Reporter: Trevor Johnson <trevor>
Component: binAssignee: ru <ru>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: 4.7-PRERELEASE   
Hardware: Any   
OS: Any   

Description Trevor Johnson freebsd_committer freebsd_triage 2002-10-16 12:50:01 UTC
      ===> 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
Comment 1 Gregory Neil Shapiro freebsd_committer freebsd_triage 2003-02-08 19:39:03 UTC
Responsible Changed
From-To: freebsd-bugs->jmallet

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
Comment 2 Gregory Neil Shapiro freebsd_committer freebsd_triage 2003-02-08 22:51:59 UTC
Responsible Changed
From-To: jmallet->freebsd-bugs

Comment 3 ru freebsd_committer freebsd_triage 2003-10-03 21:47:58 UTC
State Changed
From-To: open->closed

I've fixed the false up-to-date matches for .a libraries, 
but this won't fix "make most", the latter should just die. 


Comment 4 ru freebsd_committer freebsd_triage 2003-10-03 21:47:58 UTC
Responsible Changed
From-To: freebsd-bugs->ru