> 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 check" command: CC setenv.o cc: "setenv.c", line 151: error 1647: Illegal integer-pointer combination for second and third operands of conditional expression (?:). cc: "setenv.c", line 151: error 1527: Incompatible types in cast: Must cast from scalar to scalar or to void type. As I said earlier, the fix is to cast the return values from malloc() and realloc() to (char *), which seem to satisfy the HP compiler. Richard K. Lloyd, E-mail: r...@connectinternetsolutions.com Connect Internet Solutions, WWW: http://www.connectinternetsolutions.com/ 4th Floor, New Barratt House, 47, North John Street, Liverpool, Merseyside, UK. L2 6SG -- This e-mail (and any attachments) is private and confidential. If you have received it in error, please notify the sender immediately and delete it from your system. Do not use, copy or disclose the information in any way nor act in reliance on it. Any views expressed in this message are those of the individual sender, except where the sender specifically states them to be the views of Connect Internet Solutions Ltd. This e-mail and any attachments are believed to be virus free but it is the recipient's responsibility to ensure that they are. Connect Internet Solutions Ltd (A company registered in England No: 04424350) Registered Office: 4th Floor, New Barratt House, 47 North John Street, Liverpool, L2 6SG Telephone: +44 (0) 151 282 4321 Fax: +44 (0) 151 282 4322 VAT registration number: 758 2838 85 _______________________________________________ bug-idutils mailing list bug-idutils@gnu.org http://lists.gnu.org/mailman/listinfo/bug-idutils