Re: [exim] Oddity compilnf exim 4.94

Top Page
Delete this message
Reply to this message
Author: Patrick Boutilier
Date:  
To: exim-users
Subject: Re: [exim] Oddity compilnf exim 4.94
On 6/2/20 12:59 PM, john via Exim-users wrote:
> Was O  on the first computer I used (Debian buster) but on openSUSE 13.1
> (yes I know it is old but lockdown has paused upgrade) i get
>
> ...
> /bin/sh ../scripts/Configure-os.h
> cc -DMACRO_PREDEF macro_predef.c
> macro_predef.c: In function ‘options_from_list’:
> macro_predef.c:84:1: error: ‘for’ loop initial declarations are only
> allowed in C99 mode
>  for (int i = 0; i < nopt; i++)  if (*(s = US opts[i].name) && *s != '*')
>  ^
> macro_predef.c:84:1: note: use option -std=c99 or -std=gnu99 to compile
> your code
> make[1]: *** [macro_predef.o] Error 1
> make[1]: Leaving directory `/usr/build/exim-4.94/build-Linux-i386'
> make: *** [all] Error 2
>
> So it is using c99 now.  Where to I add the option?
>
> ==John ff



I put near the end of Local/Makefile

CFLAGS += -std=gnu99

begin:vcard
fn:Patrick Boutilier
n:Boutilier;Patrick
org:;Nova Scotia Department of Education
adr:;;2021 Brunswick Street;Halifax;NS;B3K 2Y5;Canada
email;internet:boutilpj@???
title:WAN Communications Specialist
tel;work:902-424-6800
tel;fax:902-424-0874
version:2.1
end:vcard