Re: Fix lib/af_alg.c compilation error on Ubuntu Trusty

2018-06-03 Thread Peter Simons
Hi Paul, > How about the attached patch instead? yes, that patch fixes the build on travis-ci. Thank you very much for your help! Best regards, Peter

Re: Fix lib/af_alg.c compilation error on Ubuntu Trusty

2018-06-03 Thread Paul Eggert
Peter Simons wrote: https://travis-ci.org/peti/mapson/builds/386553484 Thanks, that provides helpful context. I'd rather not limit Gnulib C files to C89 syntax here, though, as support for the C99 syntax ought to be universal nowadays. How about the attached patch instead? I installed it in

Re: Fix lib/af_alg.c compilation error on Ubuntu Trusty

2018-06-03 Thread Peter Simons
Hi Paul, > Peter Simons wrote: >> gcc (Ubuntu 4.8.4-2ubuntu1~14.04.3) 4.8.4 will not compile this file >> without this patch. > > What's the context for this? I believe that https://travis-ci.org/peti/mapson/builds/386553484 has all the information you'll want. Best regards, Peter

Re: Fix lib/af_alg.c compilation error on Ubuntu Trusty

2018-06-03 Thread Paul Eggert
Peter Simons wrote: gcc (Ubuntu 4.8.4-2ubuntu1~14.04.3) 4.8.4 will not compile this file without this patch. What's the context for this? What package are you building, what options to 'configure' did you use, and what 'gcc' options are present? As I recall, GCC 4.8.4 works just fine with for

Fix lib/af_alg.c compilation error on Ubuntu Trusty

2018-06-02 Thread Peter Simons
gcc (Ubuntu 4.8.4-2ubuntu1~14.04.3) 4.8.4 will not compile this file without this patch. >From e8703cf52d88e1c9833753cfa446b48394a0195b Mon Sep 17 00:00:00 2001 From: Peter Simons Date: Sat, 2 Jun 2018 13:32:25 +0200 Subject: [PATCH] lib/af_alg.c: 'for' loop initial declarations are only allowed