Re: FVWM: configure broken with 2.5.5

From: <dominik.vogt_at_gmx.de>
Date: Mon, 24 Feb 2003 00:26:31 +0100

On Sat, Feb 22, 2003 at 03:37:13PM -0500, Dan Espen wrote:
> Tomi Vainio - Sun Finland <Tomi.Vainio_at_sun.com> writes:
> > Dan Espen writes:
> > >
> > > The problem is that 2.5.5 was created with
> > > autoconf 2.53 where 2.4.15 used something earlier.
> > >
> > > The nightly snapshots are generated with 2.13,
> > > so they should work fine.
> > >
> > > Will you contact the autoconf developers?
> > >
> > If you know what is the problem it might be much better if you contact
> > them.
>
> I don't really understand the ins and outs.
>
> This is the code:
>
> #include <stdio.h>
> #ifdef F77_DUMMY_MAIN
> # ifdef __cplusplus
> extern "C"
> # endif
> int F77_DUMMY_MAIN() { return 1; }
> #endif
> int
> main ()
> {
> int warn(void) {
> int i; static j; int *p; char *c;
> switch (*p = p = *c) { case 0: printf("%Q", c, p); }
> *c = &i; c = p;
> while (1 || (unsigned int)3 >= 0 || ((int)-1) == ((unsigned int)1));
> return; }
> ;
> return 0;
> }
>
>
> I think they want it to generate a warning.
> It does with gcc.
> With forte 6.2 on my Solaris 8 machine, it generates an error:
>
> fork> cc x.c
> "x.c", line 11: syntax error before or at: {
>
> Line 11 is:
>
> int warn(void) {
>
> I really don't know what that is.
> It looks like a function within a function.
> Thats what gcc seems to treat it as:
>
> fork> gcc x.c
> x.c: In function `warn':
> x.c:13: warning: assignment makes pointer from integer without a cast
> x.c:13: warning: assignment makes integer from pointer without a cast
> x.c:14: warning: assignment makes integer from pointer without a cast
> x.c:14: warning: assignment from incompatible pointer type
>
> Maybe someone else on the list can clarify.

Um, does this Chnagelog entry ring a bell?

  2002-09-18 Dominik Vogt <dominik.vogt_at_gmx.de>

        * configure.in:
        added a program that tests for -Werror option and similar; bug out of
        configure if the test program doesn't compile

We discussed this a while ago to provide a better error message
when configure is run with -Werror in the CFLAGS. I don't
remember exactly, but I asked for a valid program with several
warnings on the list and included it in confiure.in. That has
nothing to do with autoconf.

Bye

Dominik ^_^ ^_^

 --
Dominik Vogt, dominik.vogt_at_gmx.de
Reply-To: dominik.vogt_at_gmx.de
--
Visit the official FVWM web page at <URL: http://www.fvwm.org/>.
To unsubscribe from the list, send "unsubscribe fvwm" in the body of a
message to majordomo_at_fvwm.org.
To report problems, send mail to fvwm-owner_at_fvwm.org.
Received on Sun Feb 23 2003 - 18:14:37 GMT

This archive was generated by hypermail 2.3.0 : Mon Aug 29 2016 - 19:37:54 BST