* [Linux-ia64] system.h / pal.h / types.h
@ 2002-10-17 14:25 Joe Griffin
2002-10-17 14:36 ` Andreas Schwab
` (3 more replies)
0 siblings, 4 replies; 5+ messages in thread
From: Joe Griffin @ 2002-10-17 14:25 UTC (permalink / raw)
To: linux-ia64
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
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [Linux-ia64] system.h / pal.h / types.h
2002-10-17 14:25 [Linux-ia64] system.h / pal.h / types.h Joe Griffin
@ 2002-10-17 14:36 ` Andreas Schwab
2002-10-17 14:47 ` Joe Griffin
` (2 subsequent siblings)
3 siblings, 0 replies; 5+ messages in thread
From: Andreas Schwab @ 2002-10-17 14:36 UTC (permalink / raw)
To: linux-ia64
Joe Griffin <jjg@mscsoftware.com> writes:
|> 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");
|> }
What are you trying to do? Kernel headers are just that, kernel headers,
and not for use in user programs.
Andreas.
--
Andreas Schwab, SuSE Labs, schwab@suse.de
SuSE Linux AG, Deutschherrnstr. 15-19, D-90429 Nürnberg
Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [Linux-ia64] system.h / pal.h / types.h
2002-10-17 14:25 [Linux-ia64] system.h / pal.h / types.h Joe Griffin
2002-10-17 14:36 ` Andreas Schwab
@ 2002-10-17 14:47 ` Joe Griffin
2002-10-17 15:58 ` Andreas Schwab
2002-10-17 16:29 ` Joe Griffin
3 siblings, 0 replies; 5+ messages in thread
From: Joe Griffin @ 2002-10-17 14:47 UTC (permalink / raw)
To: linux-ia64
Andreas,
I am making a few RPMS from source. The
source has an include of asm/system.h.
If "asm/system.h" is in a "c" program
I do not think a person should have an error.
Are you saying that programs should
not have asm/system.h in them?
Joe
Andreas Schwab wrote:
>Joe Griffin <jjg@mscsoftware.com> writes:
>
>|> 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");
>|> }
>
>What are you trying to do? Kernel headers are just that, kernel headers,
>and not for use in user programs.
>
>Andreas.
>
>
>
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [Linux-ia64] system.h / pal.h / types.h
2002-10-17 14:25 [Linux-ia64] system.h / pal.h / types.h Joe Griffin
2002-10-17 14:36 ` Andreas Schwab
2002-10-17 14:47 ` Joe Griffin
@ 2002-10-17 15:58 ` Andreas Schwab
2002-10-17 16:29 ` Joe Griffin
3 siblings, 0 replies; 5+ messages in thread
From: Andreas Schwab @ 2002-10-17 15:58 UTC (permalink / raw)
To: linux-ia64
Joe Griffin <jjg@mscsoftware.com> writes:
|> Andreas,
|>
|> I am making a few RPMS from source. The
|> source has an include of asm/system.h.
|> If "asm/system.h" is in a "c" program
|> I do not think a person should have an error.
|>
|> Are you saying that programs should
|> not have asm/system.h in them?
Yes, if it's not part of the kernel.
Andreas.
--
Andreas Schwab, SuSE Labs, schwab@suse.de
SuSE Linux AG, Deutschherrnstr. 15-19, D-90429 Nürnberg
Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [Linux-ia64] system.h / pal.h / types.h
2002-10-17 14:25 [Linux-ia64] system.h / pal.h / types.h Joe Griffin
` (2 preceding siblings ...)
2002-10-17 15:58 ` Andreas Schwab
@ 2002-10-17 16:29 ` Joe Griffin
3 siblings, 0 replies; 5+ messages in thread
From: Joe Griffin @ 2002-10-17 16:29 UTC (permalink / raw)
To: linux-ia64
Andreas,
Thanks for your time.
Joe Griffin
Andreas Schwab wrote:
>Joe Griffin <jjg@mscsoftware.com> writes:
>
>|> Andreas,
>|>
>|> I am making a few RPMS from source. The
>|> source has an include of asm/system.h.
>|> If "asm/system.h" is in a "c" program
>|> I do not think a person should have an error.
>|>
>|> Are you saying that programs should
>|> not have asm/system.h in them?
>
>Yes, if it's not part of the kernel.
>
>Andreas.
>
>
>
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2002-10-17 16:29 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-10-17 14:25 [Linux-ia64] system.h / pal.h / types.h Joe Griffin
2002-10-17 14:36 ` Andreas Schwab
2002-10-17 14:47 ` Joe Griffin
2002-10-17 15:58 ` Andreas Schwab
2002-10-17 16:29 ` Joe Griffin
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox