From owner-freebsd-bugs Thu Sep 5 05:50:04 1996 Return-Path: owner-bugs Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id FAA12430 for bugs-outgoing; Thu, 5 Sep 1996 05:50:04 -0700 (PDT) Received: (from gnats@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id FAA12422; Thu, 5 Sep 1996 05:50:02 -0700 (PDT) Date: Thu, 5 Sep 1996 05:50:02 -0700 (PDT) Message-Id: <199609051250.FAA12422@freefall.freebsd.org> To: freebsd-bugs Cc: From: Bruce Evans Subject: Re: conf/1568: build failure in libss, 2.2 current. Reply-To: Bruce Evans Sender: owner-bugs@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk The following reply was made to PR conf/1568; it has been noted by GNATS. From: Bruce Evans 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