Re: [Linux-ia64] Problem while compiling a module

From: Gerrit Huizenga <gerrit_at_sequent.com>
Date: 2000-07-13 03:43:57
I had a similar problem simply compiling the kernel from the latest
redhat distro for ia64.  The problem was a couple of missing underscores
in include/linux/version.h on _module_up -> __module_up and _module_smp ->
__module_smp.

My "revised" version is as follows (sorry, I toasted the orig or I'd
send diffs, although they'd probably be larger.  ;-):

#include <linux/rhconfig.h>
#if defined(__module_up)
#define UTS_RELEASE "2.4.0-0.8"
#endif
#if defined(__module_smp)
#define UTS_RELEASE "2.4.0-0.8smp"
#endif
#define LINUX_VERSION_CODE 132096
#define KERNEL_VERSION(a,b,c) (((a) << 16) + ((b) << 8) + (c))

gerrit


> Hi,
> 
> I'm trying to make a device driver on an Itanium, and while including
> <linux/module.h>, with the -DMODULE flag, I get the following problem:
> 
> /usr/include/linux/module.h:223: parse error before `UTS_RELEASE'
> 
> The line itself is:
> 
> static const char __module_kernel_version[]
> __attribute__((section(".modinfo"))) = 
> "kernel_version=" UTS_RELEASE;
> 
> Has anybody got a hint to solve this problem? (removing the line is a bad
> idea as I'm using UTS_RELEASE...)
> 
> 
> Geraud
> 
> 
> 
> _______________________________________________
> Linux-IA64 mailing list
> Linux-IA64@linuxia64.org
> http://lists.linuxia64.org/lists/listinfo/linux-ia64
> 
Received on Wed Jul 12 10:44:05 2000

This archive was generated by hypermail 2.1.8 : 2005-08-02 09:19:59 EST