Joseph S. Myers wrote:
On Mon, 1 Jun 2009, Tobias Schlüter wrote:
The complaint is about:
ICONV_CONST char *inbuf = CONST_CAST (char *, ident);
[...snip...]
iconv_ret = iconv (cd, &inbuf, &inbytesleft,
&outbuf, &outbytesleft);
The types are exactly the same as in the corresponding code in
libcpp/charset.c.
ICONV_CONST char *inbuf;
iconv (cd, &inbuf, &inbytesleft, &outbuf, &outbytesleft);
You'll need to work out what's different on your system between gcc and
libcpp to make it work in one place only. Note that iconv.m4 comes from
gettext; it's possible the configure support has since been refined
upstream and should be updated.
In gcc/auto-host.h I have #define HAVE_ICONV_H, whereas in libcpp/ I
haven't. From PR31932, I presume that HAVE_ICONV_H should never be
defined. The check is explicitly made in AC_CHECK_HEADERS in
gcc/configure.ac. I can't see what happens if I remove the check as
fink symlinks autoconf-2.59 to autoconf which in turn is a symlink to
autoconf-2.63.
Cheers,
- Tobi