Re: Compile failures today

From: Andres Freund <andres(at)anarazel(dot)de>
To: pgsql-hackers(at)lists(dot)postgresql(dot)org,Bruce Momjian <bruce(at)momjian(dot)us>,PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Compile failures today
Date: 2018-08-24 21:15:03
Message-ID: 79B5EF27-F77E-4257-B369-E08EB0DC65FD@anarazel.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On August 24, 2018 2:13:24 PM PDT, Bruce Momjian <bruce(at)momjian(dot)us> wrote:
>I started seeing the following compile failures in head today on
>current
>Debian Jessie using the default gcc version 4.9.2 (Debian
>4.9.2-10+deb8u1):
>
> postgres.c: In function ‘exec_parse_message’:
> postgres.c:1368:3: error: ‘for’ loop initial declarations are only
>allowed in C99 or C11 mode
> for (int i = 0; i < numParams; i++)
> ^
> postgres.c:1368:3: note: use option -std=c99, -std=gnu99, -std=c11 or
>-std=gnu11 to compile your code
> postgres.c: In function ‘exec_bind_message’:
> postgres.c:1558:3: error: ‘for’ loop initial declarations are only
>allowed in C99 or C11 mode
> for (int i = 0; i < numPFormats; i++)
> ^
> postgres.c:1652:3: error: ‘for’ loop initial declarations are only
>allowed in C99 or C11 mode
> for (int paramno = 0; paramno < numParams; paramno++)
> ^
> postgres.c:1781:3: error: ‘for’ loop initial declarations are only
>allowed in C99 or C11 mode
> for (int i = 0; i < numRFormats; i++)
> ^
> postgres.c: In function ‘errdetail_params’:
> postgres.c:2217:3: error: ‘for’ loop initial declarations are only
>allowed in C99 or C11 mode
> for (int paramno = 0; paramno < params->numParams; paramno++)
> ^
> postgres.c: In function ‘exec_describe_statement_message’:
> postgres.c:2378:2: error: ‘for’ loop initial declarations are only
>allowed in C99 or C11 mode
> for (int i = 0; i < psrc->num_params; i++)
> ^
> postgres.c: In function ‘PostgresMain’:
> postgres.c:4174:7: error: ‘for’ loop initial declarations are only
>allowed in C99 or C11 mode
> for (int i = 0; i < numParams; i++)
> ^
>
>Is this being worked on?

Do they persist after you do re-configure? If so, could you send your config.log?

Andres
--
Sent from my Android device with K-9 Mail. Please excuse my brevity.

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Peter Geoghegan 2018-08-24 21:35:18 Re: Compile failures today
Previous Message Bruce Momjian 2018-08-24 21:13:24 Compile failures today