public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* Error when compiling XFree86 on gcc 3.0
@ 2001-08-07 23:18 Murali Potla
  2001-08-07 23:24 ` lange92
  0 siblings, 1 reply; 3+ messages in thread
From: Murali Potla @ 2001-08-07 23:18 UTC (permalink / raw)
  To: gcc-help

Thanks everybody for your  help
but i have a new problem now

When I am trying to compile to XFree86-4.0.3 on gcc -3.0 
it's giving an parser error

Error:

In file included from 
/usr/lib/gcc-lib/i386-aryan-linux/3.0/include/curses.h:86,                 
from resize.c:293:
/usr/include/ncurses/unctrl.h:57: parse error before "unctrl"
/usr/include/ncurses/unctrl.h:57: ISO C forbids data definition with no type 
or
storage class
make[3]: *** [resize.o] Error 1
make[2]: *** [install] Error 2
make[1]: *** [install] Error 2
make: *** [install] Error 2

What's wrong here 

I am sending that file unctrl.h as attchment

Thanks 

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Error when compiling XFree86 on gcc 3.0
  2001-08-07 23:18 Error when compiling XFree86 on gcc 3.0 Murali Potla
@ 2001-08-07 23:24 ` lange92
  2001-08-09 21:53   ` Murali Potla
  0 siblings, 1 reply; 3+ messages in thread
From: lange92 @ 2001-08-07 23:24 UTC (permalink / raw)
  To: Murali Potla; +Cc: gcc-help

It may be a rather weak suggestion and might not compile, but my
understanding is that the default type is int, so you could simply insert
that. Failing that, is there a flag in the Makefile for strict,
strict-no-alias, or pedantic? You could perhaps remove this flag and get a
slightly happier gcc. ;)

DanL

On Wed, 8 Aug 2001, Murali Potla wrote:

> Thanks everybody for your  help
> but i have a new problem now
>
> When I am trying to compile to XFree86-4.0.3 on gcc -3.0
> it's giving an parser error
>
> Error:
>
> In file included from
> /usr/lib/gcc-lib/i386-aryan-linux/3.0/include/curses.h:86,
> from resize.c:293:
> /usr/include/ncurses/unctrl.h:57: parse error before "unctrl"
> /usr/include/ncurses/unctrl.h:57: ISO C forbids data definition with no type
> or
> storage class
> make[3]: *** [resize.o] Error 1
> make[2]: *** [install] Error 2
> make[1]: *** [install] Error 2
> make: *** [install] Error 2
>
> What's wrong here
>
> I am sending that file unctrl.h as attchment
>
> Thanks
>

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Error when compiling XFree86 on gcc 3.0
  2001-08-07 23:24 ` lange92
@ 2001-08-09 21:53   ` Murali Potla
  0 siblings, 0 replies; 3+ messages in thread
From: Murali Potla @ 2001-08-09 21:53 UTC (permalink / raw)
  To: gcc-help

I tried Declaring "unctrl" as int type but then it is giving so many parse 
errors in other header files. I have also tried removing pedantic tag in 
Makefile then also it hasn't compiled. 
What should i do now.
Thanks for ur help

Murali

On Wednesday 08 August 2001 06:37, you wrote:
> It may be a rather weak suggestion and might not compile, but my
> understanding is that the default type is int, so you could simply insert
> that. Failing that, is there a flag in the Makefile for strict,
> strict-no-alias, or pedantic? You could perhaps remove this flag and get a
> slightly happier gcc. ;)
>
> DanL
>
> On Wed, 8 Aug 2001, Murali Potla wrote:
> > Thanks everybody for your  help
> > but i have a new problem now
> >
> > When I am trying to compile to XFree86-4.0.3 on gcc -3.0
> > it's giving an parser error
> >
> > Error:
> >
> > In file included from
> > /usr/lib/gcc-lib/i386-aryan-linux/3.0/include/curses.h:86,
> > from resize.c:293:
> > /usr/include/ncurses/unctrl.h:57: parse error before "unctrl"
> > /usr/include/ncurses/unctrl.h:57: ISO C forbids data definition with no
> > type or
> > storage class
> > make[3]: *** [resize.o] Error 1
> > make[2]: *** [install] Error 2
> > make[1]: *** [install] Error 2
> > make: *** [install] Error 2
> >
> > What's wrong here
> >
> > I am sending that file unctrl.h as attchment
> >
> > Thanks

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2001-08-09 21:53 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-08-07 23:18 Error when compiling XFree86 on gcc 3.0 Murali Potla
2001-08-07 23:24 ` lange92
2001-08-09 21:53   ` Murali Potla

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).