From owner-freebsd-arch Wed Mar 6 8: 2:53 2002 Delivered-To: freebsd-arch@freebsd.org Received: from rover.village.org (rover.bsdimp.com [204.144.255.66]) by hub.freebsd.org (Postfix) with ESMTP id 09B1A37B402 for ; Wed, 6 Mar 2002 08:02:47 -0800 (PST) Received: from harmony.village.org (harmony.village.org [10.0.0.6]) by rover.village.org (8.11.3/8.11.3) with ESMTP id g26G2ji84433; Wed, 6 Mar 2002 09:02:46 -0700 (MST) (envelope-from imp@village.org) Received: from localhost (warner@rover2.village.org [10.0.0.1]) by harmony.village.org (8.11.6/8.11.6) with ESMTP id g26G2iL84881; Wed, 6 Mar 2002 09:02:45 -0700 (MST) (envelope-from imp@village.org) Date: Wed, 06 Mar 2002 09:02:27 -0700 (MST) Message-Id: <20020306.090227.127359201.imp@village.org> To: rizzo@icir.org Cc: arch@FreeBSD.ORG Subject: Re: do we need full kernel sources to compile loadable modules ? From: "M. Warner Losh" In-Reply-To: <20020305134932.A79697@iguana.icir.org> References: <20020305134932.A79697@iguana.icir.org> X-Mailer: Mew version 2.1 on Emacs 21.1 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-arch@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG In message: <20020305134932.A79697@iguana.icir.org> Luigi Rizzo writes: : Plain and simple... I thought one could compile a kernel extension : (foo.ko) without full kernel sources, as the various include files : describing kernel interfaces and data structures are installed in : various places under /usr/include . : This seems to work fine in many cases. But fails in most cases. : Turns out, however, that at least one thing (namely vnode_if.h) is not : there, and it needs to be reconstructed using sys/kern/vnode_if.{pl,src} Yes. : So i wonder: : : + is it a desirable goal that one can compile kernel extensions without : requiring a full kernel source tree ? No. : + if so, shouldn't we make sure that, as part of the creation of : /usr/include, a copy of vnode_if.h is generated somewhere (maybe : in /usr/include/sys or wherever is more appropriate) ? There's too many of these files. *_if.h from newbus makes this hard. : + are there other header files (and maybe objects, e.g. there is also : a vnode_if.o) which have similar problems ? There are. the *if.h files are the tip of the iceburg last time I tried it. Warner To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-arch" in the body of the message