From owner-freebsd-questions Mon Jun 9 10:33:09 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id KAA03781 for questions-outgoing; Mon, 9 Jun 1997 10:33:09 -0700 (PDT) Received: from pegasus.com (pegasus.com [140.174.243.13]) by hub.freebsd.org (8.8.5/8.8.5) with SMTP id KAA03759; Mon, 9 Jun 1997 10:32:57 -0700 (PDT) Received: by pegasus.com (8.6.8/PEGASUS-2.2) id HAA00309; Mon, 9 Jun 1997 07:31:23 -1000 Date: Mon, 9 Jun 1997 07:31:23 -1000 From: richard@pegasus.com (Richard Foulk) Message-Id: <199706091731.HAA00309@pegasus.com> In-Reply-To: Cy Ardoin "Re: /usr/include/ufs/ffs missing?...Make world failure on 2.2-RELENG" (Jun 9, 9:48am) X-Mailer: Mail User's Shell (7.2.5 10/14/92) To: Cy Ardoin , Mike Tancsa Subject: Re: /usr/include/ufs/ffs missing?...Make world failure on 2.2-RELENG Cc: questions@FreeBSD.ORG, stable@FreeBSD.ORG Sender: owner-questions@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk } I found that the Makefile in /usr/include has an error for ufs. } There are two lines } } LUDIR= ufs } UDIRS= ufs/ffs ufs/lfs.... } } } down later in the Makefile there are "for" loops. The loop that } creates the directories is backwards. It references UDIRS before } LUDIR. So the directory doesn't exist. Switching the order on that loop } works. } } .for i in ${LDIRS} ${LUDIR} ${UDIRS} machine } if [ ! -d ${DESTDIR}/usr/include/$i ]; then \ } mkdir ${DESTDIR}/usr/include/$i; \ } chown ${BINOWN}.${BINGRP} ${DESTDIR}/usr/include/$i; \ } chmod 755 ${DESTDIR}/usr/include/$i; \ } fi } .endfor } } How about `mkdir -p' instead, then the order doesn't matter.