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: 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:06:30 +0100
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
583 for ( 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
589 for ( struct ifaddrs *ifa = ifaddr; ifa != NULL; ifa = ifa->ifa_next ) {
590 ^
591make[4]: *** [osdNetIntf.o] Error 1



Should we switch on C99 explicitly for Gnu C compilers?

Cheers,
~Ralph

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

Navigate by Date:
Prev: Build failed in Jenkins: EPICS-7 #318 Jenkins EPICS PSI via Core-talk
Next: Re: Base 7.0 error on Travis (trusty) Michael Davidsaver 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: Build failed: EPICS Base 7 base-7.0-144 AppVeyor via Core-talk
Next: Re: Base 7.0 error on Travis (trusty) Michael Davidsaver 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 ·