public inbox for linux-ia64@vger.kernel.org
 help / color / mirror / Atom feed
From: Joe Griffin <jjg@mscsoftware.com>
To: linux-ia64@vger.kernel.org
Subject: [Linux-ia64] system.h / pal.h / types.h
Date: Thu, 17 Oct 2002 14:25:35 +0000	[thread overview]
Message-ID: <marc-linux-ia64-105590709805181@msgid-missing> (raw)

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



             reply	other threads:[~2002-10-17 14:25 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-10-17 14:25 Joe Griffin [this message]
2002-10-17 14:36 ` [Linux-ia64] system.h / pal.h / types.h Andreas Schwab
2002-10-17 14:47 ` Joe Griffin
2002-10-17 15:58 ` Andreas Schwab
2002-10-17 16:29 ` Joe Griffin

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=marc-linux-ia64-105590709805181@msgid-missing \
    --to=jjg@mscsoftware.com \
    --cc=linux-ia64@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox