[PlanetCCRMA] Compiling modules against kernel sources coming from the Planet

Maurizio Umberto Puxeddu umbpux@tin.it
Mon Mar 17 03:28:01 2003


Dear Fernando,

	I am usually able to compile modules but I cannot do that with the
Planet. I get things like the following

In file included from wacom.c:93:
/usr/src/linux-2.4/include/linux/kernel.h:60: invalid suffix on integer
constant
/usr/src/linux-2.4/include/linux/kernel.h:60: parse error before numeric
constant
/usr/src/linux-2.4/include/linux/kernel.h:61: `panic_R_ver_str' declared
as function returning a function
/usr/src/linux-2.4/include/linux/kernel.h:61: warning: function
declaration isn't a prototype
/usr/src/linux-2.4/include/linux/kernel.h:67: parse error before numeric
constant
/usr/src/linux-2.4/include/linux/kernel.h:67: `simple_strtoul_R_ver_str'
declared as function returning a function
/usr/src/linux-2.4/include/linux/kernel.h:67: warning: function
declaration isn't a prototype
/usr/src/linux-2.4/include/linux/kernel.h:68: invalid suffix on integer
constant
/usr/src/linux-2.4/include/linux/kernel.h:68: parse error before numeric
constant
/usr/src/linux-2.4/include/linux/kernel.h:68: `simple_strtol_R_ver_str'
declared as function returning a function
/usr/src/linux-2.4/include/linux/kernel.h:68: warning: function
declaration isn't a prototype
/usr/src/linux-2.4/include/linux/kernel.h:69: invalid suffix on integer
constant
/usr/src/linux-2.4/include/linux/kernel.h:69: parse error before numeric
constant
/usr/src/linux-2.4/include/linux/kernel.h:69:
`simple_strtoull_R_ver_str' declared as function returning a function
/usr/src/linux-2.4/include/linux/kernel.h:69: warning: function
declaration isn't a prototype
/usr/src/linux-2.4/include/linux/kernel.h:71: invalid suffix on integer
constant

This is compiling the linux wacom driver (linuxwacom.sf.net). Same with
other kernel modules.
On another machine, replacing your kernel with a plain vanilla kernel
did the trick.
I remember I had similar problems with the RedHat original kernel
sources.

Do you have any hint?

Maurizio Umberto Puxeddu.