From alk@think.com  Wed Sep  4 23:16:55 1996
Received: from mail.think.com (Mail1.Think.COM [131.239.33.245])
          by freefall.freebsd.org (8.7.5/8.7.3) with ESMTP id XAA24614
          for <FreeBSD-gnats-submit@freebsd.org>; Wed, 4 Sep 1996 23:16:54 -0700 (PDT)
Received: from Early-Bird.Think.COM (Early-Bird-1.Think.COM [131.239.146.105])
    by mail.think.com (8.7.5/m3) with ESMTP id CAA28725
    for <FreeBSD-gnats-submit@freebsd.org>; Thu, 5 Sep 1996 02:16:52 -0400 (EDT)
Received: from compound.Think.COM (fergus-2.dialup.prtel.com [206.10.99.132])
    by Early-Bird.Think.COM (8.7.5/e1) with ESMTP id CAA15427
    for <FreeBSD-gnats-submit@freebsd.org>; Thu, 5 Sep 1996 02:16:49 -0400 (EDT)
Received: (from alk@localhost) by compound.Think.COM (8.7.5/8.7.3) id BAA21698; Thu, 5 Sep 1996 01:17:14 -0500 (CDT)
Message-Id: <199609050617.BAA21698@compound.Think.COM>
Date: Thu, 5 Sep 1996 01:17:14 -0500 (CDT)
From: Tony Kimball <alk@think.com>
Reply-To: alk@think.com
To: FreeBSD-gnats-submit@freebsd.org
Subject: build failure in libss, 2.2 current.
X-Send-Pr-Version: 3.2

>Number:         1568
>Category:       conf
>Synopsis:       build failure in libss
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:
>Keywords:
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Sep  4 23:20:01 PDT 1996
>Closed-Date:    Thu Sep 5 14:22:56 PDT 1996
>Last-Modified:  Thu Sep  5 14:23:52 PDT 1996
>Originator:     Tony Kimball
>Release:        FreeBSD 2.2-CURRENT i386
>Organization:
Dis
>Environment:

2.2 current cvs-cur 2434

>Description:

make world fails in libss

>How-To-Repeat:

make world -DNOCLEANDIR -DNOPROFILE -DNOSECURE -DNOGAMES -DNOCRYPT
...
cd /alt/src/lib/libss &&		make beforeinstall
install -C -o bin -g bin -m 444 /alt/src/lib/libss/ss.h  /usr/include/ss
install -C -o bin -g bin -m 444 /alt/src/lib/libss/copyright.h  /usr/include/ss/mit-sipb-copyright.h
install -C -o bin -g bin -m 444 ss_err.h  /usr/include/ss
install: ss_err.h: No such file or directory
*** Error code 71

>Fix:
	
*** Makefile.orig	Thu Sep  5 01:12:44 1996
--- Makefile	Thu Sep  5 01:12:53 1996
***************
*** 29,35 ****
  	${INSTALL} -C -o ${BINOWN} -g ${BINGRP} -m 444 ${.CURDIR}/copyright.h \
  		${DESTDIR}/usr/include/ss/mit-sipb-copyright.h
  .if exists(ss_err.h)
! 	${INSTALL} -C -o ${BINOWN} -g ${BINGRP} -m 444 ss_err.h \
  		${DESTDIR}/usr/include/ss
  .endif
  
--- 29,35 ----
  	${INSTALL} -C -o ${BINOWN} -g ${BINGRP} -m 444 ${.CURDIR}/copyright.h \
  		${DESTDIR}/usr/include/ss/mit-sipb-copyright.h
  .if exists(ss_err.h)
! 	${INSTALL} -C -o ${BINOWN} -g ${BINGRP} -m 444 ${.CURDIR}/ss_err.h \
  		${DESTDIR}/usr/include/ss
  .endif

>Release-Note:
>Audit-Trail:

From: Bruce Evans <bde@zeta.org.au>
To: alk@think.com, FreeBSD-gnats-submit@freebsd.org
Cc:  Subject: Re: conf/1568: build failure in libss, 2.2 current.
Date: Thu, 5 Sep 1996 22:37:14 +1000

 >2.2 current cvs-cur 2434
 >
 >>Description:
 >
 >make world fails in libss
 >...
 >>Fix:
 >	
 >*** Makefile.orig	Thu Sep  5 01:12:44 1996
 >--- Makefile	Thu Sep  5 01:12:53 1996
 >***************
 >*** 29,35 ****
 >  	${INSTALL} -C -o ${BINOWN} -g ${BINGRP} -m 444 ${.CURDIR}/copyright.h \
 >  		${DESTDIR}/usr/include/ss/mit-sipb-copyright.h
 >  .if exists(ss_err.h)
 >! 	${INSTALL} -C -o ${BINOWN} -g ${BINGRP} -m 444 ss_err.h \
 >  		${DESTDIR}/usr/include/ss
 >  .endif
 >  
 >--- 29,35 ----
 >  	${INSTALL} -C -o ${BINOWN} -g ${BINGRP} -m 444 ${.CURDIR}/copyright.h \
 >  		${DESTDIR}/usr/include/ss/mit-sipb-copyright.h
 >  .if exists(ss_err.h)
 >! 	${INSTALL} -C -o ${BINOWN} -g ${BINGRP} -m 444 ${.CURDIR}/ss_err.h \
 >  		${DESTDIR}/usr/include/ss
 >  .endif
 >
 
 This can't be right.  ss_err.h is in ${.OBJDIR} and shouldn't be
 in ${.CURDIR} unless ${.OBJDIR} == ${.CURDIR}.  You apparently have
 ${.OBJDIR} != ${.CURDIR} and a garbage copy of ss_err.h in ${.CURDIR}.
 The exists() builtin is "intelligent".  It searches both ${.OBJDIR}
 and ${.CURDIR} (in who-knows-what order) and finds the garbage copy.
 
 Fixes:
 1. Run `make cleandir' before switching object directories.
 2. Remove garbage using rm.
 3. Use the unambiguous path ${.OBJDIR}/ss_err.h in the exists() test.
 
 Bruce
State-Changed-From-To: open->closed 
State-Changed-By: bde 
State-Changed-When: Thu Sep 5 14:22:56 PDT 1996 
State-Changed-Why:  
Fixed using my fix (3). 
>Unformatted:
