[pxc] Installation problem with "make"

Alessandro Rubini rubini@gnu.org
Wed, 15 Aug 2001 15:38:55 +0200


> That asm/page.h is included in your "main.c". The definition for
> PAGE_OFFSET_RAW is found in .../asm/page_offset.h, which was not included.

But that header is included by asm/page.h:

	ostro:2% cd /usr/src/linux-2.2
	/usr/src/linux-2.2
	ostro:2% grep asm/page_offse include/*/*.h
	include/asm-i386/page.h:#include <asm/page_offset.h>
	include/asm/page.h:#include <asm/page_offset.h>

> Then, I added to "main.c" an #include <asm/page_offset.h>, but I've got
> the same error again.

Are you compiling against the right kernel headers? Did you specify
KERNELDIR in the environment or the command line of "make"?

> I don't want to mess up the code, by starting to add #defines and
> #includes which I don't really know much about. Maybe this is simpler.
> What do you think?

I agree messing up doesn't lead much far. Usually these problems are
just due to a mismatc between current kernel and headers being
included (i.e., the headers don't belong to a supported kernel
version; mismatches with the current version are only relevant later,
when you try to load the module).

Hope this helps
/alessandro