Builds on Suse 9.1 but not on Fedora Core2

From: Ravi (ravikreddy_at_gmail.com)
Date: 08/26/04


Date: 25 Aug 2004 16:26:29 -0700

Hi all,
I have a driver module which simply compiles and builds on a
linux-2.6.4-52 - Suse 9.1 professional system, but gives lots of
compilation errors on
linux-2.6.5-1.358 - Fedora Core 2 system. I was hoping for a clean,
breezy build as both are of 2.6 kernel.

The Makefile content is:
----START----
KERNEL_SRC = path to /usr/src/linux.x.y
all: build
obj-m += testmodule.o
xrpci-objs := testmodule.o
EXTRA_CFLAGS += -DDEBUG=1
build:
        make -C $(KERNEL_SRC) SUBDIRS=$(PWD) modules
----END----

The errors are basically on the include linux/ files. Almost simillar
to
https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=111073
But looks like the answer here talks about building the kernel????

I am not getting much clues in the google searches about this. Is
there anything that I should do on Fedora before start building the
driver? Any help is appreciated. (entire Fedora is installed and it
has all the src files.)

Thanks in advance.

thanks,
Ravi