Re: [bug-idutils] A couple of issues building idutils 4.5 on HP-UX 11

2010-06-21 Thread Claudio Fontana
Hi Bruno, how about Jim's suggestion to remove the cast completely? Or is that code used also in C++, where a cast might be necessary? Ciao, Claudio

Re: [bug-idutils] A couple of issues building idutils 4.5 on HP-UX 11

2010-06-21 Thread Richard Lloyd
> Can you show the compiler's complete error message, please? I can't imagine > a C compiler that refuses to cast a 'void *' to 'char **'. OK, an unmodified gnulib-tests/setenv.c from idutils 4.5 reports this when compiled with HP's ANSI C compiler on HP-UX 11.11 (PA-RISC platform) via the "gmake

Re: [bug-idutils] A couple of issues building idutils 4.5 on HP-UX 11

2010-06-21 Thread Bruno Haible
Hi Claudio, > ... suggestion to remove the cast completely? This suggestion would not help fixing the problem, because the problem was that malloc and/or realloc were not declared, according to the compiler error message. > Or is that code used also in C++, where a cast might be necessary? 1. Y

Re: [bug-idutils] A couple of issues building idutils 4.5 on HP-UX 11

2010-06-20 Thread Bruno Haible
Richard Lloyd wrote: > an unmodified gnulib-tests/setenv.c from idutils 4.5 reports this > when compiled with HP's ANSI C compiler on HP-UX 11.11 (PA-RISC platform) > via the "gmake check" command: > > CC setenv.o > cc: "setenv.c", line 151: error 1647: Illegal integer-pointer combination

Re: [bug-idutils] A couple of issues building idutils 4.5 on HP-UX 11

2010-06-20 Thread Bruno Haible
Hi Jim, Richard, > diff --git a/lib/stdio.in.h b/lib/stdio.in.h > index ca8960e..135b084 100644 > --- a/lib/stdio.in.h > +++ b/lib/stdio.in.h > @@ -661,7 +661,7 @@ _GL_FUNCDECL_RPL (printf, int, >(const char *format, ...) >__attribute__ ((__format__ (__print

Re: [bug-idutils] A couple of issues building idutils 4.5 on HP-UX 11

2010-06-20 Thread Jim Meyering
Richard Lloyd wrote: > I'm using HP's ANSI C compiler on PA-RISC and Itanium platforms running > HP-UX 11.11, 11.23 and 11.31 and came across a couple of code issues that > needed fixing: > > * Line 666 of lib/stdio.in.h reads: > > _GL_CXXALIAS_RPL (printf, printf, int, (const char *format, ...))