[Linux-ia64] system.h / pal.h / types.h

From: Joe Griffin <jjg_at_mscsoftware.com>
Date: 2002-10-18 00:25:35
Hello,

The following program fails on my IA64 (tiger)
with the 2.4.18 kernel and 2.2.4 glibc.  There
is an error when system.h includes pal.h:

#include <stdio.h>
#include <asm/system.h>
main ()
{
printf("Hello World \n");
}

system.h  has:
#include <asm/pal.h>

pal.h has:
typedef s64                             pal_status_t;

But s64 is only defined in asm/types.h if
either __KERNEL__ or _ASM_IA64_PAL_H is defined.
In the older version, when system.h came from
kernel-headers, this error did not exit.

... Or is it a "feature" that I now must compile
any program which contains "#include <asm/system.h>"
with CCFLAGS="-D_ASM_IA64_PAL_H"?

My actual error is:

In file included from /usr/include/asm/system.h:19,
                from main.c:2:
/usr/include/asm/pal.h:88: parse error before `pal_status_t'
/usr/include/asm/pal.h:88: warning: data definition has no type or
storage class
/usr/include/asm/pal.h:101: parse error before `pal_cache_level_t'
.....



Does anyone have any comments on this?
Is there a new glibc which fixes this
error?

Willing to learn,
Thanks in advance,
Joe Griffin
Received on Thu Oct 17 07:29:08 2002

This archive was generated by hypermail 2.1.8 : 2005-08-02 09:20:10 EST