From: Raymond T. <to...@rt...> - 2002-01-10 21:39:44
|
>>>>> "Raymond" == Raymond Toy <to...@rt...> writes: Sam> I had to make a change on 2001-12-25 to unixconf.h.in (to fix the Sam> FreeBSD build). Maybe this is the reason? Raymond> Don't know. Let me check to see if I can change the function to match Raymond> the prototype and see what happens. I checked. unix.d says: extern_C size_t iconv (iconv_t cd, ICONV_CONST char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t* outbytesleft); but <iconv.h> on Solaris 7 says: extern size_t iconv(iconv_t, const char **, size_t *, char **, size_t *); So configure must be getting ICONV_CONST wrong. But since unix.d includes <iconv.h>, I don't see why you need to include <iconv.h> and then define the functions that should have already been defined in iconv.h. For now, I just commented out the unneeded declarations, and compilation is proceeding. (BTW this is Solaris 7 using Sun's C compiler). Ray |