[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: AIX with Visual Age C compiler fails to compile 2.1 and later

From: Paul Eggert
Subject: Re: AIX with Visual Age C compiler fails to compile 2.1 and later
Date: Wed, 05 Oct 2005 16:09:24 -0700
User-agent: Gnus/5.1007 (Gnus v5.10.7) Emacs/21.4 (gnu/linux)

"John P. Hartmann" <address@hidden> writes:

> http://lists.gnu.org/archive/html/autoconf-patches/2005-06/txtRXb8U1rojj.txt

Yes, that did introduce a bug.  I'll address that in a separate email.
I'll also CC: to Zhen Wang, who has reported a similar problem.

> Autoconfig assumes that cc knows of a --version flag, which VAC does not.
> Presumably this is the reason it decides that an AIX system with the Visual
> Age C compiler (which is ANSI compliant) still needs to do K&R style
> function prototypes,

But the code merely does this:

   #if defined (__STDC__) || defined (__cplusplus)
   yyparse (void)
   yyparse ()

So evidently __STDC__ isn't defined on your platform.  Can you find
out why that might be?  Is there some option you have to give to cc so
that it defines __STDC__, as every standard compiler must?  Perhaps
'configure' needs to be modified into doing that.

> There are two problems, m4sugar.m4 is broken, and the examples directory
> fails to compile (2.2 and on, I think).

Thanks for reporting this.  What's the problem with the examples
directory?  I couldn't tell from the rest of your message.  Is it the
same problem as the one discussed above?

reply via email to

[Prev in Thread] Current Thread [Next in Thread]