EPICS Controls Argonne National Laboratory

Experimental Physics and
Industrial Control System

2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  <20212022  2023  2024  Index 2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  <20212022  2023  2024 
<== Date ==> <== Thread ==>

Subject: Re: Base 7.0 error on Travis (trusty)
From: Ralph Lange via Core-talk <core-talk at aps.anl.gov>
To: EPICS Core Talk <core-talk at aps.anl.gov>
Date: Sun, 7 Feb 2021 14:21:56 +0100
On Sun, 7 Feb 2021 at 14:13, Michael Davidsaver <mdavidsaver at gmail.com> wrote:
On 2/7/21 5:06 AM, Ralph Lange via Core-talk wrote:
> Dear all,
>
> On Travis builds (trusty, gcc 4.8.4) I recently started seeing
>
> Building dependency BASE in /home/travis/.cache/base-7.0
> 580In file included from ../osi/os/Linux/osdNetIntf.c:1:0:
> 581./../osi/osdNetIfAddrs.c: In function ‘osiSockDiscoverBroadcastAddresses’:
> 582./../osi/osdNetIfAddrs.c:63:5: error: ‘for’ loop initial declarations are only allowed in C99 mode
> 583for ( struct ifaddrs *ifa = ifaddr; ifa != NULL; ifa = ifa->ifa_next ) {
> 584^
> 585./../osi/osdNetIfAddrs.c:63:5: note: use option -std=c99 or -std=gnu99 to compile your code
> 586In file included from ../osi/os/Linux/osdNetIntf.c:1:0:
> 587./../osi/osdNetIfAddrs.c: In function ‘osiLocalAddrOnce’:
> 588./../osi/osdNetIfAddrs.c:175:5: error: ‘for’ loop initial declarations are only allowed in C99 mode
> 589for ( struct ifaddrs *ifa = ifaddr; ifa != NULL; ifa = ifa->ifa_next ) {
> 590^
> 591make[4]: *** [osdNetIntf.o] Error 1
> 592
>
>
>
>
> Should we switch on C99 explicitly for Gnu C compilers?

We should investigate why the gcc-4.8 github actions builds aren't actually using gcc 4.8.

What I see is they are installing 4.8.5 (already slightly different from the one in the Travis builders). Not sure if that explains the difference.
But I agree: our CI builds should have caught that.


Replies:
Re: Base 7.0 error on Travis (trusty) Ralph Lange via Core-talk
References:
Base 7.0 error on Travis (trusty) Ralph Lange via Core-talk
Re: Base 7.0 error on Travis (trusty) Michael Davidsaver via Core-talk

Navigate by Date:
Prev: Re: Base 7.0 error on Travis (trusty) Michael Davidsaver via Core-talk
Next: Re: Base 7.0 error on Travis (trusty) Ralph Lange via Core-talk
Index: 2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  <20212022  2023  2024 
Navigate by Thread:
Prev: Re: Base 7.0 error on Travis (trusty) Michael Davidsaver via Core-talk
Next: Re: Base 7.0 error on Travis (trusty) Ralph Lange via Core-talk
Index: 2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  <20212022  2023  2024 
ANJ, 07 Feb 2021 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·