From owner-freebsd-current Sat May 27 8:13:41 2000 Delivered-To: freebsd-current@freebsd.org Received: from io.yi.org (24.67.218.186.bc.wave.home.com [24.67.218.186]) by hub.freebsd.org (Postfix) with ESMTP id B4AFD37B77D for ; Sat, 27 May 2000 08:13:37 -0700 (PDT) (envelope-from jburkhol@home.com) Received: from io.yi.org (localhost.gvcl1.bc.wave.home.com [127.0.0.1]) by io.yi.org (Postfix) with ESMTP id 4EF4CBA69; Sat, 27 May 2000 08:13:43 -0700 (PDT) X-Mailer: exmh version 2.1.1 10/15/1999 To: haro@tk.kubota.co.jp (Munehiro Matsuda) Cc: current@FreeBSD.ORG, jake@io.yi.org Subject: Re: kernel build error due to dependency on /usr/include? In-Reply-To: Message from haro@tk.kubota.co.jp (Munehiro Matsuda) of "Sat, 27 May 2000 13:42:25 +0900." <20000527134225X.haro@tk.kubota.co.jp> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Sat, 27 May 2000 08:13:43 -0700 From: Jake Burkholder Message-Id: <20000527151343.4EF4CBA69@io.yi.org> Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > Hi all, > > I got following kernel build error. > When I run 'make includes', the error has gone away. > > Why does kernel build process depend on installed system files, > such as /usr/include? It shouldn't. This seems to be primarily aic7xxx, although judging from the output of 'find /usr/include -amin 20 -print' after building LINT, there are more things that reach into /usr/include. This fixes it for including things from /usr/include/sys at least: cvs diff: Diffing . Index: Makefile =================================================================== RCS file: /home/ncvs/src/sys/dev/aic7xxx/Makefile,v retrieving revision 1.6 diff -u -r1.6 Makefile --- Makefile 1999/08/28 00:41:22 1.6 +++ Makefile 2000/05/27 09:21:05 @@ -19,7 +19,7 @@ DEPENDFILE= .endif -CFLAGS+= -I/usr/include -I. +CFLAGS+= -I${MAKESRCPATH}/../.. -I. NOMAN= noman .ifdef DEBUG To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message