* [Linux-ia64] Problem while compiling a module
@ 2000-07-12 11:20 G\351raud Krawezik
2000-07-12 14:08 ` Jes Sorensen
2000-07-12 17:43 ` Gerrit Huizenga
0 siblings, 2 replies; 3+ messages in thread
From: G\351raud Krawezik @ 2000-07-12 11:20 UTC (permalink / raw)
To: linux-ia64
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
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [Linux-ia64] Problem while compiling a module
2000-07-12 11:20 [Linux-ia64] Problem while compiling a module G\351raud Krawezik
@ 2000-07-12 14:08 ` Jes Sorensen
2000-07-12 17:43 ` Gerrit Huizenga
1 sibling, 0 replies; 3+ messages in thread
From: Jes Sorensen @ 2000-07-12 14:08 UTC (permalink / raw)
To: linux-ia64
>>>>> "Geraud" = G\\351raud Krawezik <G> writes:
Geraud> Hi, I'm trying to make a device driver on an Itanium, and
Geraud> while including <linux/module.h>, with the -DMODULE flag, I
Geraud> get the following problem:
Which kernel version are you compiling against? I don't think any of
the released ia64 kernels support modules yet.
Jes
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [Linux-ia64] Problem while compiling a module
2000-07-12 11:20 [Linux-ia64] Problem while compiling a module G\351raud Krawezik
2000-07-12 14:08 ` Jes Sorensen
@ 2000-07-12 17:43 ` Gerrit Huizenga
1 sibling, 0 replies; 3+ messages in thread
From: Gerrit Huizenga @ 2000-07-12 17:43 UTC (permalink / raw)
To: linux-ia64
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
>
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2000-07-12 17:43 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2000-07-12 11:20 [Linux-ia64] Problem while compiling a module G\351raud Krawezik
2000-07-12 14:08 ` Jes Sorensen
2000-07-12 17:43 ` Gerrit Huizenga
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox