Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 12 Jun 2001 11:43:32 -0400 (EDT)
From:      sandeepj@research.bell-labs.com (Sandeep Joshi)
To:        freebsd-questions@freebsd.org
Subject:   kld compiler errors
Message-ID:  <200106121543.LAA01999@aura.research.bell-labs.com>

next in thread | raw e-mail | index | archive | help
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 <bsd.kmod.mk>" 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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200106121543.LAA01999>