Re: fpurge.c error when building m4 1.4.11

2008-04-21 Thread Bruno Haible
Eric Blake wrote: > Unless you're claiming that the compiler might warn about the > explicit shift by 32 bits on platforms where my patch below now > compiles the shift (in a dead code branch) where it was > previously omitted by the #if, but that's okay with me Yes, that's what I meant. And it's

Re: fpurge.c error when building m4 1.4.11

2008-04-21 Thread Eric Blake
if (8 < sizeof longword1) + for (i = 64; i < sizeof longword1 * 8; i *= 2) + { + magic_bits |= magic_bits << i; + charmask1 |= charmask1 << i; + charmask2 |= charmask2 << i; + } + } magic_bits = (UINTMAX_MAX >>

Re: fpurge.c error when building m4 1.4.11

2008-04-17 Thread Bruno Haible
Hello Alain, Thanks for the report. It means the extended stdio functions tests passed and are therefore ok. Fine! > Another problem came in: > > | gcc -I. -g -O2 -c memchr2.c > | memchr2.c:86: two `l's in integer constant > | make[3]: *** [memchr2.o] Error 1 > | make[3]: Leaving directory

Re: fpurge.c error when building m4 1.4.11

2008-04-17 Thread Alain Guibert
Hello Bruno, On Wednesday, April 16, 2008 at 20:08:13 -0600, Eric Blake wrote: > Here's my latest m4 snapshot with Bruno's tentative fix in; would you > mind giving it a whirl? > http://home.comcast.net/~ericblake/m4-1.4.10b.27-14840.tar.bz2 Much thanks to you two. Another problem came in: | g

Re: fpurge.c error when building m4 1.4.11

2008-04-17 Thread Alain Guibert
Hello Eric, and thanks for your reply, On Tuesday, April 15, 2008 at 12:58:16 -0600, Eric Blake wrote: > Can you also find the implementations, as well as show us what struct > FILE looks like? >From libc 5.4.33 libio/ come attached files iofflush.c, iosetvbuf.c, ioungetc.c, iofread.c, genops.c

Re: fpurge.c error when building m4 1.4.11

2008-04-16 Thread Eric Blake
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 According to Bruno Haible on 4/16/2008 6:01 PM: | | OK, I'm adding tentative support for Linux libc5. Here's my latest m4 snapshot with Bruno's tentative fix in; would you mind giving it a whirl? http://home.comcast.net/~ericblake/m4-1.4.10b.27-1484

Re: fpurge.c error when building m4 1.4.11

2008-04-16 Thread Bruno Haible
Alain Guibert wrote: > On my old Linux box (Intel Pentium 200 MMX, Debian bo, kernel 2.0.40, > gcc 2.7.2.1, libc 5.4.33, ... > ... > | gcc -I. -g -O2 -c fpurge.c > | fpurge.c:117: #error "Please port gnulib fpurge.c to your platform! Look at > the definitions of fflush, setvbuf and ungetc on

Re: fpurge.c error when building m4 1.4.11

2008-04-15 Thread Eric Blake
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 According to Alain Guibert on 4/15/2008 7:02 AM: | A similar error occurs later in freadahead.c, freading.c, and fseeko.c | I'm not skilled enough to port anything, but the asked definitions in | are: | | | extern int fflush __P((FILE*)); | | extern

fpurge.c error when building m4 1.4.11

2008-04-15 Thread Alain Guibert
[crosspost bug-m4 and bug-gnulib] Hello gentlemen, On my old Linux box (Intel Pentium 200 MMX, Debian bo, kernel 2.0.40, gcc 2.7.2.1, libc 5.4.33, GNU ld cygnus-2.7.1, libiconv 1.12, pth 2.0.7, i586-pc-linux-gnulibc1, autoconf 2.61, fileutils 3.16, Make 3.75, bash 2.0.0(1)), while buildin