Mailinglist Archive: opensuse-factory (235 mails)

< Previous Next >
Re: [opensuse-factory] 10.3 A4 and libiconv
  • From: Arto Viitanen <arto.viitanen@xxxxxxxxxxx>
  • Date: Sun, 03 Jun 2007 18:58:28 +0300
  • Message-id: <4662E524.2020107@xxxxxxxxxxx>
Donn Washburn kirjoitti:
Has anyone found a usable version of "libiconv" that works with
" gcc (GCC) 4.1.3 20070430 (prerelease) (SUSE Linux) ". It is not on the CDs. It is needed by AmArok and since SuSE's version is boken I was going build my own working version of 1.4.5
I made a program that used iconv and had to compile it on both OS X, Linux (both SuSE and Redhat) and on AIX.
There are some some differences on iconv in different systems: In Linux and AIX, the function is defined as

extern size_t iconv (iconv_t __cd, char **__restrict __inbuf,
                    size_t *__restrict __inbytesleft,
                    char **__restrict __outbuf,
                    size_t *__restrict __outbytesleft);

In OS X, the function is defined as

extern size_t iconv (iconv_t __cd, const char ** __inbuf, size_t * __inbytesleft, char ** __outbuf,
     size_t * __outbytesleft);

I feel const is better that restrict for the __inbuf, but that is another story.

And yes, the libiconv is in AIX and OS X but not on Linux.

Arto Viitanen

To unsubscribe, e-mail: opensuse-factory+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse-factory+help@xxxxxxxxxxxx

< Previous Next >