* sys/ipc.h and
@ 1997-08-04 19:50 Christian Czezatke
0 siblings, 0 replies; 3+ messages in thread
From: Christian Czezatke @ 1997-08-04 19:50 UTC (permalink / raw)
Hi!
I just noticed that it does not seem to be possible to include <sys/ipc.h>
into a C--File that you want to compile with gcc's "-ansi" option.
System is Redhat Linux 4.2, except for the kernel: Kernel is a plain
2.0.30 (Noname) + axp-diffs-2.0.30 (_not_ Jay's "latest and greates"
patches.)
Here is what you get in that case:
--------- snip -------------
In file included from /usr/include/sys/ipc.h:26,
from test.c:1:
/usr/include/sys/ipc_buf.h:48: parse error before `key_t'
/usr/include/sys/ipc_buf.h:48: warning: no semicolon at end of struct or
union
/usr/include/sys/ipc_buf.h:55: parse error before `}'
In file included from test.c:1:
/usr/include/sys/ipc.h:31: parse error before `ftok'
/usr/include/sys/ipc.h:31: warning: data definition has no type or storage
class
--------- snip ------------
Just wanted to let you know of the problem... ;-)
Christian
--------------------------------------------------------------------
| Christian Czezatke, Student of Computer Science at the Vienna |
| University Of Technology. |
|------------------------------------------------------------------|
| email: e9025461@student.tuwien.ac.at |
--------------------------------------------------------------------
--
To unsubscribe: send e-mail to axp-list-request@redhat.com with
'unsubscribe' as the subject. Do not send it to axp-list@redhat.com
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: sys/ipc.h and
[not found] <Pine.LNX.3.95.970804214244.594A-100000@udb.ceci.at>
@ 1997-08-05 15:55 ` Richard Henderson
1997-08-05 21:55 ` Christian Czezatke
0 siblings, 1 reply; 3+ messages in thread
From: Richard Henderson @ 1997-08-05 15:55 UTC (permalink / raw)
> I just noticed that it does not seem to be possible to include <sys/ipc.h>
> into a C--File that you want to compile with gcc's "-ansi" option.
Except that -ansi is intended to denote a strict ISO C environment, that
is, in the headers you only get what ISO says should be in them. But
<sys/ipc.h> is not an ISO header, so you can not expect that to work.
Why were you wanting to use -ansi anyway?
r~
--
To unsubscribe: send e-mail to axp-list-request@redhat.com with
'unsubscribe' as the subject. Do not send it to axp-list@redhat.com
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: sys/ipc.h and
1997-08-05 15:55 ` Richard Henderson
@ 1997-08-05 21:55 ` Christian Czezatke
0 siblings, 0 replies; 3+ messages in thread
From: Christian Czezatke @ 1997-08-05 21:55 UTC (permalink / raw)
Hi!
On Tue, 5 Aug 1997, Richard Henderson wrote:
> > I just noticed that it does not seem to be possible to include <sys/ipc.h>
> > into a C--File that you want to compile with gcc's "-ansi" option.
>
> Except that -ansi is intended to denote a strict ISO C environment, that
> is, in the headers you only get what ISO says should be in them. But
> <sys/ipc.h> is not an ISO header, so you can not expect that to work.
>
> Why were you wanting to use -ansi anyway?
Thanks for the reply! -- Actually, it wasn't me who originally decided to
use "-ansi"... ;-) -- I ran into the problem when I tried to compile
Mesa-2.1 (a GPL-ed Op*nGL lookalike) on my Alpha.
BTW: When compiling Mesa-2.1 I also got one of the "internal compiler
errors". The file was "src/readpix.c" -- Using "-O" instead of "-O2" did
not fix the problem, I had to compile the file without any optimization.
Richard, if you are interested I could try to generate a small C--File
that still reproduces the problem and mail it to you. -- gcc is 2.7.2.1 as
shipped with RHL 4.2.
Anyway, the OpenGL demos that ship with Mesa-2.1 are now happily running
on my Linux/Alpha box...
thanks for your help!
Christian
--------------------------------------------------------------------
| Christian Czezatke, Student of Computer Science at the Vienna |
| University Of Technology. |
|------------------------------------------------------------------|
| email: e9025461@student.tuwien.ac.at |
--------------------------------------------------------------------
--
To unsubscribe: send e-mail to axp-list-request@redhat.com with
'unsubscribe' as the subject. Do not send it to axp-list@redhat.com
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~1997-08-05 21:55 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1997-08-04 19:50 sys/ipc.h and Christian Czezatke
[not found] <Pine.LNX.3.95.970804214244.594A-100000@udb.ceci.at>
1997-08-05 15:55 ` Richard Henderson
1997-08-05 21:55 ` Christian Czezatke
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox