From owner-freebsd-questions Tue Jun 12 8:45: 9 2001 Delivered-To: freebsd-questions@freebsd.org Received: from crufty.research.bell-labs.com (crufty.research.bell-labs.com [204.178.16.49]) by hub.freebsd.org (Postfix) with SMTP id 7494B37B40B for ; Tue, 12 Jun 2001 08:44:51 -0700 (PDT) (envelope-from sandeepj@aura.research.bell-labs.com) Received: from scummy.research.bell-labs.com ([135.104.2.10]) by crufty; Tue Jun 12 11:40:43 EDT 2001 Received: from aura.research.bell-labs.com ([135.104.46.10]) by scummy; Tue Jun 12 11:44:02 EDT 2001 Received: (from sandeepj@localhost) by aura.research.bell-labs.com (8.9.1/8.9.1) id LAA01999 for freebsd-questions@freebsd.org; Tue, 12 Jun 2001 11:43:32 -0400 (EDT) Date: Tue, 12 Jun 2001 11:43:32 -0400 (EDT) Message-Id: <200106121543.LAA01999@aura.research.bell-labs.com> From: sandeepj@research.bell-labs.com (Sandeep Joshi) To: freebsd-questions@freebsd.org Subject: kld compiler errors Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Hi there, I am seeing a couple of compiler errors while trying to create a loadable module. The errors are related to files which are generated during "config" and can only be accessed within a particular kernel config (e.g. /sys/i386/compile/<...>) My makefile has the standard ".include " line and I am using FreeBSD 4.1. Errors are as follows : 1) After including "sys/bus.h" in the module, I see errors related to files which get generated thru perl scripts. @/sys/bus.h:308: device_if.h: No such file or directory @/sys/bus.h:309: bus_if.h: No such file or directory 2) The second type of errors are related to the "opt_*" files. Since these are also generated, they are not present in the standard source directory, hence make complains. Is there something wrong in my usage ? Is it expected that the loadable module either a) reside in some specific place b) have additional paths to find these files TIA, -Sandeep To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message