FYI, with CFLAGS="-std=c89" I run into this:
tempname.c: In function 'try_tempname_len':tempname.c:288:7: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
288 | for (size_t i = 0; i < x_suffix_len; i++)
| ^~~
Regards, Tim
On 01.01.21 19:42, Tim Rühsen wrote:
Hi Jeff, we recently updated gnulib for wget 1.21.Gnulib is C99 and at least in L288 it looks like your compiler doesn't like a C99 construct. Possibly you need to explicitly switch on C99 mode !?Regards, Tim On 01.01.21 19:38, Jeffrey Walton wrote:Hi Everyone, Here are the results of building Wget 1.21 on an old PowerMac G5. gcc -DHAVE_CONFIG_H -I. -I../src -DDEFAULT_TEXT_DOMAIN=\"wget-gnulib\" -I/usr/local/include -DNDEBUG -I/usr/local/include -I/usr/local/include -I/opt/local/include -DNDEBUG -g2 -O2 -mlong-double-64 -fPIC -pthread -MT tempname.o -MD -MP -MF $depbase.Tpo -c -o tempname.o tempname.c &&\ mv -f $depbase.Tpo $depbase.Po tempname.c: In function 'random_bits': tempname.c:90: warning: integer constant is too large for 'long' type tempname.c:90: warning: this decimal constant is unsigned only in ISO C90 tempname.c: In function 'try_tempname_len':tempname.c:288: error: 'for' loop initial declaration used outside C99 modemake[3]: *** [tempname.o] Error 1 make[3]: *** Waiting for unfinished jobs.... make[2]: *** [all] Error 2 make[1]: *** [all-recursive] Error 1 make: *** [all] Error 2 Gnulib had a couple of commits related to tempname. Also see https://www.mail-archive.com/[email protected]/msg39151.html and https://www.mail-archive.com/[email protected]/msg38659.html. Wget 1.20.3 is OK. Jeff
OpenPGP_signature
Description: OpenPGP digital signature
